/* =========================================================
   SKYRA UNISEX SALON & ACADEMY — Stylesheet
   Design tokens: warm charcoal ink, ivory, bronze-gold, deep wine
   ========================================================= */

:root {
  /* Colour */
  --ink:        #201A1C;   /* deep warm charcoal-espresso */
  --ink-soft:   #3A2A2E;   /* secondary dark */
  --ivory:      #F9F3EC;   /* warm background */
  --blush:      #EFDCCF;   /* soft surface / section tint */
  --bronze:     #B9855A;   /* primary accent */
  --bronze-dim: #8C6640;
  --wine:       #7A2A3B;   /* secondary accent, used sparingly */
  --paper:      #FFFDFB;
  --line:       rgba(32,26,28,0.12);
  --line-light: rgba(249,243,236,0.18);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bronze-dim);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--bronze); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-sub { color: rgba(32,26,28,0.65); font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  min-height: 46px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn-solid { background: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: var(--wine); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-outline-light { background: transparent; color: var(--ivory); border-color: var(--line-light); padding: 13px 28px; display: inline-flex; }
.btn-outline-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.btn-ghost { background: transparent; color: var(--ink); padding: 10px 16px; font-weight: 600; }
.btn-ghost:hover { color: var(--wine); }

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.full-width { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249,243,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.brand-sub { font-size: 0.62rem; letter-spacing: 0.14em; color: var(--bronze-dim); font-weight: 700; margin-top: 3px; }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--bronze);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.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); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 96px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  font-weight: 500;
}
.hero-title em {
  font-style: italic;
  color: var(--wine);
  font-weight: 400;
}
.hero-lede { font-size: 1.08rem; max-width: 46ch; color: rgba(32,26,28,0.72); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 44px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); }
.stat-label { font-size: 0.78rem; color: rgba(32,26,28,0.6); max-width: 14ch; }

.hero-visual { position: relative; }
.hero-frame { border-radius: var(--radius); overflow: hidden; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame-main { aspect-ratio: 4/5; box-shadow: 0 30px 60px -20px rgba(32,26,28,0.35); }
.hero-frame-accent {
  position: absolute;
  width: 42%;
  aspect-ratio: 1/1;
  left: -10%;
  bottom: -8%;
  border: 6px solid var(--ivory);
  box-shadow: 0 20px 40px -14px rgba(32,26,28,0.4);
}
.hero-badge {
  position: absolute;
  top: -6%;
  right: -6%;
  width: 116px; height: 116px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 18px 34px -12px rgba(122,42,59,0.55);
}
.hero-badge-num { font-family: var(--font-display); font-size: 1.5rem; }
.hero-badge-text { font-size: 0.62rem; font-weight: 700; line-height: 1.25; margin-top: 2px; }

/* ---------- About ---------- */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-visual img { border-radius: var(--radius); aspect-ratio: 4/3.4; object-fit: cover; }
.about-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.about-points li {
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
  color: rgba(32,26,28,0.78);
}
.about-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--bronze);
}

/* ---------- Services / Menu ---------- */
.services { padding: 100px 0; background: var(--blush); }
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.menu-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.menu-tab:hover { border-color: var(--bronze); }
.menu-tab.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.menu-panel { display: none; }
.menu-panel.active { display: block; animation: fadeIn 0.4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}
.menu-name { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }
.menu-tag { font-family: var(--font-body); font-size: 0.7rem; color: var(--bronze-dim); font-weight: 700; margin-left: 8px; }
.menu-line { flex: 1; border-bottom: 1px dotted rgba(32,26,28,0.35); transform: translateY(-4px); }
.menu-price { font-weight: 700; color: var(--wine); white-space: nowrap; font-size: 0.98rem; }
.menu-note { font-size: 0.78rem; color: rgba(32,26,28,0.55); margin-top: 22px; }

/* ---------- Academy (dark band) ---------- */
.academy { background: var(--ink); color: var(--ivory); padding: 110px 0; }
.academy h2 { color: var(--ivory); }
.academy p { color: rgba(249,243,236,0.72); }
.academy-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.academy-visual img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }

.academy-steps { display: grid; gap: 26px; margin: 34px 0 36px; }
.academy-step { display: flex; gap: 20px; }
.step-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--bronze);
  border: 1px solid var(--line-light);
  border-radius: 50%;
  width: 40px; height: 40px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.academy-step h3 { color: var(--ivory); margin-bottom: 6px; }
.academy-step p { font-size: 0.92rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { padding: 100px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.span-2 { grid-column: span 2; }

.gallery-item.placeholder {
  background: linear-gradient(135deg, var(--blush), var(--bronze) 140%);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item.placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.ph-icon { font-size: 1.6rem; color: rgba(249,243,236,0.85); }

/* ---------- Testimonials (dark band) ---------- */
.testimonials { background: var(--ink); color: var(--ivory); padding: 100px 0; overflow: hidden; }
.light-h2 { color: var(--ivory); }
.testi-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.testi-track::-webkit-scrollbar { height: 5px; }
.testi-track::-webkit-scrollbar-thumb { background: var(--bronze-dim); }

.testi-card {
  flex: 0 0 340px;
  background: var(--ink-soft);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  scroll-snap-align: start;
}
.testi-card p { font-family: var(--font-display); font-size: 1.08rem; font-style: italic; line-height: 1.5; color: var(--ivory); }
.testi-card cite { font-style: normal; font-size: 0.82rem; font-weight: 700; color: var(--bronze); }

/* ---------- Visit / Map ---------- */
.visit { padding: 100px 0; }
.visit-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.visit-block { margin-bottom: 24px; }
.visit-block h3 { color: var(--bronze-dim); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: none; margin-bottom: 8px; }
.visit-block p { margin: 0; }
.visit-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.visit-map { min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -24px rgba(32,26,28,0.4); }
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0 120px; background: var(--blush); }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS Safari auto-zoom on focus */
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  width: 100%;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--bronze);
  outline-offset: 1px;
}
.form-note { font-size: 0.85rem; color: var(--wine); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(249,243,236,0.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 50px; border-bottom: 1px solid var(--line-light); }
.footer-brand .brand-mark { color: var(--ivory); font-size: 1.6rem; }
.footer-brand p { max-width: 34ch; font-size: 0.9rem; margin-top: 12px; }
.footer-social { display: flex; gap: 16px; margin-top: 18px; }
.footer-social a { font-size: 0.82rem; font-weight: 700; color: var(--bronze); }
.footer-social a:hover { color: var(--ivory); }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--bronze); margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-bottom { padding: 22px 0 30px; font-size: 0.78rem; color: rgba(249,243,236,0.5); }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,0.45);
  z-index: 90;
  transition: transform 0.25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   Mobile is the primary audience for this site, so these
   breakpoints get real attention rather than a single catch-all.
   ========================================================= */

/* ---- Tablet / small desktop (980px) ---- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .academy-grid, .visit-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual, .academy-visual { order: -1; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* ---- Phones (760px) — main mobile breakpoint ---- */
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }

  .header-inner { height: 68px; }
  .brand-mark { font-size: 1.3rem; }
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle span { width: 24px; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--ivory);
    padding: 10px 18px 22px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .main-nav.open a {
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .header-cta.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    padding: 4px 18px 22px;
    gap: 10px;
    border-bottom: 1px solid var(--line);
  }
  .header-cta.open .btn { width: 100%; }

  /* Hero */
  .hero { padding: 36px 0 56px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin: 26px 0 34px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 18px 22px; padding-top: 22px; }
  .stat-num { font-size: 1.6rem; }
  .hero-frame-accent { display: none; }
  .hero-badge { width: 84px; height: 84px; top: -14px; right: 6px; }
  .hero-badge-num { font-size: 1.2rem; }
  .hero-badge-text { font-size: 0.56rem; }
  .hero-visual { max-width: 320px; }

  /* Section rhythm */
  .about, .services, .academy, .gallery, .testimonials, .visit, .contact { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }

  /* About */
  .about-visual img { aspect-ratio: 16/11; }
  .about-points { gap: 10px; }

  /* Services / menu */
  .menu-tabs { gap: 8px; padding-bottom: 16px; margin-bottom: 24px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .menu-tab { flex: none; padding: 10px 16px; font-size: 0.84rem; }
  .menu-row { flex-wrap: wrap; gap: 4px 10px; padding: 16px 2px; }
  .menu-name { font-size: 1.02rem; white-space: normal; }
  .menu-line { display: none; }
  .menu-price { margin-left: auto; }

  /* Academy */
  .academy-visual img { aspect-ratio: 16/11; }
  .academy-steps { gap: 20px; margin: 26px 0 30px; }
  .btn-outline-light { width: 100%; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 10px; }
  .span-2 { grid-column: span 2; }

  /* Testimonials */
  .testi-track { gap: 14px; margin: 0 -18px; padding: 0 18px 8px; }
  .testi-card { flex-basis: 80vw; padding: 22px; }
  .testi-card p { font-size: 1rem; }

  /* Visit */
  .visit-map, .visit-map iframe { min-height: 280px; }
  .visit-actions .btn { flex: 1 1 auto; }

  /* Contact */
  .contact-form { gap: 14px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-brand { grid-column: span 1; }

  /* Floating WhatsApp button — keep clear of device notches/home bars */
  .whatsapp-fab {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 52px; height: 52px;
  }
}

/* ---- Small phones (420px) ---- */
@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  .hero-title { font-size: 1.9rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; display: grid; row-gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .span-2 { grid-column: span 1; }
  .testi-card { flex-basis: 86vw; }
  .brand-sub { display: none; }
}
