/*
 * 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 ---------- */
.site-header {
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(140%) blur(8px);
    position: sticky; top: 0; z-index: 10;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; gap: 1.25rem; flex-wrap: wrap; }
.site-header__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--color-brand); }
.site-header__brand:hover, .site-header__brand:focus { color: var(--color-brand); text-decoration: none; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav__link { color: var(--color-text-muted); font-weight: 500; padding: 0.25rem 0; }
.site-nav__link.is-active { color: var(--color-brand); position: relative; }
.site-nav__link.is-active::after { content: ''; display: block; height: 2px; background: var(--color-accent); border-radius: 2px; margin-top: 0.25rem; }
.site-nav__link:hover, .site-nav__link:focus { color: var(--color-brand); text-decoration: none; }

/* ---------- 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; }
.section__eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8125rem; color: var(--color-accent); font-weight: 600; margin-bottom: 0.75rem; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--section-y) + 1rem) 0 var(--section-y); position: relative; }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@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.08em; font-size: 0.8125rem; color: var(--color-accent); font-weight: 600; }
.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 ---------- */
.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-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 0.75rem;
}
.card--with-thumb { padding: 0; overflow: hidden; }
.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__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 ---------- */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1.5rem;
    margin-top: var(--section-y);
}
.site-footer__inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@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: var(--color-brand); margin-bottom: 0.5rem; }
.site-footer__heading { font-weight: 600; color: var(--color-brand); margin-bottom: 0.5rem; }
.site-footer__address { color: var(--color-text-muted); font-size: 0.9375rem; margin: 0; }
.site-footer__col p { margin: 0 0 0.25rem; }
.site-footer__col a { color: var(--color-text); }
.site-footer__legal {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem; color: var(--color-text-muted);
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}
.site-footer__legal p { margin: 0; }
.site-footer__attribution { font-size: 0.75rem; color: var(--color-text-muted); }
.site-footer__attribution a { color: var(--color-text-muted); text-decoration: underline; }
