/*
 * theme-editorial — photograph-first hero, oversized serif H1,
 * intentional copy, alternating dark/light section bands.
 *
 * Shipped in drop 1 of the theme-catalog expansion. Targets
 * HOSPITALITY, FINANCIAL, REAL_ESTATE — anywhere `theme-formal`
 * reads too staid and `theme-modern` too plain. Two palettes share
 * the family: `editorial-dark` (deep teal ground, GoCanopy-shape)
 * and `editorial-light` (warm ivory ground, Diamond Rose-shape).
 * The same Blade tree renders both — palette tokens carry the
 * visual swap.
 *
 * Tokens override (set via inline <style> in the layout):
 *   --color-text, --color-text-muted, --color-bg, --color-bg-alt,
 *   --color-border, --color-brand, --color-accent, --color-accent-hover
 *   --font-display, --font-body
 *   --radius-sm, --radius-md, --radius-lg
 *   --section-y, --container-max
 *
 * Per .cursor/rules/site-themes.mdc → "Layout patterns → Editorial
 * pattern".
 */

:root {
    --color-text: #f6f5f3;
    --color-text-muted: #a6b6b9;
    --color-bg: #1a4145;
    --color-bg-alt: #f6f5f3;
    --color-border: #2c5560;
    --color-brand: #14323a;
    --color-accent: #2be5a4;
    --color-accent-hover: #24c68f;
    --font-display: Fraunces, "Cormorant Garamond", ui-serif, Georgia, serif;
    --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
    --radius-sm: 2px;
    --radius-md: 2px;
    --radius-lg: 4px;
    --section-y: 7rem;
    --container-max: 64rem;
    --shadow-md: 0 20px 50px -22px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01"; /* Fraunces optical variant */
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-text);
    margin-top: 0;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 400;
}
h1 { font-size: clamp(2.5rem, 6vw + 1rem, 5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.375rem; }
p { margin: 0 0 1rem; }
a { color: var(--color-accent); text-decoration: none; transition: color 120ms ease; }
a:hover, a:focus { color: var(--color-accent-hover); text-decoration: underline; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--color-brand); color: var(--color-bg-alt);
    padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ----------
 * Editorial chrome: flat band the same color as the ground, with a
 * hairline divider. Reads as a quiet companion to the photograph-
 * first hero rather than a brand-color "stamp". The light-palette
 * variant uses bg-alt (cream) so the header sits visually on top of
 * the photo's edge rather than blending into the ground. */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 10;
}
.palette-editorial-light .site-header,
.palette-editorial-charcoal .site-header {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; gap: 1.25rem; flex-wrap: wrap;
    max-width: var(--container-max); margin: 0 auto;
}
.site-header__brand {
    font-family: var(--font-display);
    font-weight: 500; font-size: 1.25rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
.palette-editorial-light .site-header__brand,
.palette-editorial-charcoal .site-header__brand { color: var(--color-brand); }
.site-header__brand:hover, .site-header__brand:focus { color: var(--color-text); text-decoration: none; }

.site-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.site-nav__link {
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.02em;
    transition: color 120ms ease;
}
.palette-editorial-light .site-nav__link,
.palette-editorial-charcoal .site-nav__link { color: var(--color-brand); }
.site-nav__link:hover, .site-nav__link:focus {
    color: var(--color-accent);
    text-decoration: none;
}
.site-nav__link.is-active { color: var(--color-accent); }

/* ---------- Sections ----------
 * Editorial bands. `.section--inverted` flips the colors so an
 * editorial-dark site can have cream sections in between teal ones
 * (and vice versa for editorial-light). No card grids by default —
 * the body is long prose punctuated by the new partials. */
.site-main { min-height: calc(100vh - 18rem); }
.section { padding: var(--section-y) 0; background: var(--color-bg); color: var(--color-text); }
.section--inverted {
    background: var(--color-bg-alt);
    color: var(--color-brand);
}
.section--inverted h1,
.section--inverted h2,
.section--inverted h3,
.section--inverted h4 { color: var(--color-brand); }
.section--inverted p { color: var(--color-brand); }
.section--inverted a { color: var(--color-accent); }

.section__intro { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section__intro p { color: var(--color-text-muted); font-size: 1.125rem; }
.section--inverted .section__intro p { color: color-mix(in srgb, var(--color-brand) 75%, transparent); }

.eyebrow,
.section__eyebrow,
.hero__eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0 0 1rem;
    display: inline-block;
    border: 1px solid var(--color-accent);
    border-radius: 9999px;
    padding: 0.375rem 0.875rem;
}

/* ---------- Hero ----------
 * Full-bleed photograph with a palette-tinted overlay. The overlay
 * opacity differs by palette: dark grounds want a heavy overlay so
 * the cream text holds; light grounds want a lighter overlay so the
 * photo stays visible. The hero content is centered with a tight
 * max-width so the oversized serif H1 wraps to 2-3 lines. */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg);
}
.hero__photo {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero__photo--placeholder {
    background:
      radial-gradient(120% 80% at 0% 0%, var(--color-accent), transparent 60%),
      radial-gradient(120% 80% at 100% 100%, var(--color-brand), transparent 60%);
    opacity: 0.45;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: var(--color-bg);
    opacity: 0.62;
    z-index: 1;
}
.palette-editorial-light .hero__overlay { opacity: 0.18; }
.palette-editorial-charcoal .hero__overlay { opacity: 0.7; }

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 6rem 1.5rem;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.hero__title {
    margin: 0;
    color: var(--color-text);
    max-width: 28ch;
}
.palette-editorial-light .hero__title { color: var(--color-brand); }
.hero__lede {
    font-size: 1.25rem;
    color: var(--color-text);
    max-width: 38rem;
    margin: 0;
    font-family: var(--font-body);
    line-height: 1.55;
}
.palette-editorial-light .hero__lede { color: var(--color-brand); }
.hero__cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 120ms ease, color 120ms ease, transform 80ms ease;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: var(--color-accent);
    color: var(--color-brand);
}
.btn--primary:hover, .btn--primary:focus { background: var(--color-accent-hover); color: var(--color-brand); }
.btn--secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}
.palette-editorial-light .btn--secondary { color: var(--color-brand); border-color: var(--color-brand); }
.btn--secondary:hover, .btn--secondary:focus {
    background: color-mix(in srgb, var(--color-text) 8%, transparent);
    color: var(--color-text);
}
.palette-editorial-light .btn--secondary:hover,
.palette-editorial-light .btn--secondary:focus {
    background: color-mix(in srgb, var(--color-brand) 8%, transparent);
    color: var(--color-brand);
}

/* ---------- Numbered process partial ----------
 * Three columns; each carries a giant numeral in the accent color
 * over a serif headline and a body paragraph. The numeral is purely
 * decorative — `aria-hidden` on the markup keeps it out of screen
 * readers. */
.numbered-process {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 56rem) {
    .numbered-process { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; }
}
.numbered-process__item { display: flex; flex-direction: column; gap: 0.75rem; }
.numbered-process__numeral {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-accent);
    font-weight: 400;
}
.numbered-process__title { margin: 0; }
.numbered-process__body { color: var(--color-text-muted); margin: 0; }
.section--inverted .numbered-process__body {
    color: color-mix(in srgb, var(--color-brand) 75%, transparent);
}

/* ---------- Stat callouts partial ----------
 * Oversized numbers with a short caption underneath. Renders as a
 * stack on mobile and a 3-up row on desktop. Drives from the
 * `stat_callouts` AI content slot — partial omits silently when
 * the slot is empty. */
.stat-callouts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}
@media (min-width: 56rem) {
    .stat-callouts { grid-template-columns: repeat(3, 1fr); }
}
.stat-callout__value {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1;
    color: var(--color-accent);
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
}
.stat-callout__label {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    max-width: 16rem;
    margin: 0 auto;
}
.section--inverted .stat-callout__label {
    color: color-mix(in srgb, var(--color-brand) 75%, transparent);
}

/* ---------- Pull quote partial ----------
 * Centered serif quote with attribution. The opening glyph is a
 * generated mark in the accent color. */
.pull-quote {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
}
.pull-quote__body {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 2.4vw + 1rem, 2.25rem);
    line-height: 1.3;
    color: var(--color-text);
    margin: 0 0 1.5rem;
    letter-spacing: -0.015em;
}
.palette-editorial-light .pull-quote__body { color: var(--color-brand); }
.pull-quote__body::before {
    content: '"';
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0.5;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}
.pull-quote__attribution {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin: 0;
}
.section--inverted .pull-quote__attribution {
    color: color-mix(in srgb, var(--color-brand) 65%, transparent);
}

/* ---------- Feature tabs partial (static — drop 1) ----------
 * On the reference (Diamond Rose) this is a clickable horizontal
 * tab strip. For drop 1 we ship it as stacked vertical sections
 * with the labels rendered as a left rail — same content density,
 * zero JS. Per docs/html-theme-examples/THEME_PLAN.md section 2. */
.feature-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2.5rem;
}
@media (min-width: 56rem) {
    .feature-tabs { grid-template-columns: 14rem 1fr; gap: 3.5rem; }
}
.feature-tabs__rail {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
}
@media (min-width: 56rem) {
    .feature-tabs__rail { flex-direction: column; gap: 1rem; }
}
.feature-tabs__label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-accent);
    margin: 0;
}
.feature-tabs__panels { display: flex; flex-direction: column; gap: 2.5rem; }
.feature-tabs__panel { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-tabs__panel-title { font-size: 1.75rem; margin: 0; }
.feature-tabs__panel-body { color: var(--color-text-muted); margin: 0; line-height: 1.7; }
.section--inverted .feature-tabs__panel-body {
    color: color-mix(in srgb, var(--color-brand) 75%, transparent);
}

/* ---------- Card grid (used on /services, /industries) ----------
 * Editorial cards are bordered hairline cells with the photo on top
 * and a single accent-color rule above the body. No drop-shadow —
 * the editorial vibe is flat and intentional. */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2rem;
}
.card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: transparent;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.card__thumb { aspect-ratio: 16 / 10; background: var(--color-bg-alt); position: relative; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__thumb--placeholder {
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
}
.card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.625rem; border-top: 2px solid var(--color-accent); }
.card__title { font-size: 1.375rem; margin: 0; color: inherit; }
.card__text { color: var(--color-text-muted); margin: 0; }
.section--inverted .card__title { color: var(--color-brand); }
.section--inverted .card__text { color: color-mix(in srgb, var(--color-brand) 75%, transparent); }

/* ---------- Prose ---------- */
.prose { max-width: 42rem; margin: 0 auto; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p { color: var(--color-text); }
.section--inverted .prose p { color: var(--color-brand); }
.prose ul, .prose ol { padding-left: 1.5rem; color: var(--color-text); }
.prose li { margin-bottom: 0.5rem; }
.prose__meta { color: var(--color-text-muted); font-size: 0.875rem; margin-bottom: 2rem; }

/* ---------- FAQ (CSS-only accordion) ---------- */
.faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item {
    border-top: 1px solid var(--color-border);
}
.faq-item:last-child { border-bottom: 1px solid var(--color-border); }
.faq-item__summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 0;
    display: flex; justify-content: space-between; gap: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
}
.section--inverted .faq-item__summary { color: var(--color-brand); }
.faq-item__summary::-webkit-details-marker { display: none; }
.faq-item__summary::after { content: '+'; color: var(--color-accent); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.faq-item[open] > .faq-item__summary::after { content: '–'; }
.faq-item__answer { padding: 0 0 1.5rem; color: var(--color-text-muted); }
.section--inverted .faq-item__answer { color: color-mix(in srgb, var(--color-brand) 75%, transparent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-info dt {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-top: 1.5rem;
}
.contact-info dd { margin: 0.375rem 0 0; color: var(--color-text); font-size: 1.0625rem; }
.section--inverted .contact-info dd { color: var(--color-brand); }
.contact-info dd a { color: var(--color-text); border-bottom: 1px solid var(--color-accent); }
.section--inverted .contact-info dd a { color: var(--color-brand); }

.contact-form {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    background: var(--color-bg);
}
.section--inverted .contact-form { background: var(--color-bg-alt); }
.contact-form__row { margin-bottom: 1.5rem; }
.contact-form label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
    color: var(--color-text);
    background: transparent;
}
.section--inverted .contact-form input,
.section--inverted .contact-form textarea { color: var(--color-brand); }
.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: transparent;
}
.contact-form textarea { resize: vertical; min-height: 7rem; }
.contact-form__consent {
    display: flex; gap: 0.625rem; align-items: flex-start;
    font-size: 0.8125rem; color: var(--color-text-muted);
    text-transform: none; letter-spacing: normal; font-weight: 400;
}
.section--inverted .contact-form__consent {
    color: color-mix(in srgb, var(--color-brand) 75%, transparent);
}
.contact-form__consent input[type="checkbox"] { margin-top: 0.25rem; flex-shrink: 0; }
.contact-form__submit { margin-top: 0.5rem; }
.contact-form__notice {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.125rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background: var(--color-brand);
    color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 4rem 2.5rem; text-align: center;
}
.cta-banner h2 { color: var(--color-bg-alt); }
.cta-banner p { color: color-mix(in srgb, var(--color-bg-alt) 80%, transparent); margin: 0 auto 1.5rem; max-width: 36rem; }
.cta-banner .btn--secondary { color: var(--color-bg-alt); border-color: var(--color-bg-alt); }
.cta-banner .btn--secondary:hover, .cta-banner .btn--secondary:focus {
    background: color-mix(in srgb, var(--color-bg-alt) 12%, transparent);
    color: var(--color-bg-alt);
}

/* ---------- Footer ----------
 * Brand-color block at the bottom of the page (matches the editorial
 * convention — the reference sites both ship a dark, dense footer
 * regardless of body palette). bg-alt-tinted text so links read on
 * the dark brand band. */
.site-footer {
    background: var(--color-brand);
    color: color-mix(in srgb, var(--color-bg-alt) 82%, transparent);
    padding: 4rem 0 1.5rem;
    margin-top: var(--section-y);
}
.site-footer__inner {
    display: grid; grid-template-columns: 1fr; gap: 2.5rem;
    max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
}
@media (min-width: 48rem) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__brand {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-bg-alt);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.site-footer__heading {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.site-footer__address { color: color-mix(in srgb, var(--color-bg-alt) 82%, transparent); font-size: 0.9375rem; margin: 0 0 0.5rem; }
.site-footer__col p { margin: 0 0 0.5rem; }
.site-footer__col a { color: color-mix(in srgb, var(--color-bg-alt) 82%, transparent); }
.site-footer__col a:hover, .site-footer__col a:focus { color: var(--color-bg-alt); text-decoration: underline; }
.site-footer__legal {
    margin-top: 3rem; padding: 1.5rem 1.5rem 0;
    border-top: 1px solid color-mix(in srgb, var(--color-bg-alt) 18%, transparent);
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--color-bg-alt) 70%, transparent);
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    max-width: var(--container-max); margin-left: auto; margin-right: auto;
}
.site-footer__legal p { margin: 0; }
.site-footer__attribution { font-size: 0.75rem; color: color-mix(in srgb, var(--color-bg-alt) 70%, transparent); }
.site-footer__attribution a { color: color-mix(in srgb, var(--color-bg-alt) 82%, transparent); text-decoration: underline; }
.site-footer__attribution a:hover, .site-footer__attribution a:focus { color: var(--color-bg-alt); }
