/* ============================================
   La Capucine Cuisine — Precificação
   Nova paleta: navy / berry / plum
   ============================================ */

:root {
    --berry:       #B61B3C;
    --wine:        #7A0F2E;
    --plum:        #4B0D1D;
    --navy:        #0F1D2E;
    --charcoal:    #111214;

    --cream-0:     #FFF9F2;
    --cream-1:     #F8EFE3;
    --cream-2:     #F0E3CF;
    --sand:        #E3C8A8;
    --taupe:       #B89C7A;

    --gold:        #E0AA4F;
    --gold-light:  #F2C77A;

    --cta:         #FF6B4A;
    --cta-hover:   #FF7D60;

    --espresso:    #1A120F;
    --text-body:   #2A1C16;
    --text-muted:  #6B4F3F;
    --text-light:  #FFF9F2;
    --text-light-muted: rgba(255, 249, 242, 0.65);

    --font-serif:  'Cormorant Garamond', Georgia, serif;
    --font-sans:   'Inter', system-ui, sans-serif;

    --container:   1100px;
    --form-width:  720px;
    --radius:      6px;
    --radius-lg:   14px;
    --nav-h:       64px;
    --ease:        0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--cream-1);
    color: var(--espresso);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* ============================================
   ANIMAÇÕES
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

@keyframes heroIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 18, 20, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 107, 74, 0.12);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { height: 38px; width: auto; }
.nav-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cta);
    border: 1px solid rgba(255, 107, 74, 0.35);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    transition: all var(--ease);
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-cta {
    background: var(--cta);
    color: #fff;
}
.btn-cta:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 107, 74, 0.35);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 82vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(145deg, var(--plum) 0%, var(--navy) 60%, var(--charcoal) 100%);
    overflow: hidden;
}
.hero-foto {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 52%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
    z-index: 0;
    opacity: 0.55;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, black 55%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, black 55%);
}
.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 30% 40%, rgba(182, 27, 60, 0.3) 0%, transparent 65%),
        radial-gradient(ellipse 35% 35% at 80% 70%, rgba(255, 107, 74, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 6rem 2rem 8rem;
    text-align: left;
}
.hero-inner > *:not(.hero-foto) { max-width: 480px; }
.hero-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cta);
    margin-bottom: 1.25rem;
    animation: heroIn 0.7s ease both 0.05s;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 500;
    line-height: 1.08;
    color: var(--cream-0);
    margin-bottom: 1.25rem;
    animation: heroIn 0.7s ease both 0.15s;
}
.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-light-muted);
    max-width: 520px;
    margin: 0 0 2.25rem;
    animation: heroIn 0.7s ease both 0.25s;
}
.hero-note {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-light-muted);
    opacity: 0.6;
    margin-top: 1rem;
    animation: heroIn 0.7s ease both 0.45s;
}
.hero .btn-cta {
    animation: heroIn 0.7s ease both 0.35s;
}

/* ============================================
   CALCULADORA
   ============================================ */
.calculadora {
    background: var(--cream-1);
    padding: 5rem 0 6rem;
}
.calc-inner {
    max-width: var(--form-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Form sections */
.form-section {
    background: var(--cream-0);
    border: 1px solid var(--sand);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
}
.form-section-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--cream-2);
}
.form-step {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--sand);
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.form-section-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--espresso);
    margin-bottom: 0.25rem;
}
.form-section-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Fields */
.fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.fields-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.fields-split {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 0.75rem;
}
.field--full { grid-column: 1 / -1; }

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.field label,
.label-block {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-body);
    display: block;
}
.required { color: var(--berry); }
.optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}
.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--espresso);
    background: var(--cream-1);
    border: 1.5px solid var(--sand);
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
    transition: border-color var(--ease), box-shadow var(--ease);
    outline: none;
    -moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; }
input::placeholder { color: var(--taupe); opacity: 0.7; }

select {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--espresso);
    background: var(--cream-1);
    border: 1.5px solid var(--sand);
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
    transition: border-color var(--ease), box-shadow var(--ease);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B4F3F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}
select:focus {
    border-color: var(--berry);
    box-shadow: 0 0 0 3px rgba(182, 27, 60, 0.1);
    background-color: #fff;
}
input:focus {
    border-color: var(--berry);
    box-shadow: 0 0 0 3px rgba(182, 27, 60, 0.1);
    background: #fff;
}

.input-prefix,
.input-suffix {
    display: flex;
    align-items: center;
    background: var(--cream-1);
    border: 1.5px solid var(--sand);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.input-prefix:focus-within,
.input-suffix:focus-within {
    border-color: var(--berry);
    box-shadow: 0 0 0 3px rgba(182, 27, 60, 0.1);
    background: #fff;
}
.input-prefix span,
.input-suffix span {
    padding: 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--cream-2);
    align-self: stretch;
    display: flex;
    align-items: center;
    border-right: 1.5px solid var(--sand);
    white-space: nowrap;
}
.input-suffix span {
    border-right: none;
    border-left: 1.5px solid var(--sand);
}
.input-prefix input,
.input-suffix input {
    border: none;
    background: transparent;
    box-shadow: none;
    flex: 1;
    min-width: 0;
}
.input-prefix input:focus,
.input-suffix input:focus {
    box-shadow: none;
    background: transparent;
}

/* Pill buttons */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.pill input[type="radio"] { display: none; }
.pill span {
    display: block;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-body);
    background: var(--cream-1);
    border: 1.5px solid var(--sand);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--ease);
    user-select: none;
}
.pill:hover span {
    border-color: var(--berry);
    color: var(--berry);
}
.pill input:checked + span {
    background: var(--wine);
    color: var(--cream-0);
    border-color: var(--wine);
    font-weight: 500;
}

/* Error & Submit */
.optin-wrap {
    margin-bottom: 1.25rem;
}
.optin-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}
.optin-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 0.15rem;
    accent-color: var(--berry);
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
    box-shadow: none;
}
.optin-label input[type="checkbox"]:focus {
    box-shadow: none;
    border: none;
}
.optin-label span {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.form-error {
    background: rgba(182, 27, 60, 0.08);
    color: var(--berry);
    border: 1px solid rgba(182, 27, 60, 0.25);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}
.btn-submit {
    width: 100%;
    padding: 1.1rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ============================================
   RESULTADO
   ============================================ */
.resultado {
    margin-top: 2.5rem;
    background: var(--cream-0);
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.resultado-header {
    background: linear-gradient(135deg, var(--wine) 0%, var(--plum) 100%);
    padding: 1.75rem 2.5rem;
}
.resultado-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}
.resultado-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cream-0);
}
.resultado-grid {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.resultado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--cream-2);
    gap: 1rem;
}
.resultado-item:last-child { border-bottom: none; }
.resultado-item--total {
    border-top: 2px solid var(--sand);
    margin-top: 0.25rem;
    padding-top: 1rem;
    font-weight: 600;
}
.resultado-item--highlight {
    background: rgba(224, 170, 79, 0.08);
    margin: 0.5rem -2.5rem;
    padding: 1.25rem 2.5rem;
    border-bottom: none !important;
}
.resultado-item--final {
    background: rgba(255, 107, 74, 0.07);
    margin: 0 -2.5rem;
    padding: 1.25rem 2.5rem;
    border-bottom: none !important;
}
.resultado-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.resultado-item--total .resultado-label,
.resultado-item--highlight .resultado-label,
.resultado-item--final .resultado-label {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.9rem;
}
.resultado-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--espresso);
    white-space: nowrap;
}
.resultado-value--big {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--berry);
    letter-spacing: -0.02em;
}
.resultado-item--final .resultado-value--big {
    color: var(--cta);
}
.resultado-aviso {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 1rem 2.5rem 0;
    line-height: 1.6;
}
.resultado-cta {
    padding: 1.75rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
.resultado-cta p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-body);
}

/* Submit status */
.submit-status {
    margin: 1rem 2.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
}
.submit-status--ok   { background: rgba(30,140,70,0.08);  color: #1e7a40; border: 1px solid rgba(30,140,70,0.2); }
.submit-status--warn { background: rgba(255,107,74,0.08); color: #c44820; border: 1px solid rgba(255,107,74,0.2); }

/* ============================================
   CTA CUISINE
   ============================================ */
.cta-cuisine {
    background: var(--navy);
    padding: 7rem 0;
}
.cta-cuisine-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}
.section-label {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.cta-cuisine h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    color: var(--cream-0);
    line-height: 1.25;
    margin-bottom: 2rem;
}
.cta-cuisine-list {
    text-align: left;
    display: inline-flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
}
.cta-cuisine-list li {
    font-size: 0.88rem;
    color: var(--text-light-muted);
    padding-left: 1.25rem;
    position: relative;
}
.cta-cuisine-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.78rem;
}
.cta-cuisine-note {
    margin-top: 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--text-light-muted);
    opacity: 0.55;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal);
    padding: 2.5rem 2rem;
    text-align: center;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}
.footer-logo {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.35;
}
.footer-copy {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.2);
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 640px) {
    .form-section { padding: 1.75rem 1.25rem; }
    .fields-grid  { grid-template-columns: 1fr; }
    .fields-split { grid-template-columns: 1fr 70px; }
    .form-section-header { gap: 0.85rem; }
    .form-step    { font-size: 1.5rem; }
    .resultado-grid,
    .resultado-aviso,
    .resultado-cta { padding-left: 1.25rem; padding-right: 1.25rem; }
    .resultado-header { padding: 1.25rem 1.25rem; }
    .resultado-item--highlight,
    .resultado-item--final { margin-left: -1.25rem; margin-right: -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
    .submit-status { margin: 1rem 1.25rem; }
    .calc-inner   { padding: 0 1rem; }
    .hero-inner   { padding: 4rem 1.25rem; }
}
