/* Página pública e telas de acesso — Jaíne Centro de Beleza */
:root {
  color-scheme: light;
  --navy: #172b49;
  --rose: #bd7882;
  --navy-deep: color-mix(in srgb, var(--navy) 82%, black);
  --rose-dark: color-mix(in srgb, var(--rose) 76%, black);
  --rose-pale: #f7ecea;
  --logo-bg: #f8e9e7;
  --paper: #fffdfa;
  --ink: #263143;
  --muted: #646c7b;
  --line: #eadfdd;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --shadow: 0 24px 70px rgba(23, 43, 73, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--navy); text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 14px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--rose-dark); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border: 1px solid transparent; border-radius: 999px; background: var(--navy); color: #fff; font: 700 .9rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); background: var(--navy-deep); box-shadow: 0 12px 28px rgba(23, 43, 73, .18); }
.button svg { width: 20px; height: 20px; flex: none; }
.button--small { min-height: 44px; padding: 9px 14px; font-size: .8rem; gap: 6px; }
.button--small svg { width: 16px; height: 16px; }
.topbar-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.hide-sm { display: none; }
.button--cta { letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.button--outline { border-color: var(--navy); background: transparent; color: var(--navy); }
.button--outline:hover { background: var(--navy); color: #fff; }
.button--block { width: 100%; }

/* ---------- landing ---------- */
.topbar { position: sticky; top: 0; z-index: 5; padding: 10px 0; border-bottom: 1px solid rgba(23, 43, 73, .08); background: rgba(255, 253, 250, .94); backdrop-filter: blur(8px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { color: var(--navy); font-family: var(--serif); font-size: 1.3rem; letter-spacing: .04em; line-height: 1.1; text-decoration: none; }
.brand span { display: block; font-family: var(--sans); font-size: .52rem; letter-spacing: .24em; text-transform: uppercase; }
.topnav { display: none; gap: 28px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.topnav a { text-decoration: none; padding: 10px 0; }
.topnav a:hover { color: var(--rose-dark); }

.hero { padding: 28px 0 64px; background: linear-gradient(180deg, var(--logo-bg) 0, var(--logo-bg) 38%, var(--paper) 100%); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-copy { text-align: center; }
.hero-logo { width: min(300px, 74%); margin: 0 auto 22px; mix-blend-mode: multiply; }
.hero h1 { margin-bottom: 18px; font-size: clamp(2.5rem, 11vw, 4.6rem); line-height: 1; letter-spacing: -.035em; }
.hero-name { display: block; margin-bottom: 14px; color: var(--rose-dark); font: 700 .7rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.lead { max-width: 440px; margin: 0 auto 26px; color: #536071; font-size: 1.05rem; }
.hero-photo { position: relative; width: min(420px, 100%); justify-self: center; }
.hero-photo::before { position: absolute; inset: 16px -10px -14px 16px; border: 1px solid var(--rose); border-radius: 48% 48% 22px 22px; content: ""; opacity: .7; }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 48% 48% 18px 18px; object-fit: cover; object-position: 50% 28%; box-shadow: var(--shadow); }
.photo-note { position: absolute; right: -4px; bottom: 26px; padding: 10px 16px; border-radius: 4px; background: #fff; color: var(--navy); box-shadow: 0 10px 28px rgba(23, 43, 73, .13); font-family: var(--serif); font-size: 1rem; font-style: italic; }

.intro { padding: 68px 0; background: var(--navy); color: #fff; text-align: center; }
.intro .eyebrow { color: #e9b4b9; }
.intro h2 { max-width: 720px; margin: 0 auto 18px; color: #fff; }
.intro p:last-child { max-width: 660px; margin: 0 auto; color: #dce3eb; }

.section { padding: 72px 0; }
.section--tint { background: var(--rose-pale); }
.section-heading { max-width: 670px; margin: 0 auto 34px; text-align: center; }
.section-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.section-heading h2:last-child { margin-bottom: 0; }

.services { display: grid; gap: 14px; }
.service { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.service-number { display: inline-grid; width: 34px; height: 34px; place-items: center; margin-bottom: 14px; border-radius: 50%; background: var(--rose-pale); color: var(--rose-dark); font-family: var(--serif); }
.service h3 { margin-bottom: 8px; color: var(--navy); font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.service ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .93rem; }
.service li { padding: 5px 0; border-top: 1px solid var(--line); }
.service li:first-child { border-top: 0; }

.features { display: grid; gap: 22px; }
.features article { padding-top: 16px; border-top: 2px solid var(--rose); }
.features h3 { margin-bottom: 6px; color: var(--navy); font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.features p { margin: 0; color: var(--muted); font-size: .94rem; }

.gallery { display: grid; gap: 14px; }
.gallery figure { overflow: hidden; height: 300px; margin: 0; border-radius: 6px; background: var(--rose-pale); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.035); }

.appointment { padding: 68px 0; background: var(--rose-pale); }
.appointment-card { display: grid; gap: 24px; align-items: center; padding: 30px 24px; border: 1px solid #e8d0cf; border-radius: 6px; background: rgba(255, 255, 255, .78); }
.appointment-card p { max-width: 520px; color: var(--muted); }
.appointment-card .fineprint { margin-bottom: 0; font-size: .84rem; }
.appointment-action { display: grid; justify-items: start; gap: 10px; }
.appointment-action small { color: var(--muted); }

.contact-grid { display: grid; gap: 30px; }
.contact-list { margin: 20px 0 0; }
.contact-list div { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--rose-dark); font-size: .69rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.contact-list dd { margin: 2px 0 0; color: var(--navy); font-size: 1.05rem; overflow-wrap: anywhere; }
.insta-card { padding: 30px 24px; border-radius: 6px; background: var(--navy); color: #dce3eb; }
.insta-card .eyebrow { color: #e9b4b9; }
.insta-card h3 { margin-bottom: 8px; color: #fff; font-family: var(--serif); font-size: 1.9rem; font-weight: 400; overflow-wrap: anywhere; }
.insta-card .button--outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.insta-card .button--outline:hover { background: #fff; color: var(--navy); }

.footer { padding: 24px 0 92px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; text-align: center; }
.footer p { margin: 0 0 6px; }
.footer a { color: var(--navy); font-weight: 600; }
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; z-index: 10; display: grid; width: 58px; height: 58px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #1eae69; color: #fff; box-shadow: 0 8px 25px rgba(16, 33, 59, .25); transition: transform .2s; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); }
.whatsapp-float svg { width: 28px; height: 28px; }

@media (min-width: 700px) {
  .wrap { width: min(1120px, calc(100% - 64px)); }
  .topnav { display: flex; }
  .hide-sm { display: inline; }
  .show-sm { display: none; }
  .hero { padding: 48px 0 88px; }
  .hero-grid { grid-template-columns: 1fr .82fr; gap: 56px; }
  .hero-copy { text-align: left; }
  .hero-logo { margin-inline: 0; }
  .lead { margin-inline: 0; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 30px 40px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .gallery figure { height: 380px; }
  .appointment-card { grid-template-columns: 1fr auto; padding: 42px; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 56px; }
  .footer { padding-bottom: 28px; }
  .footer .wrap { display: flex; justify-content: space-between; }
  .footer p { margin: 0; }
}
@media (min-width: 1000px) {
  .hero-grid { gap: 90px; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .gallery--stagger figure:nth-child(2) { margin-top: 34px; }
  .gallery--stagger figure:nth-child(3) { margin-top: 68px; }
}

/* ---------- acesso ---------- */
body.auth { display: grid; min-height: 100vh; min-height: 100dvh; place-content: center; padding: 24px 16px; background: linear-gradient(160deg, var(--logo-bg) 0%, var(--paper) 70%); }
.auth-card { width: min(400px, calc(100vw - 32px)); padding: 30px 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.auth-logo { display: block; width: 190px; margin: 0 auto 16px; padding: 10px 14px; border-radius: 10px; background: var(--logo-bg); }
.auth-logo img { width: 100%; }
.auth-eyebrow { margin: 0 0 4px; color: var(--rose-dark); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.auth-card h1 { margin: 0 0 20px; font-size: 1.9rem; text-align: center; }
.auth-card label { display: block; margin: 14px 0 6px; color: var(--navy); font-size: .86rem; font-weight: 600; }
.auth-card input[type="text"], .auth-card input[type="password"] { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d5d0d4; border-radius: 10px; background: #fff; color: var(--ink); font: 400 1rem var(--sans); }
.auth-card input:focus { border-color: var(--navy); outline: 3px solid color-mix(in srgb, var(--rose) 35%, transparent); outline-offset: 0; }
.auth-check { display: flex !important; align-items: center; gap: 10px; margin: 16px 0 18px !important; color: var(--muted) !important; font-weight: 400 !important; }
.auth-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.auth-card .button { margin-top: 6px; border-radius: 10px; }
.auth-help { color: var(--muted); font-size: .9rem; }
.auth-msg { margin: 0 0 6px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; }
.auth-msg--error { background: #fdecec; color: #8f1d1d; }
.auth-msg--ok { background: #e8f5ee; color: #17603c; }
.auth-links { margin: 18px 0 0; font-size: .9rem; text-align: center; }
.auth-links a, .auth-foot a { color: var(--navy); font-weight: 600; }
.auth-foot { margin: 18px 0 0; font-size: .86rem; text-align: center; }
.auth-foot a { color: var(--muted); font-weight: 400; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
