/* =========================================================
   Chic Sphere Nail & Beauty Studio — styles
   Palette: warm ivory, taupe, espresso, muted rose
   ========================================================= */

:root {
  --ivory: #F8F3EA;
  --ivory-glass: rgba(248, 243, 234, 0.7);
  --taupe: #F1E9DD;
  --line: #E5D8C7;
  --line-soft: #EFE4D5;
  --input-line: #C2A98C;
  --espresso: #2E2420;
  --espresso-2: #46382F;
  --text-muted: #6B5D52;
  --text-soft: #8A6558;
  --rose: #9E5563;        /* text-safe rose */
  --rose-display: #B76E79;
  --rose-on-dark: #CE8A93;
  --wa-green: #25954C;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--rose); }
a:hover { color: #7E4350; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

section[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--espresso); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rose);
}
.eyebrow-rose { color: var(--rose-on-dark); }

.display {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6vw, 82px); line-height: 1.02; letter-spacing: -0.02em;
}
.display em, .h2 em { font-style: italic; }
.display em { color: var(--rose-display); }

.h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4vw, 54px); line-height: 1.06; letter-spacing: -0.01em;
}
.lead { margin: 0; max-width: 500px; font-size: 19px; color: var(--text-muted); }
.muted { margin: 0; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 32px; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--espresso); color: #fff; }
.btn-dark:hover { background: #17110f; color: #fff; }
.btn-outline { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--ivory); }
.btn-glass { background: var(--ivory-glass); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.wa-icon { fill: var(--wa-green); flex-shrink: 0; }
.btn-outline:hover .wa-icon { fill: #6fd296; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 234, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  min-height: var(--header-h); padding-top: 14px; padding-bottom: 14px;
}
.brand img { height: 56px; width: auto; }

.site-nav { display: flex; gap: 8px 28px; align-items: center; }
.site-nav a { color: var(--espresso); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--rose); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--input-line); border-radius: 999px; }
.lang-toggle button {
  min-height: 36px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--espresso); font-weight: 600; font-size: 13px; cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--espresso); color: #fff; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--input-line); border-radius: 999px;
  background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--espresso); transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 680px; display: flex; align-items: center; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--ivory) 0%, rgba(248,243,234,.92) 18%, rgba(248,243,234,.55) 34%, rgba(248,243,234,0) 52%);
}
.hero-side {
  position: absolute; left: 32px; top: 50%; z-index: 1;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: #9A8B7E; white-space: nowrap;
}
.hero-inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero-copy { max-width: 600px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }

/* ---------- Strip ---------- */
.strip { background: var(--espresso); color: #F3E7DA; padding: 18px 0; overflow: hidden; }
.strip-track { display: inline-flex; white-space: nowrap; animation: marquee 28s linear infinite; }
.strip-track span { font-family: var(--serif); font-size: 22px; letter-spacing: .14em; word-spacing: .5em; }
.strip-track i { font-style: normal; color: var(--rose-on-dark); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--taupe); }
.section-dark { background: var(--espresso); color: #F3E7DA; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; max-width: 640px; }

/* ---------- Treatments ---------- */
.treatments { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px 80px; align-items: start; }
.treat-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.treat-photo { margin-top: 8px; height: 560px; border-radius: var(--radius-md); overflow: hidden; background: #EADBC9; }
.treat-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

.help-card { padding: 24px; border-radius: var(--radius-md); background: var(--taupe); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.help-card h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; }
.help-card p { margin: 0; font-size: 15px; color: var(--text-muted); }
.help-card .btn { margin-top: 6px; }

.price-list { display: flex; flex-direction: column; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.price-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-name, .price { font-family: var(--serif); font-size: 23px; }
.price { flex-shrink: 0; }
.price-incl { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--rose); }
.extra-title { margin: 40px 0 0; font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--text-muted); }
.extra-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.extra-row strong { font-weight: 600; flex-shrink: 0; }
.extra-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-desc { display: block; margin-top: 4px; max-width: 46ch; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.price-desc-note { margin-top: 2px; font-size: 13px; font-style: italic; color: var(--text-soft); }
.extra-row .price-desc { margin-top: 2px; font-size: 13px; }
.price-notes { margin: 24px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.g-item { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #E2CFC4; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 20px 18px;
  background: linear-gradient(transparent, rgba(46, 36, 32, .72));
  color: var(--ivory); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.g-a { grid-column: span 5; height: 520px; }
.g-b { grid-column: span 7; height: 520px; }
.g-c { grid-column: span 7; height: 440px; }
.g-d { grid-column: span 5; height: 440px; }
@media (hover: hover) { .g-item:hover img { transform: scale(1.05); } }

/* ---------- Approach ---------- */
.approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 80px; align-items: center; }
.approach-photo { aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: var(--espresso-2); }
.approach-photo img { width: 100%; height: 100%; object-fit: cover; }
.approach-copy { display: flex; flex-direction: column; gap: 22px; }
.approach-body { margin: 0; font-size: 18px; color: #E4D6C7; max-width: 520px; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; }
.steps li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid #4A3C32; }
.step-n { font-family: var(--serif); font-size: 22px; color: var(--rose-on-dark); min-width: 40px; }
.steps div { display: flex; flex-direction: column; gap: 4px; }
.steps strong { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.steps div span { color: #D7C3B4; }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px 72px; align-items: start; }
.booking-aside { display: flex; flex-direction: column; gap: 24px; }
.booking-aside .muted { max-width: 440px; }
.location-note {
  display: flex; gap: 12px; align-items: flex-start; max-width: 440px;
  border-left: 3px solid var(--rose-display); background: var(--taupe);
  padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--rose-display);
}
.location-note svg { flex-shrink: 0; margin-top: 3px; }
.location-note p { margin: 0; color: #4A4030; font-size: 15px; }
.booking-photo { max-width: 440px; height: 300px; border-radius: var(--radius-lg); overflow: hidden; background: #E7D3C9; }
.booking-photo img { width: 100%; height: 100%; object-fit: cover; }

.booking-form-wrap { padding: 40px; border-radius: 28px; background: var(--taupe); }
.booking-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--input-line); border-radius: var(--radius-sm);
  background: #fff; font-size: 16px;
}
.field textarea { padding: 12px 16px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232E2420' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; border-color: var(--rose); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #B3261E; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #F6DEDC; color: #7A1F1A; font-size: 15px; }
.or-divider { display: flex; align-items: center; gap: 14px; color: var(--text-soft); font-size: 13px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: #DCCDBA; }
.form-hint { margin: 0; font-size: 13px; color: var(--text-soft); text-align: center; }
.form-success { text-align: center; padding: 40px 12px; }
.form-success h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 32px; }
.form-success p { margin: 0; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 36px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 300px; font-size: 14px; color: var(--text-muted); }
.footer-brand img { height: 52px; width: auto; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-h { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.footer-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--espresso); font-weight: 600; }
.footer-link svg { color: var(--rose); flex-shrink: 0; }
.footer-plain { color: var(--text-muted); font-weight: 400; }
.social { display: flex; gap: 12px; }
.social a {
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--input-line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--espresso);
  transition: background .2s ease, color .2s ease;
}
.social a:hover { background: var(--espresso); color: var(--ivory); }
.footer-handle { font-size: 14px; color: var(--text-muted); }
.footer-bottom { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--text-soft); }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .g-item img, .btn, .social a, .menu-toggle span { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .hero-side { left: 24px; }
  .hero-inner { padding-left: 80px; }
}

@media (max-width: 1100px) {
  .hero-media { width: 50%; }
}

@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .brand img { height: 46px; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 18px; border-top: 1px solid var(--line-soft); }
  .site-nav a:first-child { border-top: 0; }

  .treatments, .approach, .booking { grid-template-columns: minmax(0, 1fr); }
  .treat-aside { position: static; }
  .treat-photo { height: 440px; }
  .approach-photo { max-width: 620px; }
  .booking-photo { display: none; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .g-a, .g-b, .g-c, .g-d { grid-column: span 1; height: 420px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; width: 100%; height: 340px; }
  .hero-fade { background: linear-gradient(to top, var(--ivory) 0%, rgba(248,243,234,.6) 22%, rgba(248,243,234,0) 50%); }
  .hero-inner { margin-top: -56px; padding: 0 20px 56px; }
  .hero-side { display: none; }
  .hero-copy { gap: 20px; }
  .lead { font-size: 17px; }
  .btn-row { flex-direction: column; align-self: stretch; }
  .btn-row .btn { width: 100%; }

  .strip { padding: 14px 0; }
  .strip-track span { font-size: 18px; }
  .treat-photo { height: 340px; }
  .price-name, .price { font-size: 20px; }
  .price-row { padding: 16px 0; }

  .booking-form-wrap { padding: 24px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .mobile-bar {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(248, 243, 234, 0.96); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; padding: 0 22px; }
  .mobile-bar .btn-dark { flex: 1; }
}

@media (max-width: 520px) {
  .lang-toggle button { min-width: 40px; padding: 0 10px; }
  .header-actions { gap: 10px; }
  .brand img { height: 40px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .g-a, .g-b, .g-c, .g-d { height: 400px; }
}
