:root {
    --bg: #f5f1ea;
    --bg-soft: #fbf8f3;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #fffdf9;
    --surface-alt: #efe6d7;
    --text: #1f2a27;
    --muted: #5c685f;
    --line: rgba(31, 42, 39, 0.12);
    --primary: #1e6a5e;
    --primary-dark: #174d44;
    --accent: #cf8b58;
    --shadow: 0 24px 60px rgba(48, 44, 35, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
    --header-height: 84px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(207, 139, 88, 0.18), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(30, 106, 94, 0.16), transparent 24%),
        linear-gradient(180deg, #f6efe4 0%, #f8f5ef 38%, #f4efe7 100%);
    line-height: 1.6;
}

img,
iframe {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 1000;
    background: var(--surface-strong);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.95rem;
}

.eyebrow::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
}

h1,
h2,
h3 {
    margin: 0 0 1rem;
    font-family: "Fraunces", serif;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.9rem, 7vw, 5.4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.lead {
    font-size: 1.1rem;
    max-width: 60ch;
}

.microcopy,
.footer-meta,
.contact-note {
    font-size: 0.92rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(246, 239, 228, 0.78);
    border-bottom: 1px solid rgba(31, 42, 39, 0.08);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-weight: 700;
}

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), transparent 30%),
        linear-gradient(145deg, var(--accent), var(--primary));
    box-shadow: 0 12px 30px rgba(30, 106, 94, 0.18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
}

.site-nav a {
    color: var(--muted);
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.hero {
    padding-top: 3rem;
    overflow: hidden;
}

.hero-grid,
.quiz-layout,
.contact-grid,
.map-grid,
.preferences-grid {
    display: grid;
    gap: 2rem;
}

.hero-grid {
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-actions,
.quiz-actions,
.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--primary);
    color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--primary-dark);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
    border-color: rgba(31, 42, 39, 0.12);
}

.button-ghost {
    background: transparent;
    border-color: rgba(31, 42, 39, 0.18);
    color: var(--text);
}

.glass,
.feature-card,
.editorial-card,
.contact-card,
.map-card,
.faq-item {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-visual {
    position: relative;
    min-height: 420px;
}

.hero-card {
    position: absolute;
    inset: 12% 8% 10% 10%;
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.card-tag,
.article-kicker {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    background: rgba(30, 106, 94, 0.12);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.8rem;
}

.hero-points li {
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 1rem;
    color: var(--text);
    font-weight: 600;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.9;
}

.orb-one {
    width: 220px;
    height: 220px;
    right: -10px;
    top: 20px;
    background: linear-gradient(180deg, rgba(207, 139, 88, 0.5), rgba(255, 255, 255, 0));
}

.orb-two {
    width: 260px;
    height: 260px;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(30, 106, 94, 0.45), rgba(255, 255, 255, 0));
}

.floating-panel {
    position: absolute;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    background: rgba(255, 253, 249, 0.86);
    box-shadow: 0 18px 32px rgba(30, 106, 94, 0.11);
    min-width: 180px;
}

.floating-panel strong,
.note-card strong,
.success-points strong,
.consent-option strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.panel-a {
    left: 0;
    top: 6%;
}

.panel-b {
    right: 4%;
    bottom: 4%;
}

.section-heading {
    margin-bottom: 2rem;
}

.feature-grid,
.editorial-grid,
.success-points {
    display: grid;
    gap: 1.2rem;
}

.feature-card,
.editorial-card,
.contact-card,
.faq-item {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.quiz-card {
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.quiz-meta {
    margin-bottom: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.progress-bar {
    width: 100%;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(31, 42, 39, 0.08);
    overflow: hidden;
}

.progress-bar span {
    display: block;
    width: 17%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: inherit;
    transition: width 0.3s ease;
}

.quiz-form {
    display: grid;
    gap: 1.2rem;
}

.quiz-step {
    display: none;
    border: 0;
    padding: 0;
    margin: 0;
}

.quiz-step.is-active {
    display: block;
    animation: stepFade 0.32s ease;
}

.quiz-step legend {
    font-family: "Fraunces", serif;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    color: var(--text);
    margin-bottom: 0.6rem;
}

.quiz-hint {
    margin-bottom: 1rem;
}

.quiz-options {
    display: grid;
    gap: 0.8rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1rem 1rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.62);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.quiz-option:hover {
    transform: translateY(-1px);
    border-color: rgba(30, 106, 94, 0.32);
}

.quiz-option input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

.quiz-option:has(input:checked) {
    border-color: rgba(30, 106, 94, 0.7);
    background: rgba(30, 106, 94, 0.08);
}

.quiz-footer {
    display: grid;
    gap: 0.8rem;
}

.quiz-error {
    min-height: 1.4rem;
    color: #8f4633;
    font-weight: 700;
}

.note-card,
.preferences-card,
.success-card,
.consent-panel__card {
    border-radius: var(--radius-lg);
    padding: 1.4rem;
}

.preferences-card {
    align-self: start;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--text);
    font-weight: 700;
    text-align: left;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary);
}

.faq-item.is-open .faq-question::after {
    content: "−";
}

.faq-answer {
    display: none;
    margin-top: 0.9rem;
}

.faq-item.is-open .faq-answer {
    display: block;
}

.contact-card.accent {
    background: linear-gradient(150deg, rgba(30, 106, 94, 0.92), rgba(23, 77, 68, 0.88));
    color: #eff8f4;
}

.contact-card.accent p,
.contact-card.accent .eyebrow,
.contact-card.accent h3 {
    color: inherit;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.55rem;
}

.section-map {
    padding-bottom: 5rem;
}

.map-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    min-height: 340px;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    border-radius: calc(var(--radius-xl) - 0.35rem);
}

.map-pin {
    position: absolute;
    top: calc(50% - 1.35rem);
    left: calc(50% - 0.8rem);
    z-index: 2;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 10px rgba(207, 139, 88, 0.18);
}

.success-shell {
    min-height: calc(100vh - var(--header-height) - 150px);
    display: flex;
    align-items: center;
}

.success-card {
    max-width: 760px;
    margin: 2rem auto 0;
}

.site-footer {
    padding: 2.2rem 0 1.6rem;
    background: #1d2624;
    color: rgba(255, 255, 255, 0.78);
}

.footer-grid,
.footer-bottom {
    display: grid;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
}

.footer-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.footer-bottom {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.94rem;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 1.5rem;
    background: rgba(25, 34, 31, 0.95);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.cookie-banner .button-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

.cookie-banner .button-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}

.consent-panel,
.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 70;
}

.consent-panel {
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(20, 25, 23, 0.48);
}

.consent-panel__card {
    width: min(100%, 680px);
}

.consent-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.consent-option {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.consent-toggle input {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary);
}

.consent-badge {
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 42, 39, 0.08);
    color: var(--muted);
    font-size: 0.86rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 23, 0.55);
}

.modal-shell {
    position: relative;
    width: min(calc(100% - 2rem), 920px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: 1rem auto;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.modal-close {
    border: 0;
    background: rgba(31, 42, 39, 0.06);
    color: var(--text);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
}

.legal-modal h3 {
    margin-top: 1.25rem;
    font-size: 1.15rem;
    font-family: "Manrope", sans-serif;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[hidden] {
    display: none !important;
}

@keyframes stepFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 760px) {
    .hero-grid,
    .quiz-layout,
    .contact-grid,
    .map-grid,
    .preferences-grid,
    .footer-grid,
    .footer-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid,
    .editorial-grid,
    .success-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 919px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        padding: 1rem 0;
    }

    .site-nav {
        justify-content: center;
    }
}

@media (max-width: 759px) {
    .section {
        padding: 3.7rem 0;
    }

    .hero-card {
        inset: 10% 0 0 0;
        position: relative;
    }

    .hero-visual {
        min-height: auto;
        padding-top: 4rem;
    }

    .floating-panel {
        position: static;
        margin-top: 1rem;
    }

    .modal-shell {
        padding: 1.2rem;
    }
}
