/* ==========================================================================
   MILO Plumbing Solutions — Brand Stylesheet
   Solid colours only. No gradients. Mobile-first, accessible, responsive.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    /* Brand palette */
    --navy: #04366D;
    --dark-blue: #035098;
    --medium-blue: #046AB9;
    --bright-blue: #0384DD;
    --red: #DB221D;
    --green: #219642;
    --orange: #E8943F;
    --white: #FFFFFF;

    /* Neutrals derived from navy for harmony */
    --ink: #0B1F33;
    --ink-soft: #3A4A5E;
    --muted: #6B7A8C;
    --line: #E2E8F0;
    --line-strong: #CBD5E1;
    --surface: #FFFFFF;
    --surface-alt: #F4F7FB;
    --surface-tint: #EAF2FB;

    /* Service accents */
    --c-water: var(--medium-blue);
    --c-pipe: var(--bright-blue);
    --c-maint: var(--dark-blue);
    --c-reno: var(--navy);
    --c-solar: var(--orange);
    --c-fire: var(--red);
    --c-irrig: var(--green);

    /* Typography */
    --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /* Radii */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 999px;

    /* Shadows — soft, layered, no harshness */
    --shadow-xs: 0 1px 2px rgba(11, 31, 51, 0.06);
    --shadow-sm: 0 2px 6px rgba(11, 31, 51, 0.08);
    --shadow-md: 0 6px 18px rgba(11, 31, 51, 0.10);
    --shadow-lg: 0 14px 40px rgba(11, 31, 51, 0.14);
    --shadow-navy: 0 12px 30px rgba(4, 54, 109, 0.25);

    /* Layout */
    --container: 1200px;
    --header-h: 76px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.28s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--medium-blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--navy); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--bright-blue); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--navy); color: var(--white); padding: 0.75rem 1rem; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: var(--space-8); }
.section-sm { padding-block: var(--space-7); }
.section-tight { padding-block: var(--space-6); }
.section-alt { background: var(--surface-alt); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy a { color: var(--bright-blue); }
.section-navy a:hover { color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { color: var(--ink-soft); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.section-navy p, .section-navy .lead { color: rgba(255,255,255,0.85); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--medium-blue); background: var(--surface-tint);
    padding: 0.4rem 0.85rem; border-radius: var(--r-pill);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--medium-blue); }
.eyebrow.on-navy { color: var(--white); background: rgba(255,255,255,0.12); }
.eyebrow.on-navy::before { background: var(--bright-blue); }

.section-head { max-width: 720px; margin-bottom: var(--space-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--space-3); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
    padding: 0.85rem 1.5rem; border-radius: var(--r-pill);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
    text-align: center; white-space: nowrap; border: 2px solid transparent;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--medium-blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--dark-blue); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--surface-tint); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--medium-blue); color: var(--medium-blue); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header.scrolled .header-topbar {
    max-height: 0; opacity: 0; border-bottom-color: transparent;
}
.site-header.scrolled .brand-logo { max-height: 52px; }

/* ---- Top utility bar ---- */
.header-topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.82);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    max-height: 42px;
    overflow: hidden;
    transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), border-color 0.3s var(--ease);
}
.header-topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 42px; gap: 1rem;
}
.topbar-info { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.topbar-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: rgba(255,255,255,0.82); white-space: nowrap;
    transition: color var(--dur) var(--ease);
}
.topbar-link:hover { color: var(--bright-blue); }
.topbar-link .icon { width: 14px; height: 14px; color: var(--bright-blue); flex-shrink: 0; }
.topbar-hours { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.topbar-hours .icon { width: 14px; height: 14px; color: var(--bright-blue); flex-shrink: 0; }

/* ---- Main nav bar ---- */
.header-main { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
    display: flex; align-items: center; gap: 1rem;
    min-height: var(--header-h);
    padding-block: 0.5rem;
}
.brand { display: flex; align-items: center; color: var(--navy); flex-shrink: 0; margin-right: auto; }
.brand:hover { color: var(--navy); }
.brand-logo {
    height: 100%; width: auto; max-height: 64px; display: block; object-fit: contain;
    transition: max-height 0.3s var(--ease);
}
.brand-logo-footer {
    max-height: 80px; margin-bottom: var(--space-4);
    background: var(--white); padding: 8px 14px;
    border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}

/* ---- Primary nav (desktop) ---- */
.primary-nav { display: flex; align-items: center; gap: 0.5rem; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
    color: var(--ink-soft); font-weight: 600; font-family: var(--font-display);
    padding: 0.6rem 0.85rem; border-radius: var(--r-md);
    font-size: 0.95rem; position: relative;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a::after {
    content: ""; position: absolute; bottom: 2px; left: 50%; right: 50%;
    height: 3px; border-radius: 3px; background: var(--medium-blue);
    transition: left 0.3s var(--ease), right 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-links a:hover { color: var(--medium-blue); }
.nav-links a:hover::after { left: 0.6rem; right: 0.6rem; }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after { left: 0.6rem; right: 0.6rem; background: var(--navy); }

/* ---- CTA in nav ---- */
.btn-nav {
    margin-left: 0.75rem; position: relative;
    flex-shrink: 0;
}
.btn-nav::before {
    content: ""; position: absolute; left: -0.625rem; top: 50%; transform: translateY(-50%);
    width: 1px; height: 26px; background: var(--line);
}

/* ---- Mobile contact section (hidden on desktop) ---- */
.nav-contact { display: none; }

/* ---- Animated hamburger ---- */
.nav-toggle {
    display: none; width: 46px; height: 46px; border-radius: var(--r-md);
    color: var(--navy); position: relative; flex-shrink: 0;
    border: 1.5px solid var(--line-strong);
    background: var(--white);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--medium-blue); }
.nav-toggle-line {
    position: absolute; left: 11px; right: 11px; height: 2.5px;
    background: var(--navy); border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-line:nth-child(1) { top: 15px; }
.nav-toggle-line:nth-child(2) { top: 22px; }
.nav-toggle-line:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] { border-color: var(--medium-blue); background: var(--surface-tint); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line { background: var(--medium-blue); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; background: var(--navy); color: var(--white);
    padding-block: clamp(3.5rem, 9vw, 7rem);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.hero-bg::after {
    content: ""; position: absolute; inset: 0; background: var(--navy); opacity: 0.72;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-7); align-items: center;
}
.hero-content { max-width: 640px; }
.hero h1 { color: var(--white); margin-block: var(--space-4); }
.hero h1 .accent { color: var(--bright-blue); }
.hero .lead { color: rgba(255,255,255,0.88); margin-bottom: var(--space-6); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-trust {
    display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: var(--space-7);
    padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-trust .trust-item { display: flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.9); font-size: 0.92rem; font-weight: 500; }
.hero-trust .icon { width: 20px; height: 20px; color: var(--bright-blue); }

.hero-card {
    background: var(--white); color: var(--ink); border-radius: var(--r-xl);
    padding: var(--space-6); box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--navy); margin-bottom: var(--space-3); font-size: 1.2rem; }
.hero-card .mini-form { display: grid; gap: 0.75rem; }
.hero-card label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); font-family: var(--font-display); }
.hero-card select, .hero-card input {
    width: 100%; padding: 0.7rem 0.85rem; border: 1.5px solid var(--line-strong);
    border-radius: var(--r-md); font: inherit; color: var(--ink); background: var(--white);
}
.hero-card select:focus, .hero-card input:focus { border-color: var(--medium-blue); outline: 3px solid var(--surface-tint); }

/* ---------- Service cards ---------- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5);
}
.service-card {
    position: relative; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: var(--space-6) var(--space-5) var(--space-5);
    box-shadow: var(--shadow-xs); overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    display: flex; flex-direction: column;
}
.service-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: var(--accent, var(--medium-blue)); z-index: 2;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card-img {
    margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-5)) var(--space-4);
    aspect-ratio: 16 / 10; overflow: hidden; position: relative;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-img .service-icon {
    position: absolute; bottom: -20px; left: var(--space-4); margin: 0;
    box-shadow: var(--shadow-sm);
}
.service-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--surface-tint); color: var(--accent, var(--medium-blue)); margin-bottom: var(--space-4);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--accent, var(--medium-blue)); color: var(--white); }
.service-card h3 { margin-bottom: var(--space-2); font-size: 1.2rem; }
.service-card p { font-size: 0.95rem; margin-bottom: var(--space-4); flex-grow: 1; }
.service-card .service-link {
    display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-family: var(--font-display);
    color: var(--accent, var(--medium-blue)); font-size: 0.92rem;
}
.service-card .service-link .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.service-card:hover .service-link .icon { transform: translateX(4px); }

/* Service detail list (services page) */
.service-block {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); align-items: center;
    padding: var(--space-7) 0; border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; }
.service-block.reverse { grid-template-columns: 1.1fr 0.9fr; }
.service-block.reverse .service-block-visual { order: 2; }
.service-block-visual {
    border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--surface-tint);
    border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent, var(--medium-blue));
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.service-block-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-block-visual .big-icon { width: 90px; height: 90px; }
.service-block-visual .visual-tag {
    position: absolute; top: var(--space-4); left: var(--space-4);
    background: var(--accent, var(--medium-blue)); color: var(--white);
    font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 0.35rem 0.75rem; border-radius: var(--r-pill);
}
.service-block-content h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: var(--space-3); }
.service-block-content .blurb { margin-bottom: var(--space-4); }
.service-items { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.25rem; margin-bottom: var(--space-5); }
.service-items li { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--ink); font-size: 0.95rem; }
.service-items li::before {
    content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
    background: var(--surface-tint); color: var(--accent, var(--medium-blue));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23046AB9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 12px;
}

/* ---------- Why choose us ---------- */
.why-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4);
}
.why-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: var(--space-5); box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card .why-icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--surface-tint);
    color: var(--medium-blue); display: grid; place-items: center; margin-bottom: var(--space-3);
}
.why-card .why-icon .icon { width: 24px; height: 24px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.why-card p { font-size: 0.92rem; }

.why-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4);
}
.why-strip-item { text-align: center; padding: var(--space-4); }
.why-strip-item .icon { width: 34px; height: 34px; color: var(--bright-blue); margin: 0 auto var(--space-2); }
.why-strip-item h4 { color: var(--white); font-size: 0.98rem; margin-bottom: 4px; }
.why-strip-item p { color: rgba(255,255,255,0.78); font-size: 0.85rem; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-5); }
.stat { text-align: center; }
.stat .stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--bright-blue); line-height: 1; }
.stat .stat-label { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-top: 0.4rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--medium-blue); color: var(--white); padding-block: var(--space-7); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.cta-band h2 { color: var(--white); margin-bottom: var(--space-2); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 540px; }
.cta-band .btn-light { color: var(--medium-blue); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 { color: var(--white); margin-block: var(--space-3) var(--space-3); }
.page-hero p { color: rgba(255,255,255,0.88); font-size: 1.1rem; }
.breadcrumbs { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.breadcrumbs a { color: var(--bright-blue); }
.breadcrumbs a:hover { color: var(--white); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
.about-visual {
    border-radius: var(--r-xl); aspect-ratio: 5 / 4; background: var(--surface-tint);
    border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow-md);
    position: relative; overflow: hidden;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-visual .big-drop { width: 120px; height: 120px; color: var(--medium-blue); }
.about-visual .badge-float {
    position: absolute; bottom: var(--space-5); left: var(--space-5);
    background: var(--white); border-radius: var(--r-md); padding: var(--space-3) var(--space-4);
    box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.75rem;
}
.about-visual .badge-float .icon { width: 28px; height: 28px; color: var(--green); }
.about-visual .badge-float strong { color: var(--navy); font-family: var(--font-display); display: block; }
.about-visual .badge-float span { font-size: 0.82rem; color: var(--muted); }

.values-list li { display: flex; gap: 0.85rem; padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.values-list li:last-child { border-bottom: 0; }
.values-list .icon { width: 24px; height: 24px; color: var(--medium-blue); flex-shrink: 0; margin-top: 4px; }
.values-list strong { color: var(--navy); font-family: var(--font-display); display: block; }
.values-list p { font-size: 0.92rem; margin-top: 2px; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.project-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-thumb {
    aspect-ratio: 4 / 3; background: var(--surface-tint); display: grid; place-items: center;
    color: var(--medium-blue); border-bottom: 3px solid var(--medium-blue); position: relative;
    overflow: hidden;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-thumb .icon { width: 56px; height: 56px; opacity: 0.6; }
.project-thumb .placeholder-tag {
    position: absolute; top: var(--space-3); right: var(--space-3);
    background: var(--white); color: var(--muted); font-size: 0.7rem; font-weight: 600;
    padding: 0.25rem 0.6rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.project-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.project-body .project-cat { font-size: 0.78rem; font-weight: 700; color: var(--medium-blue); text-transform: uppercase; letter-spacing: 0.1em; }
.project-body h3 { font-size: 1.15rem; margin-block: var(--space-2) var(--space-2); }
.project-body .project-loc { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--muted); }
.project-body .project-loc .icon { width: 16px; height: 16px; }

.projects-notice {
    background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: var(--space-5); display: flex; gap: var(--space-4); align-items: flex-start;
}
.projects-notice .icon { width: 32px; height: 32px; color: var(--orange); flex-shrink: 0; }
.projects-notice h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.projects-notice p { font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
    padding: var(--space-6); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.form-field .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 0.8rem 0.95rem; border: 1.5px solid var(--line-strong);
    border-radius: var(--r-md); font: inherit; color: var(--ink); background: var(--white);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--medium-blue); outline: 0; box-shadow: 0 0 0 4px var(--surface-tint);
}
.form-field .hint { font-size: 0.8rem; color: var(--muted); }
.form-actions { margin-top: var(--space-5); display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* Flash message */
.flash {
    border-radius: var(--r-md); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5);
    display: flex; align-items: flex-start; gap: 0.75rem; border: 1px solid;
}
.flash.success { background: #E8F6EC; border-color: #B7E2C2; color: #14532D; }
.flash .icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--green); }
.flash strong { font-family: var(--font-display); display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-7); align-items: start; }
.contact-info-card {
    background: var(--navy); color: var(--white); border-radius: var(--r-xl); padding: var(--space-6);
    box-shadow: var(--shadow-navy);
}
.contact-info-card h3 { color: var(--white); margin-bottom: var(--space-4); }
.contact-info-list li { display: flex; gap: 0.85rem; padding-block: var(--space-4); border-bottom: 1px solid rgba(255,255,255,0.14); }
.contact-info-list li:last-child { border-bottom: 0; }
.contact-info-list .icon { width: 24px; height: 24px; color: var(--bright-blue); flex-shrink: 0; margin-top: 2px; }
.contact-info-list .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); }
.contact-info-list .value { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--white); }
.contact-info-list a.value:hover { color: var(--bright-blue); }

/* ---------- Floating actions ---------- */
.floating-actions {
    position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
    display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-end;
}
.float-btn {
    display: inline-flex; align-items: center; gap: 0.55rem;
    height: 54px; padding: 0 1rem 0 0.85rem; border-radius: var(--r-pill);
    color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
    box-shadow: var(--shadow-lg); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    background: #25D366; /* WhatsApp green — brand-acceptable accent */
}
.float-btn .icon { width: 28px; height: 28px; }
.float-btn .float-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.float-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11,31,51,0.22); }
.float-btn:hover .float-label { max-width: 140px; opacity: 1; margin-left: 2px; }
.float-call { background: var(--medium-blue); }
.float-call:hover { background: var(--navy); color: var(--white); }

@media (max-width: 640px) {
    .float-btn { padding-right: 0.85rem; }
    .float-btn .float-label { max-width: 140px; opacity: 1; } /* always show labels on mobile */
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--space-6); padding-bottom: var(--space-7); }
.footer-brand { margin-bottom: var(--space-4); }
.footer-tagline { color: rgba(255,255,255,0.75); font-size: 0.92rem; max-width: 320px; }
.footer-heading { color: var(--white); font-size: 1rem; margin-bottom: var(--space-4); }
.footer-links li, .footer-contact li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.footer-links a:hover { color: var(--bright-blue); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--bright-blue); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: var(--bright-blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-block: var(--space-4); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.footer-bottom-inner > p:first-child { color: var(--white); }
.footer-credit { color: rgba(255,255,255,0.5); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { max-width: 480px; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .service-block, .service-block.reverse { grid-template-columns: 1fr; }
    .service-block.reverse .service-block-visual { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    :root { --header-h: 64px; }

    /* Hide topbar on mobile */
    .header-topbar { display: none; }

    /* Show hamburger */
    .nav-toggle { display: inline-flex; }
    .brand-logo { max-height: 48px; }

    /* Mobile nav panel — slides down from header */
    .primary-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        background: var(--white); flex-direction: column; align-items: stretch;
        gap: 0; padding: 0 1.25rem var(--space-6);
        overflow-y: auto;
        transform: translateY(-100%); opacity: 0; pointer-events: none;
        transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
        margin-left: 0; margin-right: 0;
        box-shadow: none;
        border-top: 1px solid var(--line);
    }
    .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; box-shadow: var(--shadow-lg); }

    /* Mobile nav links */
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding-top: 0.5rem; }
    .nav-links li { border-bottom: 1px solid var(--line); }
    .nav-links a {
        padding: 1.05rem 0.5rem; border-radius: 0; font-size: 1.1rem;
        display: flex; align-items: center; justify-content: space-between;
        color: var(--ink);
    }
    .nav-links a::after { display: none; }
    .nav-links a:hover { background: var(--surface-tint); color: var(--medium-blue); }
    .nav-links a.active { color: var(--medium-blue); background: var(--surface-tint); font-weight: 700; }
    .nav-links a.active::before {
        content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
        background: var(--medium-blue); border-radius: 0 4px 4px 0;
    }

    /* CTA inside mobile panel */
    .btn-nav {
        margin: var(--space-5) 0 0; text-align: center; width: 100%;
        padding: 1rem; font-size: 1.05rem;
    }
    .btn-nav::before { display: none; }

    /* Mobile contact section */
    .nav-contact {
        display: flex; flex-direction: column; gap: 0;
        margin-top: var(--space-5); padding-top: var(--space-5);
        border-top: 1px solid var(--line);
    }
    .nav-contact-phone {
        display: flex; align-items: center; gap: 0.85rem;
        background: var(--surface-tint); border-radius: var(--r-lg);
        padding: 1rem 1.25rem; margin-bottom: var(--space-3);
        color: var(--navy); transition: background var(--dur) var(--ease);
    }
    .nav-contact-phone:hover { background: var(--surface-tint); color: var(--navy); background: var(--medium-blue); color: var(--white); }
    .nav-contact-phone:hover .icon { color: var(--white); }
    .nav-contact-phone .icon { width: 28px; height: 28px; color: var(--medium-blue); flex-shrink: 0; transition: color var(--dur) var(--ease); }
    .nav-contact-phone small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
    .nav-contact-phone:hover small { color: rgba(255,255,255,0.8); }
    .nav-contact-phone span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

    .nav-contact-item {
        display: flex; align-items: center; gap: 0.75rem;
        padding: 0.75rem 0; color: var(--ink-soft); font-size: 0.95rem;
    }
    .nav-contact-item:hover { color: var(--medium-blue); }
    .nav-contact-item .icon { width: 20px; height: 20px; color: var(--medium-blue); flex-shrink: 0; }
}

/* Mid-range desktop — tighten nav spacing */
@media (max-width: 1100px) and (min-width: 821px) {
    .nav-links a { padding: 0.55rem 0.65rem; font-size: 0.9rem; }
    .topbar-info { gap: 1rem; }
    .topbar-link span { font-size: 0.78rem; }
}

@media (max-width: 640px) {
    .section { padding-block: var(--space-7); }
    .container { padding-inline: 0.75rem; }
    .form-grid { grid-template-columns: 1fr; }
    .service-items { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
    .footer-brand .brand-logo-footer { max-height: 56px; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .service-card { padding: 0.5rem; }
    .service-card h3 { font-size: 0.9rem; }
    .service-card p { font-size: 0.8rem; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .service-card .service-link { font-size: 0.78rem; }
    .service-card .service-icon { width: 36px; height: 36px; border-radius: 9px; }
    .service-card .service-icon .icon { width: 18px; height: 18px; }
    .service-card-img { aspect-ratio: 16 / 11; margin: -0.5rem -0.5rem 0.5rem; }
    .hero-cta { flex-wrap: nowrap; gap: 0.5rem; }
    .hero-cta .btn { flex: 1 1 0; min-width: 0; }
    .hero-cta .btn-lg { padding: 0.75rem 0.7rem; font-size: 0.88rem; gap: 0.35rem; }
    .hero-cta .btn-lg .icon { width: 16px; height: 16px; flex-shrink: 0; }
    .hero-cta .btn-lg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cta-band .container { flex-direction: column; align-items: flex-start; }
    .float-btn { height: 50px; }
    .float-btn .icon { width: 24px; height: 24px; }
}

@media (max-width: 380px) {
    .hero-cta { gap: 0.4rem; }
    .hero-cta .btn-lg { padding: 0.7rem 0.5rem; font-size: 0.82rem; gap: 0.3rem; }
    .hero-cta .btn-lg .icon { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
