/* ============================================
   JEUNE AESTHETICS — "Atelier" theme layer
   Re-skins the shared component system (styles.css)
   Warm ivory · antique gold · espresso · Fraunces + Satoshi
   Palette sourced from the client's brand color reference.
   Load AFTER styles.css so these tokens win.
   ============================================ */

:root {
  --bg: #F7F4EF;          /* warm ivory paper  (client #F8F7F6, nudged warm) */
  --bg-alt: #EDE7DD;      /* oatmeal section   (client #EAE8E4 / #E4D7CB) */
  --bg-sand: #E4D7CB;     /* sand panel / card (client) */
  --black: #2E2620;       /* deep espresso ink for headings */
  --espresso: #594A40;    /* client espresso — secondary dark */
  --text: #3B332B;        /* warm brown body */
  --text-light: #8C7E6E;  /* muted taupe text */
  --accent: #A48A63;      /* antique gold / bronze (client logo stroke) */
  --accent-light: #C2AA82;
  --accent-deep: #8A7350; /* gold pressed/hover */
  --white: #ffffff;
  --border: rgba(46,38,32,0.10);
  --line: #D9CFC3;        /* taupe hairline */

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Satoshi', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Text wordmark (legacy fallback) ---------- */
.brandmark { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; line-height: 1; color: #fff; transition: color 0.35s var(--ease); }
.brandmark__mark { height: 30px; width: auto; flex-shrink: 0; }
.brandmark__text { display: inline-flex; flex-direction: column; }
.brandmark__name { font-family: var(--font-serif); font-weight: 400; font-size: 24px; letter-spacing: 0.05em; text-transform: lowercase; }
.brandmark__sub { font-family: var(--font-sans); font-weight: 500; font-size: 7.5px; letter-spacing: 0.42em; text-transform: lowercase; opacity: 0.85; margin-top: 5px; }
.nav.scrolled .brandmark { color: var(--black); }
.footer .brandmark { color: var(--black); }
.footer .brandmark__name { font-size: 21px; }
.footer .brandmark__mark { height: 27px; }

/* ---------- Real logo image — recolored per nav state ---------- */
.nav__logo-img { height: 40px; width: auto; filter: brightness(0) invert(1); transition: filter 0.35s var(--ease); }
.nav.scrolled .nav__logo-img { filter: none; }
.footer__logo-img { height: 40px; width: auto; }
@media (max-width: 768px) { .nav__logo-img { height: 30px; } }

/* ---------- Founders: two centered cards ---------- */
#founders .team__grid { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 48px; max-width: 900px; margin: 0 auto; }
@media (max-width: 860px) { #founders .team__grid { grid-template-columns: repeat(2, minmax(0, 260px)); max-width: 580px; gap: 44px; } }
@media (max-width: 560px) { #founders .team__grid { grid-template-columns: 1fr; max-width: 300px; gap: 40px; } }

/* ---------- Nav: warm ivory when scrolled ---------- */
.nav.scrolled { background: rgba(247,244,239,0.96); box-shadow: 0 1px 0 var(--border); }

/* ---------- Hero: editorial title-case serif (warm, cozy — like the sample) ---------- */
/* Lighter global scrim — the frosted content panel below carries text legibility,
   so the reception photo can breathe at any viewport size. */
.hero__overlay { background: linear-gradient(to bottom, rgba(34,26,18,0.30) 0%, rgba(34,26,18,0.16) 45%, rgba(34,26,18,0.44) 100%); }
.hero__img { filter: saturate(1.04); object-position: center 45%; }

/* Frosted editorial panel behind the hero copy */
.hero__content {
  background: rgba(34,26,18,0.34);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
  border: 1px solid rgba(251,247,240,0.16);
  border-radius: 12px;
  padding: 54px 64px 58px;
  max-width: 920px;
  margin: 0 24px;
  box-shadow: 0 40px 90px -50px rgba(20,14,8,0.55);
}
@media (max-width: 640px) {
  .hero__content { padding: 38px 22px 42px; margin: 0 14px; border-radius: 10px; }
}
.hero__title {
  font-weight: 400; text-transform: none; letter-spacing: -0.01em;
  font-size: clamp(46px, 8vw, 104px);
}
.hero__title em { font-style: italic; font-weight: 400; color: #E8D7BE; }
.hero__label { letter-spacing: 0.22em; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; }
.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { background: var(--accent); }
.btn--dark { background: var(--black); }
.btn--dark:hover { background: var(--accent); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }

/* ---------- CTA / Instagram: softer editorial casing ---------- */
.cta__title { text-transform: none; letter-spacing: -0.01em; font-weight: 400; }
.instagram__handle { font-style: italic; }

/* ---------- Brand strip → monochrome partner logos ---------- */
.brands__track { gap: 56px; align-items: center; }
.brands__logo {
  width: 96px; height: 40px; object-fit: contain; flex: 0 0 auto;
  filter: brightness(0) opacity(0.45);
  transition: filter 0.35s var(--ease);
}
.brands__logo:hover {
  /* warm antique gold — matches --accent: #A48A63 */
  filter: brightness(0) invert(1) sepia(1) saturate(1.15) brightness(0.83);
}
.brands__name {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px); color: var(--text-light);
  white-space: nowrap; opacity: 0.74; transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.brands__name:hover { color: var(--accent); opacity: 1; }
@media (max-width: 768px) {
  .brands__track { animation: none; flex-wrap: wrap; justify-content: center; gap: 22px 30px; width: auto; padding: 0 var(--gutter); }
  .brands__logo { width: 72px; height: 30px; }
}

/* ---------- Warm tweaks to shared components ---------- */
.philosophy__text { color: var(--text); }
.about__title em, .contact__heading em { color: var(--accent); font-style: italic; }
.testimonial { border: 1px solid var(--border); }
.section-title { color: var(--accent); }
.section-title::before { background: var(--accent-light); }

/* A whisper of warmth on alt sections */
.about, .cta, .testimonials { background: var(--bg-alt); }

/* ---------- Contact → click-to-get-directions card (no embedded map) ---------- */
.contact__map {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  height: 470px; gap: 12px; padding: 40px;
  background: linear-gradient(158deg, #efe9e0 0%, #e3d9ca 100%);
  color: #2e2620; text-decoration: none;
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
}
.contact__map:hover { background: linear-gradient(158deg, #e9e1d4 0%, #dacdb9 100%); }
.contact__map-pin { width: 38px; height: 38px; color: #b5654d; margin-bottom: 4px; }
.contact__map-name { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 400; }
.contact__map-addr { font-family: var(--font-sans); font-size: 13px; line-height: 1.65; opacity: 0.62; letter-spacing: 0.02em; }
.contact__map-cta { margin-top: 8px; font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: #b5654d; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- Contact → refined editorial layout (smaller, contained map) ---------- */
.contact { padding: 100px var(--gutter); }
.contact__inner { grid-template-columns: 1.12fr 0.88fr; gap: 64px; align-items: center; min-height: 0; max-width: 1240px; margin: 0 auto; }
.contact__content { order: 1; padding: 0; }
.contact__image { order: 2; align-self: stretch; max-height: 470px; border-radius: 5px; overflow: hidden; box-shadow: 0 26px 60px -32px rgba(0,0,0,0.62); }
.contact__image iframe { height: 470px !important; min-height: 0 !important; }
.contact__directions { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); border-bottom: 1px solid rgba(194,164,127,0.45); padding-bottom: 3px; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.contact__directions:hover { color: var(--white); border-color: var(--white); }
@media (max-width: 768px) {
  .contact { padding: 64px var(--gutter); }
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .contact__content { padding: 0; }
  .contact__image { max-height: 300px; }
  .contact__image iframe { height: 300px !important; }
}

/* Treatment-menu CTA under the homepage grid */
.treatments__cta { text-align: center; margin-top: 52px; }

/* ---------- Before & After results carousel ---------- */
.results { padding: 104px 0 44px; }
.results__header { text-align: center; max-width: 640px; margin: 0 auto 46px; padding: 0 var(--gutter); }
.results__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 4.6vw, 50px); color: var(--black); letter-spacing: -0.01em; margin: 10px 0 14px; }
.results__title em { font-style: italic; color: var(--accent); }
.results__sub { font-family: var(--font-sans); font-size: 15px; line-height: 1.7; color: var(--text-light); }
.results__carousel { position: relative; }
.results__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px clamp(20px, 6vw, 96px) 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.results__track::-webkit-scrollbar { display: none; }
.result-card {
  flex: 0 0 clamp(238px, 30vw, 340px); scroll-snap-align: center; margin: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  box-shadow: 0 18px 40px -30px rgba(46,38,32,0.42);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.result-card { position: relative; }
.result-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; display: block;
  filter: saturate(0.86) contrast(0.95) brightness(1.03) sepia(0.12);
  transition: filter 0.5s var(--ease);
}
/* Warm wash to unify the raw clinical photos with the brand palette; lifts on hover for true color */
.result-card::after {
  content: ''; position: absolute; inset: 10px; border-radius: 4px; pointer-events: none;
  background: linear-gradient(160deg, rgba(164,138,99,0.16), rgba(181,101,77,0.10));
  mix-blend-mode: multiply; transition: opacity 0.5s var(--ease);
}
.result-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -30px rgba(46,38,32,0.5); }
.result-card:hover img { filter: none; }
.result-card:hover::after { opacity: 0; }
.results__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.9); color: var(--black); font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.results__nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.results__nav--prev { left: clamp(8px, 3vw, 40px); }
.results__nav--next { right: clamp(8px, 3vw, 40px); }
@media (max-width: 768px) {
  .results { padding: 74px 0 28px; }
  .results__nav { display: none; }
  .result-card { flex-basis: 80vw; }
}

/* ---------- Before & After teaser button + dedicated results page ---------- */
.results__cta { text-align: center; margin-top: 32px; padding: 0 var(--gutter); }
.results-page { padding: 122px 0 92px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin-top: 6px; }
@media (max-width: 768px) { .results-page { padding: 100px 0 64px; } .results-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } }

/* ---------- Promotions page ---------- */
.promos-page { padding: 122px 0 92px; }
.promos-grid { columns: 3 300px; column-gap: 24px; margin-top: 8px; }
@media (max-width: 900px) { .promos-grid { columns: 2 280px; } }
@media (max-width: 560px) { .promos-grid { columns: 1; } .promos-page { padding: 100px 0 64px; } }
.promo-card {
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  display: inline-block; width: 100%; margin: 0 0 24px; box-sizing: border-box;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px 24px 20px;
  box-shadow: 0 14px 34px -28px rgba(46,38,32,0.4);
}
.promo-card__tag { font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.promo-card__title { font-family: var(--font-serif); font-weight: 400; font-size: 20px; line-height: 1.25; color: var(--black); margin: 0 0 12px; }
.promo-row { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(46,38,32,0.08); }
.promo-row:first-of-type { border-top: none; }
.promo-row__name { font-family: var(--font-sans); font-size: 13.5px; color: var(--text); line-height: 1.5; }
.promo-row__lead { flex: 1 1 auto; align-self: center; border-bottom: 1px dotted rgba(46,38,32,0.22); height: 1px; min-width: 10px; }
.promo-row__price { font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: var(--accent); white-space: nowrap; }
.promo-card__note { font-family: var(--font-sans); font-size: 11.5px; color: var(--text-light); margin: 12px 0 0; }
.promos-fine { max-width: 760px; margin: 30px auto 0; text-align: center; font-family: var(--font-sans); font-size: 12px; line-height: 1.7; color: var(--text-light); }

/* ---------- Before/After lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(30,24,18,0.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox.is-open { display: flex; animation: lb-fade 0.25s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(92vw, 680px); }
.lightbox__img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 30px 90px -20px rgba(0,0,0,0.65); }
.lightbox__caption { margin-top: 14px; font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.85); text-align: center; }
.lightbox__close { position: absolute; top: 20px; right: 26px; width: 44px; height: 44px; border: none; background: transparent; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: 0.82; transition: opacity 0.2s; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav--prev { left: max(14px, 3vw); }
.lightbox__nav--next { right: max(14px, 3vw); }
@media (max-width: 600px) { .lightbox { padding: 16px; } .lightbox__nav { width: 42px; height: 42px; font-size: 22px; } .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; } }

/* ---------- Contact "Visit Our Studio" band → light beige (client Tab-1 #6) ---------- */
.contact { background: #EBE2D2; }
.contact__content { color: var(--text); }
.contact__content .label { color: var(--accent); }
.contact__heading { color: var(--text); }
.contact__item strong { color: rgba(0,0,0,0.5); }
.contact__item p,
.contact__item a { color: var(--text); }
.contact__item a:hover { color: var(--accent); }
.contact__directions { color: var(--accent); }
.contact .btn--primary { background: var(--black); color: var(--white); }
.contact .btn--primary:hover { background: #2c2622; }
.contact__content .label,
.contact__directions { color: var(--accent-deep); }
.contact__directions { border-color: rgba(138,115,80,0.4); }
.contact__directions:hover { color: var(--black); border-color: var(--accent-deep); }

/* ---------- Financing page (Cherry) ---------- */
.financing { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; max-width: 1000px; margin: 24px auto 0; }
.financing__eyebrow { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.financing__brand { font-family: var(--font-serif); font-weight: 500; font-size: clamp(40px, 6vw, 60px); color: var(--accent-deep); line-height: 1; margin-bottom: 22px; }
.financing__lead { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 22px; }
.financing__benefits { list-style: none; margin: 0 0 28px; padding: 0; }
.financing__benefits li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 14px; color: var(--text); }
.financing__benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.financing__btn { margin-bottom: 18px; }
.financing__disclaimer { font-size: 11px; line-height: 1.65; color: var(--text-light); max-width: 44ch; }
.financing__disclaimer a { color: var(--accent-deep); text-decoration: underline; }
.financing__steps { background: var(--bg-sand); border-radius: 6px; padding: 40px 36px; }
.financing__steps-title { font-family: var(--font-serif); font-weight: 400; font-size: 24px; margin-bottom: 24px; color: var(--black); }
.financing__steps ol { list-style: none; margin: 0; padding: 0; }
.financing__steps li { display: flex; gap: 16px; margin-bottom: 22px; }
.financing__steps li:last-child { margin-bottom: 0; }
.financing__steps li > span { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.financing__steps li strong { display: block; font-size: 14px; margin-bottom: 3px; color: var(--black); }
.financing__steps li p { font-size: 13px; line-height: 1.6; color: var(--text-light); }
.financing__cta { text-align: center; margin-top: 64px; }
.financing__cta p { font-size: 15px; color: var(--text); margin-bottom: 20px; }
@media (max-width: 760px) { .financing { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- WCAG AA contrast pass (audit: gold 2.99:1, taupe 3.59:1 on ivory) ---------- */
:root {
  --text-light: #6E6254;   /* was #8C7E6E (3.59:1) → 5.4:1 */
  --accent-text: #7A654A;  /* text-safe gold for small type → 5.06:1 */
}
.label, .section-title, .featured__link, .why-choose__item h3 { color: var(--accent-text); }
.featured__card:hover .featured__link { color: var(--accent-deep); }
.about__title em, .contact__heading em, .featured__heading em,
.team__title em, .results__title em { color: var(--accent-deep); }

/* ---------- Keyboard access: mega-menu opens on focus, visible focus rings ---------- */
.nav__dropdown:focus-within .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu__link:focus-visible, .nav__link:focus-visible, .btn:focus-visible,
.featured__arrow:focus-visible, .menu__search-input:focus-visible {
  outline: 2px solid var(--accent-deep); outline-offset: 3px;
}
