/* ==========================================================================
   NFM Building Contractors - Prime Aesthetics (Dark Theme)
   ========================================================================== */

   :root {
    /* Color Palette - Premium Dark */
    --clr-bg: #050505;
    --clr-bg-alt: #0a0a0a;
    --clr-bg-card: #121212;
    --clr-primary: #e61b23; /* NFM Red */
    --clr-primary-glow: rgba(230, 27, 35, 0.4);
    --clr-text-main: #ffffff;
    --clr-text-muted: #888888;
    --clr-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --ff-main: 'Outfit', sans-serif;
    
    /* Transitions & Layout */
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1280px;
    --header-height: 90px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; background-color: var(--clr-bg); }

body {
    font-family: var(--ff-main);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading { overflow: hidden; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; }
.mt-2 { margin-top: 2rem; }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.02em; }
h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.2rem; }
p { font-weight: 300; color: var(--clr-text-muted); margin-bottom: 1rem; }

.red-text { color: var(--clr-primary); }
.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--clr-text-main);
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 2px;
    background: var(--clr-primary);
}

.section-header { margin-bottom: 4rem; max-width: 600px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-red {
    background: var(--clr-primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--clr-primary-glow);
}

.btn-red:hover {
    background: #ff2a33;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--clr-primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
}

.btn-outline:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-sm { padding: 0.75rem 1.5rem; font-size: 0.8rem; }
.btn-full { width: 100%; }

/* ==========================================================================
   Page Loader & Scroll Progress
   ========================================================================== */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--clr-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-content { text-align: center; }
.loader-logo { font-size: 2rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 2rem; }
.loader-logo span { color: var(--clr-primary); }

.loader-bar-container {
    width: 200px;
    height: 2px;
    background: var(--clr-border);
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--clr-primary);
    animation: loadBar 2s ease-in-out forwards;
}

.loader-text { font-size: 0.8rem; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 2px; }

@keyframes loadBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--clr-primary);
    z-index: 10000;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--clr-primary-glow);
}

/* ==========================================================================
   Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Header
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-border);
    height: 70px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.desktop-nav ul { display: flex; gap: 2.5rem; }
.desktop-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text-muted);
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--clr-text-main); }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}
.mobile-menu-toggle span { display: block; width: 100%; height: 2px; background: #fff; transition: var(--transition); }

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--clr-bg);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-nav-overlay ul { text-align: center; }
.mobile-nav-overlay li { margin-bottom: 2rem; }
.mobile-nav-overlay a { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

@media (max-width: 992px) {
    .desktop-nav, .header-cta { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ==========================================================================
   Hero Section - Architectural Split
   ========================================================================== */
.hero-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 450px 400px;
    padding-top: var(--header-height);
    background: var(--clr-bg);
}

.hero-col {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-col-text {
    padding: 4rem 2rem 4rem max(2rem, calc((100vw - var(--container)) / 2 + 2rem));
    border-right: 1px solid var(--clr-border);
}

.hero-col-image {
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--clr-border);
}

.hero-image-inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(80%);
    transition: filter 1s ease;
}

.hero-split:hover .hero-image-inner {
    filter: grayscale(0%);
}

.red-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: var(--clr-primary);
    box-shadow: 0 0 15px var(--clr-primary);
}

.hero-col-form {
    padding: 4rem 2rem;
    background: var(--clr-bg-alt);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.03);
}

.badge-dot { width: 8px; height: 8px; background: var(--clr-primary); border-radius: 50%; box-shadow: 0 0 10px var(--clr-primary); }

.hero-h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.hero-sub { font-size: 1.1rem; max-width: 400px; margin-bottom: 2.5rem; color: #aaa; }

.hero-stats { display: flex; gap: 3rem; }
.hero-stat-stars { color: var(--clr-primary); display: block; margin-bottom: 0.25rem; font-size: 1.2rem; }
.hero-stat-label { font-size: 0.8rem; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Architectural Quote Form */
.architectural-form {
    width: 100%;
    max-width: 320px;
}

.fq-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.fq-subtitle { font-size: 0.9rem; color: var(--clr-text-muted); margin-bottom: 2.5rem; line-height: 1.3;}

.fq-field { margin-bottom: 1.5rem; }
.fq-field label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 0.5rem; }
.fq-field input, .fq-field select {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--clr-border);
    border-radius: 0;
    color: #fff;
    font-family: var(--ff-main);
    transition: var(--transition);
}
.fq-field input:focus, .fq-field select:focus { border-color: var(--clr-primary); outline: none; background: rgba(255,255,255,0.05); }

@media (max-width: 1200px) {
    .hero-split { grid-template-columns: 1fr 1fr; }
    .hero-col-form { grid-column: 1 / -1; border-top: 1px solid var(--clr-border); padding: 4rem 2rem; align-items: flex-start; }
    .architectural-form { max-width: 600px; }
}

@media (max-width: 768px) {
    .hero-split { grid-template-columns: 1fr; }
    .hero-col-image { height: 400px; border-right: none; border-bottom: 1px solid var(--clr-border); }
    .hero-col-text { padding: 4rem 2rem; }
    .red-accent-line { width: 100%; height: 4px; bottom: 0; top: auto; left: 0; }
}

/* ==========================================================================
   Interactive Services
   ========================================================================== */
.services-section { background: var(--clr-bg-alt); }

.services-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.svc-block {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--clr-border);
}

.svc-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    opacity: 0.4;
    filter: grayscale(80%);
}

.svc-block:hover .svc-bg { transform: scale(1.1); opacity: 0.7; filter: grayscale(0%); }

.svc-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
}

.svc-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    z-index: 2;
    transition: var(--transition);
}

.svc-block:hover .svc-number { color: var(--clr-primary); -webkit-text-stroke: 0; }

.svc-block-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.svc-label { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; display: block; letter-spacing: 1px; }

.svc-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition);
}

.svc-block:hover .svc-items { max-height: 200px; opacity: 1; margin-bottom: 1rem; }
.svc-item { font-size: 0.9rem; color: #ccc; display: flex; align-items: center; gap: 0.5rem; }
.svc-item::before { content: ''; width: 4px; height: 4px; background: var(--clr-primary); border-radius: 50%; }

/* ==========================================================================
   Trust Counters
   ========================================================================== */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: 4rem 0;
}

.counter-num { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 900; color: var(--clr-primary); line-height: 1; display: block; margin-bottom: 0.5rem; }
.counter-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: var(--clr-text-main); font-weight: 600; }

@media (max-width: 768px) { .counters-grid { grid-template-columns: 1fr; gap: 4rem; } }

/* ==========================================================================
   Process Timeline
   ========================================================================== */
.process-timeline-section { background: var(--clr-bg-alt); }
.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 0;
}

.process-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--clr-border);
    transform: translateX(-50%);
}

.process-track-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--clr-primary);
    box-shadow: 0 0 15px var(--clr-primary-glow);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-card, .timeline-empty { width: 45%; }
.timeline-card {
    background: var(--clr-bg-card);
    padding: 2.5rem;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    transition: var(--transition);
}

.timeline-card:hover { border-color: var(--clr-primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.timeline-step { font-size: 0.9rem; color: var(--clr-primary); font-weight: 800; margin-bottom: 0.5rem; letter-spacing: 2px; }
.timeline-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }
.timeline-desc { color: var(--clr-text-muted); margin: 0; }

.timeline-node {
    width: 20px;
    height: 20px;
    background: var(--clr-bg);
    border: 4px solid var(--clr-border);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item.active .timeline-node { border-color: var(--clr-primary); background: var(--clr-primary); box-shadow: 0 0 15px var(--clr-primary); }

@media (max-width: 768px) {
    .process-track { left: 30px; }
    .timeline-node { left: 30px; }
    .timeline-empty { display: none; }
    .timeline-card { width: calc(100% - 60px); margin-left: 60px; }
}

/* ==========================================================================
   Projects Gallery
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    cursor: pointer;
    transition: var(--transition);
}

.project-card:hover { border-color: var(--clr-primary); transform: translateY(-5px); }
.project-img {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover img { transform: scale(1.05); }

.project-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--clr-primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.project-info { padding: 1.5rem; }
.project-title { font-size: 1.25rem; font-weight: 700; }

@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer & Contact
   ========================================================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--clr-border);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
}

.contact-list .icon { color: var(--clr-primary); font-size: 1.2rem; }
.contact-list a:hover { color: var(--clr-primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #555;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 998;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: #128C7E;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Brand Logo
   ========================================================================== */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--clr-text-main);
}

.brand-sub {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--clr-primary);
}