/* ================================================================
   ANNA MIMOSO BEAUTY SPACE — Public Site CSS
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --blush:        #f4b8c8;
    --blush-light:  #fce8ef;
    --blush-xlight: #fdf3f6;
    --blush-deep:   #e8879f;
    --rose:         #d4607e;

    --white:  #ffffff;
    --bg:     #fdf6f8;
    --bg-alt: #faf0f3;

    --text:       #2e1a23;
    --text-muted: #7a5363;
    --text-faint: #c4a0aa;

    --border: rgba(212,96,126,.14);

    --shadow-sm: 0 4px 16px rgba(180,60,90,.10);
    --shadow-md: 0 8px 32px rgba(180,60,90,.14);

    --radius-sm: 12px;
    --radius:    16px;
    --radius-lg: 24px;

    --transition: 0.22s cubic-bezier(.4,0,.2,1);
    font-family: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); overflow-x: hidden; font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ----------------------------------------------------------------
   PAGE SHELL
   ---------------------------------------------------------------- */
.page-shell { display: flex; flex-direction: column; min-height: 100vh; }
.page-shell > main { flex: 1; }

/* ----------------------------------------------------------------
   HEADER
   ---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253,246,248,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo-img {
    display: block;
    height: 62px;
    width: auto;
    object-fit: contain;
}


.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}

.site-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}

.site-nav a:hover { color: var(--rose); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn-outline-small {
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-outline-small:hover {
    background: var(--blush-xlight);
    border-color: var(--blush-deep);
    color: var(--rose);
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 28px 16px;
    border-top: 1px solid var(--border);
    background: var(--white);
    gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    padding: 9px 12px;
    min-height: 44px; /* touch target mínimo recomendado */
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
}

.mobile-nav a:hover { background: var(--blush-xlight); color: var(--rose); }

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 28px 104px;
    background:
        radial-gradient(ellipse 65% 50% at 0% 0%, rgba(244,184,200,.28) 0%, transparent 62%),
        radial-gradient(ellipse 48% 52% at 105% 100%, rgba(232,135,159,.12) 0%, transparent 58%),
        var(--bg);
    min-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2; /* acima do ::after (z:1) e da imagem (z:0) */
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 530px;
    animation: hero-copy-in .78s cubic-bezier(.4,0,.2,1) both;
}

@keyframes hero-copy-in {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Véu de cor blush que fica entre a imagem e o texto — garante legibilidade */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(253, 246, 248, 0) 45%, rgba(253, 246, 248, 0) 100%),
        radial-gradient(ellipse 65% 55% at 0% 0%, rgba(244, 184, 200, 0) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
}

/* Imagem de Anna como fundo total do hero */
.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    opacity: 0.22;
    animation: hero-img-in 1.2s cubic-bezier(.4,0,.2,1) .1s both;
}

@keyframes hero-img-in {
    from { opacity: 0; transform: scale(1.03); }
    to   { opacity: 0.55; transform: scale(1); }
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rose);
    background: var(--blush-light);
    padding: 5px 14px;
    border-radius: 999px;
    width: fit-content;
}

.hero-copy h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.hero-copy p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 460px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary-pub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--blush), var(--rose));
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(212,96,126,.32);
    transition: opacity var(--transition), transform var(--transition);
    white-space: nowrap;
}
.btn-primary-pub:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost-pub {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    background: var(--white);
    white-space: nowrap;
}
.btn-ghost-pub:hover { background: var(--blush-xlight); border-color: var(--blush-deep); color: var(--rose); }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
}

.hero-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 40px;
    text-align: center;
}

.hero-stats > div + div {
    border-left: 1px solid var(--border);
}

.hero-stats strong { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: var(--rose); line-height: 1; }
.hero-stats span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }

/* ----------------------------------------------------------------
   NAIL CAROUSEL
   ---------------------------------------------------------------- */
.nail-carousel {
    overflow: hidden;
    padding: 52px 0;
    background: var(--bg-alt);
    position: relative;
    /* Força GPU compositing própria — corrige overflow clipping em iOS Safari
       durante animações CSS; sem isto o conteúdo pode "vazar" do container */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Fade nas bordas — dissolve a junção do loop */
.nail-carousel::before,
.nail-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}
.nail-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-alt) 0%, transparent 100%);
}
.nail-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-alt) 0%, transparent 100%);
}

.nc-track {
    display: flex;
    flex-wrap: nowrap;   /* impede quebra de linha em mobile */
    gap: 18px;
    width: max-content;  /* expande para acomodar todos os itens em linha */
    -webkit-animation: nc-scroll 28s linear infinite; /* iOS Safari */
    animation: nc-scroll 28s linear infinite;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden; /* elimina flickering em mobile */
}

/* Pausa no hover */
.nail-carousel:hover .nc-track {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.nc-item {
    width: 320px;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.nc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* prefixo -webkit- garante suporte em iOS Safari / browsers antigos */
@-webkit-keyframes nc-scroll {
    0%   { -webkit-transform: translateX(0);    transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes nc-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .nc-track {
        -webkit-animation-play-state: paused;
        animation-play-state: paused;
    }
}

/* Tablet portrait — itens menores, animação ligeiramente mais rápida */
@media (max-width: 860px) {
    .nail-carousel { padding: 36px 0; }
    .nc-item { width: 250px; height: 295px; }
    /* Duração reduzida para manter fluxo visual proporcional */
    .nc-track { -webkit-animation-duration: 22s; animation-duration: 22s; }
    .nail-carousel::before,
    .nail-carousel::after { width: 80px; }
}

/* Mobile — itens mais compactos, animação mais rápida */
@media (max-width: 560px) {
    .nail-carousel { padding: 28px 0; }
    .nc-item { width: 160px; height: 200px; }
    .nc-track { -webkit-animation-duration: 16s; animation-duration: 16s; }
    .nail-carousel::before,
    .nail-carousel::after { width: 40px; }
}

/* Mobile pequeno — itens ainda mais compactos */
@media (max-width: 375px) {
    .nc-item { width: 130px; height: 165px; }
    .nc-track { -webkit-animation-duration: 14s; animation-duration: 14s; }
    .nail-carousel::before,
    .nail-carousel::after { width: 28px; }
}

/* ----------------------------------------------------------------
   SERVICES SECTION
   ---------------------------------------------------------------- */
.services-section {
    padding: 80px 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.section-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rose);
    background: var(--blush-light);
    padding: 5px 14px;
    border-radius: 999px;
}

.section-intro h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: var(--text);
}

.section-intro p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 500px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.service-card-pub {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.service-card-pub:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.scp-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blush-light), var(--blush-xlight));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--rose);
}

.service-card-pub h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.service-card-pub p {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.scp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
}

.scp-footer span { color: var(--text-muted); }
.scp-footer strong { color: var(--rose); font-family: 'Cormorant Garamond', serif; font-size: 18px; }

.scp-btn {
    display: block;
    text-align: center;
    padding: 9px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--rose);
    transition: background var(--transition), border-color var(--transition);
    margin-top: 4px;
}

.scp-btn:hover { background: var(--blush-xlight); border-color: var(--blush-deep); }

/* ----------------------------------------------------------------
   HIGHLIGHTS
   ---------------------------------------------------------------- */
.highlights-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px 80px;
}

.highlight-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.highlight-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.hi-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--blush-light), var(--blush));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--rose);
    margin: 0 auto 14px;
}

.highlight-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.highlight-item p { font-size: 13.5px; color: var(--text-muted); }

/* ----------------------------------------------------------------
   CTA SECTION
   ---------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--blush-light) 0%, var(--blush) 60%, var(--blush-deep) 100%);
    padding: 72px 28px;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-inner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: var(--text);
}

.cta-inner p { font-size: 15px; color: var(--text-muted); }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 48px 28px 24px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.footer-brand .footer-logo i { color: var(--rose); }
.footer-brand p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

.footer-col h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-col a, .footer-col p {
    display: block;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--rose); }

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-faint);
}

/* ----------------------------------------------------------------
   TOUCH & INTERACTIVIDADE — melhora tapping em dispositivos tácteis
   ---------------------------------------------------------------- */
.btn-primary-pub,
.btn-ghost-pub,
.scp-btn,
.btn-outline-small,
.mobile-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */

/* ── Tablet landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
    .hero { padding: 72px 28px 88px; }
}

/* ── Tablet portrait (≤ 860px) ── */
@media (max-width: 860px) {
    /* Navegação */
    .site-nav { display: none; }
    .mobile-toggle { display: flex; }
    /* "Acesso restrito" já está no menu móvel — ocultar no header */
    .btn-outline-small { display: none; }

    /* Hero: single column */
    .hero { min-height: 520px; }
    .hero-copy { max-width: 100%; }

    /* Footer: 2 colunas em tablet */
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── Mobile grande (≤ 640px) ── */
@media (max-width: 640px) {
    /* Header mais compacto */
    .header-inner { padding: 0 20px; height: 60px; }
    .site-logo-img { height: 52px; }

    /* Hero */
    .hero { padding: 52px 20px 68px; }
    .hero-copy { gap: 16px; }

    /* Secções — reduzir padding lateral */
    .services-section { padding: 60px 20px; }
    .highlights-section { padding: 0 20px 60px; }
    .cta-section { padding: 60px 20px; }
    .site-footer { padding: 40px 20px 20px; }
}

/* ── Mobile padrão (≤ 480px) ── */
@media (max-width: 480px) {
    .header-inner { padding: 0 16px; gap: 12px; }

    /* Hero */
    .hero { padding: 40px 16px 56px; }
    .hero-copy { gap: 14px; }
    .hero-copy p { max-width: 100%; }
    .hero-btns { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .btn-primary-pub,
    .btn-ghost-pub { justify-content: center; }
    /* Stats */
    .hero-stats > div { padding: 8px 24px; }
    .hero-stats strong { font-size: 22px; }

    /* Serviços */
    .services-section { padding: 48px 16px; }
    .services-grid { gap: 14px; }

    /* Destaques: 2 colunas para aproveitar espaço (4 itens → 2×2) */
    .highlights-section {
        padding: 0 16px 48px;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* CTA */
    .cta-section { padding: 48px 16px; }

    /* Footer: 1 coluna em mobile */
    .site-footer { padding: 36px 16px 18px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }

    /* Header logo */
    .site-logo-img { height: 48px; }

    /* Menu móvel — padding lateral consistente */
    .mobile-nav { padding: 10px 16px 14px; }
}

/* ── Mobile pequeno (≤ 375px) ── */
@media (max-width: 375px) {
    .header-inner { height: 56px; padding: 0 14px; }
    .site-logo-img { height: 44px; }

    .hero { padding: 32px 14px 48px; }
    .hero-copy { gap: 12px; }
    /* Stats — remove separadores verticais em mobile muito pequeno */
    .hero-stats > div { padding: 10px 20px; border-left: none !important; border-top: 1px solid var(--border); }
    .hero-stats > div:first-child { border-top: none; }
    .hero-stats strong { font-size: 20px; }

    /* Destaques: 1 coluna em ecrãs muito pequenos */
    .highlights-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-intro { margin-bottom: 32px; }
    /* Cards com menos padding interno */
    .service-card-pub { padding: 20px 18px; }
    .highlight-item { padding: 20px 18px; }
}

/* ── Telefone em landscape (altura ≤ 500px) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 28px 24px 36px; min-height: unset; }
    .hero-copy { gap: 10px; }
}

/* ── Suporte ultrawide (≥ 1400px) ── */
@media (min-width: 1400px) {
    .hero { padding: 100px 40px 120px; }
    .services-section { padding: 100px 40px; }
    .highlights-section { padding: 0 40px 100px; }
    .cta-section { padding: 88px 40px; }
    .site-footer { padding: 60px 40px 28px; }
}

