/* Maganda Hair Salon — tropical warm: coral, teal, sand. Libre Baskerville + Mulish. Split hero, wave dividers, alternating rows. */
:root {
  --coral: #f97316;
  --coral-d: #c2410c;
  --coral-soft: #ffe8d6;
  --teal: #0d9488;
  --teal-d: #0b5f58;
  --teal-deep: #083f3b;
  --sand: #f5e9d6;
  --sand-2: #fbf5ec;
  --ink: #1d2a2b;
  --muted: #5b6766;
  --line: rgba(13, 148, 136, 0.18);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Mulish", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--sand-2); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(251, 245, 236, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
header.site.scrolled { box-shadow: 0 10px 30px rgba(8, 63, 59, 0.08); border-color: var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 22px; height: 76px; }
.logo { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.logo svg { width: 42px; height: 42px; flex-shrink: 0; }
.logo b { font-family: var(--serif); font-size: 21px; color: var(--teal-deep); display: block; line-height: 1.1; }
.logo small { display: block; white-space: nowrap; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--coral-d); font-weight: 800; }
nav.main { display: flex; gap: 26px; font-weight: 700; font-size: 15px; }
nav.main a { color: var(--muted); position: relative; padding: 6px 0; }
nav.main a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; border-radius: 3px; background: var(--coral); transition: left .25s, right .25s; }
nav.main a:hover, nav.main a.active { color: var(--teal-deep); }
nav.main a:hover::after, nav.main a.active::after { left: 0; right: 0; }
.call-btn { background: var(--teal); color: #fff; font-weight: 800; font-size: 15px; padding: 11px 20px; border-radius: 999px; white-space: nowrap; transition: background .2s, transform .2s; }
.call-btn:hover { background: var(--teal-d); transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--teal-deep); padding: 4px; }

/* Status pill */
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--teal-deep); white-space: nowrap; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.status-pill.open::before { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); animation: pulse 2.2s infinite; }
.status-pill.closed::before { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; padding: 15px 26px; border-radius: 999px; font-size: 16px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn.primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(249, 115, 22, .32); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(249, 115, 22, .4); background: #ea580c; }
.btn.ghost { border: 2px solid var(--teal); color: var(--teal-d); }
.btn.ghost:hover { background: var(--teal); color: #fff; }
.btn.light { background: #fff; color: var(--teal-deep); }

/* Hero — split, wave bottom */
.hero { position: relative; background: var(--sand); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .22), transparent 68%); top: -160px; left: -140px; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; padding-top: 64px; padding-bottom: 120px; position: relative; }
.hero .copy > * { animation: rise .8s cubic-bezier(.22, 1, .36, 1) both; }
.hero .copy > *:nth-child(2) { animation-delay: .08s; }
.hero .copy > *:nth-child(3) { animation-delay: .16s; }
.hero .copy > *:nth-child(4) { animation-delay: .24s; }
.hero .copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.eyebrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.tag { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; padding: 8px 14px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-d); }
.hero h1 { font-size: clamp(36px, 5vw, 58px); color: var(--teal-deep); letter-spacing: -.01em; }
.hero h1 em { color: var(--coral-d); font-style: italic; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; animation: float-in 1s .15s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes float-in { from { opacity: 0; transform: translateX(30px) scale(.97); } }
.hero-art .frame { border-radius: 46% 54% 40% 60% / 52% 38% 62% 48%; overflow: hidden; aspect-ratio: 1 / 1.05; box-shadow: 0 30px 60px rgba(8, 63, 59, .2); border: 8px solid #fff; }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .chip { position: absolute; left: -18px; bottom: 34px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 16px 36px rgba(8, 63, 59, .16); display: flex; gap: 12px; align-items: center; }
.hero-art .chip b { font-family: var(--serif); font-size: 28px; color: var(--coral-d); line-height: 1; }
.hero-art .chip span { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.hero-art .sun { position: absolute; right: -10px; top: -14px; width: 92px; height: 92px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; color: #fff; font-family: var(--serif); font-style: italic; font-size: 13px; text-align: center; line-height: 1.2; box-shadow: 0 12px 26px rgba(249, 115, 22, .35); animation: spin-slow 30s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero.short .wrap { grid-template-columns: 1fr; text-align: left; padding-bottom: 110px; }
.hero.short h1 { max-width: 760px; }

/* Waves */
.wave { display: block; width: 100%; height: 70px; margin-top: -1px; }
.hero > .wave { position: absolute; bottom: -1px; left: 0; }
.wave path { fill: currentColor; }
.c-white { color: #fff; } .c-sand { color: var(--sand); } .c-sand2 { color: var(--sand-2); } .c-teal { color: var(--teal-deep); } .c-coral { color: var(--coral-soft); }
.flipw { transform: scaleY(-1); }

/* Sections */
section.block { padding: 84px 0; }
.bg-white { background: #fff; }
.bg-sand { background: var(--sand); }
.bg-teal { background: var(--teal-deep); color: #e6f4f2; }
.bg-coral { background: var(--coral-soft); }
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--coral-d); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.center { text-align: center; }
.center .kicker { justify-content: center; }
h2.title { font-size: clamp(28px, 3.6vw, 40px); color: var(--teal-deep); margin-bottom: 14px; }
.bg-teal h2.title { color: #fff; }
.bg-teal .kicker { color: #fdba74; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; }
.center .sub { margin: 0 auto; }

/* Stats band */
.stats { background: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 12px 24px 54px; text-align: center; }
.stats .wrap > div { padding: 18px 10px; border-radius: 22px; background: var(--sand-2); }
.stats b { display: block; font-family: var(--serif); font-size: 38px; color: var(--teal); line-height: 1.1; }
.stats span { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Cards grid */
.grid { display: grid; gap: 22px; margin-top: 38px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border-radius: 26px; padding: 30px 28px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(8, 63, 59, .1); }
.card h3 { font-size: 20px; color: var(--teal-deep); margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card .ico { width: 54px; height: 54px; border-radius: 50% 50% 50% 14px; background: var(--coral-soft); display: grid; place-items: center; font-size: 25px; }
.card.alt .ico { background: #d5f0ec; }
.card .num { font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--coral); line-height: 1; }
.bg-sand .card { border-color: transparent; }

/* Alternating rows */
.rows { display: grid; gap: 70px; }
.row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.row.flip .media { order: 2; }
.row .media { position: relative; isolation: isolate; }
.row .media .ph { border-radius: 34px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: 0 24px 50px rgba(8, 63, 59, .16); }
.row .media .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.row .media:hover .ph img { transform: scale(1.04); }
.row .media::after { content: ""; position: absolute; z-index: -1; inset: 24px -18px -18px 24px; border-radius: 34px; background: var(--coral-soft); }
.row.flip .media::after { inset: 24px 24px -18px -18px; background: #d5f0ec; }
.prose p { font-size: 17px; color: #34413f; }
.prose strong { color: var(--teal-deep); }
.prose a { color: var(--coral-d); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Reviews */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.quote { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px; padding: 30px 26px; margin: 0; }
.quote .stars { color: #fdba74; letter-spacing: 3px; font-size: 15px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.6; color: #fff; margin: 12px 0 16px; }
.quote cite { font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9fd8d1; }
.score { display: flex; align-items: baseline; gap: 14px; justify-content: center; }
.score b { font-family: var(--serif); font-size: 64px; color: #fff; line-height: 1; }
.score span { color: #fdba74; font-size: 22px; letter-spacing: 4px; }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 14px 30px rgba(8, 63, 59, .08); }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 17px; padding: 20px 34px 20px 0; position: relative; color: var(--teal-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-d); display: grid; place-items: center; font-size: 20px; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--coral) 0%, #fb923c 55%, #f59e0b 100%); color: #fff; text-align: center; padding: 70px 24px; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.cta-band p { font-size: 18px; opacity: .95; margin-bottom: 26px; }
.cta-band .btn.light:hover { transform: translateY(-2px); }

/* Services page */
.svc { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; }
.svc .ico { width: 64px; height: 64px; font-size: 28px; }
.svc h3 { margin-top: 4px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; counter-reset: s; }
.steps .card::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--teal); opacity: .35; position: absolute; right: 22px; top: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; color: #34413f; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.gallery .ph { border-radius: 26px; overflow: hidden; aspect-ratio: 1 / 1; }
.gallery .ph:nth-child(2), .gallery .ph:nth-child(4) { border-radius: 26px 90px 26px 26px; }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gallery .ph:hover img { transform: scale(1.06); }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Contact */
.panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.panel { background: #fff; border-radius: 26px; padding: 30px; border: 1px solid var(--line); }
.panel h3 { font-size: 20px; color: var(--teal-deep); margin-bottom: 8px; }
.panel .big { font-family: var(--serif); font-size: 26px; color: var(--coral-d); display: inline-block; margin: 4px 0 8px; }
.panel p { color: var(--muted); margin: 0; }
table.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
table.hours td { padding: 12px 4px; border-bottom: 1px dashed var(--line); }
table.hours td:last-child { text-align: right; font-weight: 800; color: var(--teal-deep); }
table.hours tr.closed td:last-child { color: var(--coral-d); }
.map { border-radius: 28px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 20px 44px rgba(8, 63, 59, .14); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
footer.site { background: var(--teal-deep); color: #cfe7e3; padding-top: 10px; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding: 50px 24px 36px; }
footer.site h4 { font-family: var(--serif); color: #fff; font-size: 18px; margin: 0 0 12px; }
footer.site p, footer.site a { font-size: 15px; color: #cfe7e3; }
footer.site .cols a { display: block; margin-bottom: 6px; }
footer.site .cols a:hover { color: #fdba74; }
.footnote { border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px 24px; font-size: 13.5px; }
.footnote .credit { font-weight: 800; letter-spacing: .06em; color: #fdba74 !important; }

/* Reveal (app.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Mobile call bar (app.js) */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 63, 59, .95); backdrop-filter: blur(8px); }
.callbar a { flex: 1; text-align: center; font-weight: 800; padding: 13px 10px; border-radius: 999px; font-size: 16px; color: #fff; }
.callbar .cb-call { background: var(--coral); }
.callbar .cb-dir { border: 1px solid rgba(255, 255, 255, .35); }

.hero-pill-mobile { display: none; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .hero-art { max-width: 480px; margin: 0 auto; width: 100%; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 34px; }
  .row.flip .media { order: 0; }
  .g3, .quotes, .steps { grid-template-columns: 1fr 1fr; }
  .g3.keep3 { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  footer.site .cols > div:first-child { grid-column: 1 / -1; }
}
/* 2-col tablet layouts only where counts are even; odd sets (3) collapse to 1 col */
@media (max-width: 980px) and (min-width: 761px) {
  .quotes, .steps { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  header.site .wrap { height: 66px; gap: 12px; }
  .logo b { font-size: 18px; }
  .logo svg { width: 36px; height: 36px; }
  nav.main { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--sand-2); padding: 6px 24px 18px; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
  nav.main a { padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  nav.main a::after { display: none; }
  .menu-toggle { display: block; }
  header.site .status-pill { display: none; }
  .hero-pill-mobile { display: inline-flex; }
  .call-btn { padding: 9px 15px; font-size: 14px; }
  .call-btn .hide-sm { display: none; }
  section.block { padding: 62px 0; }
  .stats .wrap { grid-template-columns: 1fr; padding-bottom: 40px; }
  .g3, .g2, .quotes, .steps, .panels, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc { grid-template-columns: 1fr; gap: 6px; }
  .hero-art .chip { left: 8px; }
  .hero-art .sun { width: 74px; height: 74px; font-size: 11px; right: 4px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .footnote { flex-direction: column; align-items: flex-start; }
  body.has-callbar { padding-bottom: 72px; }
  .callbar { display: flex; }
  .wave { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
