/* ================================================================
   CONCORD TECHNOLOGIES — Main Stylesheet
   ================================================================ */

/* ----------------------------------------------------------------
   CSS Variables
---------------------------------------------------------------- */
:root {
    --navy:        #001f3f;
    --navy-mid:    #0d2a45;
    --navy-light:  #1a3a5c;
    --white:       #ffffff;
    --gray-light:  #f5f5f5;
    --gray-mid:    #e8e8e8;
    --text-dark:   #232323;
    --text-mid:    #444444;
    --text-muted:  #666666;
    --star:        #f5a623;
    --wa-green:    #25D366;
    --transition:  all 0.3s ease;
    --nav-h:       80px;
}

/* ----------------------------------------------------------------
   Reset & Base
---------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
blockquote { quotes: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ----------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-primary:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--navy);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-dark:hover {
    background-color: var(--navy);
    color: var(--white);
}


/* ================================================================
   NAVBAR
================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
    background-color: var(--navy);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.nav-logo,
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-svg {
    width: 46px;
    height: 38px;
    flex-shrink: 0;
}

.logo-img {
    width: 46px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.logo-text span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--white);
}

.logo-text.dark span {
    color: var(--navy);
}

/* Nav list */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--white);
    transition: opacity 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.75;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background-color: var(--navy);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--white);
    transition: background-color 0.2s, padding-left 0.2s;
}

.nav-dropdown li a:hover {
    background-color: var(--navy-light);
    padding-left: 26px;
}

/* Social */
.nav-social {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.social-icon {
    color: var(--white);
    font-size: 15px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.social-icon:hover { opacity: 1; }

.social-icon.dark {
    color: var(--navy);
    opacity: 0.7;
}
.social-icon.dark:hover { opacity: 1; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ================================================================
   HERO
================================================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    display: block;
}

.hero-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 10, 25, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 40px) 28px 60px;
    text-align: center;
}

.hero-title {
    font-size: clamp(34px, 5.8vw, 72px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    max-width: 960px;
    margin: 0 auto 22px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;
    margin: 0 auto 36px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-checklist {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0 auto 36px;
    padding: 0;
    text-align: left;
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.4px;
}

.hero-checklist li i {
    color: #4ade80;
    font-size: 16px;
    flex-shrink: 0;
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}


/* ================================================================
   INTRO — SECURITY MEETS LUXURY
================================================================ */
.intro-section {
    background: var(--white);
    padding: 80px 28px;
    text-align: center;
}

.intro-inner {
    max-width: 960px;
    margin: 0 auto;
}

.intro-divider {
    width: 50px;
    height: 3px;
    background-color: var(--navy);
    margin: 0 auto 42px;
}

.intro-heading {
    display: flex;
    flex-direction: column;
    font-size: clamp(36px, 8vw, 92px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 36px;
}

.intro-black { color: var(--text-dark); }
.intro-navy  { color: var(--navy); }

.intro-varieties {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 0 auto 36px;
    padding: 0;
    text-align: left;
}

.intro-varieties li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.variety-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: var(--navy);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.intro-desc {
    font-size: 15px;
    color: #555;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.85;
}

.intro-desc strong {
    font-weight: 700;
    color: var(--text-dark);
}


/* ================================================================
   SERVICE SECTIONS (Gate Automation & Electric Fencing)
================================================================ */
.service-section { padding: 0; }
.bg-gray  { background-color: var(--gray-light); }
.bg-white { background-color: var(--white); }

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
}

.service-img {
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.service-img:hover img {
    transform: scale(1.04);
}

.service-img video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-body {
    padding: 64px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--navy-light);
    margin-bottom: 10px;
}

.service-title {
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.service-features li h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.service-features li p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

.service-rule {
    border: none;
    border-top: 1px solid var(--gray-mid);
    margin: 20px 0;
}

.service-specs {
    margin-bottom: 28px;
}

.specs-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #c8c8c8;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-mid);
}

.service-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ================================================================
   SMART HOME  — fixed parallax background using the hero image
================================================================ */
.smarthome-section {
    position: relative;
    padding: 96px 28px;
    text-align: center;
    /* Parallax: image stays fixed while content scrolls over it */
    background-image: url("../images/hero image.avif");
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Dark overlay via pseudo-element so the fixed bg is unaffected */
.smarthome-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 35, 0.74);
    z-index: 0;
}

.smarthome-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: var(--white);
}

.smarthome-title {
    font-size: clamp(26px, 3.8vw, 50px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
}

.smarthome-desc {
    margin-bottom: 42px;
}

.smarthome-desc p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.88);
    line-height: 1.8;
    margin-bottom: 6px;
}

.smarthome-desc strong {
    color: var(--white);
    font-weight: 700;
}

.smarthome-icons {
    display: flex;
    justify-content: center;
    gap: 52px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.sh-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sh-icon-wrap {
    width: 66px;
    height: 66px;
    border: 1.5px solid rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    transition: border-color 0.3s;
}

.sh-icon-item:hover .sh-icon-wrap {
    border-color: rgba(255,255,255,0.9);
}

.sh-icon-item span {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.82);
}

.smarthome-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}


/* ================================================================
   WHY US
================================================================ */
.whyus-section {
    padding: 80px 28px;
    background: var(--white);
    text-align: center;
}

.section-heading {
    font-size: clamp(26px, 3.5vw, 46px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 60px;
    line-height: 1.2;
}

.whyus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.whyus-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 16px;
}

.whyus-icon {
    font-size: 34px;
    color: #c0c0c0;
    margin-bottom: 18px;
    line-height: 1;
}

.whyus-card h4 {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.whyus-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.75;
}


/* ================================================================
   PARTNERS MARQUEE
================================================================ */
.partners-section {
    background-color: var(--gray-light);
    padding: 48px 0 44px;
    overflow: hidden;
}

.partners-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

/* ----------------------------------------------------------------
   Partners marquee — track-based approach (most reliable)
   The outer div clips overflow. The inner track is one long flex row
   containing 2 identical sets of logos. It slides from 0 → -50%,
   which is exactly the width of one set, creating a seamless loop.
---------------------------------------------------------------- */
.p-track-wrapper {
    overflow: hidden;           /* clips logos outside section bounds */
    width: 100%;
}

.p-track {
    display: flex;
    align-items: center;
    width: max-content;         /* shrink-wraps all logos in one row  */
    will-change: transform;     /* GPU-composite the moving element   */
    /* NO CSS animation — moved by JS requestAnimationFrame instead   */
}

/* One logo cell */
.p-item {
    padding: 0 56px;
    display: flex;
    align-items: center;
    border-right: 1px solid #e0e0e0;
    height: 80px;
}

/* Shared text style for all brand spans */
.p-item span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    opacity: 0.55;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: opacity 0.25s;
}

.p-item:hover span { opacity: 1; }

/* ── Per-brand overrides ── */
.p-kinggates { font-size: 20px !important; letter-spacing: 0 !important; }
.p-kinggates strong { font-weight: 900; letter-spacing: 1px; color: var(--navy); }

.p-orvibo    { font-size: 17px !important; font-weight: 600 !important; letter-spacing: 2.5px !important; }
.p-gallagher { font-size: 17px !important; font-weight: 800 !important; letter-spacing: 1px !important; }
.p-savant    { font-size: 22px !important; font-weight: 400 !important; letter-spacing: 5px !important; }
.p-control4  { font-size: 18px !important; font-weight: 500 !important; letter-spacing: 0 !important; }
.p-nemtek    { font-size: 16px !important; font-weight: 900 !important; letter-spacing: 3px !important; }
.p-tongher   { font-size: 16px !important; font-weight: 700 !important; letter-spacing: 2px !important; }
.p-centurion { font-size: 15px !important; font-weight: 700 !important; letter-spacing: 4px !important; }

/* The "4" in Control4 */
.p-c4 {
    font-size: 22px;
    font-weight: 700;
}

/* SVG brand icons (Orvibo spinner, Gallagher medallion) */
.p-svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

/* animation driven by JS — no keyframe needed here */


/* ================================================================
   STATS
================================================================ */
.stats-section {
    background-color: var(--navy);
    padding: 64px 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    gap: 6px;
}

.stat-icon {
    font-size: 30px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 6px;
}

.stat-num {
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-lbl {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}


/* ================================================================
   TESTIMONIALS
================================================================ */
.testimonials-section {
    padding: 80px 28px;
    background: var(--white);
    text-align: center;
}

.section-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy-light);
    margin-bottom: 10px;
}

.testimonials-heading {
    font-size: clamp(22px, 4vw, 54px);
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 52px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    border: 1px solid #e0e0e0;
    padding: 28px 26px 24px;
    text-align: left;
    transition: border-color 0.3s;
}

.testimonial-card:hover {
    border-color: #b0b0b0;
}

.tc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    gap: 3px;
    color: var(--star);
    font-size: 15px;
}

.tc-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 52px;
    color: #d8d8d8;
    line-height: 0.8;
    user-select: none;
}

.testimonial-card blockquote {
    font-size: 12.5px;
    color: #444;
    line-height: 1.85;
    margin-bottom: 20px;
}

.tc-author strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.tc-author span {
    font-size: 12px;
    color: var(--text-muted);
}


/* ================================================================
   CTA BANNER
================================================================ */
.cta-section {
    background-color: var(--navy);
    padding: 60px 28px;
}

.cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-heading {
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 700;
    color: var(--white);
    max-width: 460px;
    line-height: 1.35;
}

.cta-address {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.cta-address i {
    margin-right: 6px;
    color: #4ade80;
}

.cta-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
}


/* ================================================================
   FOOTER
================================================================ */
.site-footer {
    background-color: var(--gray-light);
    border-top: 1px solid var(--gray-mid);
    padding: 26px 28px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-address {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.footer-address i {
    margin-right: 5px;
    color: var(--navy);
}

.footer-copy {
    font-size: 12.5px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 18px;
}


/* ================================================================
   WHATSAPP FLOAT
================================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--wa-green);
    color: var(--white);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s;
}

.whatsapp-float i {
    font-size: 20px;
}

.whatsapp-float:hover {
    background-color: #1cb94a;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    color: var(--white);
}


/* ================================================================
   RESPONSIVE — Tablet (≤1100px)
================================================================ */
@media (max-width: 1100px) {
    .nav-link { padding: 8px 8px; font-size: 10px; }

    .whyus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-body {
        padding: 48px 40px;
    }
}


/* ================================================================
   RESPONSIVE — Mobile Menu breakpoint (≤900px)
================================================================ */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        width: 100%;
        background-color: var(--navy);
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0 20px;
        z-index: 999;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        padding: 14px 28px;
        font-size: 11.5px;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    /* Mobile dropdown stays visible inline */
    .has-dropdown .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0,0,0,0.2);
        min-width: 100%;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.open .nav-dropdown {
        max-height: 300px;
    }

    .nav-dropdown li a {
        padding-left: 44px;
        font-size: 10.5px;
    }

    .nav-social { display: none; }
    .hamburger  { display: flex; }
}


/* ================================================================
   RESPONSIVE — Mobile (≤768px)
================================================================ */
@media (max-width: 768px) {
    .nav-container { padding: 0 20px; }

    /* Hero */
    .hero-content { padding: calc(var(--nav-h) + 30px) 20px 50px; }

    /* Intro */
    .intro-section { padding: 60px 20px; }
    .intro-heading {
        font-size: clamp(32px, 10vw, 64px);
        letter-spacing: -1px;
    }

    /* Services — stack to single column */
    .service-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service-img {
        min-height: 300px;
        max-height: 380px;
    }

    .service-body {
        padding: 40px 22px;
    }

    /* Electric fencing: image goes below content on desktop,
       but on mobile we want image on top */
    .service-grid--reverse .service-img {
        order: -1;
    }

    /* Smart home — disable fixed bg on mobile (iOS bug workaround) */
    .smarthome-section {
        padding: 70px 20px;
        background-attachment: scroll;
    }
    .smarthome-icons { gap: 28px; }

    /* Why us */
    .whyus-section { padding: 60px 20px; }
    .whyus-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

    /* Partners */
    .marquee-item { padding: 0 32px; }
    .marquee-item span { font-size: 17px; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* Testimonials */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* CTA */
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-heading { max-width: 100%; }
    .cta-btns { justify-content: center; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-social { justify-content: center; }

    /* WhatsApp on small screens */
    .whatsapp-float span { display: none; }
    .whatsapp-float {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .whatsapp-float i { font-size: 24px; }
}


/* ================================================================
   RESPONSIVE — Small phones (≤480px)
================================================================ */
@media (max-width: 480px) {
    .hero-btns,
    .service-btns,
    .smarthome-btns,
    .cta-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn { justify-content: center; width: 100%; }

    .whyus-grid { grid-template-columns: 1fr; }
    .stats-grid  { grid-template-columns: 1fr; }

    .intro-heading {
        font-size: clamp(28px, 11vw, 48px);
        letter-spacing: -0.5px;
    }

    .spec-tags { flex-direction: column; }
}


/* ================================================================
   UTILITY — Scroll reveal animation class (added via JS)
================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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