/* ECO Cubes — "natural architectural"
   Warm paper ground, charcoal ink (the cabins are charcoal and grey-white),
   one forest green for action, timber as a small warm accent.
   Signature: architectural dimension lines (.dim) on sizes and headings.
   Type: Instrument Serif (display) + Instrument Sans (text). */

:root {
    --paper: #f4f1ea;
    --paper-2: #ebe6db;
    --paper-3: #e1dacb;
    --white: #fbfaf7;
    --ink: #1d2320;
    --ink-2: #47504b;
    --ink-3: #6f7771;
    --line: rgba(29, 35, 32, .14);
    --line-2: rgba(29, 35, 32, .08);
    --forest: #2e4a3b;
    --forest-deep: #1f3429;
    --forest-tint: #dfe6dc;
    --timber: #b0743d;

    /* base token names (modules read these) */
    --color-primary: var(--forest);
    --color-primary-dark: var(--forest-deep);
    --color-accent: var(--timber);
    --color-text: var(--ink);
    --color-text-light: var(--ink-2);
    --color-text-muted: var(--ink-3);
    --color-bg: var(--paper);
    --color-bg-alt: var(--paper-2);
    --color-bg-dark: var(--forest-deep);
    --color-border: var(--line);

    --font-display: 'Instrument Serif', 'Times New Roman', serif;
    --font-heading: var(--font-display);
    --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --max-width: 1240px;
    --max-width-narrow: 760px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-py: clamp(4rem, 9vw, 7.5rem);

    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --shadow-sm: 0 1px 2px rgba(29, 35, 32, .06);
    --shadow-md: 0 10px 30px -12px rgba(29, 35, 32, .25);
    --shadow-lg: 0 30px 60px -25px rgba(29, 35, 32, .35);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1.0625rem; color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 2px solid var(--timber); outline-offset: 3px; }
::selection { background: var(--forest); color: var(--paper); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: var(--max-width-narrow); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.5vw, 5.75rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.15; }
h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
h1 em, h2 em { font-style: italic; color: var(--forest); }
p { text-wrap: pretty; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink-2); line-height: 1.55; max-width: 38em; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ── Dimension line — the signature. Usage: <span class="dim">9.0 × 3.0 m</span> */
.dim { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dim::before, .dim::after { content: ''; height: 9px; min-width: 1.25rem; flex: 1; border-inline: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; opacity: .55; }
.dim.wide { display: flex; width: 100%; }
.dim.light { color: rgba(251, 250, 247, .85); }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: var(--radius-sm); font: 600 .9rem/1 var(--font-body); letter-spacing: .02em; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(29, 35, 32, .35); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: rgba(29, 35, 32, .04); }
.btn-ghost, .btn-light { background: var(--white); color: var(--ink); }
.btn-ghost:hover, .btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-line-light { background: transparent; color: var(--white); border-color: rgba(251, 250, 247, .5); }
.btn-line-light:hover { border-color: var(--white); color: var(--white); background: rgba(251, 250, 247, .08); }
.btn-lg { padding: 1.1rem 1.9rem; font-size: .95rem; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.text-link { font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.text-link:hover { color: var(--forest); border-color: var(--forest); }

/* ── Forms (contact module uses .form-input / .form-label) ── */
.form-label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .4rem; }
.form-input { width: 100%; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.form-input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(46, 74, 59, .15); }
select.form-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
#contact-form button[type=submit] { width: 100%; padding: 1.1rem; font-size: .95rem; }
.form-msg.success { background: var(--forest-tint) !important; color: var(--forest-deep) !important; border: 1px solid rgba(46, 74, 59, .3) !important; }

/* ── Top bar + header ──────────────────────────────────── */
.topbar { background: var(--forest-deep); color: rgba(251, 250, 247, .78); font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .tb-right { display: flex; gap: 1.5rem; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(244, 241, 234, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.site-header .container { display: flex; align-items: center; gap: 2rem; height: 76px; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.site-logo img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.site-nav a { font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; position: relative; padding-block: .4rem; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--forest); transition: right .25s var(--ease); }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.header-cta { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.header-cta .btn { padding: .75rem 1.15rem; font-size: .85rem; }
.mobile-menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; cursor: pointer; position: relative; }
.mobile-menu-btn span, .mobile-menu-btn span::before, .mobile-menu-btn span::after { position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--ink); content: ''; transition: transform .2s var(--ease), top .2s var(--ease); }
.mobile-menu-btn span { top: 21px; }
.mobile-menu-btn span::before { left: 0; top: -6px; }
.mobile-menu-btn span::after { left: 0; top: 6px; }
.nav-open .mobile-menu-btn span { background: transparent; }
.nav-open .mobile-menu-btn span::before { top: 0; transform: rotate(45deg); }
.nav-open .mobile-menu-btn span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
    .header-phone { display: none; }
    .site-nav { gap: 1.1rem; }
}
@media (max-width: 920px) {
    .mobile-menu-btn { display: block; }
    .header-cta { display: none; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
    .nav-open .site-nav { display: flex; }
    .site-nav a { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); padding: .55rem 0; border-bottom: 1px solid var(--line-2); }
    .site-nav a::after { display: none; }
    .site-nav .nav-mobile-cta { display: flex; margin-top: 1rem; font-family: var(--font-body); font-size: .95rem; color: var(--white); border: 0; justify-content: center; }
    .topbar .tb-left { display: none; }
    .topbar .container { justify-content: center; }
}
.site-nav .nav-mobile-cta { display: none; }

/* ── Sections ──────────────────────────────────────────── */
.section { padding-block: var(--section-py); }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-alt { background: var(--paper-2); }
.section-white { background: var(--white); }
.section-dark { background: var(--forest-deep); color: rgba(251, 250, 247, .82); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark h2 em { color: #b9cdb5; }
.section-dark .eyebrow { color: rgba(251, 250, 247, .7); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-top: 1rem; }
.section-head .lead { justify-self: end; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } .section-head .lead { justify-self: start; } }

/* ── Page hero (inner pages) ───────────────────────────── */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero .crumbs { font-size: .82rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.page-hero .crumbs a { color: inherit; text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero h1 { max-width: 14em; }
.page-hero .lead { margin-top: 1.5rem; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.page-hero-media { position: relative; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 860px) { .page-hero-split { grid-template-columns: 1fr; } }

/* ── Home hero ─────────────────────────────────────────── */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; color: var(--white); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: heroIn 1.6s var(--ease) both; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 24, .15) 0%, rgba(20, 28, 24, 0) 30%, rgba(20, 28, 24, .55) 70%, rgba(20, 28, 24, .82) 100%); }
.hero-inner { padding-block: 7rem clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.hero h1 { color: var(--white); font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .98; }
.hero h1 em { color: #cfe0c9; }
.hero .eyebrow { color: rgba(251, 250, 247, .85); margin-bottom: 1.5rem; }
.hero-side p { color: rgba(251, 250, 247, .88); font-size: 1.1rem; margin-bottom: 1.75rem; max-width: 26em; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-foot { border-top: 1px solid rgba(251, 250, 247, .25); }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-facts div { padding: 1.25rem 1.5rem 1.4rem 0; font-size: .85rem; color: rgba(251, 250, 247, .78); }
.hero-facts strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.65rem; color: var(--white); line-height: 1.1; margin-bottom: .15rem; }
@keyframes heroIn { from { transform: scale(1.06); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; } .rise.d3 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
    .hero { min-height: 88vh; }
    .hero-inner { grid-template-columns: 1fr; padding-top: 9rem; }
    .hero-facts { grid-template-columns: 1fr 1fr; }
    .hero-facts div { padding-block: .9rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Cabin cards ───────────────────────────────────────── */
.cabin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem); }
.cabin-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .cabin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cabin-grid, .cabin-grid.two { grid-template-columns: 1fr; } }
.cabin-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.cabin-card:hover { color: var(--ink); }
.cabin-card .ph { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-3); aspect-ratio: 4 / 3; }
.cabin-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cabin-card:hover .ph img { transform: scale(1.04); }
.cabin-card .tag { position: absolute; top: .9rem; left: .9rem; background: rgba(251, 250, 247, .94); color: var(--ink); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .4rem .6rem; border-radius: var(--radius-sm); }
.cabin-card .dim { margin-top: 1.1rem; }
.cabin-card h3 { margin-top: .7rem; }
.cabin-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .55rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.cabin-card .price { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Split feature ─────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-sm); }
.split-media.tall img { aspect-ratio: 4 / 5; }
.split-text h2 { margin: 1rem 0 1.25rem; }
.split-text p { color: var(--ink-2); margin-bottom: 1rem; }
.split-text .btn, .split-text .text-link { margin-top: 1rem; }
.media-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; align-items: end; }
.media-pair img:last-child { aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* ── Ticked / numbered lists ───────────────────────────── */
.ticks { list-style: none; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 11px; height: 6px; border-left: 1.5px solid var(--forest); border-bottom: 1.5px solid var(--forest); transform: rotate(-45deg); }
.section-dark .ticks li { color: rgba(251, 250, 247, .85); }
.section-dark .ticks li::before { border-color: #b9cdb5; }
.priced { list-style: none; border-top: 1px solid var(--line); }
.priced li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.priced li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { font-size: .85rem; color: var(--ink-3); margin-top: .8rem; }

/* Features row */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.features > div { padding: 1.75rem 1.75rem 0 0; }
.features > div + div { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.features .k { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--forest); }
.features h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: .9rem 0 .4rem; letter-spacing: 0; }
.features p { color: var(--ink-2); font-size: .95rem; }
.section-dark .features { border-color: rgba(251, 250, 247, .18); }
.section-dark .features > div + div { border-color: rgba(251, 250, 247, .18); }
.section-dark .features .k { color: #b9cdb5; }
.section-dark .features h3 { color: var(--white); }
.section-dark .features p { color: rgba(251, 250, 247, .72); }
@media (max-width: 900px) {
    .features { grid-template-columns: 1fr 1fr; }
    .features > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } .features > div + div { padding-left: 0; border-left: 0; } }

/* Steps (how it works) */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { counter-increment: step; display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 2.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--forest); }
.step h3 { margin-top: .2rem; }
.step p { color: var(--ink-2); }
.step .muted { font-size: .9rem; margin-top: .5rem; }
@media (max-width: 760px) { .step { grid-template-columns: 3.5rem 1fr; } .step > div:last-child { grid-column: 2; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.quote { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.quote p { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; color: var(--ink); }
.quote footer { margin-top: 1rem; font-size: .85rem; color: var(--ink-3); }
@media (max-width: 980px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .quotes { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: var(--white); padding-block: clamp(4.5rem, 10vw, 8rem); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 30, 25, .88) 0%, rgba(20, 30, 25, .6) 55%, rgba(20, 30, 25, .25) 100%); }
.cta-band h2 { color: var(--white); max-width: 12em; }
.cta-band p { max-width: 32em; margin: 1.25rem 0 2rem; color: rgba(251, 250, 247, .85); font-size: 1.1rem; }
.cta-band .hero-ctas { margin-top: 0; }

/* Locations */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.location { background: var(--white); padding: clamp(1.75rem, 3vw, 2.5rem); }
.location h3 { margin: .8rem 0 .8rem; }
.location p { color: var(--ink-2); }
.location .rows { margin-top: 1.25rem; display: grid; gap: .35rem; font-size: .95rem; }
@media (max-width: 760px) { .locations { grid-template-columns: 1fr; } }

/* ── Product detail ────────────────────────────────────── */
.pd { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pd-gallery .main { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-3); }
.pd-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery .main.plan img { object-fit: contain; background: #fff; }
.pd-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin-top: .5rem; }
.pd-thumbs button { padding: 0; border: 0; background: var(--paper-3); cursor: pointer; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); opacity: .7; transition: opacity .15s; outline-offset: 2px; }
.pd-thumbs button:hover, .pd-thumbs button[aria-current=true] { opacity: 1; }
.pd-thumbs button[aria-current=true] { outline: 2px solid var(--forest); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs .is-plan img { object-fit: contain; background: #fff; }
.pd-info { position: sticky; top: 100px; }
.pd-info h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); margin: .9rem 0 1rem; }
.pd-price { display: flex; align-items: baseline; gap: .6rem; margin: 1.25rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.pd-price strong { font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; line-height: 1; }
.pd-price span { color: var(--ink-3); font-size: .9rem; }
.pd-ctas { display: grid; grid-template-columns: 1fr auto; gap: .6rem; margin-top: 1.5rem; }
.pd-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1.5rem; }
.pd-quick div { background: var(--paper); padding: .85rem 1rem; font-size: .78rem; color: var(--ink-3); letter-spacing: .04em; }
.pd-quick strong { display: block; font-size: 1.05rem; color: var(--ink); font-weight: 600; letter-spacing: 0; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.spec-table th { width: 34%; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-right: 1.5rem; }
.pd-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.pd-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }
.pd-sec + .pd-sec { margin-top: 3rem; }
.pd-plan img { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
@media (max-width: 920px) { .pd, .pd-body { grid-template-columns: 1fr; } .pd-info { position: static; } }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--ink-2); text-decoration: none; background: transparent; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip small { opacity: .6; font-size: .78rem; }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.compare td.num, .compare th.num { text-align: right; }
.compare a { color: var(--ink); font-weight: 600; text-decoration: none; }
.compare a:hover { color: var(--forest); }
.table-scroll { overflow-x: auto; }

/* ── Prose (blog, policy text) ─────────────────────────── */
.prose { font-size: 1.08rem; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--radius-sm); }

/* FAQ */
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group > h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.faq-list { max-width: none; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 0; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.25rem 0; font-size: 1.08rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; line-height: .5; color: var(--forest); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 3rem 1.4rem 0; color: var(--ink-2); line-height: 1.7; }
.faq-answer p + p { margin-top: .7em; }

/* Gallery (module widget) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-3); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
/* Uniform 4:3 grid (most photos are landscape); the lightbox shows the full image. */
.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: .75rem; }
.mosaic a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic a:hover img { transform: scale(1.03); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; font-size: .82rem; color: var(--white); background: linear-gradient(transparent, rgba(20, 28, 24, .7)); opacity: 0; transition: opacity .25s; }
.mosaic a:hover figcaption, .mosaic a:focus-visible figcaption { opacity: 1; }
@media (max-width: 600px) { .mosaic, [data-style] .mosaic { grid-template-columns: repeat(2, 1fr); gap: .4rem; } }

/* Lightbox (dialog) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15, 20, 17, .92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 3.5rem 4.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; }
.lightbox .cap { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .2); color: #fff; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .12); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.pd-gallery .main { cursor: zoom-in; }
@media (max-width: 640px) { .lightbox-inner { padding: 3.5rem .5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; } }

/* Quote form block */
.quote-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.quote-card { background: var(--white); padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line-2); }
.quote-card > h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.quote-card > p { color: var(--ink-2); margin-bottom: 1.75rem; }
@media (max-width: 900px) { .quote-wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { #contact-form > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; } }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem 2rem; }
.post-card { color: var(--ink); text-decoration: none; display: block; }
.post-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius-sm); }
.post-card h3 { margin-top: 1rem; }
.post-card p { margin-top: .5rem; color: var(--ink-2); font-size: .95rem; }
.post-card .muted { font-size: .82rem; margin-top: .9rem; }
.post-card:hover h3 { color: var(--forest); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(251, 250, 247, .66); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(251, 250, 247, .12); }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 22em; }
.footer-brand .big { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.15; color: var(--white); margin-bottom: 1.25rem; }
.site-footer h4 { color: rgba(251, 250, 247, .5); margin-bottom: 1rem; font-size: .72rem; }
.site-footer a:not(.btn) { color: rgba(251, 250, 247, .82); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--white); }
.footer-links { display: grid; gap: .45rem; }
.footer-col p + p { margin-top: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.75rem; font-size: .8rem; color: rgba(251, 250, 247, .45); }
.footer-bottom a { color: rgba(251, 250, 247, .6); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* Mobile sticky quote bar */
.mobile-bar { display: none; }
@media (max-width: 720px) {
    .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--line); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; font-weight: 600; font-size: .92rem; text-decoration: none; background: var(--paper); color: var(--ink); }
    .mobile-bar a.go { background: var(--forest); color: var(--white); }
    body { padding-bottom: 58px; }
}

/* Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) { .hero-media img { object-position: 38% 72%; } }

/* Logo (markup in includes/eco-theme.php → ecoLogo) */
.logo { display: inline-flex; align-items: center; gap: .6rem; --logo-ink: var(--ink); --logo-acc: var(--forest); }
.logo-light { --logo-ink: #fbfaf7; --logo-acc: #b9cdb5; }
.logo-mark g { stroke: var(--logo-ink); }
.logo-mark .logo-fill { fill: var(--logo-acc); }
.logo-word { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--logo-ink); letter-spacing: -.01em; }
.logo-word em { color: var(--logo-acc); }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } .hero-ctas .btn { flex: 1 1 100%; } }

/* Three-up feature row */
@media (min-width: 901px) { .features-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Certificates row (home, dark section): code badge + what it covers */
.certs { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; align-items: start; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(251, 250, 247, .18); }
.certs-label { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); padding-top: .45rem; }
.cert { display: flex; gap: 1rem; align-items: flex-start; }
.cert-code { flex: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1; padding: .45rem .6rem; border: 2px solid currentColor; color: #b9cdb5; }
.cert h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 .3rem; color: var(--white); letter-spacing: 0; }
.cert p { font-size: .92rem; color: rgba(251, 250, 247, .72); margin: 0; }
@media (max-width: 900px) { .certs { grid-template-columns: 1fr; } }
