/* ============================================================
   BEAR GOLDSMITHING — Global Stylesheet
   Aesthetic: Refined luxury atelier. Dark, warm, editorial.
   Fonts: Cormorant Garamond (serif display) + DM Sans (sans)
   ============================================================ */

@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=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --gold:        #A07830;
  --gold-light:  #C9A96E;
  --gold-pale:   #F0E6D0;
  --dark:        #111008;
  --mid:         #3a3528;
  --muted:       #7a7264;
  --cream:       #FAF8F3;
  --cream-dark:  #F0EDE4;
  --white:       #FFFFFF;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'DM Sans', sans-serif;
  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--mid);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.15;
  color: var(--dark);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-style: italic; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-style: italic; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-style: italic; }
h4 { font-size: 1.1rem; font-style: italic; font-weight: 400; }

p {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
}

.label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.italic { font-style: italic; font-family: var(--serif); font-size: 1.1rem; color: var(--mid); line-height: 1.8; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}
section { padding: 7rem 0; }
section.tight { padding: 4rem 0; }

/* ── Gold Rule ──────────────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.4rem 0;
}
.gold-rule--center { margin: 1.4rem auto; }
hr.section-divider {
  border: none;
  border-top: 1px solid var(--gold-pale);
  margin: 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  text-decoration: none;
}
.btn:hover {
  background: var(--gold);
  color: var(--cream);
}
.btn--solid {
  background: var(--gold);
  color: var(--cream);
}
.btn--solid:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--dark);
}
.btn--dark {
  border-color: var(--cream);
  color: var(--cream);
}
.btn--dark:hover {
  background: var(--cream);
  color: var(--dark);
}

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(250, 248, 243, 0.97);
  backdrop-filter: blur(8px);
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--gold-pale);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--cream);
  transition: color 0.4s var(--ease);
  white-space: nowrap;
}
.nav.scrolled .nav__logo { color: var(--dark); }

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav__links a {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,248,243,0.8);
  transition: color 0.3s var(--ease);
}
.nav.scrolled .nav__links a { color: var(--muted); }
.nav__links a:hover,
.nav.scrolled .nav__links a:hover { color: var(--gold); }
.nav__links a.active { color: var(--gold); }

.nav__book {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(250,248,243,0.5);
  color: var(--cream);
  transition: all 0.3s var(--ease);
}
.nav.scrolled .nav__book {
  border-color: var(--gold);
  color: var(--gold);
}
.nav__book:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream) !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: background 0.4s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.scrolled .nav__hamburger span { background: var(--dark); }
.nav__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav__mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav__mobile a {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  transition: color 0.3s var(--ease);
}
.nav__mobile a:hover { color: var(--gold-light); }
.nav__mobile .nav__mobile-book {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.65rem;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 7rem;
  overflow: hidden;
  background: var(--dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
}
.hero__img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1710 0%, #0d0c08 60%, #1f1a10 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__img-placeholder::after {
  content: 'YOUR HERO IMAGE';
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.12);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,5,0.85) 0%, rgba(10,9,5,0.2) 60%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero__content .label { color: var(--gold-light); margin-bottom: 1.8rem; display: block; }
.hero__content h1 { color: var(--cream); margin-bottom: 0.3rem; }
.hero__content h1 em { color: var(--gold-light); font-style: italic; }
.hero__content .hero__sub {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(250,248,243,0.65);
  font-style: italic;
  margin: 1.6rem 0 2.8rem;
  max-width: 520px;
  line-height: 1.7;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.hero__scroll span {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,248,243,0.4);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Image Placeholders ─────────────────────────────────────── */
.img-placeholder {
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(160,120,48,0.05) 20px,
    rgba(160,120,48,0.05) 21px
  );
}
.img-placeholder::after {
  content: attr(data-label);
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.5;
  position: relative;
  z-index: 1;
}

/* ── Section Intros ──────────────────────────────────────────── */
.section-intro { text-align: center; max-width: 600px; margin: 0 auto 5rem; }
.section-intro .label { display: block; margin-bottom: 1.2rem; }
.section-intro h2 { margin-bottom: 1rem; }
.section-intro p { font-size: 1rem; }

/* ── Feature Block (text + image alternating) ────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 7rem;
}
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature__text { order: 2; }
.feature.reverse .feature__image { order: 1; }
.feature__text .label { display: block; margin-bottom: 1.2rem; }
.feature__text h2 { margin-bottom: 1rem; }
.feature__text p { margin-bottom: 1.4rem; }
.feature__image { aspect-ratio: 4/5; }

/* ── Process Steps ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; margin-top: 4rem; }
.step__number {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.step h4 { margin-bottom: 0.7rem; color: var(--dark); }
.step p { font-size: 0.9rem; }

/* ── Testimonial ─────────────────────────────────────────────── */
.testimonial {
  background: var(--dark);
  padding: 7rem 0;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--cream);
  font-weight: 300;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 1.5rem;
}
.testimonial cite {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-style: normal;
}

/* ── CTA Band ────────────────────────────────────────────────── */
.cta-band {
  background: var(--cream-dark);
  padding: 6rem 0;
  text-align: center;
  border-top: 1px solid var(--gold-pale);
  border-bottom: 1px solid var(--gold-pale);
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band .italic { display: block; margin-bottom: 2.2rem; }
.cta-band p { max-width: 480px; margin: 0 auto 2.4rem; }
.cta-band__actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 5rem 0 3rem;
  color: var(--cream);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250,248,243,0.1);
  margin-bottom: 2.5rem;
}
.footer__brand h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.footer__brand p {
  font-size: 0.88rem;
  color: rgba(250,248,243,0.45);
  line-height: 1.8;
  max-width: 280px;
}
.footer__col h4 {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
  font-style: normal;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__col ul a {
  font-size: 0.88rem;
  color: rgba(250,248,243,0.5);
  transition: color 0.3s var(--ease);
}
.footer__col ul a:hover { color: var(--gold-light); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(250,248,243,0.3);
}
.footer__bottom a {
  font-size: 0.75rem;
  color: rgba(250,248,243,0.3);
  transition: color 0.3s;
}
.footer__bottom a:hover { color: var(--gold-light); }

/* ── Gallery Grid ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery-grid .gallery-item {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-grid .gallery-item .img-placeholder {
  width: 100%; height: 100%;
  transition: transform 0.6s var(--ease);
}
.gallery-grid .gallery-item:hover .img-placeholder { transform: scale(1.04); }
.gallery-grid .gallery-item--wide { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-grid .gallery-item--tall { grid-row: span 2; aspect-ratio: auto; }

/* ── About Split ─────────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 6rem;
  align-items: start;
}
.about-split__image { aspect-ratio: 3/4; position: sticky; top: 7rem; }
.about-split__text .label { display: block; margin-bottom: 1.2rem; }
.about-split__text h2 { margin-bottom: 1.4rem; }
.about-split__text p { margin-bottom: 1.4rem; }

/* ── Contact Page ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-method {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-item { border-top: 1px solid var(--gold-pale); padding-top: 1.8rem; }
.contact-item .label { display: block; margin-bottom: 0.6rem; }
.contact-item a {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--dark);
  transition: color 0.3s var(--ease);
}
.contact-item a:hover { color: var(--gold); }
.contact-item p { font-size: 0.88rem; margin-top: 0.4rem; }

/* ── Book Page ───────────────────────────────────────────────── */
.book-hero {
  background: var(--dark);
  padding: 11rem 0 7rem;
  text-align: center;
}
.book-hero h1 { color: var(--cream); }
.book-hero p { color: rgba(250,248,243,0.6); max-width: 500px; margin: 1.4rem auto 0; font-size: 1rem; }
.book-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 5rem;
}
.book-option {
  border: 1px solid var(--gold-pale);
  padding: 3rem 2.5rem;
  text-align: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.book-option:hover { border-color: var(--gold); background: rgba(160,120,48,0.03); }
.book-option .label { display: block; margin-bottom: 1rem; }
.book-option h3 { margin-bottom: 0.8rem; font-size: 1.4rem; }
.book-option p { font-size: 0.9rem; margin-bottom: 2rem; }

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-pale);
  opacity: 0.3;
}
.page-hero .label { color: var(--gold-light); display: block; margin-bottom: 1.2rem; }
.page-hero h1 { color: var(--cream); }
.page-hero p { color: rgba(250,248,243,0.55); margin-top: 1.2rem; max-width: 560px; font-size: 1.05rem; }

/* ── Engraving types ─────────────────────────────────────────── */
.engraving-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.engraving-type {
  border-top: 1px solid var(--gold-pale);
  padding-top: 1.8rem;
}
.engraving-type .label { display: block; margin-bottom: 0.6rem; }
.engraving-type h4 { margin-bottom: 0.5rem; }
.engraving-type p { font-size: 0.88rem; }

/* ── Animations ──────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav__links, .nav__book { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }
  .feature, .about-split, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .feature.reverse .feature__text { order: 1; }
  .feature.reverse .feature__image { order: 2; }
  .about-split__image { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .gallery-item--wide { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer__brand { grid-column: span 2; }
  .book-options { grid-template-columns: 1fr; }
  .engraving-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-item--wide { grid-column: span 1; aspect-ratio: 3/4; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .engraving-grid { grid-template-columns: 1fr; }
  .cta-band__actions { flex-direction: column; align-items: center; }
}
