/* =========================================================
   Dra. Monica Lee — Dermatologia
   style.css
   ========================================================= */

/* ---------- Variáveis ---------- */
:root {
    --white:        #ffffff;
    --sand-50:      #faf8f9;   /* fundo claro (branco levemente rosado) */
    --sand-100:     #f6f1f3;   /* rosa muito claro */
    --sand-200:     #f0e6ea;   /* rosa claro */
    --sand-300:     #e6d5dc;   /* rosa claro médio */
    --gray-light:   #f4f4f5;
    --gray-300:     #e2e0e3;   /* cinza claro (bordas) */
    --gray-500:     #9a959b;
    --text:         #3a3639;   /* texto principal */
    --text-soft:    #6f6a6e;   /* texto secundário */
    --gold:         #c97e93;   /* rosa (cor de destaque, contraste ok com branco) */
    --gold-soft:    #e3aab9;   /* rosa claro suave */
    --peach:        #f5dde4;   /* rosa claro */
    --blue-soft:    #e8eaee;   /* cinza claro */

    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

    --maxw: 1200px;
    --radius: 4px;
    --shadow-sm: 0 4px 20px rgba(59, 55, 48, 0.06);
    --shadow-md: 0 14px 40px rgba(59, 55, 48, 0.10);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    letter-spacing: 0.2px;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; }

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

.section { padding: 120px 0; }
.section-alt { background: var(--sand-50); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }

.section-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    color: var(--text);
    margin-bottom: 18px;
}

.section-lead { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    padding: 15px 32px;
    border-radius: 40px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-icon { width: 18px; height: 18px; }

.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover {
    background: var(--text);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline { background: transparent; color: var(--text); border-color: var(--gold); }
.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 26px 0;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.4s var(--ease);
}
.logo-sub {
    font-size: 0.62rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-soft);
}
.navbar.scrolled .logo-name { color: var(--text); }

.nav-links { display: flex; gap: 38px; }
.nav-links a {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--gold-soft); }
.navbar.scrolled .nav-links a { color: var(--text); }
.navbar.scrolled .nav-links a:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--white);
    transition: all 0.35s var(--ease);
}
.navbar.scrolled .nav-toggle span { background: var(--text); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, var(--sand-200), var(--sand-300) 60%, var(--peach));
    /* Substitua pela foto: background-image: url('images/banner.jpg'); */
    background-image: url('images/banner.jpg');
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.05);
    animation: heroZoom 12s ease forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(59,55,48,0.15) 0%, rgba(59,55,48,0.05) 40%, rgba(59,55,48,0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--maxw);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    text-align: right;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-eyebrow {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 18px;
}
.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero-text {
    max-width: 440px;
    font-size: 1.08rem;
    font-weight: 300;
    color: rgba(255,255,255,0.92);
    margin-bottom: 34px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 34px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    z-index: 2;
}
.hero-scroll span {
    position: absolute;
    top: 8px; left: 50%;
    width: 4px; height: 8px;
    margin-left: -2px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    80%, 100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Sobre ---------- */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: center;
}
.photo-frame {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--sand-200), var(--peach));
    background-image: url('images/perfil.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
    position: relative;
}
.photo-frame::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius);
    pointer-events: none;
}
.sobre-text .section-title,
.sobre-text .section-eyebrow { text-align: left; }
.sobre-text p { color: var(--text-soft); margin-bottom: 20px; }
.sobre-text .btn { margin-top: 12px; }

/* ---------- Tratamentos ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.card {
    background: var(--white);
    padding: 44px 28px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--gray-300);
    transition: all 0.45s var(--ease);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 62px; height: 62px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sand-100);
    color: var(--gold);
    transition: all 0.45s var(--ease);
}
.card-icon svg { width: 30px; height: 30px; }
.card:hover .card-icon {
    background: var(--gold);
    color: var(--white);
    transform: rotate(6deg);
}
.card-title { font-size: 1.35rem; margin-bottom: 12px; color: var(--text); }
.card-text { font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Formação ---------- */
.timeline {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.timeline-item {
    display: flex;
    align-items: center;
    gap: 26px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 28px 34px;
    transition: all 0.4s var(--ease);
}
.timeline-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
    border-color: var(--gold-soft);
}
.timeline-icon {
    flex-shrink: 0;
    width: 54px; height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sand-100);
    color: var(--gold);
}
.timeline-icon svg { width: 26px; height: 26px; }
.timeline-content h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 4px; }
.timeline-content p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Instagram / Eu mesma ---------- */
.instagram-handle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    font-size: 1.05rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s var(--ease);
}
.instagram-handle svg { width: 22px; height: 22px; }
.instagram-handle:hover { color: var(--text); }

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.ig-post {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--sand-100);
    border: 1px solid var(--gray-300);
    transition: all 0.45s var(--ease);
}
.ig-post img,
.ig-post iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; transition: transform 0.6s var(--ease); }
.ig-post:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-soft);
}
.ig-post:hover img { transform: scale(1.06); }

/* Overlay do ícone do Instagram ao passar o mouse */
.ig-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 126, 147, 0.0);
    color: #fff;
    opacity: 0;
    transition: all 0.4s var(--ease);
}
.ig-overlay svg { width: 40px; height: 40px; }
.ig-post:hover .ig-overlay { opacity: 1; background: rgba(201, 126, 147, 0.55); }

.instagram-cta { text-align: center; margin-top: 48px; }

/* ---------- Contato ---------- */
.contato-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 820px;
    margin: 0 auto;
}
.contato-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 46px 30px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: all 0.45s var(--ease);
}
.contato-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-soft);
}
.contato-icon {
    width: 60px; height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sand-100);
    color: var(--gold);
    margin-bottom: 8px;
    transition: all 0.45s var(--ease);
}
.contato-icon svg { width: 28px; height: 28px; }
.contato-card:hover .contato-icon { background: var(--gold); color: var(--white); }
.contato-label {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
}
.contato-value { font-size: 1.12rem; color: var(--text); font-weight: 400; }

/* ---------- Rodapé ---------- */
.footer { background: var(--text); color: var(--sand-100); padding: 64px 0 0; }
.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 44px;
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-name { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; }
.footer-role { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-soft); }
.footer-city { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: var(--sand-100);
    transition: all 0.4s var(--ease);
}
.footer-social a svg { width: 19px; height: 19px; }
.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 24px 0;
    text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }

/* ---------- WhatsApp flutuante ---------- */
.float-whatsapp {
    position: fixed;
    bottom: 26px; right: 26px;
    width: 58px; height: 58px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: transform 0.4s var(--ease);
    animation: floatPulse 2.6s infinite;
}
.float-whatsapp svg { width: 30px; height: 30px; }
.float-whatsapp:hover { transform: scale(1.1); }
@keyframes floatPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 34px rgba(37, 211, 102, 0.7); }
}

/* ---------- Animações de entrada (reveal) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .section { padding: 90px 0; }
    .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
    .sobre-photo { max-width: 420px; margin: 0 auto; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: 78%;
        max-width: 320px;
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        background: var(--white);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transition: right 0.45s var(--ease);
        padding: 40px;
    }
    .nav-links.open { right: 0; }
    .nav-links a { color: var(--text); font-size: 1rem; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .navbar.menu-open .nav-toggle span { background: var(--text); }

    .hero-content { text-align: center; align-items: center; }
    .hero-text { margin-left: auto; margin-right: auto; }
    .hero-overlay { background: linear-gradient(180deg, rgba(59,55,48,0.25), rgba(59,55,48,0.55)); }
}

@media (max-width: 560px) {
    .container { padding: 0 20px; }
    .section { padding: 74px 0; }
    .cards-grid { grid-template-columns: 1fr; }
    .contato-grid { grid-template-columns: 1fr; }
    .footer-grid { flex-direction: column; text-align: center; align-items: center; }
    .timeline-item { flex-direction: column; text-align: center; }
}

/* ---------- Acessibilidade: reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
