/* ==========================================================================
   Skin Lab Cosmetic — main stylesheet
   Edit the colours and fonts in :root to restyle the whole site.
   ========================================================================== */

:root {
  --bronze: #ad8260;        /* brand accent (logo "skin" colour) */
  --bronze-dark: #8f6a4c;
  --rose: #b7948e;
  --cream: #f7f2ee;
  --cream-dark: #efe6df;
  --ink: #1f1b18;
  --text: #4a4542;
  --muted: #7d7672;
  --line: #e7dfd8;
  --white: #ffffff;

  --font-heading: "Lustria", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Alex Brush", cursive;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 27, 24, 0.08);
  --container: 1200px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze); text-decoration: none; }
a:hover { color: var(--bronze-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section--cream { background: var(--cream); }
.section--tight { padding: 60px 0; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.script {
  display: block;
  font-family: var(--font-script);
  color: var(--bronze);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  margin-bottom: 8px;
}
.lead { font-size: 1.08rem; color: var(--muted); }

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

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid var(--bronze);
  background: var(--bronze);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--bronze); }
.btn--outline:hover { background: var(--bronze); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--ghost-light { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  /* No transform/filter/backdrop-filter here: they would trap the fixed mobile menu inside the header. */
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo img { width: 62px; height: auto; }

.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .nav-toggle-sub {
  display: block; padding: 10px 14px;
  color: var(--ink); font-size: 0.93rem; font-weight: 400;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .main-nav .nav-toggle-sub:hover { color: var(--bronze); }
.main-nav a[aria-current="page"] { color: var(--bronze); }
.has-sub { position: relative; }
.has-sub > a::after, .has-sub > .nav-toggle-sub::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  list-style: none; margin: 0; padding: 10px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.sub-menu a { padding: 7px 20px; font-size: 0.88rem; }
.sub-menu--wide { columns: 2; column-gap: 0; min-width: 500px; }
.sub-menu--wide li { break-inside: avoid; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-cta { flex-shrink: 0; }
.menu-button {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.menu-button span, .menu-button span::before, .menu-button span::after {
  display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative; content: "";
}
.menu-button span::before { position: absolute; top: -6px; }
.menu-button span::after { position: absolute; top: 6px; }

/* Page banner (inner pages) ---------------------------------------------- */
.page-banner {
  position: relative; padding: 110px 0 90px; text-align: center; color: #fff;
  background: var(--ink) url("../images/page-header.jpg") center / cover no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(31, 27, 24, 0.45); }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; margin-bottom: 12px; }
.breadcrumb { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 0.92rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.7; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--cream-dark); }

/* Hero slider (home) ----------------------------------------------------- */
.hero { position: relative; height: min(88vh, 760px); min-height: 520px; overflow: hidden; background: var(--ink); }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transition: opacity 1s ease; pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,27,24,0.65) 0%, rgba(31,27,24,0.15) 70%); }
.hero-content { position: relative; z-index: 1; max-width: 620px; color: #fff; }
.hero-content h1, .hero-content h2 { color: #fff; }
.hero-content p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 28px; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hero-dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%;
  border: 1px solid #fff; background: transparent; cursor: pointer;
}
.hero-dots button.is-active { background: #fff; }

/* Layout helpers --------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 16px; height: 8px;
  border-left: 2px solid var(--bronze); border-bottom: 2px solid var(--bronze); transform: rotate(-45deg);
}

.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.image-pair img { border-radius: 200px 200px var(--radius) var(--radius); width: 100%; object-fit: cover; }
.image-pair img:last-child { margin-bottom: 50px; }
.rounded { border-radius: var(--radius); }

/* Cards ------------------------------------------------------------------ */
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31, 27, 24, 0.12); }
.card a { color: inherit; display: block; height: 100%; }
.card-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media--wide { aspect-ratio: 4 / 3; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: 6px; font-size: 1.15rem; }
.card-body p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.card-link { display: inline-block; margin-top: 12px; color: var(--bronze); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

.feature-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.feature-card:hover img { transform: scale(1.05); }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31,27,24,0.8) 0%, rgba(31,27,24,0) 65%); }
.feature-card .feature-body { position: relative; z-index: 1; padding: 32px; }
.feature-card h3 { color: #fff; font-size: 1.7rem; }
.feature-card p { color: rgba(255,255,255,0.88); }

.icon-card { text-align: center; padding: 34px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s, transform 0.2s; }
.icon-card:hover { border-color: var(--bronze); transform: translateY(-4px); }
.icon-card a { color: inherit; }
.icon-card img { width: 64px; height: 64px; margin: 0 auto 18px; object-fit: contain; }
.icon-card h3 { margin-bottom: 8px; }
.icon-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }

.benefit { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.benefit img { width: 76px; height: 76px; object-fit: contain; flex-shrink: 0; }
.benefit h3 { margin-bottom: 4px; font-size: 1.15rem; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Hours + booking band --------------------------------------------------- */
.hours-box { background: var(--ink); color: #fff; padding: 48px; border-radius: var(--radius); }
.hours-box h2 { color: #fff; }
.hours-list { list-style: none; padding: 0; margin: 0 0 28px; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.hours-list span:last-child { color: var(--cream-dark); }

.band {
  position: relative; padding: 110px 0; color: #fff; text-align: center;
  background: var(--ink) center / cover no-repeat fixed;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(31, 27, 24, 0.55); }
.band .container { position: relative; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.88); }

/* Service detail --------------------------------------------------------- */
.service-detail { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: start; }
.service-detail .service-image { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.service-meta { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.service-meta li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.service-meta li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--cream) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23ad8260' stroke-width='2'/%3E%3C/svg%3E");
}
.service-description { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }

.faq { margin-top: 34px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 50px 18px 22px; font-weight: 500; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--bronze); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; }

/* Article ---------------------------------------------------------------- */
.article-hero { width: 100%; border-radius: var(--radius); margin-bottom: 36px; aspect-ratio: 16 / 9; object-fit: cover; }
.tag { display: inline-block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bronze); margin-bottom: 8px; }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--bronze); outline-offset: 1px; border-color: var(--bronze); }
.form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-status { display: none; padding: 14px 18px; border-radius: 10px; background: var(--cream); color: var(--ink); }
.form-status.is-visible { display: block; }
.hp-field { position: absolute !important; left: -9999px !important; }

.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; padding: 22px; background: var(--cream); border-radius: var(--radius); }
.contact-card .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--bronze); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.contact-card p { margin: 0; }
.contact-card a { color: var(--text); }
.map-embed { width: 100%; height: 420px; border: 0; display: block; }

/* Footer ----------------------------------------------------------------- */
.newsletter { background: var(--bronze); color: #fff; padding: 56px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.newsletter h2 { color: #fff; margin-bottom: 4px; }
.newsletter p { margin: 0; color: rgba(255,255,255,0.88); }
.newsletter form { display: flex; gap: 10px; flex: 1 1 380px; max-width: 520px; }
.newsletter input { flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 0; font: inherit; }
.newsletter .form-status { flex-basis: 100%; }

.site-footer { background: var(--cream); padding: 70px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo img { width: 90px; margin-bottom: 18px; }
.site-footer h3 { font-size: 1.15rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--bronze); }
.footer-hours li { display: flex; justify-content: space-between; gap: 10px; }
.footer-bottom { margin-top: 50px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Animations ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .logo img { width: 52px; }
  .menu-button { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto; padding: 10px 20px 40px;
    transform: translateX(100%); transition: transform 0.25s ease; visibility: hidden;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a, .main-nav .nav-toggle-sub { padding: 14px 4px; font-size: 1rem; width: 100%; text-align: left; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > a { flex: 1; width: auto; }
  .has-sub > a::after { display: none; }
  .sub-expand {
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
  }
  .sub-expand::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
    border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
    transform: translate(-50%, -70%) rotate(45deg); transition: transform 0.2s;
  }
  .sub-open > .sub-expand::after { transform: translate(-50%, -30%) rotate(-135deg); }
  .sub-menu, .sub-menu--wide {
    position: static; flex-basis: 100%; min-width: 0; columns: 1;
    border: 0; box-shadow: none; padding: 0 0 10px 12px; border-radius: 0;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-sub:hover > .sub-menu { display: none; }
  .sub-open > .sub-menu, .sub-open:hover > .sub-menu { display: block; }
  .sub-menu a { padding: 9px 4px; }
  .mobile-cta { display: block; margin-top: 24px; }
  .mobile-cta .btn { width: 100%; }

  .split, .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
  .band { background-attachment: scroll; }
}

@media (min-width: 981px) {
  .sub-expand, .mobile-cta { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .grid--2, .grid--3, .grid--4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { min-height: 560px; }
  .hours-box { padding: 32px 24px; }
  .page-banner { padding: 80px 0 64px; }
  .newsletter form { flex-direction: column; }
  .newsletter .btn { width: 100%; }
}
