/* ============================================================
   E GLOWSKIN  ·  WEYBA TISH SPA
   Brand system — earthy clay, gold, editorial serif
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* — Warm parchment neutrals — */
  --paper:      #F6EEE2;   /* main background */
  --paper-2:    #FBF6EE;   /* lighter card */
  --paper-3:    #EFE4D4;   /* deeper cream */
  --sand:       #E7D7C3;
  --blush:      #E3CBB3;

  /* — Earth / clay — */
  --clay:       #B5683C;   /* primary warm accent */
  --clay-deep:  #99502E;
  --sienna:     #7A4226;
  --cocoa:      #4A3528;

  /* — Espresso (text & dark sections) — */
  --espresso:   #2C2017;
  --espresso-2: #3E2E22;
  --ink:        #1C140E;

  /* — Gold — */
  --gold:       #C29A4E;
  --gold-soft:  #D9BE86;
  --gold-deep:  #A47E36;

  /* — Botanical secondary — */
  --sage:       #6E7355;
  --olive:      #565B40;

  /* — Text — */
  --text:       #2C2017;
  --text-2:     #6B5848;
  --text-3:     #93826F;
  --text-inv:   #F6EEE2;
  --line:       #DBCAB4;
  --line-2:     #CDB89D;

  /* — Type — */
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* — Radii — */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  /* — Motion — */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--clay); color: var(--paper); }

/* — Scrollbar — */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-3); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 20px; border: 3px solid var(--paper-3); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.serif-it { font-family: var(--display); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}
.eyebrow.muted { color: var(--text-3); }
.eyebrow.gold { color: var(--gold-deep); }

.amharic {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-deep);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 40px; }
section { position: relative; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 16px 30px;
  border: none; border-radius: 100px;
  transition: all .4s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-clay { background: var(--clay); color: var(--paper); }
.btn-clay:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(122,66,38,.55); }

.btn-dark { background: var(--espresso); color: var(--paper); }
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }

.btn-gold-out {
  background: transparent; color: var(--gold-soft);
  border: 1px solid rgba(217,190,134,.4);
}
.btn-gold-out:hover { border-color: var(--gold-soft); background: rgba(217,190,134,.08); }

.link-underline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--clay);
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease);
}
.link-underline:hover { gap: 14px; }

/* ============================================================
   TIBEB — Ethiopian woven border motif (gold geometric band)
   ============================================================ */
.tibeb {
  height: 14px; width: 100%;
  background-image:
    repeating-linear-gradient(135deg, var(--gold) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(45deg,  var(--gold) 0 2px, transparent 2px 9px);
  background-size: 12.7px 14px, 12.7px 14px;
  opacity: .55;
}
.tibeb-line {
  height: 1px; background: var(--line-2);
}
.diamond-row {
  display: flex; gap: 9px; align-items: center; justify-content: center;
}
.diamond {
  width: 7px; height: 7px; transform: rotate(45deg);
  border: 1px solid var(--gold-deep);
}
.diamond.fill { background: var(--gold-deep); }

/* ============================================================
   IMAGE PLACEHOLDER — art-directed
   ============================================================ */
.ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(150deg, var(--blush), var(--sand) 55%, var(--paper-3));
  display: flex; align-items: center; justify-content: center;
  color: var(--sienna);
}
.ph.clay   { background: linear-gradient(150deg, #C98B6F, #9A5232); color: #F6EEE2; }
.ph.olive  { background: linear-gradient(150deg, #8A8E6E, #565B40); color: #F6EEE2; }
.ph.cocoa  { background: linear-gradient(150deg, #6A4E3C, #2C2017); color: #E3CBB3; }
.ph.gold   { background: linear-gradient(150deg, #D9BE86, #A47E36); color: #2C2017; }
.ph.dark   { background: linear-gradient(150deg, #3E2E22, #1C140E); color: #C29A4E; }
.ph-inner {
  text-align: center; padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ph-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: .8;
}
.ph svg.leaf { opacity: .7; }
/* grain overlay */
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,238,226,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.nav.on-dark {
  background: rgba(28,20,14,.55);
  border-bottom: 1px solid rgba(217,190,134,.16);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  height: 78px; display: flex; align-items: center; justify-content: space-between;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap;
  color: var(--text-2); position: relative; padding: 6px 0;
  background: none; border: none; transition: color .3s var(--ease);
}
.nav .on-dark-text { color: rgba(246,238,226,.78); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--clay); transition: width .35s var(--ease);
}
.nav-link:hover { color: var(--clay); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--clay); }
.nav-link.active::after { width: 100%; }
.on-dark .nav-link { color: rgba(246,238,226,.92); font-weight: 600; }
.on-dark .nav-link:hover, .on-dark .nav-link.active { color: var(--gold-soft); }
.on-dark .nav-link::after { background: var(--gold-soft); }

/* ============================================================
   LOGO
   ============================================================ */
.logo { display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 0; }
.logo-mark { flex: none; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; text-align: left; white-space: nowrap; }
.logo-name {
  font-family: var(--display); font-size: 23px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--espresso); white-space: nowrap;
}
.logo-sub {
  font-family: var(--sans); font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-3);
  margin-top: 3px;
}
.on-dark .logo-name { color: var(--paper); }
.on-dark .logo-sub { color: var(--gold-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--espresso); color: var(--text-inv); padding-top: 0; }
.footer a { color: rgba(246,238,226,.7); transition: color .3s; }
.footer a:hover { color: var(--gold-soft); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px;
  padding: 80px 0 56px;
}
.footer-col h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft);
  margin: 0 0 22px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-col li { font-size: 14px; color: rgba(246,238,226,.7); }
.footer-bottom {
  border-top: 1px solid rgba(217,190,134,.16);
  padding: 26px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(246,238,226,.5);
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); }
.section-head p { color: var(--text-2); font-size: 17px; margin: 20px auto 0; max-width: 540px; }

.divider-mark {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  color: var(--gold-deep);
}
.divider-mark::before, .divider-mark::after {
  content: ""; height: 1px; width: 60px; background: var(--line-2);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Capture / print safety — always show final state */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .page { animation: none !important; opacity: 1 !important; transform: none !important; }
  .nav, .dirswitch { position: static !important; }
}

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
.page { animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--text);
  padding: 15px 16px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(181,104,60,.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* burger + mobile sheet */
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--espresso); border-radius: 2px; }
.on-dark .nav-burger span { background: var(--paper); }
.nav-sheet {
  position: fixed; inset: 0; z-index: 300; background: var(--espresso);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  animation: fadeIn .3s var(--ease);
}
.nav-sheet-close { position: absolute; top: 26px; right: 26px; background: none; border: none; color: var(--paper); font-size: 22px; }
.nav-sheet-links { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nav-sheet-link { background: none; border: none; font-family: var(--display); font-size: 32px; color: var(--paper); padding: 8px; }
.nav-sheet-link.active { color: var(--gold-soft); font-style: italic; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-book { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .wrap, .wrap-narrow { padding: 0 22px; }
}

/* ============================================================
   HOME DIRECTION SWITCHER (floating)
   ============================================================ */
.dirswitch {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 14px;
  background: rgba(28,20,14,.9); backdrop-filter: blur(12px);
  padding: 10px 10px 10px 20px; border-radius: 100px;
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.6); border: 1px solid rgba(217,190,134,.22);
}
.dirswitch-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft);
}
.dirswitch-track { display: flex; gap: 4px; background: rgba(246,238,226,.07); border-radius: 100px; padding: 4px; }
.dirswitch-track button {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(246,238,226,.7); background: none; border: none; padding: 9px 18px; border-radius: 100px;
  transition: all .35s var(--ease); white-space: nowrap;
}
.dirswitch-track button.on { background: var(--clay); color: var(--paper); }
@media (max-width: 600px) {
  .dirswitch { padding: 8px 8px 8px 14px; gap: 8px; }
  .dirswitch-label { display: none; }
  .dirswitch-track button { padding: 8px 12px; font-size: 11px; }
}
