/* ============================================================
   AH Family Salon — base.css (tokens, reset, shared elements)
   Palette, type scale and layout system for the whole page.
   ============================================================ */

:root {
  /* Colours */
  --beige:        #f7f4ee;
  --beige-2:      #f0ebe2;   /* slightly deeper light section */
  --beige-3:      #e5ddd0;   /* card / frame tint */
  --dark:         #241c18;
  --dark-2:       #1a1411;
  --accent:       #c2a077;
  --accent-deep:  #8a6a45;
  --ink:          #241c18;
  --ink-soft:     #6d6255;
  --ink-faint:    #a99c8b;
  --on-dark:      #f7f4ee;
  --on-dark-soft: #cdc0ad;
  --line:         #e0d7c8;
  --line-dark:    rgba(247, 244, 238, 0.16);

  /* Type (Apple Design System Typography) */
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Metrics */
  --radius-pill: 999px;
  --radius-block: 44px;
  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Glass (frosted, iOS-style surfaces) */
  --glass-blur:      blur(22px) saturate(180%);
  --glass-light:     rgba(252, 251, 249, 0.5);   /* over photos / light bg */
  --glass-light-hi:  rgba(255, 255, 255, 0.62);   /* its top edge highlight */
  --glass-dark:      rgba(247, 244, 238, 0.14);   /* over dark sections      */
  --glass-stroke:    rgba(255, 255, 255, 0.55);
  --glass-stroke-d:  rgba(247, 244, 238, 0.32);
  --glass-shadow:    0 18px 40px -18px rgba(36, 28, 24, 0.45);
  --glass-inner:     inset 0 1px 1px rgba(255, 255, 255, 0.75),
                     inset 0 -1px 1px rgba(255, 255, 255, 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
}
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Shared bits ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.display em {
  font-style: normal;
  color: var(--accent-deep);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--accent); opacity: 0.9; }

.lede {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Buttons (Apple Minimalist Luxury Design with Golden Shine) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 9px 22px;
  white-space: nowrap;
  line-height: 1.2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform, box-shadow;
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}
.btn::before {
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
              rgba(255, 255, 255, 0.22) 0%,
              rgba(255, 255, 255, 0.05) 44%,
              rgba(255, 255, 255, 0) 62%);
}
/* Shimmering Golden Beam Streak across button */
.btn::after {
  top: -50%;
  bottom: -50%;
  left: -100%;
  width: 60%;
  background: linear-gradient(90deg,
              transparent,
              rgba(255, 240, 200, 0.4) 30%,
              rgba(255, 255, 255, 0.95) 50%,
              rgba(255, 240, 200, 0.4) 70%,
              transparent);
  transform: rotate(25deg);
  transition: left 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.btn:hover::after {
  left: 140%;
}

.btn-dark {
  background: linear-gradient(158deg, rgba(46, 36, 30, 0.96), rgba(24, 18, 14, 0.94));
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
  box-shadow: 0 4px 14px -4px rgba(36, 28, 24, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-dark:hover {
  background: linear-gradient(135deg, #c59f60 0%, #8e682e 50%, #b88e4c 100%);
  border-color: rgba(255, 240, 200, 0.85);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(184, 134, 11, 0.55),
              0 0 18px rgba(226, 194, 145, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-accent {
  background: linear-gradient(158deg, #c2a077 0%, #a47a48 100%);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 4px 14px -4px rgba(164, 122, 72, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #dfbc82 0%, #a87934 50%, #d4a75e 100%);
  border-color: rgba(255, 250, 220, 0.9);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(194, 160, 119, 0.65),
              0 0 20px rgba(230, 198, 148, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(194, 160, 119, 0.45);
  color: var(--ink);
  box-shadow: 0 4px 14px -4px rgba(36, 28, 24, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.btn-outline:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 240, 230, 0.92));
  border-color: rgba(194, 160, 119, 0.9);
  color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(194, 160, 119, 0.35),
              0 0 16px rgba(226, 194, 145, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-lg { padding: 12px 30px; font-size: 14px; }
.btn-sm { padding: 7px 15px; font-size: 12px; }

/* Arch masks */
.arch {
  overflow: hidden;
  background: linear-gradient(160deg, var(--beige-3), #cfc7bc);
  border-radius: 50vw 50vw 18px 18px / 34vw 34vw 18px 18px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Decorative sparkles */
.sparkle { position: absolute; fill: var(--accent-deep); opacity: 0.55; }

/* Decorative hand-drawn lines */
.squiggle { position: absolute; color: var(--accent); opacity: 0.4; pointer-events: none; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}


/* ---------- Frosted surface (chips, cards, accordion) ---------- */
.glass {
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-shadow), var(--glass-inner);
}
/* Engines without backdrop-filter fall back to an opaque surface */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .chip { background: rgba(250, 249, 247, 0.95); }
  .btn-dark  { background: var(--dark); }
  .btn-accent { background: var(--accent); }
}

/* Older engines without overflow:clip still need the scrollbar suppressed */
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
