/* SoleBride — shared styles
   Mobile-first. Used by index, collection, and product pages. */

:root {
  --alabaster: #FAF5EC;
  --alabaster-warm: #F4ECDD;
  --sand: #E5D2B3;
  --sand-deep: #D3BC97;
  --gold: #E0A94B;
  --gold-soft: #EFC97C;
  --terracotta: #B25C3C;
  --terracotta-deep: #8E4628;
  --charcoal: #2E2925;
  --charcoal-soft: #5A4F46;
  --line: #D8C8AE;
  --line-faint: rgba(46,41,37,0.12);

  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Crimson Pro", "Iowan Old Style", Georgia, serif;

  --container: 1440px;
  --gutter: clamp(18px, 4vw, 56px);

  --nav-h: 64px;
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--serif);
  color: var(--charcoal);
  background: var(--alabaster);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow.muted { color: var(--charcoal-soft); }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 300; margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 200; }
em.serif { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--terracotta); }

/* ───── NAV ───── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, padding .35s ease;
  color: #fff;
  border-bottom: 1px solid transparent;
  padding: 18px 0;
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding: 6px 0; transition: opacity .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0;
  height: 1px; background: currentColor; opacity: 0;
  transition: left .3s ease, right .3s ease, opacity .3s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { left: 0; right: 0; opacity: .7; }

.logo {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-left: 0.42em;
  white-space: nowrap;
}
.logo .dot { color: var(--gold); }

.nav-right {
  display: flex; justify-content: flex-end; align-items: center; gap: 14px;
}
.nav-icon {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.nav-icon:hover { background: rgba(255,255,255,0.12); }
.nav.is-scrolled .nav-icon:hover, .nav.is-solid .nav-icon:hover { background: rgba(46,41,37,0.06); }

.btn {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid currentColor;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  white-space: nowrap;
}
.btn:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn-solid { background: var(--charcoal); color: var(--alabaster); border-color: var(--charcoal); }
.btn-solid:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn-gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn-gold:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

.nav.is-scrolled, .nav.is-solid {
  background: rgba(250, 245, 236, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--charcoal);
  border-bottom-color: var(--line-faint);
  padding: 12px 0;
}

/* Mobile menu toggle */
.menu-toggle {
  width: 36px; height: 36px;
  display: none;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  position: relative; width: 18px; height: 1px; background: currentColor;
  display: block; transition: transform .3s, background .3s;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor;
  transition: transform .3s, top .3s;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--alabaster);
  color: var(--charcoal);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.7,0,.2,1);
  pointer-events: none;
}
.mobile-menu.is-open { transform: translateY(0); pointer-events: auto; }
.mobile-menu nav {
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--line-faint);
  padding-top: 28px;
}
.mobile-menu nav a {
  font-family: var(--sans);
  font-size: 28px;
  letter-spacing: -0.01em;
  font-weight: 300;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-faint);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu nav a em { font-family: var(--serif); font-style: italic; color: var(--terracotta); }
.mobile-menu .mobile-cta { margin-top: auto; padding-top: 32px; }
.mobile-menu .mobile-cta .btn { width: 100%; justify-content: center; padding: 18px; font-size: 12px; }
.mobile-menu .mobile-foot {
  margin-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--charcoal-soft);
}

/* ───── SECTION CHROME ───── */
section { position: relative; }
.section-pad { padding: clamp(64px, 9vh, 140px) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14ch;
  text-wrap: balance;
}
.section-head h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  color: var(--terracotta);
}
.section-head .lead {
  max-width: 38ch;
  font-size: 16px;
  color: var(--charcoal-soft);
  line-height: 1.6;
}
.section-head .eyebrow { margin-bottom: 16px; display: block; }

/* ───── FOOTER ───── */
footer {
  background: var(--alabaster);
  color: var(--charcoal);
  border-top: 1px solid var(--line-faint);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(56px, 8vh, 110px) 0 40px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col ul a {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--charcoal-soft);
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--terracotta); }
.footer-logo {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-left: 0.42em;
  margin-bottom: 16px;
}
.footer-logo .dot { color: var(--gold); }
.footer-tag {
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: var(--charcoal-soft); margin: 0 0 22px; max-width: 32ch;
}
.newsletter {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--charcoal);
  max-width: 360px;
}
.newsletter input {
  flex: 1; border: 0; background: transparent;
  padding: 12px 0; font-family: var(--serif); font-size: 16px;
  color: var(--charcoal); outline: none; min-width: 0;
}
.newsletter input::placeholder { color: var(--charcoal-soft); opacity: .7; font-style: italic; }
.newsletter button {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; padding: 12px 4px 12px 14px;
}
.newsletter button:hover { color: var(--terracotta); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, border-color .25s;
}
.socials a:hover { background: var(--charcoal); color: var(--alabaster); border-color: var(--charcoal); }
.footer-bottom {
  border-top: 1px solid var(--line-faint);
  padding: 24px 0 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--charcoal-soft);
}
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--terracotta); }

/* ───── ICONS ───── */
.icon {
  width: 16px; height: 16px; stroke: currentColor; fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.icon-lg { width: 18px; height: 18px; }

/* ───── REVEAL ───── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ───── BREAKPOINTS ───── */
@media (max-width: 1180px) {
  .nav-links { gap: 22px; font-size: 10.5px; }
  .nav-right { gap: 10px; }
  .nav .btn { padding: 11px 16px; font-size: 10.5px; letter-spacing: 0.18em; }
}
@media (max-width: 1040px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav .nav-icon[data-search], .nav .nav-icon[data-stores] { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 0; }
  .nav.is-scrolled, .nav.is-solid { padding: 10px 0; }
  .logo { font-size: 16px; letter-spacing: 0.36em; }
  .nav .btn { padding: 9px 14px; font-size: 10px; letter-spacing: 0.16em; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 32px; }
}
