/*
 * theme-modern — generous whitespace, sans-serif, soft shadows.
 * Targets TECHNOLOGY, HEALTHCARE, EDUCATION, COMMUNICATION, NGO, and
 * the catch-all default for industries without a stronger affinity.
 *
 * Every visual token (color, font stack, radius scale, section
 * rhythm) is consumed via CSS custom property — the layout Blade
 * emits a per-site `:root { --color-...: ...; }` block that overrides
 * the defaults below. That gives 360+ distinct visual variants per
 * theme without touching this file.
 *
 * 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
 */

:root {
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-border: #e2e8f0;
    --color-brand: #1e293b;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --font-display: ui-sans-serif, system-ui, sans-serif;
    --font-body: ui-sans-serif, system-ui, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --section-y: 4rem;
    --container-max: 64rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.10);
}

*, *::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.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-brand);
    margin-top: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.625rem, 2vw + 1rem, 2.375rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; 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: #fff;
    padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ----------
 * Brand-color band with an accent stripe along the bottom edge. The
 * "white-on-brand nav bar" pattern is the most common visual lift in
 * professional-services / healthcare templates and gives every theme-
 * modern site an obvious, repeating source of brand color. The accent
 * stripe (inset shadow) sits below the brand band as a thin slice of
 * the palette's accent — same visual rhythm whether the site is on
 * forest/slate/coastal/plum/sand. Round 4 (2026-05-22). */
.site-header {
    background: var(--color-brand);
    box-shadow: inset 0 -3px 0 var(--color-accent);
    border-bottom: none;
    position: sticky; top: 0; z-index: 10;
}
/* Defensive: max-width + margin: 0 auto baked in so this still has gutters
 * when the markup omits the outer `.container` wrapper (cross-theme bleed
 * via BuildTemplateBundleAction's asset-fallback path — see
 * .cursor/rules/site-themes.mdc "Defensive baking"). */
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 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: 700; font-size: 1.125rem; color: #fff; }
.site-header__brand:hover, .site-header__brand:focus { color: #fff; text-decoration: none; }
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav__link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background-color 120ms ease, color 120ms ease;
}
.site-nav__link:hover, .site-nav__link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    text-decoration: none;
}
.site-nav__link.is-active { color: #fff; background: rgba(255, 255, 255, 0.15); }

/* ---------- Sections ---------- */
.site-main { min-height: calc(100vh - 18rem); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--color-bg-alt); }
.section__intro { max-width: 42rem; margin: 0 auto 2.5rem; text-align: center; }
.section__intro p { color: var(--color-text-muted); font-size: 1.125rem; }
/* The eyebrow dot (`::before` accent disc) repeats the palette accent
 * color on every section, threading the brand color down the page.
 * Inline-block dot keeps the parent a plain `<p>` so the existing
 * `.section__intro { text-align: center; }` rule still centers cleanly.
 * Per .cursor/rules/site-themes.mdc → "Layout patterns → Professional
 * pattern". */
.section__eyebrow {
    text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 0.9375rem; color: var(--color-accent); font-weight: 700;
    margin-bottom: 0.75rem;
}
.section__eyebrow::before {
    content: '';
    display: inline-block;
    width: 0.5rem; height: 0.5rem;
    border-radius: 50%;
    background: var(--color-accent);
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Section intro h2 carries a 3px accent underline so every section
 * title has a deliberate brand-color anchor. `inline-block` makes the
 * underline shrink-wrap to the text width inside the centered intro
 * (multi-line h2s still wrap and the underline spans the visible
 * block). */
.section__intro h2 {
    display: inline-block;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-accent);
}

/* ---------- Hero ----------
 * Subtle palette-tinted top → white bottom gradient so the hero isn't
 * the same flat white as the body sections. Ends at `--color-bg` so it
 * sits flush against whatever section follows (most pages drop into
 * `.section--alt`, which then visibly steps back up to a tinted block).
 * Per .cursor/rules/site-themes.mdc → "Layout patterns → Professional
 * pattern". */
.hero {
    padding: calc(var(--section-y) + 1rem) 0 var(--section-y);
    position: relative;
    background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
}
.hero__inner {
    display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
    max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
}
@media (min-width: 56rem) {
    .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}
.hero__text { display: flex; flex-direction: column; gap: 1.25rem; }
.hero__eyebrow {
    text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 0.9375rem; color: var(--color-accent); font-weight: 700;
}
.hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 0.5rem; height: 0.5rem;
    border-radius: 50%;
    background: var(--color-accent);
    margin-right: 0.5rem;
    vertical-align: middle;
}
.hero__title { margin: 0; }
.hero__lede { font-size: 1.1875rem; color: var(--color-text-muted); margin: 0; max-width: 36rem; }
.hero__cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
    box-shadow: var(--shadow-lg);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__visual--placeholder::after {
    content: '';
    position: absolute; inset: 0;
    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.5;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; border: 1px solid transparent; cursor: pointer;
    font-size: 1rem; line-height: 1.2;
    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: #fff; }
.btn--primary:hover, .btn--primary:focus { background: var(--color-accent-hover); color: #fff; }
.btn--secondary { background: transparent; color: var(--color-brand); border-color: var(--color-border); }
.btn--secondary:hover, .btn--secondary:focus { background: var(--color-bg-alt); color: var(--color-brand); }

/* ---------- Service / Industry / Feature grids ----------
 * Cards carry a 3px accent-color top "tab" so every card grid has a
 * visible band of brand color across the page. For cards with a photo
 * thumb (the home-page service cards), the colored bar sits between
 * the photo and the body copy instead of on top of the photo. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.card {
    padding: 1.75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 0.75rem;
}
.card--with-thumb { padding: 0; overflow: hidden; border-top: 1px solid var(--color-border); }
.card__thumb { aspect-ratio: 16 / 9; 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; display: flex; flex-direction: column; gap: 0.5rem; }
.card--with-thumb .card__body { border-top: 3px solid var(--color-accent); }
.card__icon {
    width: 2.5rem; height: 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.5rem; font-size: 1.25rem;
}
.card__title { margin: 0; }
.card__text { color: var(--color-text-muted); margin: 0; }

/* ---------- Stats / split ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } }
.split__visual { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--color-bg-alt); }
.split__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 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); }
.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 accordion (CSS-only) ---------- */
.faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item__summary {
    list-style: none;
    cursor: pointer;
    padding: 1.125rem 1.25rem;
    display: flex; justify-content: space-between; gap: 1rem;
    font-weight: 600; color: var(--color-brand);
    font-family: var(--font-display);
}
.faq-item__summary::-webkit-details-marker { display: none; }
.faq-item__summary::after { content: '+'; color: var(--color-text-muted); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.faq-item[open] > .faq-item__summary::after { content: '–'; }
.faq-item__answer { padding: 0 1.25rem 1.25rem; color: var(--color-text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info dt { font-weight: 600; color: var(--color-brand); margin-top: 1rem; }
.contact-info dd { margin: 0.25rem 0 0; color: var(--color-text); }
.contact-info dd a { color: var(--color-text); }

.contact-form {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.contact-form__row { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.375rem; font-size: 0.9375rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%; padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    font: inherit; color: var(--color-text); background: var(--color-bg);
}
.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.875rem; color: var(--color-text-muted); }
.contact-form__consent input[type="checkbox"] { margin-top: 0.25rem; flex-shrink: 0; }
.contact-form__submit { margin-top: 0.5rem; }
.contact-form__notice {
    background: var(--color-bg-alt); border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem; font-size: 0.875rem; color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background: var(--color-brand); color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem; text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); margin: 0 auto 1.5rem; max-width: 36rem; }
.cta-banner .btn--primary { background: var(--color-accent); }
.cta-banner .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-banner .btn--secondary:hover, .cta-banner .btn--secondary:focus { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ---------- Footer ----------
 * Brand-color block "bracketing" the page top + bottom (header is also
 * `--color-brand`). Token-only — every text color is white at one of
 * four opacities so the footer ports cleanly across every palette in
 * `ThemeRegistry::THEME_DEFINITIONS[ThemeId::MODERN]` (slate, forest,
 * plum, coastal, sand all ship dark `brand` values that hold white
 * text). Per .cursor/rules/site-themes.mdc → "Layout patterns →
 * Professional pattern". */
.site-footer {
    background: var(--color-brand);
    border-top: none;
    color: rgba(255, 255, 255, 0.82);
    padding: 3rem 0 1.5rem;
    margin-top: var(--section-y);
}
.site-footer__inner {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
    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: 700; color: #fff; margin-bottom: 0.5rem; }
.site-footer__heading { font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.site-footer__address { color: rgba(255, 255, 255, 0.82); font-size: 0.9375rem; margin: 0; }
.site-footer__col p { margin: 0 0 0.25rem; }
.site-footer__col a { color: rgba(255, 255, 255, 0.82); }
.site-footer__col a:hover, .site-footer__col a:focus { color: #fff; text-decoration: underline; }
.site-footer__legal {
    margin-top: 2.5rem; padding: 1.5rem 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7);
    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: rgba(255, 255, 255, 0.7); }
.site-footer__attribution a { color: rgba(255, 255, 255, 0.82); text-decoration: underline; }
.site-footer__attribution a:hover, .site-footer__attribution a:focus { color: #fff; }
