/* ════════════════════════════════════════════════════════
   BEAUTY BY JAS KAUR
   Global Design System — Luxury Editorial
   ════════════════════════════════════════════════════════ */

/* ── Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Jost:wght@200;300;400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  /* ── Palette ── */
  --white:         #FDFBF8;
  --ivory:         #F6F2EC;
  --silk:          #EDE3D9;
  --oat:           #C9BDB0;
  --linen:         #DDD4C8;
  --taupe:         #8C8178;
  --espresso:      #5A4840;
  --cacao:         #3D2E27;
  --sealskin:      #1E1B19;
  --carnelian:     #6B2D3E;

  /* ── Typography ── */
  --font-serif:    'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans:     'Jost', 'Helvetica Neue', sans-serif;

  /* ── Spacing ── */
  --space-xs:      8px;
  --space-sm:      20px;
  --space-md:      40px;
  --space-lg:      80px;
  --space-xl:      120px;
  --space-2xl:     180px;

  /* ── Layout ── */
  --max-w:         1280px;
  --col-pad:       5%;
  --section-pad:   var(--space-xl) var(--col-pad);
  --section-pad-sm:var(--space-lg) var(--col-pad);

  /* ── Motion ── */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:       cubic-bezier(0.55, 0, 1, 0.45);
  --duration:      0.45s;
  --duration-slow: 0.8s;
}

/* ════════════════════════════════════════════════════════
   RESET
════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--sealskin);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; display: block; object-fit: cover; }
a    { text-decoration: none; color: inherit; transition: color var(--duration) var(--ease); }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ════════════════════════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--sealskin);
}

h1 { font-size: clamp(3.2rem, 7vw, 8rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.5rem); }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.5rem); font-weight: 400; line-height: 1.3; }
h5 { font-size: 1rem; font-weight: 400; letter-spacing: 0.04em; }

p {
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.92;
  letter-spacing: 0.025em;
  color: var(--taupe);
}

/* ── Eyebrow labels ── */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--oat);
  display: block;
  margin-bottom: 0.9rem;
}

.eyebrow--light { color: rgba(246, 242, 236, 0.5); }
.eyebrow--dark  { color: var(--espresso); }

/* ── Dividers ── */
.divider {
  width: 28px;
  height: 1px;
  background: var(--linen);
  margin: 1.6rem 0;
  display: block;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* ════════════════════════════════════════════════════════
   LAYOUT UTILITIES
════════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--col-pad);
}

.section        { padding: var(--section-pad); }
.section--sm    { padding: var(--section-pad-sm); }
.section--dark  { background: var(--sealskin); color: var(--ivory); }
.section--dark p { color: var(--oat); }
.section--warm  { background: var(--silk); }
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }

/* ════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 15px 42px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition:
    background     var(--duration) var(--ease),
    color          var(--duration) var(--ease),
    border-color   var(--duration) var(--ease);
}

.btn--dark  { color: var(--sealskin); border-color: var(--sealskin); }
.btn--dark:hover  { background: var(--sealskin); color: var(--ivory); }

.btn--light { color: var(--ivory); border-color: rgba(246, 242, 236, 0.5); }
.btn--light:hover { background: var(--ivory); color: var(--sealskin); border-color: var(--ivory); }

.btn--filled { background: var(--sealskin); color: var(--ivory); border-color: var(--sealskin); }
.btn--filled:hover { background: var(--espresso); border-color: var(--espresso); }

.btn--ghost { color: var(--espresso); border-color: var(--linen); }
.btn--ghost:hover { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }

/* ════════════════════════════════════════════════════════
   NAVIGATION BASE
════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 28px var(--col-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background var(--duration) var(--ease),
    padding    var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.nav.scrolled {
  background: var(--white);
  padding: 18px var(--col-pad);
  box-shadow: 0 1px 0 rgba(0,0,0,0.055);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--sealskin);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav__links a {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sealskin);
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--sealskin);
  transition: width var(--duration) var(--ease);
}

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__book {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 12px 30px;
  background: var(--sealskin);
  color: var(--ivory);
  border: 1px solid var(--sealskin);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.nav__book:hover { background: transparent; color: var(--sealskin); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--sealskin);
  transition: all 0.35s var(--ease);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: min(340px, 82vw);
  height: 100dvh;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 96px 48px 48px;
  transition: right 0.5s var(--ease);
  box-shadow: -8px 0 60px rgba(0,0,0,0.07);
}

.nav__mobile.open { right: 0; }

.nav__mobile-links { display: flex; flex-direction: column; }

.nav__mobile-links a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--sealskin);
  padding: 12px 0;
  border-bottom: 1px solid var(--silk);
  transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}

.nav__mobile-links a:hover { color: var(--espresso); padding-left: 8px; }
.nav__mobile-links a.active { color: var(--espresso); }

.nav__mobile-links .nav__book-mobile {
  margin-top: 28px;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 14px 32px;
  background: var(--sealskin);
  color: var(--ivory);
  border: none;
  align-self: flex-start;
}

.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,17,15,0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
}

.nav__overlay.open { display: block; }

/* ════════════════════════════════════════════════════════
   PAGE HERO (shared)
════════════════════════════════════════════════════════ */
.page-hero {
  padding-top: 130px;
  padding-bottom: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--silk);
}

.page-hero__content { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--col-pad); }
.page-hero h1 { color: var(--sealskin); }

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
.footer {
  background: var(--sealskin);
  color: var(--ivory);
  padding: 48px var(--col-pad) 48px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}

.footer__tagline {
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  color: var(--oat);
  text-transform: uppercase;
  margin-top: 8px;
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--oat);
  margin-bottom: 22px;
}

.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 0.84rem; font-weight: 300; color: rgba(246,242,236,0.5); letter-spacing: 0.04em; transition: color var(--duration) var(--ease); }
.footer__links a:hover { color: var(--ivory); }

.footer__contact p { font-size: 0.84rem; color: rgba(246,242,236,0.5); line-height: 2.2; font-weight: 300; }
.footer__contact a { color: rgba(246,242,236,0.5); display: block; line-height: 2.2; font-size: 0.84rem; transition: color var(--duration); }
.footer__contact a:hover { color: var(--ivory); }

.footer__bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 300;
  color: rgba(246,242,236,0.22);
  letter-spacing: 0.14em;
}

/* ════════════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }
.reveal-delay-5 { transition-delay: 0.58s; }

/* ════════════════════════════════════════════════════════
   SELECTION & SCROLLBAR
════════════════════════════════════════════════════════ */
::selection { background: var(--espresso); color: var(--ivory); }

::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--oat); }
::-webkit-scrollbar-thumb:hover { background: var(--taupe); }

/* ════════════════════════════════════════════════════════
   ACCESSIBILITY
════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100px; left: 20px;
  background: var(--sealskin);
  color: var(--ivory);
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 20px; }

:focus-visible { outline: 1px solid var(--espresso); outline-offset: 3px; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --space-xl: 96px; --space-2xl: 140px; }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 56px;
    --space-xl: 72px;
    --section-pad: var(--space-lg) var(--col-pad);
  }

  .nav__links, .nav__book { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile    { display: flex; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }

  .page-hero { padding-top: 100px; padding-bottom: 48px; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.6rem, 13vw, 3.5rem); }
  h2 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
}
