/* =============================================
   Bruna Fialho — Design System (ref. PSI mockups)
   ============================================= */
:root {
    --cream: #FFFBF5;
    --cream-dark: #FBF5EE;
    --cream-section: #FFFBF5;
    --cream-card: #F5EDE4;
    --sage: #C5D4C8;
    --sage-light: #DCE4DE;
    --sage-bg: #E4ECE7;
    --sage-label: #6B8F7A;
    --terracotta: #E27662;
    --terracotta-hover: #D06554;
    --terracotta-light: #E88A78;
    --teal: #2D646D;
    --teal-dark: #173F47;
    --text: #2B2927;
    --text-muted: #625D58;
    --color-text-primary: #2B2927;
    --color-text-secondary: #494541;
    --color-text-muted: #625D58;
    --white: #FFFFFF;
    --border: rgba(30, 57, 50, 0.18);
    --border-light: rgba(30, 57, 50, 0.12);
    --shadow-sm: 0 4px 20px rgba(30, 57, 50, 0.05);
    --shadow-md: 0 12px 40px rgba(30, 57, 50, 0.08);
    --shadow-lg: 0 20px 60px rgba(30, 57, 50, 0.1);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --font-body: "Montserrat", Arial, sans-serif;
    --font-heading: "Playfair Display", Georgia, serif;
    --font-script: "Dancing Script", cursive;
    --font-sans: var(--font-body);
    --font-serif: var(--font-heading);

    --font-body-size: 1.125rem; /* 18px */
    --font-small-size: 1rem; /* 16px */
    --font-button-size: 1.0625rem; /* 17px */
    --line-height-body: 1.65;
    --line-height-heading: 1.2;

    --container: 1200px;
    --header-h: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1.125rem; /* 18px — igual no mobile, nunca cai para 16px */
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-text-primary);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul { list-style: none; }

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

/* Skip link — primeiro foco de teclado */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--teal-dark);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem; /* 16px */
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--terracotta);
    outline-offset: 3px;
}

/* Typography */
.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem; /* 16px */
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sage-label);
    margin-bottom: 14px;
    line-height: 1.4;
}

.section-title {
    font-family: var(--font-body);
    font-size: 1.75rem; /* 28px */
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sage-label);
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-title em,
.section-title .script {
    font-family: var(--font-body);
    font-style: normal;
    color: inherit;
    font-weight: 600;
    font-size: 1em;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.1875rem; /* 19px */
    font-weight: 400;
    color: var(--color-text-secondary);
    max-width: 720px;
    line-height: 1.65;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    min-height: 50px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1.0625rem; /* 17px */
    font-weight: 600;
    line-height: 1.25;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn:hover {
    box-shadow: var(--shadow-sm);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.btn--primary {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.btn--primary:hover {
    background: var(--terracotta-hover);
    border-color: var(--terracotta-hover);
}

.btn--outline {
    background: var(--white);
    color: #1A2B33;
    border-color: rgba(26, 43, 51, 0.45);
}

.btn--outline:hover {
    border-color: var(--teal);
    background: var(--white);
}

.btn--whatsapp {
    background: var(--white);
    color: var(--teal-dark);
    border-color: rgba(30, 57, 50, 0.35);
}

.btn--whatsapp:hover {
    border-color: var(--teal);
}

.btn svg {
    flex-shrink: 0;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section {
    padding: 32px 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Botanical section decorations — sempre atrás do texto */
.section-deco {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    z-index: 0;
    width: 140px;
    height: auto;
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section-deco--left {
    left: -8px;
    top: 12%;
}

.section-deco--right {
    right: -8px;
    top: 18%;
}

.section-deco--faq {
    left: -12px;
    top: 8%;
    opacity: 0.08;
}

.section--cream { background: var(--cream); }
.section--cream-dark { background: var(--cream-dark); }
.section--white { background: var(--white); }

/* Page botanical decorations */
.page-deco {
    position: absolute;
    pointer-events: none;
    color: var(--sage);
    opacity: 0.22;
    z-index: 0;
}

.page-deco--left {
    left: -20px;
    width: 120px;
}

.page-deco--right {
    right: -20px;
    width: 120px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Âncoras / foco não obscurecido pelo header sticky (WCAG 2.4.11) */
[id] {
    scroll-margin-top: calc(var(--header-h) + 28px);
}

section[id],
footer[id] {
    scroll-margin-top: calc(var(--header-h) + 28px);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 991px) {
    .section {
        padding: 28px 0;
    }

    .section-deco {
        width: 100px;
        opacity: 0.08;
    }

    .section-deco--left {
        left: -28px;
    }

    .section-deco--right {
        right: -28px;
    }

    .section-deco--faq {
        left: -32px;
    }

    .section-title {
        font-size: 1.5rem; /* 24px tablet */
    }

    .section-subtitle {
        font-size: 1.0625rem; /* 17px */
    }
}

@media (max-width: 767px) {
    .section { padding: 24px 0; }
    .container { padding: 0 20px; }
    .section-deco { display: none; }

    .avaliacoes__deco,
    .cta-final__leaf {
        opacity: 0.06;
        width: 72px;
    }

    .section-title {
        font-size: 1.375rem; /* 22px */
    }

    .btn {
        min-height: 52px;
    }
}

@media (max-width: 374px) {
    .section-title {
        font-size: 1.25rem; /* 20px */
    }
}
