/* ────────────────────────────────────────────────────────────
   KANYA HUNT — Shared styles for all portfolio sub-pages
   Mirrors the homepage design system. Edit here once → all
   sub-pages update.
   ──────────────────────────────────────────────────────────── */

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

:root {
  --white:      #FFFFFF;
  --linen:      #FAF7F2;
  --parchment:  #F4EFE5;
  --border:     rgba(139,100,66,0.15);
  --ink:        #1E0F06;
  --mocha:      #6B3A1F;
  --caramel:    #9B6035;
  --light-gold: #D4AA60;
  --rose:       #B87070;
  --blush:      #D4948A;
  --text-mid:   #6B3A1F;
  --text-light: #9B7A60;
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Jost', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-b);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 3.5rem; height: 74px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav-brand { text-decoration: none; display: flex; flex-direction: column; }
.nav-brand-main {
  font-family: var(--font-d);
  font-size: 1.45rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); line-height: 1;
}
.nav-brand-sub {
  font-family: var(--font-d); font-style: italic;
  font-size: 1.15rem; color: var(--mocha);
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.76rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-light); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--linen);
  padding: 0.52rem 1.4rem;
  font-size: 0.74rem; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--mocha); }

/* ── MOBILE NAV ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative; z-index: 10;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu {
  display: none; position: fixed; top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--linen); z-index: 300;
  padding: 5rem 2.5rem 3rem;
  flex-direction: column;
  border-left: 1px solid var(--border);
  transition: right 0.35s ease;
  box-shadow: -4px 0 30px rgba(30,15,6,0.08);
}
.mobile-menu.open { right: 0; }
.mobile-menu-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none;
  font-size: 1.4rem; color: var(--ink); cursor: pointer;
}
.mobile-menu-links { list-style: none; display: flex; flex-direction: column; gap: 1.8rem; }
.mobile-menu-links a {
  font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu-links a:hover { color: var(--ink); }
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(30,15,6,0.3); z-index: 250;
}
.mobile-menu-overlay.open { display: block; }

/* ── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--mocha); color: var(--linen);
  padding: 0.85rem 2rem;
  font-family: var(--font-b);
  font-size: 0.79rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s;
}
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink); color: var(--ink);
  padding: 0.85rem 2rem;
  font-family: var(--font-b);
  font-size: 0.79rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: all 0.25s;
}
.btn-secondary:hover { background: var(--ink); color: var(--linen); }

/* ── TYPOGRAPHY HELPERS ─────────────────────────────── */
.eyebrow {
  font-family: var(--font-b);
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--caramel); margin-bottom: 0.8rem;
}
.display-title {
  font-family: var(--font-d);
  font-size: clamp(2.1rem, 3vw, 3.5rem);
  font-weight: 300; color: var(--ink);
  line-height: 1.1; margin-bottom: 0.9rem;
}
.display-title em { font-style: italic; color: var(--rose); }
.divider-line {
  width: 48px; height: 1px;
  background: var(--light-gold);
  margin: 1.5rem 0 2.5rem;
}

/* ── REVEAL ANIMATIONS ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ────────────────────────────────────────────────────────────
   PORTFOLIO-SPECIFIC STYLES
   ──────────────────────────────────────────────────────────── */

/* ── PORTFOLIO HERO ─────────────────────────────────── */
.portfolio-hero {
  padding: calc(74px + 5rem) 3.5rem 4rem;
  background: var(--linen);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.portfolio-hero .eyebrow { color: var(--caramel); }
.portfolio-hero .display-title { margin: 0 auto 1.2rem; max-width: 18ch; }
.portfolio-hero-intro {
  max-width: 640px; margin: 0 auto;
  font-size: 1.05rem; color: var(--text-mid);
  line-height: 1.9;
}
.portfolio-hero-intro strong { color: var(--ink); font-weight: 500; }
.portfolio-hero .divider-line { margin: 1.8rem auto; }

/* ── PORTFOLIO GALLERY GRID ─────────────────────────── */
.portfolio-gallery {
  padding: 4rem 3.5rem;
  background: var(--white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense; /* fill gaps when feature items don't align with column flow */
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--parchment);
  aspect-ratio: 3 / 4;
  box-shadow: 0 6px 24px rgba(30,15,6,0.09), 0 2px 6px rgba(30,15,6,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30,15,6,0.13), 0 4px 10px rgba(30,15,6,0.07);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

/* Placeholder slots (visible until real photos are slotted in) */
.gallery-item.placeholder {
  background: linear-gradient(135deg, var(--parchment) 0%, var(--linen) 100%);
  border: 1px dashed var(--border);
  padding: 1rem;
  text-align: center;
  font-family: var(--font-d);
  font-style: italic;
  color: var(--caramel);
}
.placeholder-num {
  font-size: 2.4rem;
  color: var(--light-gold);
  margin-bottom: 0.3rem;
}
.placeholder-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Caption appears on hover for real images */
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(30,15,6,0.85) 0%, transparent 100%);
  color: var(--linen);
  font-family: var(--font-d);
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-item.placeholder .gallery-caption { display: none; }

/* Featured items: PORTRAIT version (default) - span 2 cols AND 2 rows for portrait photos */
/* This makes the hero photo display in its natural portrait shape, aligned with 2 stacked normal items */
.gallery-item.feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}
/* Featured items: WIDE/LANDSCAPE version - for genuinely-landscape photos */
.gallery-item.feature-wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}
/* Featured items: FULL-WIDTH version - for dramatic page closers */
.gallery-item.feature-full {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 1.2;
}

/* ── SECTION DIVIDER ────────────────────────────────── */
.section-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 0; background: var(--linen);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border); max-width: 200px;
  margin: 0 1.8rem;
}
.section-divider span {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--light-gold);
}

/* ── CRAFT DETAIL ───────────────────────────────────── */
.craft-detail {
  padding: 4rem 3.5rem;
  background: var(--white);
  text-align: center;
}
.craft-detail-inner {
  max-width: 720px; margin: 0 auto;
}
.craft-detail .eyebrow { color: var(--rose); }
.craft-detail-body {
  font-size: 1.05rem; color: var(--text-mid);
  line-height: 2; margin-bottom: 1.6rem; text-align: left;
}
.craft-detail-body strong { color: var(--ink); font-weight: 500; }
.craft-quote {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 1.4rem; color: var(--ink);
  line-height: 1.55;
  padding: 1.8rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.craft-quote::before { content: '\201C'; color: var(--blush); font-size: 1.5em; vertical-align: -0.25em; margin-right: 0.05em; }
.craft-quote::after { content: '\201D'; color: var(--blush); font-size: 1.5em; vertical-align: -0.25em; margin-left: 0.05em; }

/* ── PORTFOLIO CTA ──────────────────────────────────── */
.portfolio-cta {
  padding: 4rem 3.5rem;
  background: var(--parchment);
  text-align: center;
  border-top: 1px solid var(--border);
}
.portfolio-cta .display-title { max-width: 22ch; margin: 0 auto 1.2rem; }
.portfolio-cta-body {
  max-width: 560px; margin: 0 auto 2rem;
  font-size: 1.02rem; color: var(--text-mid); line-height: 1.85;
}
.portfolio-cta-buttons {
  display: inline-flex; gap: 0.9rem; flex-wrap: wrap;
  justify-content: center;
}

/* ── WEEKEND CAKES SPECIAL ──────────────────────────── */
.weekend-join {
  padding: 4rem 3.5rem;
  background: linear-gradient(135deg, var(--linen) 0%, var(--parchment) 100%);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.weekend-join-inner { max-width: 680px; margin: 0 auto; }
.weekend-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.weekend-step {
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.weekend-step-day {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--rose);
  margin-bottom: 0.3rem;
}
.weekend-step-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  padding: 2.5rem 3.5rem;
}
.footer-brand-row {
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: var(--font-d);
  font-size: 1.32rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  display: block; line-height: 1.2;
}
.footer-brand-tagline {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 1rem;
  color: var(--caramel);
}
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-col-title {
  font-size: 0.75rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--rose);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex; flex-direction: column;
  gap: 0.5rem; list-style: none;
}
.footer-links a {
  font-size: 1rem; color: var(--text-mid);
  text-decoration: none; transition: color 0.2s;
  font-family: var(--font-d);
}
.footer-links a:hover { color: var(--mocha); }
.footer-contact-items { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact-items .fc-label {
  font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rose);
}
.footer-contact-items .fc-val {
  font-size: 1rem; color: var(--text-mid); font-family: var(--font-d);
}
.footer-contact-items .fc-val a { color: var(--text-mid); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--text-light); }

/* ────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
   ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav {
    padding: 0 1.2rem;
    padding-top: max(env(safe-area-inset-top, 0px), 1rem);
    height: calc(60px + max(env(safe-area-inset-top, 0px), 1rem));
  }
  .nav-brand { flex-direction: row; align-items: baseline; gap: 0.5rem; }
  .nav-brand-main { font-size: 1.05rem; letter-spacing: 0.08em; }
  .nav-brand-sub { font-size: 0.9rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .portfolio-hero {
    padding: calc(60px + 2.5rem) 1.2rem 2.5rem;
  }
  .portfolio-hero-intro { font-size: 0.96rem; line-height: 1.75; }

  .portfolio-gallery { padding: 2rem 1.2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .gallery-item.feature { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 4; }
  .gallery-item.feature-wide { grid-column: span 2; aspect-ratio: 3 / 2; }

  .section-divider { padding: 1.5rem 0; }
  .section-divider::before, .section-divider::after { margin: 0 1rem; max-width: 80px; }

  .craft-detail { padding: 2.5rem 1.2rem; }
  .craft-detail-body { font-size: 0.96rem; line-height: 1.85; }
  .craft-quote { font-size: 1.15rem; padding: 1.2rem 0; }

  .portfolio-cta { padding: 2.5rem 1.2rem; }

  .weekend-join { padding: 2.5rem 1.2rem; }
  .weekend-flow { grid-template-columns: 1fr; gap: 0.8rem; margin: 1.5rem 0; }

  footer { padding: 1.5rem 1.2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; padding-bottom: 1.2rem; margin-bottom: 1rem; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.3rem; }

  .display-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.feature { aspect-ratio: 3 / 4; grid-column: auto; }
  .gallery-item.feature-wide { grid-column: auto; aspect-ratio: 3 / 2; }
}

/* Hide hover captions on touchscreens — no hover means captions stick on tap */
@media (hover: none) {
  .gallery-caption { display: none; }
}
