/* =========================================================================
   Master-CMS · Public Frontend · Basic Styles
   ========================================================================= */

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-family, system-ui, sans-serif);
    font-size: 17px;
    line-height: 1.6;
    color: hsl(217 33% 17%);
    background: hsl(0 0% 100%);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: hsl(var(--primary-hsl)); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* ---- Layout helpers ---- */
.section { padding: 5rem 1.5rem; }
.section__inner { max-width: 1200px; margin: 0 auto; }
.section__inner--narrow { max-width: 760px; text-align: center; }
.section__inner--split { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .section__inner--split { grid-template-columns: 1fr 1fr; align-items: center; }
}
.section__title { margin-bottom: 1.5rem; }
.section__headline { margin-bottom: 1rem; }
.section__lede { font-size: 1.125rem; color: hsl(217 15% 45%); margin-bottom: 2rem; max-width: 640px; }
.section__prose { color: hsl(217 15% 35%); }
.section__image { border-radius: 12px; }

/* ---- Header / Nav ---- */
.site-header {
    border-bottom: 1px solid hsl(214 20% 92%);
    background: hsl(0 0% 100%);
    position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-header__brand {
    display: inline-flex; align-items: center; gap: .5rem;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}
.site-header__logo { height: 32px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; }
.site-nav__link { color: hsl(217 33% 17%); font-weight: 500; }

/* ---- Hero ---- */
.section--hero {
    padding: 8rem 1.5rem;
    background-color: hsl(var(--primary-hsl) / .05);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
}

/* ---- Cards ---- */
.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card-grid--lg { gap: 2rem; }
.card {
    background: hsl(0 0% 100%);
    border: 1px solid hsl(214 20% 92%);
    border-radius: 12px;
    padding: 2rem;
}
.card__icon { color: hsl(var(--primary-hsl)); margin-bottom: 1rem; }
.card__icon--bg {
    width: 56px; height: 56px;
    background: hsl(var(--primary-hsl) / .1);
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.card__title { margin-bottom: .5rem; }
.card__body { color: hsl(217 15% 45%); margin: 0; font-size: .95rem; }

/* ---- Process ---- */
.process-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
.process-list__step { display: flex; gap: 1.5rem; align-items: flex-start; }
.process-list__index {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: hsl(var(--primary-hsl));
    color: white;
    font-weight: 700;
    border-radius: 50%;
}
.process-list__title { margin: .25rem 0 .5rem; }
.process-list__body { color: hsl(217 15% 45%); margin: 0; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid hsl(214 20% 92%);
    padding: 1.25rem 0;
}
.faq-item__q {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    padding: .25rem 0;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::before { content: '+ '; color: hsl(var(--primary-hsl)); font-weight: 700; }
.faq-item[open] .faq-item__q::before { content: '– '; }
.faq-item__a {
    padding-top: .75rem;
    color: hsl(217 15% 35%);
}

/* ---- CTA ---- */
.section--cta {
    background: hsl(var(--primary-hsl));
    color: white;
    padding: 6rem 1.5rem;
}
.section--cta .section__lede { color: hsl(0 0% 100% / .85); margin-left: auto; margin-right: auto; }

/* ---- Contact form ---- */
.contact-info { display: grid; gap: .5rem 1rem; grid-template-columns: max-content 1fr; font-size: .95rem; }
.contact-info dt { color: hsl(217 15% 45%); font-weight: 500; }
.contact-info dd { margin: 0; }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field__label { font-weight: 500; font-size: .9rem; }
.field__input, .field__textarea {
    font: inherit;
    padding: .75rem 1rem;
    border: 1px solid hsl(214 20% 86%);
    border-radius: 8px;
    background: hsl(0 0% 100%);
    width: 100%;
}
.field__input:focus, .field__textarea:focus {
    outline: 2px solid hsl(var(--primary-hsl));
    outline-offset: -1px;
    border-color: hsl(var(--primary-hsl));
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.5rem;
    font: inherit;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .1s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: hsl(var(--primary-hsl)); color: white; }
.btn--primary:hover { box-shadow: 0 8px 20px -8px hsl(var(--primary-hsl)); }
.btn--white { background: white; color: hsl(var(--primary-hsl)); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---- Footer ---- */
.site-footer {
    background: hsl(217 33% 12%);
    color: hsl(0 0% 100% / .85);
    padding: 3rem 1.5rem;
    margin-top: 4rem;
}
.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.site-footer a { color: hsl(0 0% 100%); }
.site-footer__tagline { font-size: 1.1rem; opacity: .85; }
.site-footer__links { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.site-footer__copyright { font-size: .85rem; opacity: .6; margin-top: 1rem; }

/* Lang-Switcher (Phase 5) */
.site-lang-switcher { display: inline-flex; gap: .25rem; margin-left: 1rem; font-size: .85rem; }
.site-lang-switcher__item {
    padding: .35rem .6rem;
    border-radius: 4px;
    color: hsl(217 15% 45%);
    text-decoration: none;
    font-weight: 600;
    transition: background .12s, color .12s;
}
.site-lang-switcher__item:hover { background: hsl(var(--primary-hsl) / .08); color: hsl(var(--primary-hsl)); text-decoration: none; }
.site-lang-switcher__item.is-active { background: hsl(var(--primary-hsl) / .12); color: hsl(var(--primary-hsl)); }
