/* =====================================================
   NepTrack — Enterprise GPS Vehicle Tracking Platform
   style.css
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES
   ===================================================== */
:root {
    /* Brand */
    --primary:        #049966;
    --primary-dark:   #037a52;
    --primary-light:  #05b87a;
    --primary-bg:     rgba(4, 153, 102, 0.08);
    --primary-glow:   rgba(4, 153, 102, 0.20);

    --secondary:      #0a1628;
    --secondary-mid:  #111d33;
    --secondary-light:#1a2d4d;

    --accent:         #f0b429;
    --danger:         #ef4444;
    --warning:        #f59e0b;
    --info:           #3b82f6;

    /* Grays */
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50:  #f8fafc;
    --white:    #ffffff;

    /* Typography */
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', var(--font-body);

    /* Spacing */
    --header-height: 104px; /* topbar 36px + navbar 68px */

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.09), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.22s var(--ease);
}

/* =====================================================
   2. RESET & BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-600);
    background: var(--white);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { line-height: 1.75; }

/* =====================================================
   3. LAYOUT
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section base */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-dark {
    background: var(--secondary);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

/* Section header (centered label + heading + subtext) */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-header .label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Two-column split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* =====================================================
   4. TYPOGRAPHY UTILITIES
   ===================================================== */
.label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }

/* =====================================================
   5. HEADER — TOPBAR
   ===================================================== */
.site-header {
    position: fixed;
    top: -1px;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

/* Hidden: slides up off screen when scrolling down */
.site-header.is-hidden {
    transform: translateY(calc(-100% - 4px));
}

/* Pinned: visible when scrolling up */
.site-header.is-pinned {
    transform: translateY(0);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Topbar */
.topbar {
    background: var(--secondary);
    height: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: height 0.3s var(--ease), opacity 0.3s var(--ease);
}

.site-header.scrolled .topbar {
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
}

/* Live tracker dot */
.topbar-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Topbar right */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    transition: color 0.18s;
}

.topbar-link:hover { color: rgba(255,255,255,0.9); }

.topbar-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.14);
}

.topbar-badge {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #4ade80;
    background: none;
    border: none;
    padding: 0;
}

/* =====================================================
   6. HEADER — NAVBAR
   ===================================================== */
.navbar-wrap {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled .navbar-wrap {
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.navbar {
    display: flex;
    align-items: center;
    height: 68px;
    position: relative;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
}

.navbar-logo img { height: 34px; width: auto; }

/* Nav links — flex-centered between logo and actions */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    border: none;
    background: none;
    font-family: var(--font-body);
    white-space: nowrap;
    transition: color 0.18s, background 0.18s;
    position: relative;
}

.nav-link:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.nav-link.is-active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

/* SOS nav link */
.nav-link-sos { gap: 6px; }

.sos-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Chevron */
.nav-chevron {
    font-size: 0.9rem;
    transition: transform 0.2s var(--ease);
    opacity: 0.45;
    flex-shrink: 0;
    line-height: 1;
}

/* =====================================================
   7. DROPDOWN
   ===================================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.is-open .nav-chevron {
    transform: rotate(180deg);
    opacity: 0.9;
}

.nav-dropdown.is-active .nav-dropdown-toggle {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 330px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.11), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.18s;
    z-index: 200;
}

.dropdown-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/* Bridge the gap between trigger and panel so hover isn't lost */
.dropdown-panel::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.is-open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0s;
}

.dropdown-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--gray-400);
    padding: 8px 12px 6px;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    transition: background 0.15s;
}

.dropdown-item:hover { background: var(--gray-100); }
.dropdown-item:hover .di-text strong { color: var(--primary); }

.di-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.di-text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
    transition: color 0.15s;
}

.di-text span {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 1px;
}

.dropdown-footer {
    border-top: 1px solid var(--gray-200);
    margin-top: 4px;
    padding: 8px 12px 4px;
}

.dropdown-footer a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.dropdown-footer a:hover { text-decoration: underline; }

/* =====================================================
   8. NAVBAR ACTIONS & HAMBURGER
   ===================================================== */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 1;
}

.btn-nav-ghost {
    padding: 7px 18px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: transparent;
    transition: var(--transition);
}

.btn-nav-ghost:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-bg);
}

.btn-nav-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-nav-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 16px var(--primary-glow);
    gap: 9px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: 12px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.hamburger:hover { background: var(--gray-100); }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-800);
    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); }

/* =====================================================
   9. BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-bg);
}

.btn-dark {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-dark:hover {
    background: var(--secondary-mid);
}

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

.btn-white:hover {
    background: var(--gray-100);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

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

.btn-sm { padding: 9px 20px; font-size: 0.9375rem; }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }

/* =====================================================
   10. CARDS
   ===================================================== */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.card h3 {
    font-size: 1.0625rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.65;
    flex: 1;
}

/* =====================================================
   11. FEATURE LIST
   ===================================================== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.feature-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%23049966' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* =====================================================
   12. BREADCRUMB
   ===================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* =====================================================
   13. PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
    padding: 140px 0 64px;
    background: var(--secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(4,153,102,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 14px;
    position: relative;
}

.page-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.0625rem;
    max-width: 560px;
    position: relative;
}

/* =====================================================
   14. FOOTER (basic structure — expand later)
   ===================================================== */
.site-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.55);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand img { height: 32px; width: auto; margin-bottom: 18px; }

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    max-width: 260px;
    margin-bottom: 24px;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    transition: color 0.18s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.3);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
    transition: color 0.18s;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

/* =====================================================
   15. SCROLL ANIMATIONS
   ===================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   16. SCROLL-TO-TOP
   ===================================================== */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 900;
    border: none;
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 28px;
    width: 50px;
    height: 50px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    z-index: 900;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

.whatsapp-float svg { width: 26px; height: 26px; fill: white; }

/* =====================================================
   17. RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    /* Hide topbar live text, show fewer links */
    .topbar-live { display: none; }

    /* Nav links → mobile drawer */
    .navbar-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        transform: none;
        background: var(--white);
        padding: 12px 16px 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 12px 40px rgba(0,0,0,0.09);
        z-index: 999;
    }

    .navbar-links.is-open {
        display: flex;
    }

    .nav-link {
        padding: 11px 14px;
        font-size: 1rem;
    }

    /* Dropdown: static in mobile */
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-panel {
        position: static;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-md);
        width: 100%;
        margin-top: 4px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .nav-dropdown.is-open .dropdown-panel { display: block; transform: none; }

    .navbar-actions { display: none; }
    .hamburger { display: flex; margin-left: auto; }

    /* Grid adjustments */
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    :root { --header-height: 68px; }

    .topbar { display: none; }
    .navbar-links { top: 68px; }

    .section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }

    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }

    .page-hero { padding: 110px 0 50px; }
    .page-hero h1 { font-size: 1.75rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .grid-4 { grid-template-columns: 1fr; }
    .btn { padding: 12px 22px; font-size: 0.9375rem; }
    .sol-hero-img { height: 340px; }
    .sol-hero-content { transform: translate(-50%, -50%); }
}

/* =====================================================
   18. INNER-PAGE RESPONSIVE (shared across solution pages)
   ===================================================== */

/* ── Inner page hero (image-overlay style) ── */
@media (max-width: 1024px) {
    .sol-hero-img { height: 420px; }
}

@media (max-width: 768px) {
    /* Hero image */
    .sol-hero-img { height: 300px; }

    /* Hero overlay text */
    .sol-hero-content h1 {
        white-space: normal;
        font-size: clamp(1.375rem, 5vw, 2rem);
    }
    .sol-hero-content p { white-space: normal; }

    /* Section subtitles across all inner pages */
    .sol-block-header p { white-space: normal; }

    /* Homepage gov section subtitle */
    .gov-section-header p { white-space: normal; }

    /* Contact hero */
    .contact-hero p { white-space: normal; }

    /* Pricing hero */
    .pricing-hero p { white-space: normal; }

    /* Features hero */
    .features-top-title h1,
    .features-top-title p { white-space: normal; }

    /* ambulance / hw-updates / vehicle-rentals subtitle */
    .amb-block-header p,
    .hw-block-header p,
    .vr-block-header p { white-space: normal; }
}

@media (max-width: 640px) {
    /* Manifesto 2-col cards → 1-col */
    .manifesto-card { grid-template-columns: 1fr; }
    .manifesto { padding: 64px 0; }

    /* Hero action buttons full-width on very small screens */
    .hero-actions { flex-direction: column; }
    .btn-hero-primary,
    .btn-hero-ghost { width: 100%; justify-content: center; }

    /* Sol-row: ensure reverse order resets on mobile */
    .sol-row.sol-row-reverse .sol-image,
    .sol-row.sol-row-reverse .sol-content { order: unset; }
}
