/* =========================================================================
   ASTRAPIA — uPVC Windows & Doors
   Premium design system. Vanilla CSS, performance-friendly.
   Direction: engineered-luxury · architectural grotesk · deep azure on
   near-white · generous space · asymmetric layouts · subtle motion.
   ====================================================================== */

/* ----------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------- */
:root {
    /* Premium Astrapia blue */
    --blue-900: #062a52;
    --blue-800: #083a6e;
    --blue-700: #0a4d8f;
    --blue-600: #0e5fb0;   /* primary */
    --blue-500: #1c74d4;
    --blue-300: #8fbdee;
    --blue-100: #e8f1fc;
    --blue-50:  #f3f8fe;

    /* Ink + neutrals */
    --ink:     #0d1726;
    --ink-2:   #38465a;
    --muted:   #6a7889;
    --line:    #e7ecf3;
    --line-2:  #f0f3f8;

    --bg:      #ffffff;
    --bg-soft: #f6f8fc;
    --bg-tint: #eef4fb;
    --white:   #ffffff;

    /* Radii */
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;

    /* Shadows — soft, premium, low-spread */
    --sh-xs: 0 1px 2px rgba(13,23,38,.05);
    --sh-sm: 0 4px 14px rgba(13,23,38,.06);
    --sh:    0 14px 40px rgba(13,23,38,.08);
    --sh-lg: 0 30px 70px rgba(13,23,38,.12);
    --sh-blue: 0 16px 36px rgba(14,95,176,.24);

    /* Type */
    --font-display: "Bricolage Grotesque", ui-sans-serif, sans-serif;
    --font-body:    "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

    --container: 1200px;
    --gutter: clamp(20px, 5vw, 40px);
    --ease: cubic-bezier(.22,.61,.36,1);
    --header-h: 100px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink);
}

::selection { background: var(--blue-600); color: #fff; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.bg-soft { background: var(--bg-soft); }
.bg-tint { background: linear-gradient(180deg, var(--blue-50), #fff); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body);
    font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue-700);
}
.eyebrow::before {
    content: ""; width: 26px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-300));
}

.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 16px; }
.section-head p { color: var(--ink-2); margin-top: 16px; font-size: 1.08rem; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.65; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }

/* ----------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    padding: 14px 24px; border-radius: var(--r-pill);
    line-height: 1; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
    border: 1.5px solid transparent;
}
.btn-sm { padding: 11px 18px; font-size: .94rem; }
.btn-block { width: 100%; }
.btn-ic { display: inline-flex; }

.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 22px 44px rgba(14,95,176,.32); }

.btn-ghost { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--blue-300); color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--sh-sm); }

.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--blue-300); }
.btn-outline:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); transform: translateY(-2px); }

.btn-soft { background: var(--blue-100); color: var(--blue-700); }
.btn-soft:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { background: var(--blue-50); transform: translateY(-2px); box-shadow: var(--sh); }

/* ----------------------------------------------------------------------
   5. HEADER
   ------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
    background: rgba(255,255,255,.92);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(13,23,38,.06);
}
.header-inner {
    display: flex; align-items: center; gap: 24px;
    min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo {
    height: 82px; width: auto; display: block;
    transition: height .3s var(--ease), transform .3s var(--ease);
}
.site-header.scrolled .brand-logo { height: 68px; }
.brand:hover .brand-logo { transform: scale(1.02); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative; display: inline-block;
    padding: 10px 14px; font-weight: 500; font-size: .98rem; color: var(--ink-2);
    border-radius: var(--r-sm); transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--blue-600); border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform .28s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--blue-700); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
    display: none; width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    flex-shrink: 0; transition: border-color .2s var(--ease);
}
.nav-toggle span {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------------
   6. MOBILE PANEL
   ------------------------------------------------------------------- */
.panel-scrim {
    position: fixed; inset: 0; z-index: 98;
    background: rgba(6,42,82,.36); backdrop-filter: blur(2px);
    opacity: 0; transition: opacity .3s var(--ease);
}
.panel-scrim.show { opacity: 1; }

.mobile-panel {
    position: fixed; top: 0; left: 0; right: 0; z-index: 99;
    background: #fff;
    transform: translateY(-100%);
    transition: transform .42s var(--ease);
    padding: calc(var(--header-h) + 8px) var(--gutter) 32px;
    border-radius: 0 0 24px 24px;
    box-shadow: var(--sh-lg);
    max-height: 94vh; overflow-y: auto;
}
.mobile-panel.open { transform: translateY(0); }

.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li {
    border-bottom: 1px solid var(--line-2);
    opacity: 0; transform: translateY(8px);
}
.mobile-nav li:last-child { border-bottom: none; }
.mobile-panel.open .mobile-nav li {
    opacity: 1; transform: none;
    transition: opacity .4s var(--ease), transform .4s var(--ease);
    transition-delay: calc(var(--mi) * 45ms + 100ms);
}
.mobile-nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 2px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
    color: var(--ink);
}
.mobile-nav a svg { color: var(--blue-300); transition: transform .25s var(--ease), color .25s var(--ease); }
.mobile-nav a:hover, .mobile-nav a:active { color: var(--blue-700); }
.mobile-nav a:hover svg { transform: translateX(4px); color: var(--blue-600); }
.mobile-nav a.is-active { color: var(--blue-700); }

.mobile-cta { display: grid; gap: 10px; margin-top: 22px; }
.mobile-contact {
    margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2);
    text-align: center; color: var(--muted); font-size: .95rem; line-height: 1.9;
}
.mobile-contact a { color: var(--ink-2); font-weight: 600; }
.mobile-contact a:hover { color: var(--blue-700); }

body.nav-open { overflow: hidden; }

/* ----------------------------------------------------------------------
   7. HERO  (asymmetric split, architectural)
   ------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px);
    background:
        radial-gradient(120% 90% at 88% -10%, var(--blue-50), transparent 60%),
        radial-gradient(80% 70% at -5% 0%, #f4f9ff, transparent 55%);
    overflow: hidden;
}
.hero::before { /* faint architectural grid */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(var(--line-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent 75%);
            mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent 75%);
}
.hero-grid {
    position: relative;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 4vw, 64px);
    align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 8px 8px 8px 16px; font-size: .86rem; font-weight: 600; color: var(--ink-2);
    box-shadow: var(--sh-xs); margin-bottom: 24px;
}
.hero-badge b { color: var(--blue-700); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #18b26b; box-shadow: 0 0 0 4px rgba(24,178,107,.16); }
.hero-copy h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.3rem);
    letter-spacing: -.03em;
}
.hero-copy h1 .grad {
    background: linear-gradient(100deg, var(--blue-600), var(--blue-800));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy .lede { margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust {
    display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px;
    padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-trust .stat .n { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; }
.hero-trust .stat .l { font-size: .86rem; color: var(--muted); }

/* Hero media with floating frame + stat card */
.hero-media { position: relative; }
.hero-media .frame {
    position: relative; border-radius: var(--r-xl); overflow: hidden;
    box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.6);
    aspect-ratio: 4 / 4.4;
}
.media {
    width: 100%; height: 100%; object-fit: cover; display: block;
    background:
        linear-gradient(135deg, var(--blue-100), #fff 60%),
        var(--bg-soft);
}
.hero-media .float-card {
    position: absolute; left: -22px; bottom: 28px;
    background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.7); border-radius: var(--r);
    padding: 16px 18px; box-shadow: var(--sh); display: flex; gap: 12px; align-items: center;
    max-width: 250px;
}
.hero-media .float-card .ic {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: var(--blue-600); color: #fff; display: grid; place-items: center;
}
.hero-media .float-card .t { font-weight: 700; font-size: .98rem; }
.hero-media .float-card .s { font-size: .82rem; color: var(--muted); }
.hero-media .accent-line {
    position: absolute; top: -16px; right: -16px; width: 120px; height: 120px;
    border-top: 2px solid var(--blue-300); border-right: 2px solid var(--blue-300);
    border-top-right-radius: var(--r-xl); opacity: .8;
}

/* Logo / partner strip */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.marquee .row { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; padding-block: 22px; }
.marquee .lbl { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.marquee .items { display: flex; gap: 28px; flex-wrap: wrap; color: var(--ink-2); font-weight: 600; }
.marquee .items span { opacity: .7; }

/* ----------------------------------------------------------------------
   8. WHY / FEATURE GRID
   ------------------------------------------------------------------- */
.why-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 30px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    position: relative; overflow: hidden;
}
.feature-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 80% at 100% 0%, var(--blue-50), transparent 60%);
    opacity: 0; transition: opacity .3s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: var(--blue-100); }
.feature-card:hover::after { opacity: 1; }
.feature-ic {
    width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--blue-600), var(--blue-800)); color: #fff;
    box-shadow: var(--sh-blue); margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-2); font-size: 1rem; position: relative; }

/* Split feature (image + copy) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media .frame { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--sh); border: 1px solid var(--line); }
.split-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.split-copy .lede { margin-top: 16px; }
.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist .ck {
    width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; margin-top: 2px;
    background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center;
}
.checklist b { color: var(--ink); }

/* ----------------------------------------------------------------------
   9. PRODUCT CARDS
   ------------------------------------------------------------------- */
.prod-grid { grid-template-columns: repeat(2, 1fr); }
.prod-card {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line); background: #fff;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.prod-media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.prod-media .media { transition: transform .6s var(--ease); }
.prod-card:hover .prod-media .media { transform: scale(1.05); }
.prod-tag {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
    color: var(--blue-700); font-weight: 600; font-size: .8rem; padding: 6px 12px; border-radius: var(--r-pill);
}
.prod-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.prod-body h3 { font-size: 1.45rem; margin-bottom: 10px; }
.prod-body p { color: var(--ink-2); flex: 1; }
.prod-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.prod-features span { font-size: .82rem; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 12px; border-radius: var(--r-pill); }
.prod-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-700); }
.prod-link svg { transition: transform .25s var(--ease); }
.prod-card:hover .prod-link svg { transform: translateX(5px); }

/* Big alternating product sections (products.php) */
.prod-section { padding-block: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line-2); scroll-margin-top: 100px; }
.prod-section:first-of-type { border-top: none; }

/* ----------------------------------------------------------------------
   10. LOCATIONS
   ------------------------------------------------------------------- */
.loc-grid { grid-template-columns: repeat(3, 1fr); }
.loc-card {
    display: flex; flex-direction: column; gap: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    position: relative; overflow: hidden;
}
.loc-card:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: var(--blue-100); }
.loc-card .pin { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; margin-bottom: 8px; }
.loc-card h3 { font-size: 1.3rem; }
.loc-card .state { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.loc-card p { color: var(--ink-2); font-size: .97rem; margin-top: 4px; }
.loc-card .go { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-700); }
.loc-card .go svg { transition: transform .25s var(--ease); }
.loc-card:hover .go svg { transform: translateX(5px); }

/* Locations strip on home */
.loc-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.loc-chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill);
    padding: 11px 18px; font-weight: 600; color: var(--ink-2);
    transition: all .25s var(--ease);
}
.loc-chip:hover { border-color: var(--blue-300); color: var(--blue-700); background: var(--blue-50); transform: translateY(-2px); }
.loc-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }

/* ----------------------------------------------------------------------
   11. CTA BAND
   ------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
    position: relative; border-radius: var(--r-xl); overflow: hidden;
    background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
    color: #fff; padding: clamp(40px, 6vw, 72px);
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-inner::before {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background:
        radial-gradient(60% 100% at 100% 0%, rgba(255,255,255,.18), transparent 60%),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: auto, 64px 64px;
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta-inner p { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 1.08rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ----------------------------------------------------------------------
   12. PAGE HERO (interior pages)
   ------------------------------------------------------------------- */
.page-hero {
    position: relative; overflow: hidden;
    padding-block: clamp(54px, 8vw, 96px) clamp(40px, 5vw, 64px);
    background: radial-gradient(110% 80% at 85% -20%, var(--blue-50), transparent 60%), #fff;
    border-bottom: 1px solid var(--line);
}
.page-hero .inner { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 16px; }
.page-hero .lede { margin-top: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--blue-700); }
.breadcrumb .sep { opacity: .5; }

/* ----------------------------------------------------------------------
   13. BLOG
   ------------------------------------------------------------------- */
.post-grid { grid-template-columns: repeat(3, 1fr); }
.post-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 28px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    height: 100%;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: var(--blue-100); }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.tag {
    font-size: .76rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
    color: var(--blue-700); background: var(--blue-100); padding: 5px 11px; border-radius: var(--r-pill);
}
.post-date { font-size: .86rem; color: var(--muted); }
.post-card h3 { font-size: 1.3rem; line-height: 1.18; }
.post-card h3 a { transition: color .2s var(--ease); }
.post-card:hover h3 a { color: var(--blue-700); }
.post-card .excerpt { color: var(--ink-2); margin-top: 12px; font-size: .98rem; flex: 1; }
.post-card .read { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-700); font-size: .95rem; }
.post-card .read svg { transition: transform .25s var(--ease); }
.post-card:hover .read svg { transform: translateX(5px); }

/* Featured first post */
.post-feature {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
    border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: #fff;
}
.post-feature .pf-media { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); position: relative; min-height: 240px; color: #fff; padding: 40px; display: flex; align-items: flex-end; }
.post-feature .pf-media::before { content:""; position:absolute; inset:0; opacity:.4; background-image: linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 48px 48px; }
.post-feature .pf-media .q { position: relative; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; }
.post-feature .pf-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.post-feature .pf-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 14px 0; }
.post-feature .pf-body p { color: var(--ink-2); }

/* ----------------------------------------------------------------------
   14. ARTICLE (blog_single)
   ------------------------------------------------------------------- */
.article-wrap { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.article { max-width: 760px; }
.article > * + * { margin-top: 1.3em; }
.article p { color: var(--ink-2); font-size: 1.12rem; line-height: 1.8; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.article h3 { font-size: 1.3rem; margin-top: 1.5em; color: var(--ink); }
.article ul { display: grid; gap: 12px; padding-left: 0; margin-top: 1em; }
.article ul li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 1.08rem; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px; border-radius: 3px; background: var(--blue-500); }
.article a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--blue-300); }
.article a:hover { text-decoration-color: var(--blue-600); }
.article strong { color: var(--ink); }

.article-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.side-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.side-card h4 { font-size: 1.05rem; margin-bottom: 14px; }
.side-card .links { display: grid; gap: 10px; }
.side-card .links a { color: var(--ink-2); font-weight: 500; display: flex; gap: 8px; align-items: center; }
.side-card .links a:hover { color: var(--blue-700); }
.side-cta { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #fff; border-radius: var(--r-lg); padding: 26px; }
.side-cta h4 { color: #fff; }
.side-cta p { color: rgba(255,255,255,.82); font-size: .94rem; margin: 8px 0 16px; }

.article-head { max-width: 820px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 14px 0 18px; }

/* Related */
.related { border-top: 1px solid var(--line); }

/* ----------------------------------------------------------------------
   15. CONTACT
   ------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.info-card:hover { border-color: var(--blue-100); box-shadow: var(--sh-sm); }
.info-card .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; flex-shrink: 0; }
.info-card h4 { font-size: 1.05rem; }
.info-card a, .info-card p { color: var(--ink-2); }
.info-card a:hover { color: var(--blue-700); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 40px); box-shadow: var(--sh-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    background: var(--bg-soft); transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px var(--blue-50);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); font-weight: 600; }
.form-msg.ok { display: block; background: #e7f8ef; color: #0f7a45; border: 1px solid #b8e6cd; }
.form-msg.err { display: block; background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }

/* ----------------------------------------------------------------------
   16. CITY PAGE EXTRAS
   ------------------------------------------------------------------- */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.area-chips span { background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 15px; font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.info-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,3vw,32px); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.panel h3 { font-size: 1.25rem; margin-bottom: 12px; }
.panel p { color: var(--ink-2); }
.seg-list { display: grid; gap: 10px; margin-top: 8px; }
.seg-list li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.seg-list .ck { width: 22px; height: 22px; border-radius: 7px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; flex-shrink: 0; }

/* ----------------------------------------------------------------------
   17. REVEAL ANIMATION
   ------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .header-cta { display: none; }
    .primary-nav { display: none; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .header-inner { gap: 14px; justify-content: space-between; }
    .brand-logo { height: 66px; }
    .site-header.scrolled .brand-logo { height: 60px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { max-width: 520px; }
    .cta-inner { grid-template-columns: 1fr; }
    .article-wrap { grid-template-columns: 1fr; }
    .article-side { position: static; grid-template-columns: 1fr 1fr; display: grid; }
    .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
    .why-grid { grid-template-columns: 1fr 1fr; }
    .loc-grid { grid-template-columns: 1fr 1fr; }
    .post-grid { grid-template-columns: 1fr 1fr; }
    .split, .split.reverse { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .info-2, .info-card-2 { grid-template-columns: 1fr; }
    .post-feature { grid-template-columns: 1fr; }
    .article-side { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .why-grid, .prod-grid, .loc-grid, .post-grid, .info-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-trust { gap: 18px; }
    .hero-media .float-card { left: 0; }
    .cta-inner { padding: 32px 24px; }
    .brand-logo { height: 58px; }
    .nav-toggle { width: 48px; height: 48px; }
    .showroom-cards { grid-template-columns: 1fr 1fr; }
}

/* ----------------------------------------------------------------------
   19. UTILITIES
   ------------------------------------------------------------------- */
.mt-0{margin-top:0}.center{text-align:center}.mx-auto{margin-inline:auto}
.muted{color:var(--muted)} .ink2{color:var(--ink-2)}
.maxw-720{max-width:720px}.maxw-640{max-width:640px}
.stack-sm{display:grid;gap:10px}
.flex-cta{display:flex;flex-wrap:wrap;gap:14px}

/* ----------------------------------------------------------------------
   20. SITE FOOTER (rich — call-back form + contact + showrooms)
   ------------------------------------------------------------------- */
.site-footer {
    background: linear-gradient(180deg, var(--blue-900), #04203f);
    color: rgba(255,255,255,.82);
    padding-block: clamp(48px, 6vw, 80px) 0;
    margin-top: clamp(48px, 7vw, 96px);
}
.site-footer .container { position: relative; }

.footer-main {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: clamp(24px, 4vw, 48px); align-items: start;
}

/* Call-back form card */
.footer-form-card {
    background: #fff; color: var(--ink);
    border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px);
    box-shadow: var(--sh-lg);
}
.footer-form-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.footer-form-card .sub { color: var(--ink-2); font-size: .96rem; margin: 8px 0 18px; }

/* Right column: brand + info cards */
.footer-info { display: grid; gap: 16px; }
.footer-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.footer-brand-row .footer-logo { height: 54px; width: auto; }
.footer-brand-row .fb-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; line-height: 1.15; }
.footer-brand-row .fb-tag { font-size: .85rem; color: rgba(255,255,255,.6); }

.finfo-card {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-lg); padding: 18px 20px;
}
.finfo-card .lbl {
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--blue-300); font-weight: 700; margin-bottom: 8px; display: block;
}
.finfo-card p, .finfo-card a { color: rgba(255,255,255,.85); font-size: .96rem; line-height: 1.7; }
.finfo-card a:hover { color: #fff; }
.finfo-card a.mail { color: var(--blue-300); }

.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    color: #fff; font-weight: 700; font-size: .9rem; transition: all .25s var(--ease);
}
.footer-social a:hover { background: var(--blue-600); border-color: var(--blue-600); transform: translateY(-2px); }
.fproj-btn {
    display: block; text-align: center; margin-top: 14px; padding: 12px;
    border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-pill);
    color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    transition: all .25s var(--ease);
}
.fproj-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* Showrooms strip */
.footer-showrooms {
    margin-top: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-xl);
    padding: clamp(20px, 3vw, 30px); background: rgba(255,255,255,.04);
}
.footer-showrooms .lbl {
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--blue-300); font-weight: 700; margin-bottom: 16px; display: block;
}
.showroom-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.showroom-card {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r); padding: 16px 18px; transition: all .25s var(--ease);
}
.showroom-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); transform: translateY(-3px); }
.showroom-card .city { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.showroom-card .st { font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.showroom-card .map {
    display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--blue-300);
}
.showroom-card:hover .map { color: #fff; }

/* Footer bottom */
.footer-bottom {
    margin-top: clamp(28px, 4vw, 40px);
    border-top: 1px solid rgba(255,255,255,.12);
    padding-block: 22px;
    display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: .86rem; color: rgba(255,255,255,.6); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { font-size: .88rem; color: rgba(255,255,255,.75); }
.footer-nav a:hover { color: #fff; }

@media (max-width: 880px) {
    .showroom-cards { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 600px) {
    .site-footer { padding-top: 40px; }
    .footer-form-card { padding: 22px 18px; }
    .footer-brand-row { flex-direction: row; align-items: center; gap: 12px; }
    .footer-brand-row .footer-logo { height: 46px; }
    .footer-brand-row .fb-name { font-size: 1.05rem; }
    .showroom-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .showroom-card { padding: 14px; }
    .footer-showrooms { padding: 18px 16px; }
    .finfo-card { padding: 16px; }
    .footer-bottom { gap: 14px; }
    .footer-nav { gap: 8px 14px; }
}

/* ----------------------------------------------------------------------
   21. CITY EXPERIENCE CENTRE (location pages)
   ------------------------------------------------------------------- */
.showroom-visit { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.showroom-map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); min-height: 360px; background: var(--bg-tint); }
.showroom-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.showroom-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--sh-sm); display: flex; flex-direction: column; }
.showroom-detail h3 { font-size: 1.4rem; }
.sd-badge { align-self: flex-start; background: #fff4e1; color: #a96a00; border: 1px solid #f3d9a8; font-weight: 600; font-size: .78rem; padding: 5px 12px; border-radius: var(--r-pill); margin-top: 10px; }
.sd-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.sd-row:first-of-type { border-top: none; padding-top: 12px; }
.sd-row .k { font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sd-row .v { color: var(--ink-2); line-height: 1.6; }
.sd-row .v a { color: var(--blue-700); font-weight: 600; }
.sd-row .v a:hover { text-decoration: underline; }
@media (max-width: 880px) {
    .showroom-visit { grid-template-columns: 1fr; }
    .showroom-map { min-height: 300px; }
    .showroom-map iframe { min-height: 300px; }
}

/* City page hero with image */
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero-media .frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-md); }
.page-hero-media .media { width: 100%; height: auto; display: block; aspect-ratio: 4/3.2; object-fit: cover; }
@media (max-width: 880px) {
    .page-hero-grid { grid-template-columns: 1fr; }
    .page-hero-media { max-width: 520px; margin: 8px auto 0; }
}
