/* ═══════════════════════════════════════════════════════
   Soho Bakery — Shared Styles (all pages)
   ═══════════════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  --espresso: #2C1810;
  --dark-roast: #3D2316;
  --walnut: #5C3A24;
  --caramel: #A0714F;
  --golden-crust: #C8963E;
  --honey: #D4A84B;
  --flour: #F5EDE3;
  --cream: #FAF6F0;
  --warm-white: #FDFBF8;
  --linen: #EDE4D8;
  --sage-subtle: #B8AFA4;
  --error: #B54234;
  --success: #5A7A52;
  --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 24, 16, 0.08);
  --shadow-lg: 0 8px 32px rgba(44, 24, 16, 0.12);
  --shadow-xl: 0 16px 48px rgba(44, 24, 16, 0.16);
  --radius: 6px;
  --radius-lg: 12px;
}

/* ── HTML & Body ── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--espresso);
  background: var(--warm-white);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.2rem); }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--golden-crust);
  margin-bottom: 1rem;
  display: block;
}

/* ═══════ NAVIGATION ═══════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

nav.scrolled {
  background: rgba(253, 251, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(44, 24, 16, 0.06);
}

/* Inner pages always show opaque nav */
body:not([data-page="home"]) nav {
  background: rgba(253, 251, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(44, 24, 16, 0.06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled .nav-inner { height: 64px; }

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  transition: height 0.3s ease;
  background: var(--espresso);
  border-radius: 8px;
  padding: 6px 10px 4px;
}

nav.scrolled .nav-logo-img { height: 44px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--walnut);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--golden-crust);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover { color: var(--espresso); }
.nav-links a:hover::after { width: 100%; }

/* Active nav link */
.nav-links a.active {
  color: var(--golden-crust);
}

.nav-links a.active::after {
  width: 100%;
}

/* Nav CTA button */
.nav-cta {
  background: var(--espresso) !important;
  color: var(--cream) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  transition: all 0.3s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--dark-roast) !important;
  transform: translateY(-1px);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
  margin: 6px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile navigation */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    background: var(--cream);
    padding: 100px 2.5rem 2rem;
    gap: 1.8rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    align-items: flex-start;
  }

  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
}

/* ═══════ BUTTONS ═══════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--espresso);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--dark-roast);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--walnut);
  border: 1.5px solid var(--caramel);
}

.btn-outline:hover {
  border-color: var(--espresso);
  color: var(--espresso);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--golden-crust);
  color: var(--warm-white);
}

.btn-gold:hover {
  background: var(--honey);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ═══════ SECTION BASE ═══════ */
section {
  padding: 7rem 2rem;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--caramel); font-size: 1.05rem; }

/* ═══════ PAGE HEADER (inner pages) ═══════ */
.page-header {
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--flour) 100%);
}

.page-header::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.07), transparent 70%);
  pointer-events: none;
}

.page-header .section-container { position: relative; z-index: 1; }

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--caramel);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.8;
}

/* Dark page header variant */
.page-header--dark {
  background: var(--espresso);
  color: var(--flour);
}

.page-header--dark::before {
  background: radial-gradient(circle, rgba(200, 150, 62, 0.06), transparent 70%);
}

.page-header--dark h1 { color: var(--flour); }
.page-header--dark p { color: var(--caramel); }
.page-header--dark .section-label { color: var(--honey); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--caramel);
  margin-bottom: 1.5rem;
  list-style: none;
}

.breadcrumb a {
  color: var(--golden-crust);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--espresso); }

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--sage-subtle);
}

.page-header--dark .breadcrumb { color: var(--caramel); }
.page-header--dark .breadcrumb a { color: var(--honey); }
.page-header--dark .breadcrumb a:hover { color: var(--flour); }
.page-header--dark .breadcrumb li + li::before { color: var(--walnut); }

/* ═══════ FOOTER (Enhanced 3-column) ═══════ */
footer {
  background: var(--dark-roast);
  padding: 4rem 2rem 2.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Column 1: Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  background: var(--espresso);
  border-radius: 6px;
  padding: 4px 8px 3px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--caramel);
  line-height: 1.7;
  max-width: 300px;
}

/* Column 2: Page links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--caramel);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--flour); }

/* Column 3: Social */
.footer-social-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--caramel);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--honey);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Footer bottom bar */
.footer-bottom {
  max-width: 1280px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--caramel);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════ SCROLLBAR ═══════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--linen); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--caramel); }
