/* ============================================================
   JACK INGENIEROS LTD = PREMIUM 2026 DESIGN SYSTEM
   ============================================================ */

/* = Fonts – loaded via <link> in header.php (Space Grotesk + DM Serif Display) = */

/* = Design Tokens = */
:root {
    /* Brand Palette */
    --navy:          #011627;
    --navy-mid:      #032e53;
    --navy-light:    #0a3d6b;
    --blue:          #1e73be;
    --blue-bright:   #2d9cdb;
    --blue-glow:     #4fb3ef;
    --gold:          #c9a84c;
    --gold-light:    #f0c355;
    --white:         #ffffff;
    --off-white:     #e8f1f8;
    --gray-50:       #f0f6ff;
    --gray-100:      #dce9f5;
    --gray-400:      #334e68;
    --gray-700:      #102a43;
    --gray-900:      #011627;

    /* Glassmorphism */
    --glass-bg:      rgba(255,255,255,0.06);
    --glass-border:  rgba(255,255,255,0.12);
    --glass-hover:   rgba(255,255,255,0.10);

    /* Gradients */
    --grad-hero:     linear-gradient(135deg, #011627 0%, #032e53 50%, #0a3d6b 100%);
    --grad-section:  linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
    --grad-card:     linear-gradient(145deg, rgba(30,115,190,0.12) 0%, rgba(3,46,83,0.05) 100%);
    --grad-gold:     linear-gradient(135deg, #c9a84c, #f0c355);
    --grad-blue:     linear-gradient(135deg, #1e73be, #4fb3ef);

    /* Shadows */
    --shadow-sm:     0 4px 20px rgba(1,22,39,0.15);
    --shadow-md:     0 10px 40px rgba(1,22,39,0.25);
    --shadow-lg:     0 20px 60px rgba(1,22,39,0.4);
    --shadow-glow:   0 0 40px rgba(30,115,190,0.35);
    --shadow-gold:   0 0 30px rgba(201,168,76,0.4);

    /* Typography */
    --font-body:     'Space Grotesk', sans-serif;
    --font-display:  'DM Serif Display', Georgia, serif;

    /* Motion */
    --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast:        0.2s;
    --t-med:         0.4s;
    --t-slow:        0.7s;
}

/* = Reset = */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}
body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    font-weight: 500;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
section, .section, .why-us, .about-intro, .hero, .page-hero, .cta-banner {
    overflow: hidden !important;
    position: relative !important;
    max-width: 100vw !important;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; }

/* = Layout = */
.container { width: 92%; max-width: 1260px; margin: 0 auto; }

/* = Typography = */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 800; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; line-height: 1.3; }

h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); letter-spacing: -0.01em; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.4rem; color: var(--gray-700); font-size: 1.0625rem; font-weight: 500; }
p:last-child { margin-bottom: 0; }

/* = Utility = */
.text-gold      { color: var(--gold); }
.text-blue      { color: var(--blue-bright); }
.text-white     { color: var(--white); }
.text-navy      { color: var(--navy-mid); }

/* = Buttons = */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.9rem 2.2rem; font-weight: 600; font-size: 0.9375rem;
    border-radius: 60px; cursor: pointer; transition: all var(--t-med) var(--ease);
    border: 2px solid transparent; letter-spacing: 0.01em; position: relative; overflow: hidden;
}

.btn-primary {
    background: var(--grad-blue);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(30,115,190,0.45);
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #4fb3ef, #1e73be);
    opacity: 0; transition: opacity var(--t-med) var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(30,115,190,0.6); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary i { position: relative; z-index: 1; }

.btn-gold {
    background: var(--grad-gold);
    color: var(--navy);
    box-shadow: 0 4px 20px rgba(201,168,76,0.4);
    font-weight: 700;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }

.btn-ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-3px);
}

.btn-outline-navy {
    background: transparent;
    border-color: var(--navy-mid);
    color: var(--navy-mid);
}
.btn-outline-navy:hover { background: var(--navy-mid); color: var(--white); transform: translateY(-2px); }


/* ==========================================================
   NAVIGATION
========================================================== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 10000; padding: 1.5rem 0;
    transition: padding var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.navbar.scrolled {
    padding: 0.85rem 0;
    background: rgba(1, 22, 39, 0.96);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: 0 4px 30px rgba(0,0,0,0.35);
    border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
    display: flex; justify-content: space-between; align-items: center;
    width: 92%; max-width: 1260px; margin: 0 auto;
}
.logo {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
    color: var(--white); letter-spacing: -0.02em;
    flex-shrink: 0;
}
.header-logo-img {
    height: 68px; width: auto; max-width: 100%; object-fit: contain;
    display: block; transition: height var(--t-fast) var(--ease);
}
.logo-icon {
    width: 42px; height: 42px; background: var(--grad-blue);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; box-shadow: var(--shadow-glow); flex-shrink: 0;
}
.logo em { color: var(--gold); font-style: normal; }

.nav-links {
    display: flex; align-items: center; gap: 0.25rem;
    list-style: none; margin: 0; padding: 0;
}
.nav-links a {
    color: rgba(255,255,255,0.85); font-weight: 500; font-size: 1.05rem;
    padding: 0.5rem 1rem; border-radius: 8px;
    transition: all var(--t-fast) var(--ease); position: relative;
    text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.10);
}
.nav-links a.active {
    color: var(--gold-light);
}
.nav-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.mobile-only-action { display: none; }

/* ── Hamburger Button (Indestructible Universal Structure) ── */
.hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4.5px !important;
    cursor: pointer !important;
    background: rgba(1, 22, 39, 0.7) !important;
    border: 1.5px solid rgba(201, 168, 76, 0.4) !important;
    padding: 8px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    z-index: 10005 !important;
    flex-shrink: 0 !important;
    transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease) !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
}

.hamburger:hover, .hamburger:focus-visible {
    background: rgba(201, 168, 76, 0.2) !important;
    border-color: rgba(201, 168, 76, 0.8) !important;
    box-shadow: 0 0 16px rgba(201,168,76,0.15) !important;
    outline: none !important;
}
.hamburger span {
    display: block !important;
    width: 22px !important;
    height: 2.5px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                background 0.3s ease !important;
    transform-origin: center !important;
}
.hamburger span:nth-child(2) { width: 16px !important; }
.hamburger.open span {
    background: #c9a84c !important;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
}
.hamburger.open span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
}

/* ── Desktop Navigation (≥ 1200px) ── */
@media (min-width: 1200px) {
    .header-logo-img { height: 68px !important; }
    .hamburger { display: none !important; }
    .mobile-only-action { display: none !important; }
    .nav-links {
        display: flex !important; align-items: center !important; gap: 0.25rem !important;
        list-style: none !important; margin: 0 !important; padding: 0 !important;
        position: static !important; width: auto !important; height: auto !important;
        background: transparent !important; opacity: 1 !important; transform: none !important;
        pointer-events: auto !important;
    }
    .nav-links a {
        color: rgba(255,255,255,0.85); font-weight: 500; font-size: 1.05rem;
        padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none;
        transition: all 0.2s ease;
    }
    .nav-links a:hover, .nav-links a.active {
        color: #ffffff; background: rgba(255,255,255,0.1);
    }
    .nav-links a.active { color: #f0c355; }
    .nav-actions { display: flex !important; align-items: center !important; gap: 1rem !important; margin-right: 0.5rem !important; }
}

/* ── Mobile Navigation Drawer (≤ 1199px) ── */
@media (max-width: 1199px) {
    .navbar {
        background: rgba(1, 22, 39, 0.98) !important;
        backdrop-filter: blur(24px) saturate(1.8) !important;
        -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
        padding: 0.65rem 0 !important;
        box-shadow: 0 4px 30px rgba(0,0,0,0.4) !important;
        border-bottom: 1px solid rgba(201,168,76,0.15) !important;
        transition: none !important;
    }
    .nav-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        position: relative !important;
        box-sizing: border-box !important;
    }
    .logo {
        max-width: calc(100% - 60px) !important;
    }
    .header-logo-img { height: 48px !important; max-width: 220px !important; }
    .nav-actions { display: none !important; }

    /* Fixed Pinning to Viewport: 16px from top, 16px from right */
    .hamburger {
        position: fixed !important;
        right: 16px !important;
        top: 14px !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 10005 !important;
    }

    .nav-links:not(.open) {
        display: none !important;
    }
    .nav-links.open {
        display: flex !important;
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        width: 100vw !important; height: 100vh !important; height: 100dvh !important;
        background: linear-gradient(180deg, rgba(1,22,39,0.99) 0%, rgba(3,46,83,0.98) 100%) !important;
        backdrop-filter: blur(30px) saturate(1.5) !important;
        -webkit-backdrop-filter: blur(30px) saturate(1.5) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0.4rem !important;
        z-index: 10001 !important;
        padding-top: 75px !important;
        padding-bottom: 2rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        list-style: none !important;
        margin: 0 !important;
    }

    /* Staggered link entrance animation */
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.4s var(--ease-bounce);
    }
    .nav-links.open li {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-links.open li:nth-child(1) { transition-delay: 0.08s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.14s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.20s; }
    .nav-links.open li:nth-child(4) { transition-delay: 0.26s; }
    .nav-links.open li:nth-child(5) { transition-delay: 0.32s; }
    .nav-links.open li:nth-child(6) { transition-delay: 0.38s; }
    .nav-links.open li:nth-child(7) { transition-delay: 0.44s; }

    .nav-links a {
        font-size: 1.25rem;
        font-weight: 600;
        color: rgba(255,255,255,0.9);
        padding: 0.65rem 2rem;
        border-radius: 12px;
        text-align: center;
        display: block;
        width: 100%;
        max-width: 300px;
        transition: all var(--t-fast) var(--ease);
        letter-spacing: 0.01em;
    }
    .nav-links a:hover {
        color: var(--gold-light);
        background: rgba(201, 168, 76, 0.1);
        transform: scale(1.02);
    }
    .nav-links a.active {
        color: var(--gold);
        background: rgba(201, 168, 76, 0.12);
        border-left: 3px solid var(--gold);
    }
    .mobile-only-action {
        display: block;
        margin-top: 1rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    .mobile-quote-btn {
        font-size: 1rem;
        padding: 0.85rem 2rem;
        width: 100%;
        border-radius: 12px;
    }
}


/* =
   HERO SECTION
= */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; background: var(--grad-hero);
    overflow: hidden; padding: 120px 0 80px;
}

/* Blueprint grid overlay */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(30,115,190,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,115,190,0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 1;
}

/* Glowing orbs */
.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); pointer-events: none;
}
.hero-orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(30,115,190,0.35) 0%, transparent 70%);
    top: -200px; right: -150px;
}
.hero-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%);
    bottom: -100px; left: 30%;
}
.hero-orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(79,179,239,0.15) 0%, transparent 70%);
    top: 30%; left: -100px;
}

.hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light); padding: 0.4rem 1rem; border-radius: 50px;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-badge i { font-size: 0.75rem; }

.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 .line-accent {
    background: var(--grad-blue); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    display: block;
}
.hero h1 .line-gold {
    background: var(--grad-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem; color: rgba(255,255,255,0.7);
    max-width: 520px; line-height: 1.8; margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats {
    display: flex; gap: 2.5rem; flex-wrap: wrap;
}
.hero-stat-num {
    font-family: var(--font-display); font-size: 2rem; font-weight: 800;
    color: var(--white); line-height: 1;
}
.hero-stat-num span { color: var(--gold); }
.hero-stat-label { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem; }

/* Right side = visual */
.hero-visual { position: relative; }
.hero-img-wrap {
    position: relative; border-radius: 24px; overflow: hidden;
    aspect-ratio: 4/5; box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Floating badge on image */
.hero-float-badge {
    position: absolute; bottom: 2rem; left: -2rem;
    background: rgba(1,22,39,0.9); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 1.25rem 1.75rem; display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow-md);
}
.hero-float-badge i { font-size: 2rem; color: var(--gold); }
.hero-float-badge strong {
    display: block; color: var(--white); font-size: 1.25rem;
    font-family: var(--font-display); font-weight: 800;
}
.hero-float-badge span { font-size: 0.8125rem; color: var(--gray-400); }

/* Corner accent */
.hero-corner-accent {
    position: absolute; top: -1.5rem; right: -1.5rem;
    width: 80px; height: 80px; border: 2px solid var(--gold);
    border-radius: 12px; opacity: 0.6;
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero { padding: 140px 0 80px; }
}


/* =
   SECTION UTILITIES
= */
.section { padding: 4rem 0; }
.section-dark { background: var(--navy); }
.section-navy { background: var(--navy-mid); }
.section-light { background: var(--gray-50); }
.section-white { background: var(--white); }

.section-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--blue-bright); font-weight: 600; font-size: 1.1rem;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.section-eyebrow::before {
    content: ''; display: inline-block; width: 28px; height: 2px;
    background: var(--blue-bright); border-radius: 2px;
}

.section-title { color: var(--navy); }
.section-title.white { color: var(--white); }
.section-title em { font-style: normal; color: var(--blue-bright); }

.section-header { margin-bottom: 4rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-eyebrow {
    justify-content: center; display: flex;
}
.section-header p {
    font-size: 1.125rem; color: var(--gray-700); font-weight: 500; max-width: 650px;
    margin: 1rem auto 0; line-height: 1.7;
}
.section-header.centered p { text-align: center; }

hr.divider {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    margin: 0;
}


/* =
   SERVICES (HOMEPAGE TEASER)
= */
.services-teaser {
    background: var(--navy);
    padding: 4rem 0;
    position: relative;
}
.services-teaser::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(30,115,190,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,115,190,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.services-grid-dark {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative; z-index: 1;
}

.service-card-dark {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all var(--t-med) var(--ease);
    position: relative; overflow: hidden;
    color: var(--off-white);
    cursor: pointer; display: block;
}
.service-card-dark::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-blue); opacity: 0;
    transition: opacity var(--t-med) var(--ease);
}
.service-card-dark:hover {
    transform: translateY(-8px);
    background: rgba(30,115,190,0.18);
    border-color: rgba(30,115,190,0.5);
    box-shadow: var(--shadow-glow);
}
.service-card-dark:hover::before { opacity: 1; }

.scd-icon {
    width: 60px; height: 60px;
    background: rgba(30,115,190,0.25);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: var(--blue-glow);
    margin-bottom: 1.5rem;
    transition: all var(--t-med) var(--ease);
}
.service-card-dark:hover .scd-icon {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(30,115,190,0.5);
    transform: scale(1.1) rotate(-5deg);
}
.service-card-dark h3 {
    color: var(--white); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem;
}
.service-card-dark p {
    color: rgba(255,255,255,0.9); font-size: 0.95rem; font-weight: 500; line-height: 1.65; margin-bottom: 1.5rem;
}
.scd-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--gold-light); font-size: 0.9rem; font-weight: 700;
    transition: gap var(--t-fast) var(--ease);
}
.service-card-dark:hover .scd-link { gap: 0.75rem; }


/* =
   VALUE PROPOSITION / WHY US
= */
.why-us { padding: 4.5rem 0; background: var(--white); }
.why-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.why-img-col { position: relative; }
.why-img-wrap {
    border-radius: 24px; overflow: hidden;
    box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.why-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.why-img-badge {
    position: absolute; bottom: -2rem; right: -2rem;
    background: var(--navy); color: var(--white);
    padding: 1.5rem 2rem; border-radius: 16px;
    text-align: center; box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
}
.why-img-badge strong { display: block; font-size: 2.5rem; font-family: var(--font-display); font-weight: 800; color: var(--gold); line-height: 1; }
.why-img-badge span { font-size: 0.875rem; color: rgba(255,255,255,0.92); font-weight: 600; }

.why-content p { color: var(--gray-700); font-size: 1.0625rem; font-weight: 500; line-height: 1.75; }
.why-features { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.why-feature {
    display: flex; align-items: flex-start; gap: 1.25rem;
    padding: 1.5rem; border-radius: 16px; border: 1.5px solid var(--gray-100);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(1,22,39,0.03);
    transition: all var(--t-med) var(--ease);
}
.why-feature:hover {
    background: var(--gray-50);
    border-color: rgba(30,115,190,0.35);
    box-shadow: 0 8px 24px rgba(1,22,39,0.06);
    transform: translateX(6px);
}
.why-feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(30,115,190,0.15), rgba(79,179,239,0.08));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--blue); flex-shrink: 0;
}
.why-feature h4 { color: var(--navy); margin-bottom: 0.35rem; font-size: 1.15rem; font-weight: 700; }
.why-feature p { color: var(--gray-700); font-size: 0.98rem; font-weight: 500; line-height: 1.65; margin: 0; }

@media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr; }
    .why-img-badge { position: static; margin-top: 1.5rem; display: inline-block; }
}


/* =
   SERVICES PAGE (FULL GRID)
= */
.services-page { padding: 4rem 0; background: var(--gray-50); }
.services-full-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.svc-card {
    background: var(--white); border-radius: 22px;
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.08);
    transition: all var(--t-med) var(--ease);
    display: block; color: inherit;
}
.svc-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: rgba(30,115,190,0.3); }
.svc-card-img {
    height: 220px; overflow: hidden; position: relative;
    background: var(--navy);
}
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.svc-card:hover .svc-card-img img { transform: scale(1.06); }
.svc-card-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(1,22,39,0.8) 0%, transparent 60%);
}
.svc-card-body { padding: 2rem; }
.svc-card-icon {
    width: 52px; height: 52px; border-radius: 12px; background: var(--grad-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--white); margin-bottom: 1.25rem;
    box-shadow: 0 4px 14px rgba(30,115,190,0.35);
}
.svc-card-body h3 { color: var(--navy); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.svc-card-body p { color: var(--gray-700); font-size: 0.98rem; font-weight: 500; line-height: 1.65; margin-bottom: 1.5rem; }
.svc-card-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--blue); font-weight: 700; font-size: 0.9375rem;
    transition: gap var(--t-fast) var(--ease);
}
.svc-card:hover .svc-card-link { gap: 0.85rem; }


/* =
   PAGE HERO (INNER PAGES)
= */
.page-hero {
    background: var(--grad-hero); padding: 110px 0 40px;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(30,115,190,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,115,190,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
}
.page-hero-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(30,115,190,0.3) 0%, transparent 70%);
    right: -150px; top: -150px;
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.875rem; margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.85); font-weight: 500; transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb i { font-size: 0.7rem; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero p { color: rgba(255,255,255,0.92); font-weight: 500; font-size: 1.15rem; max-width: 600px; line-height: 1.7; }


/* =
   ABOUT PAGE
= */
.about-intro { padding: 4rem 0; background: var(--white); }
.about-intro-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-img-stack { position: relative; }
.about-img-main {
    border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 3/4;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-secondary {
    position: absolute; bottom: -3rem; right: -3rem;
    width: 55%; border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-md); aspect-ratio: 4/3;
    border: 4px solid var(--white);
}
.about-img-secondary img { width: 100%; height: 100%; object-fit: cover; }

.about-established {
    position: absolute; top: 2rem; right: -2rem;
    background: var(--grad-gold); color: var(--navy);
    padding: 1rem 1.5rem; border-radius: 14px;
    font-family: var(--font-display); font-weight: 800;
    text-align: center; box-shadow: var(--shadow-gold);
}
.about-established strong { display: block; font-size: 2rem; line-height: 1; }
.about-established span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.values-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0;
}
.value-chip {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.875rem 1.25rem; background: var(--gray-50);
    border-radius: 12px; border: 1.5px solid var(--gray-100);
    font-weight: 600; color: var(--navy); font-size: 0.95rem;
    transition: all var(--t-fast) var(--ease);
}
.value-chip:hover { background: rgba(30,115,190,0.08); border-color: rgba(30,115,190,0.3); }
.value-chip i { color: var(--blue); font-size: 1.1rem; }

@media (max-width: 900px) {
    .about-intro-grid { grid-template-columns: 1fr; }
    .about-img-secondary { position: static; width: 60%; margin-top: 1rem; }
    .about-established { position: static; display: inline-block; margin-bottom: 1rem; }
}

/* = Mission / Vision Dark Panel = */
.about-pillars {
    background: var(--navy); padding: 4rem 0;
}
.pillars-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.pillar-card {
    padding: 2.5rem; border-radius: 20px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    text-align: center; transition: all var(--t-med) var(--ease);
}
.pillar-card:hover {
    background: rgba(30,115,190,0.18); border-color: rgba(30,115,190,0.5);
    transform: translateY(-6px); box-shadow: var(--shadow-glow);
}
.pillar-icon {
    width: 68px; height: 68px; border-radius: 18px;
    background: var(--grad-blue); margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--white); box-shadow: var(--shadow-glow);
}
.pillar-card h3 { color: var(--white); font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.pillar-card p { color: rgba(255,255,255,0.92); font-size: 0.98rem; font-weight: 500; line-height: 1.65; margin: 0; }


/* = Team Section = */
.team-section { padding: 4rem 0; background: var(--gray-50); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card {
    background: var(--white); border-radius: 22px; overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.08);
    transition: all var(--t-med) var(--ease);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.team-card-photo {
    aspect-ratio: 1 / 1; height: auto; overflow: hidden;
    background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
    position: relative;
}
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.team-card:hover .team-card-photo img { transform: scale(1.05); }
.team-card-photo-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 6rem; color: rgba(255,255,255,0.2);
}
.team-card-body { padding: 1.75rem; }
.team-card-body h4 { color: var(--navy); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-role {
    color: #b89028; font-size: 0.875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem;
}
.team-card-body p { color: var(--gray-700); font-size: 0.95rem; font-weight: 500; line-height: 1.65; margin: 0; }


/* =
   SERVICE DETAILS PAGE
= */
.service-detail { padding: 4rem 0; background: var(--white); }
.service-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.service-detail-img {
    border-radius: 24px; overflow: hidden;
    box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
    position: relative; margin-bottom: 2.5rem;
}
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-content h2 { color: var(--navy); font-weight: 700; margin-bottom: 1.5rem; }
.service-detail-content p { color: var(--gray-700); font-weight: 500; font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.25rem; }
.service-detail-content ul {
    margin: 1.5rem 0 2.25rem 0; padding-left: 0;
    list-style: none;
    display: flex; flex-direction: column; gap: 0.65rem;
}
.service-detail-content ul li {
    display: flex; align-items: flex-start; gap: 0.85rem;
    padding: 0.75rem 1.15rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--gray-700); font-size: 1rem; font-weight: 500;
    line-height: 1.55;
    transition: all 0.2s ease;
}
.service-detail-content ul li:hover {
    background: #ffffff;
    border-color: rgba(30,115,190,0.35);
    box-shadow: 0 4px 12px rgba(1,22,39,0.05);
    transform: translateX(4px);
}
.service-detail-content ul li::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--blue);
    margin-top: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(30,115,190,0.4);
}
.service-detail-content h3 { color: var(--navy); font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; }
.service-cta-panel {
    margin-top: 3rem; padding: 2rem; background: var(--navy);
    border-radius: 20px; display: flex; align-items: center;
    gap: 1.5rem; flex-wrap: wrap;
}
.service-cta-panel p { color: rgba(255,255,255,0.92); font-weight: 500; margin: 0; font-size: 0.95rem; }

@media (max-width: 900px) {
    .service-detail-grid { grid-template-columns: 1fr; }
    .service-detail-img { position: static; }
}


/* =
   CONTACT PAGE
= */
.contact-section { padding: 4rem 0; background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info-panel h2 { color: var(--navy); margin-bottom: 1rem; }
.contact-info-panel > p { color: var(--gray-700); font-weight: 500; font-size: 1.05rem; margin-bottom: 2.5rem; line-height: 1.7; }
.contact-card {
    display: flex; align-items: flex-start; gap: 1.25rem;
    padding: 1.5rem; background: var(--white);
    border-radius: 16px; margin-bottom: 1rem;
    border: 1.5px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--t-med) var(--ease);
}
.contact-card:hover { transform: translateX(6px); border-color: rgba(30,115,190,0.35); }
.contact-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--grad-blue); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--white);
    box-shadow: 0 4px 14px rgba(30,115,190,0.35);
}
.contact-card h4 { color: var(--navy); margin-bottom: 0.25rem; font-size: 1rem; font-weight: 700; }
.contact-card p { color: var(--gray-700); margin: 0; font-size: 0.95rem; font-weight: 500; line-height: 1.65; }
.contact-card a { color: var(--blue); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* Form */
.contact-form-panel {
    background: var(--white); border-radius: 24px;
    padding: 3rem; box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; font-weight: 700; color: var(--navy);
    font-size: 0.9rem; margin-bottom: 0.5rem;
}
.form-control {
    width: 100%; padding: 0.9rem 1.25rem;
    border: 1.5px solid var(--gray-100); border-radius: 12px;
    font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
    color: var(--navy); background: var(--gray-50);
    transition: all var(--t-fast) var(--ease); outline: none;
}
.form-control:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(30,115,190,0.1); }
.form-control::placeholder { color: #627d98; font-weight: 500; }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-submit { width: 100%; padding: 1rem; font-size: 1rem; font-weight: 700; }

.success-message {
    text-align: center; padding: 3rem 2rem;
}
.success-icon {
    width: 72px; height: 72px; background: rgba(30,115,190,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--blue); margin: 0 auto 1.5rem;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}


/* =
   CTA BANNER
= */
.cta-banner {
    background: var(--grad-hero); padding: 6rem 0;
    position: relative; overflow: hidden; text-align: center;
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(30,115,190,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,115,190,0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}
.cta-orb {
    position: absolute; width: 500px; height: 500px;
    border-radius: 50%; filter: blur(80px); pointer-events: none;
    background: radial-gradient(circle, rgba(30,115,190,0.3) 0%, transparent 70%);
    left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { color: var(--white); margin-bottom: 1rem; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-inner p { color: rgba(255,255,255,0.92); font-size: 1.15rem; font-weight: 500; max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.75; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }


/* =
   FOOTER
= */
.footer {
    background: var(--gray-900); color: rgba(255,255,255,0.85);
    padding: 5rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand .logo { font-size: 1.35rem; margin-bottom: 1.25rem; display: inline-flex; }
.footer-brand p { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.85); line-height: 1.75; max-width: 320px; }

.footer-col h5 {
    color: var(--white); font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 1.5rem; font-weight: 700;
}
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: rgba(255,255,255,0.82); font-size: 0.95rem; font-weight: 500; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--gold-light); }

.footer-contact-item {
    display: flex; align-items: flex-start; gap: 0.875rem;
    margin-bottom: 1.25rem;
}
.footer-contact-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(30,115,190,0.25); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-light); font-size: 1rem;
}
.footer-contact-item p { color: rgba(255,255,255,0.88); font-size: 0.95rem; font-weight: 500; margin: 0; line-height: 1.65; }

.social-row { display: flex; gap: 0.75rem; margin-top: 1.75rem; }
.social-btn {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); font-size: 1.1rem;
    transition: all var(--t-fast) var(--ease);
}
.social-btn:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
    font-size: 0.875rem;
}
.footer-bottom a { color: var(--blue-glow); }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}


/* =
   SCROLLBAR
= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-900); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* =
   AOS OVERRIDES
= */
[data-aos] { will-change: transform, opacity; }

/* ==========================================================
   COMPREHENSIVE RESPONSIVE & PREMIUM MOBILE DESIGN
========================================================== */

/* ── Tablet Refinements (768px – 1024px) ── */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero { padding: 140px 0 80px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }

    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .services-full-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    .section-header.centered p { max-width: 90%; }
}

/* ── Phone (≤ 768px) ── */
@media (max-width: 768px) {
    /* Responsive typography scaling */
    html { font-size: 15px; }

    h1 { font-size: clamp(1.75rem, 7vw, 2.4rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    h3 { font-size: clamp(1.2rem, 5vw, 1.5rem); }
    p  { font-size: 0.9375rem; }

    /* Fix grids overflowing screen width */
    .services-full-grid, 
    .team-grid, 
    .pillars-grid, 
    .services-grid-dark,
    .why-grid,
    .about-intro-grid,
    .service-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Fix hero paddings to account for navbar */
    .page-hero {
        padding: 120px 0 36px !important;
    }
    .page-hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    .page-hero p {
        font-size: 1rem;
    }

    /* Reduce global section padding for mobile */
    .section, .why-us, .services-page, .services-teaser, 
    .about-intro, .about-pillars, .team-section, 
    .service-detail, .contact-section {
        padding: 2.5rem 0 !important;
    }

    /* Section headers */
    .section-header {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    .section-header .section-eyebrow {
        justify-content: center;
        font-size: 0.75rem;
    }
    .section-header p {
        font-size: 0.9375rem;
        max-width: 100%;
    }

    /* Hero section */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.85rem;
        margin-bottom: 1.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2rem;
        line-height: 1.7;
    }
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    .hero-stats {
        gap: 1.5rem;
        justify-content: center;
    }
    .hero-stat-num {
        font-size: 1.65rem;
    }
    .hero-stat-label {
        font-size: 0.75rem;
    }

    /* Hero stats panel – hide if it overflows */
    .hs-stats-panel {
        display: none !important;
    }

    /* Service cards (dark teaser) */
    .service-card-dark {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    .scd-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        border-radius: 12px;
        margin-bottom: 1.25rem;
    }
    .service-card-dark h3 {
        font-size: 1.15rem;
    }
    .service-card-dark p {
        font-size: 0.875rem;
    }

    /* Service page cards */
    .svc-card-img {
        height: 180px;
    }
    .svc-card-body {
        padding: 1.5rem;
    }
    .svc-card-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .svc-card-body h3 {
        font-size: 1.1rem;
    }

    /* Why us section */
    .why-img-badge {
        position: static !important;
        display: inline-block !important;
        margin-top: 1rem !important;
        width: auto !important;
    }
    .why-feature {
        padding: 1.25rem;
        border-radius: 14px;
    }
    .why-feature-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* About page */
    .about-img-main {
        aspect-ratio: 16/9;
        border-radius: 18px;
    }
    .about-img-secondary {
        position: static !important;
        width: 100% !important;
        max-width: 320px !important;
        margin-top: 1rem !important;
        border-radius: 14px;
    }
    .about-established {
        position: static !important;
        display: inline-block !important;
        margin-bottom: 1rem !important;
        border-radius: 12px;
    }
    .values-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .value-chip {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }

    /* Pillar cards */
    .pillar-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    .pillar-icon {
        width: 58px;
        height: 58px;
        font-size: 1.7rem;
        border-radius: 14px;
    }
    .pillar-card h3 {
        font-size: 1.2rem;
    }

    /* Team grid */
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .team-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        border-radius: 16px;
    }
    .team-card-photo {
        aspect-ratio: 1/1;
        border-radius: 16px 0 0 16px;
    }
    .team-card-body {
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .team-card-body h4 {
        font-size: 1rem;
    }
    .team-role {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    .team-card-body p {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Contact forms */
    .contact-form-panel {
        padding: 1.75rem !important;
        border-radius: 18px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-control {
        padding: 0.85rem 1rem;
        font-size: 1rem; /* 16px prevents iOS zoom */
        border-radius: 10px;
    }
    .form-group label {
        font-size: 0.8125rem;
    }
    .form-submit {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 12px;
    }

    /* Contact info cards */
    .contact-card {
        padding: 1.25rem;
        border-radius: 14px;
    }
    .contact-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 1.1rem;
    }

    /* Service detail */
    .service-detail-img {
        position: static;
        aspect-ratio: 16/9;
        border-radius: 18px;
    }
    .service-cta-panel {
        padding: 1.5rem;
        border-radius: 16px;
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    .service-cta-panel .btn {
        width: 100%;
    }

    /* CTA banner */
    .cta-banner {
        padding: 4rem 0;
    }
    .cta-inner h2 {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    .cta-inner p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 0;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-bottom: 2.5rem;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 0;
        gap: 0.5rem;
    }
    .footer-bottom p {
        font-size: 0.8125rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* ── Small Phone (≤ 400px) ── */
@media (max-width: 400px) {
    html { font-size: 14px; }

    .container { width: 94%; }

    .hero {
        padding: 110px 0 50px;
    }
    .hero h1 {
        font-size: 1.65rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .team-card {
        grid-template-columns: 1fr;
    }
    .team-card-photo {
        aspect-ratio: 16/9;
        border-radius: 16px 16px 0 0;
    }
    .team-card-body p {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .pillar-card {
        padding: 1.5rem 1.25rem;
    }

    .contact-form-panel {
        padding: 1.25rem !important;
    }

    .service-card-dark {
        padding: 1.5rem 1.25rem;
    }

    .footer-contact-item {
        gap: 0.65rem;
    }
}

/* ── Landscape Phone Fix ── */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-links {
        padding-top: 4rem !important;
        gap: 0.25rem !important;
    }
    .nav-links a {
        font-size: 1rem !important;
        padding: 0.5rem 1.5rem !important;
    }
    .mobile-only-action {
        margin-top: 0.5rem !important;
    }
    .mobile-quote-btn {
        padding: 0.7rem 2rem !important;
        font-size: 0.875rem !important;
    }
}

