/* =========================================================
   Caroline Ambrizi — Nail Designer
   Direção: minimalismo feminino e sofisticado, mobile first
   Paleta: porcelana + pétala + amora profunda + champanhe
   Tipografia: Bodoni Moda (títulos/preços) + Jost (corpo)
   ========================================================= */

:root {
    --porcelain: #F8F5F6;
    --petal-soft: #F2E9EC;
    --petal: #EADCE1;
    --white: #FFFFFF;
    --ink: #3A2233;            /* texto principal */
    --mulberry: #4E2A40;       /* acento e fundos escuros */
    --mulberry-deep: #3A1F31;
    --plum-soft: #76666E;      /* texto secundário (contraste AA sobre porcelana) */
    --champagne: #BFA27A;      /* apenas fios e detalhes */
    --hairline: rgba(78, 42, 64, 0.16);

    --font-display: 'Bodoni Moda', 'Didot', Georgia, serif;
    --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --gutter: 22px;
    --header-h: 64px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--porcelain);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--mulberry);
    margin: 0;
    letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.nav-check:focus-visible + .logo {
    outline: 2px solid var(--mulberry);
    outline-offset: 3px;
    border-radius: 4px;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Títulos de seção (padrão compartilhado) ---------- */

.about-container h2,
.gallery-section h2,
.services-section h2,
.reviews-container h2,
.faq-container h2,
.location-container h2 {
    font-size: clamp(1.9rem, 6.5vw, 2.8rem);
    line-height: 1.12;
    text-align: center;
}

.gallery-subtitle,
.reviews-subtitle,
.faq-subtitle,
.location-subtitle {
    color: var(--plum-soft);
    text-align: center;
    margin: 12px auto 36px;
    max-width: 34rem;
}

/* ---------- Header / Navegação ---------- */

.main-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(248, 245, 246, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
}

.navbar {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.logo {
    margin-right: auto;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--mulberry);
    white-space: nowrap;
}

.nav-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--mulberry);
    transition: opacity .2s ease;
}

.nav-instagram:hover { opacity: .6; }

/* botão hambúrguer (somente CSS) */
.nav-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--mulberry);
    transition: transform .3s var(--ease);
}

.nav-check:checked ~ .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-check:checked ~ .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.nav-check:focus-visible ~ .nav-toggle { outline: 2px solid var(--mulberry); outline-offset: 2px; border-radius: 6px; }

/* painel do menu no mobile */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--porcelain);
    border-bottom: 1px solid var(--hairline);
    display: none;
    flex-direction: column;
}

.nav-check:checked ~ .nav-links { display: flex; }

.nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink);
}

.nav-links li:last-child a { border-bottom: 0; }

/* ---------- Botões ---------- */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 32px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease);
}

.btn-primary {
    background: var(--mulberry);
    color: var(--porcelain);
}

.btn-primary:hover { background: var(--mulberry-deep); transform: translateY(-2px); }

.btn-secondary {
    min-height: 44px;
    padding: 0 26px;
    color: var(--mulberry);
    border: 1px solid var(--mulberry);
    background: transparent;
    font-size: 0.9rem;
}

.btn-secondary:hover { background: var(--mulberry); color: var(--porcelain); }

/* ---------- Hero ---------- */

.hero-section {
    padding: 40px var(--gutter) 64px;
    overflow: hidden;
}

.hero-container {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 44px;
}

.hero-text { text-align: left; }

.hero-container h1 {
    font-size: clamp(2.35rem, 10vw, 4.4rem);
    line-height: 1.04;
    font-weight: 400;
}

.hero-container .hero-text p {
    margin: 22px 0 32px;
    max-width: 30rem;
    color: var(--plum-soft);
    font-size: 1.05rem;
}

.hero-text .btn-primary { width: 100%; }

/* Elemento marcante: foto em arco com segundo arco em fio champanhe */
.hero-media {
    position: relative;
    width: min(78%, 360px);
    margin: 0 auto;
    aspect-ratio: 4 / 5;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(16px, 14px);
    border: 1px solid var(--champagne);
    border-radius: 999px 999px 28px 28px;
}

.hero-media img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px 999px 28px 28px;
    background: var(--petal);
}

.hero-media.img-fallback img { display: none; }
.hero-media.img-fallback::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px 999px 28px 28px;
    background: linear-gradient(160deg, var(--petal), var(--petal-soft));
}

/* única animação orquestrada da página */
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

.hero-text > * { animation: rise .9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .12s; }
.hero-text > :nth-child(3) { animation-delay: .24s; }
.hero-media { animation: rise 1.1s var(--ease) .2s both; }

/* ---------- Sobre ---------- */

.about-section {
    padding: 56px var(--gutter);
    background: var(--petal-soft);
}

.about-container {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.about-container h2 { margin-bottom: 22px; }

.about-container p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.15rem, 4.2vw, 1.5rem);
    line-height: 1.6;
    color: var(--ink);
}

/* ---------- Galeria / Carrossel ---------- */

.gallery-section {
    padding: 64px var(--gutter) 72px;
}

.carousel {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: var(--petal);
}

.carousel-track {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
}

.carousel-slide.is-active { opacity: 1; visibility: visible; }

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide.img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--petal), var(--petal-soft));
}

.carousel-slide.img-fallback img { display: none; }
.carousel-slide.img-fallback::after {
    content: "Foto em breve";
    color: var(--plum-soft);
    font-size: .85rem;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(248, 245, 246, .88);
    color: var(--mulberry);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
}

.carousel-arrow:hover { background: var(--white); }
.carousel-arrow--prev { left: 10px; }
.carousel-arrow--next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.carousel-dot.is-active { background: var(--white); transform: scale(1.35); }

/* ---------- Serviços ---------- */

.services-section {
    padding: 64px var(--gutter) 72px;
    background: var(--petal-soft);
}

.services-section h2 { margin-bottom: 36px; }

.services-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px 26px;
    background: var(--porcelain);
    border: 1px solid var(--hairline);
    border-radius: 22px;
    text-align: left;
    transition: border-color .3s ease, background .3s ease;
}

.service-card:hover { border-color: var(--champagne); background: var(--white); }

.service-card h3 {
    font-size: 1.35rem;
    line-height: 1.25;
}

.service-price {
    margin: 8px 0 12px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--plum-soft);
}

.service-price small {
    font-family: var(--font-body);
    font-size: .78rem;
}

.service-card p:not(.service-price) {
    color: var(--plum-soft);
    font-size: .95rem;
    margin-bottom: 22px;
}

.service-card .btn-secondary { margin-top: auto; }

/* Lista dos demais serviços */
.services-list-wrapper {
    max-width: 760px;
    margin: 56px auto 0;
}

.services-list-wrapper h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 18px;
}

.services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hairline);
}

.services-list-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name price" "btn btn";
    align-items: baseline;
    gap: 4px 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--hairline);
}

.services-list-name { grid-area: name; font-weight: 400; color: var(--ink); }

.services-list-price {
    grid-area: price;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--mulberry);
    white-space: nowrap;
}

.services-list-price small { font-family: var(--font-body); font-size: .75rem; color: var(--plum-soft); }

.services-list-item .btn-secondary {
    grid-area: btn;
    justify-self: start;
    margin-top: 10px;
}

/* ---------- Depoimentos ---------- */

.reviews-section { padding: 64px 0 72px; }

.reviews-container { max-width: 1120px; margin: 0 auto; }

.reviews-container h2,
.reviews-subtitle { padding: 0 var(--gutter); }

/* mobile: rolagem lateral com snap */
.reviews-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px var(--gutter) 18px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.reviews-grid::-webkit-scrollbar { display: none; }

.review-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
    padding: 28px 24px;
    background: var(--petal-soft);
    border-radius: 22px;
    text-align: left;
}

.rating-stars {
    color: var(--champagne);
    font-size: 1rem;
    letter-spacing: .18em;
    margin-bottom: 14px;
}

.review-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 20px;
}

.client-info { display: flex; flex-direction: column; }
.client-name { font-weight: 500; font-size: .95rem; color: var(--mulberry); }
.client-location { font-size: .85rem; color: var(--plum-soft); }

/* ---------- FAQ ---------- */

.faq-section {
    padding: 64px var(--gutter) 72px;
    background: var(--petal-soft);
}

.faq-container { max-width: 760px; margin: 0 auto; }

.faq-list { border-top: 1px solid var(--hairline); text-align: left; }

.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.35;
    color: var(--mulberry);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 28px;
    text-align: center;
    transition: background .25s ease, color .25s ease, transform .3s var(--ease);
}

.faq-item[open] summary::after {
    content: "+";
    transform: rotate(45deg);
    background: var(--mulberry);
    color: var(--porcelain);
    border-color: var(--mulberry);
}

.faq-item p {
    padding: 0 0 22px;
    max-width: 38rem;
    color: var(--plum-soft);
}

/* ---------- Localização ---------- */

.location-section { padding: 64px var(--gutter) 72px; }

.location-container { max-width: 900px; margin: 0 auto; }

.location-subtitle { margin-bottom: 18px; }

.location-address {
    font-style: normal;
    text-align: center;
    color: var(--plum-soft);
    margin-bottom: 28px;
}

.location-address strong { color: var(--mulberry); font-weight: 500; }

.map-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    background: var(--petal);
}

.map-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(.25) contrast(.97);
}

/* ---------- Rodapé ---------- */

.main-footer {
    background: var(--mulberry);
    color: rgba(248, 245, 246, .78);
    text-align: center;
    padding: 48px var(--gutter) 108px;
    font-size: .88rem;
}

.main-footer p { margin: 6px 0; }

.footer-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--porcelain);
    font-size: 1rem;
    transition: opacity .2s ease;
}

.footer-instagram:hover { opacity: .7; }

.footer-address { margin-bottom: 18px !important; }

.dev-link {
    color: var(--porcelain);
    text-decoration: underline;
    text-decoration-color: var(--champagne);
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.dev-link:hover { color: var(--petal); }

/* ---------- Botão flutuante do WhatsApp ---------- */

.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--mulberry);
    color: var(--porcelain);
    border: 1px solid rgba(191, 162, 122, .6);
    font-size: 1.3rem;
    box-shadow: 0 10px 24px -10px rgba(58, 31, 49, .6);
    transition: transform .25s var(--ease), background .25s ease;
}

.whatsapp-float:hover { transform: translateY(-3px); background: var(--mulberry-deep); }

/* no mobile só o ícone; o texto aparece a partir do tablet */
.whatsapp-float {
    font-size: 0;
}
.whatsapp-float span { font-size: 1.4rem; }

/* =========================================================
   Tablet (>= 700px)
   ========================================================= */

@media (min-width: 700px) {
    :root { --gutter: 32px; }

    .hero-text .btn-primary { width: auto; }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

    .services-list-item {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "name price btn";
        align-items: center;
        gap: 20px;
    }
    .services-list-item .btn-secondary { margin-top: 0; justify-self: end; }

    .map-wrapper { aspect-ratio: 16 / 9; }

    .whatsapp-float {
        width: auto;
        height: 52px;
        padding: 0 24px 0 20px;
        font-size: .95rem;
        font-weight: 400;
        letter-spacing: .02em;
    }
    .whatsapp-float span { font-size: 1.1rem; }
}

/* =========================================================
   Desktop (>= 960px)
   ========================================================= */

@media (min-width: 960px) {
    :root { --header-h: 76px; --gutter: 40px; }

    /* navegação horizontal */
    .nav-toggle { display: none; }
    .logo { margin-right: 0; font-size: 1.4rem; }
    .navbar { gap: 40px; }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 30px;
        margin: 0 auto;
        padding: 0;
        background: none;
        border: 0;
    }

    .nav-links a {
        padding: 6px 0;
        border: 0;
        font-size: .95rem;
        color: var(--plum-soft);
        background-image: linear-gradient(var(--champagne), var(--champagne));
        background-size: 0 1px;
        background-repeat: no-repeat;
        background-position: 0 100%;
        transition: color .2s ease, background-size .3s var(--ease);
    }

    .nav-links a:hover { color: var(--mulberry); background-size: 100% 1px; }

    /* hero em duas colunas */
    .hero-section { padding: 72px var(--gutter) 104px; }

    .hero-container {
        grid-template-columns: 1.1fr .9fr;
        align-items: center;
        gap: 72px;
    }

    .hero-media { width: min(100%, 420px); margin: 0 0 0 auto; }

    .about-section { padding: 96px var(--gutter); }

    .gallery-section,
    .services-section,
    .faq-section,
    .location-section { padding-top: 96px; padding-bottom: 104px; }

    .services-section h2 { margin-bottom: 52px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .service-card { padding: 34px 28px 30px; }

    .reviews-section { padding: 96px 0 104px; }

    .reviews-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        overflow: visible;
        padding: 0 var(--gutter);
    }
    .review-card { flex: none; padding: 34px 28px; }

    .carousel { max-width: 480px; }
}

/* telas muito pequenas */
@media (max-width: 360px) {
    :root { --gutter: 18px; }
    .logo { font-size: 1.1rem; }
}
