/* ============================================================================
   shared.css  —  Luxe Beauty design system
   ----------------------------------------------------------------------------
   REBRAND IN 3 LINES: change --primary, --primary-dark, --accent below.
   Everything else (backgrounds, borders, hovers, shadows) derives from them.
   ========================================================================== */

:root {
  /* ===== THE ONLY 3 LINES YOU NEED TO EDIT TO RECOLOUR A SALON ===== */
  --primary:      #B76E79;   /* rose gold */
  --primary-dark: #8C4956;   /* deep rose */
  --accent:       #F5D5DC;   /* blush     */
  /* ================================================================= */

  /* derived neutrals (warm, cream-based) */
  --cream:    #FBF6F2;
  --cream-2:  #F3E9E3;
  --ink:      #3A2C2E;
  --ink-soft: #6E5B5E;
  --white:    #FFFFFF;
  --line:     rgba(140, 73, 86, 0.14);

  /* type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* spacing + shape */
  --radius:    20px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px -22px rgba(140, 73, 86, 0.45);
  --shadow-sm: 0 8px 24px -14px rgba(140, 73, 86, 0.4);
  --maxw:      1180px;
  --nav-h:     74px;
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }

/* atmospheric grain/mesh background layer */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% -5%, var(--accent) 0%, transparent 60%),
    radial-gradient(50% 45% at 5% 10%, rgba(245,213,220,0.6) 0%, transparent 55%),
    radial-gradient(40% 40% at 50% 110%, rgba(245,213,220,0.5) 0%, transparent 60%);
  opacity: 0.9;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }

/* ----- eyebrow / section heads ----- */
.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 50px); }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 18px; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(251, 246, 242, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; width: 100%; }
.logo { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 30px; margin-left: 26px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* language pills */
.lang-switch { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 3px; }
.lang-switch button {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; color: var(--ink-soft); transition: all .2s;
}
.lang-switch button.active { background: var(--white); color: var(--primary-dark); box-shadow: var(--shadow-sm); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 26px -12px var(--primary-dark); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* hamburger (mobile) */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; color: var(--primary-dark); }
.nav-toggle svg { width: 24px; height: 24px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-copy .eyebrow { animation: rise .7s both .05s; }
.hero h1 { font-size: clamp(40px, 7vw, 78px); font-weight: 500; animation: rise .7s both .12s; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); margin: 22px 0 32px; max-width: 30ch; animation: rise .7s both .22s; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: rise .7s both .32s; }
.hero-media { position: relative; animation: rise .8s both .25s; }
.hero-media img {
  width: 100%; height: clamp(360px, 52vw, 560px); object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow);
}
.hero-media::after {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 130px; height: 130px;
  background: var(--accent); border-radius: 28px; z-index: -1;
}
.hero-badge {
  position: absolute; left: -14px; bottom: 28px; background: var(--white);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-sm); display: flex; gap: 12px; align-items: center;
}
.hero-badge b { font-family: var(--serif); font-size: 26px; color: var(--primary); display: block; }
.hero-badge small { color: var(--ink-soft); font-size: 12.5px; }

/* =========================================================================
   ABOUT (icon cards)
   ========================================================================= */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--cream-2)); color: var(--primary-dark); margin-bottom: 18px;
}
.feature .icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; }

/* about split layout */
.about-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.about-split img { width: 100%; height: clamp(340px, 44vw, 480px); object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery figure { overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-sm); }
.gallery figure:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery figure:nth-child(2) { grid-column: span 3; }
.gallery figure:nth-child(3) { grid-column: span 2; }
.gallery figure:nth-child(4) { grid-column: span 1; }
.gallery figure:nth-child(5) { grid-column: span 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.07); }

/* =========================================================================
   SERVICES
   ========================================================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card .icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--cream-2)); color: var(--primary-dark);
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 22px; }
.service-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.service-card .price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 16px; border-top: 1px dashed var(--line); }
.service-card .price { font-family: var(--serif); font-size: 24px; color: var(--primary-dark); }
.service-card .price small { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.muted-note { text-align: center; color: var(--ink-soft); padding: 60px 0; font-size: 18px; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 56px); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 8px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s; }
.contact-item:hover { box-shadow: var(--shadow-sm); }
.contact-item .icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), var(--cream-2)); color: var(--primary-dark); }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.contact-item .val { font-size: 17px; color: var(--ink); margin-top: 2px; word-break: break-word; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 420px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 30px; padding: clamp(40px, 6vw, 72px); color: #fff; text-align: center;
  box-shadow: var(--shadow);
}
.cta-inner h2 { color: #fff; font-size: clamp(28px, 4.5vw, 46px); }
.cta-inner p { color: rgba(255,255,255,0.85); margin: 14px auto 28px; max-width: 46ch; }
.cta-inner .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-inner .btn-primary:hover { background: var(--accent); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: rgba(243, 233, 227, 0.4); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer .logo { font-size: 20px; }
.footer-links { display: flex; gap: 20px; align-items: center; }
.footer-links a { color: var(--ink-soft); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--primary-dark); }
.footer-copy { width: 100%; color: var(--ink-soft); font-size: 13px; margin-top: 8px; }
.admin-link { font-size: 12px; color: var(--ink-soft); opacity: .65; }
.admin-link:hover { opacity: 1; color: var(--primary); }

/* =========================================================================
   MOBILE STICKY BOOK BUTTON
   ========================================================================= */
.mobile-book {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 55;
  box-shadow: 0 16px 40px -10px var(--primary-dark);
}

/* =========================================================================
   MODAL (booking + add client)
   ========================================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(58, 44, 46, 0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fade .25s; }
.modal {
  background: var(--white); border-radius: 24px; width: 100%; max-width: 480px;
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow); animation: pop .3s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px 8px; }
.modal-head h3 { font-size: 25px; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); transition: background .2s; }
.modal-close:hover { background: var(--cream-2); }
.modal-body { padding: 12px 26px 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; letter-spacing: .01em; }
.field label .req { color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream); color: var(--ink); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.field textarea { resize: vertical; min-height: 72px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-msg { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 14px; display: none; }
.modal-msg.show { display: block; }
.modal-msg.ok { background: #E8F5E9; color: #2E7D32; }
.modal-msg.err { background: #FDECEA; color: #C62828; }

/* =========================================================================
   ADMIN
   ========================================================================= */
.admin-body { background: var(--cream); }
.admin-shell { max-width: 1080px; margin: 0 auto; padding: 28px 22px 80px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 14px; flex-wrap: wrap; }
.admin-topbar .logo { font-size: 22px; }
.warn-banner {
  background: #FFF8E1; border: 1px solid #FFE082; color: #8a6d00; border-radius: 14px;
  padding: 14px 18px; margin-bottom: 22px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start;
}
.warn-banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* login card */
.login-card { max-width: 400px; margin: 8vh auto 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 28px; margin-bottom: 6px; }
.login-card p.sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); }
.stat-card .lbl { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.stat-card .num { font-family: var(--serif); font-size: 38px; color: var(--primary-dark); margin-top: 6px; line-height: 1; }
.stat-card.accent { background: linear-gradient(140deg, var(--primary), var(--primary-dark)); border: none; }
.stat-card.accent .lbl { color: rgba(255,255,255,.8); }
.stat-card.accent .num { color: #fff; font-size: 30px; }

/* tabs */
.tabs { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.tabs button { padding: 9px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); transition: all .2s; }
.tabs button.active { background: var(--white); color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.panel { display: none; }
.panel.active { display: block; }

/* service editor rows */
.svc-row { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.svc-row .lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.svc-row .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 5px; }
.svc-row input, .svc-row textarea { width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); }
.svc-row textarea { min-height: 50px; resize: vertical; margin-top: 8px; }
.svc-row input:focus, .svc-row textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.svc-row .bottom { display: flex; align-items: flex-end; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.svc-row .price-field { max-width: 200px; }
.svc-row .bottom .spacer { flex: 1; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-danger { background: #FDECEA; color: #C62828; }
.btn-danger:hover { background: #F8C9C2; }

/* clients table */
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
table.clients { width: 100%; border-collapse: collapse; }
table.clients th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
table.clients td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
table.clients tr:last-child td { border-bottom: none; }
table.clients tr:hover td { background: var(--cream); }
.cl-name { font-weight: 600; }
.cl-sub { font-size: 12.5px; color: var(--ink-soft); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; user-select: none; transition: transform .15s; }
.badge:hover { transform: scale(1.05); }
.badge.new { background: var(--accent); color: var(--primary-dark); }
.badge.done { background: #E8F5E9; color: #2E7D32; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-soft); transition: background .2s, color .2s; }
.icon-btn:hover { background: #FDECEA; color: #C62828; }
.icon-btn svg { width: 18px; height: 18px; }
.admin-actions-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* =========================================================================
   RESPONSIVE  — breakpoints at 860px and 680px
   ========================================================================= */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 14px 24px 20px; margin: 0;
    box-shadow: var(--shadow);
  }
  .nav.menu-open .nav-links a { padding: 12px 0; font-size: 17px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { height: clamp(280px, 60vw, 380px); }
  .hero-sub { max-width: none; }
  .about-split, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mobile-book { display: flex; }
  .svc-row .lang-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .about-grid, .stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-badge { left: 8px; bottom: 12px; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
  table.clients { font-size: 13px; }
  table.clients th:nth-child(2), table.clients td:nth-child(2) { display: none; } /* hide contact col on tiny */
}
