/* ============================================
   RomanSQ — Main Stylesheet
   Vanilla CSS, no frameworks, no @import

   TABLE OF CONTENTS:
   1.  Variables
   2.  Reset & Base
   3.  Typography
   4.  Navigation
   5.  Mobile Drawer
   6.  Hero
   7.  Section Layouts
   8.  Pillars (Feature Grid)
   9.  Philosophy Block
   10. Menu Grid & Trays
   11. Story / About Blocks
   12. Reviews
   13. Craft / Pizza Page
   14. Gallery Page
   15. Connect Page
   16. Page Headers
   17. Footer
   18. Scroll Reveal
   19. Responsive
   ============================================ */


/* === 1. Variables === */

:root {
  --bg:      #F9F5EF;
  --s1:      #F0E9DE;
  --s2:      #FFFFFF;
  --rule:    #DDD3C3;
  --hi:      #BF5230;
  --text:    #1C1410;
  --t2:      #574A3C;
  --t3:      #8C7B6E;
  --primary: #BF5230;
  --secondary: #1C1410;
  --px:      clamp(24px, 6vw, 96px);
  --section: clamp(60px, 8vw, 96px);
  --nav-h:   68px;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
}


/* === 2. Reset & Base === */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background-color: var(--bg); color: var(--text); font-family: 'Jost', sans-serif; line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


/* === 3. Typography === */

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.1; color: var(--text); }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

p { color: var(--t2); font-size: 1rem; line-height: 1.75; max-width: 62ch; }

.label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t3);
}

.divider { width: 36px; height: 1px; background: var(--primary); margin: 0.85rem 0; }


/* === 4. Navigation === */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.nav.scrolled {
  background: rgba(249, 245, 239, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav.solid {
  background: rgba(249, 245, 239, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--text);
  display: flex; align-items: center; gap: 0.6rem;
  flex-shrink: 0;
}

.nav-logo-mark {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--primary);
  position: relative; flex-shrink: 0;
}

.nav-logo-mark::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--primary); opacity: 0.2;
}

.nav:not(.scrolled):not(.solid) .nav-logo { color: rgba(255,255,255,0.9); }
.nav:not(.scrolled):not(.solid) .nav-logo-mark { border-color: rgba(255,255,255,0.5); }
.nav:not(.scrolled):not(.solid) .nav-logo-mark::after { background: rgba(255,255,255,0.2); }

.nav-links { display: flex; align-items: center; gap: 2rem; }

.nav-links a {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--t2);
  transition: color 0.2s; position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--primary);
  transition: width 0.25s var(--ease);
}

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

.nav:not(.scrolled):not(.solid) .nav-links a { color: rgba(255,255,255,0.6); }
.nav:not(.scrolled):not(.solid) .nav-links a:hover,
.nav:not(.scrolled):not(.solid) .nav-links a.active { color: rgba(255,255,255,0.95); }

.nav-cta {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff;
  background: var(--primary); padding: 0.55rem 1.25rem; border-radius: 2px;
  transition: background 0.2s, transform 0.15s; flex-shrink: 0;
}

.nav-cta:hover { background: #A84825; transform: translateY(-1px); }

.nav-burger { display: none; flex-direction: column; gap: 5px; width: 32px; padding: 4px; }

.nav-burger span {
  display: block; width: 100%; height: 1.5px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav:not(.scrolled):not(.solid) .nav-burger span { background: rgba(255,255,255,0.8); }


/* === 5. Mobile Drawer === */

.drawer-overlay {
  position: fixed; inset: 0; background: rgba(28,20,16,0.5); z-index: 150;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}

.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed; top: 0; right: 0; width: min(320px, 88vw); height: 100%;
  background: var(--bg); z-index: 200;
  padding: 1.75rem 1.5rem 2rem;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  overflow-y: auto;
}

.drawer.open { transform: translateX(0); }

.drawer-close {
  align-self: flex-end; font-size: 1.4rem; line-height: 1;
  color: var(--t3); cursor: pointer; padding: 0.25rem; margin-bottom: 2rem;
  transition: color 0.2s;
}

.drawer-close:hover { color: var(--text); }

.drawer-links { display: flex; flex-direction: column; }

.drawer-links a {
  font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 600;
  color: var(--text); padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, padding-left 0.25s var(--ease);
}

.drawer-links a:last-child { border-bottom: none; }
.drawer-links a:hover { color: var(--primary); padding-left: 0.4rem; }

.drawer-order {
  display: block; text-align: center;
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; background: var(--primary);
  padding: 0.9rem 1.5rem; border-radius: 2px; margin-top: 2rem;
  transition: background 0.2s;
}

.drawer-order:hover { background: #A84825; }


/* === 6. Hero === */

.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; background: var(--secondary);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }

.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, #3D2015 0%, #1C1410 55%, #2A1208 100%);
  z-index: -1;
}

.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 0 var(--px); padding-top: var(--nav-h);
  max-width: 900px;
}

.hero-eyebrow {
  display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 10vw, 9rem); font-weight: 300;
  line-height: 0.9; color: #fff; letter-spacing: 0.01em; margin-bottom: 1rem;
}

.hero h1 em { font-style: italic; color: rgba(255,255,255,0.65); }

.hero-tagline {
  font-size: clamp(0.7rem, 1.4vw, 0.8rem); font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: 2.75rem;
}

.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: var(--primary); padding: 0.875rem 1.875rem; border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #A84825; transform: translateY(-2px); }

.btn-ghost {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3); padding: 0.875rem 1.875rem; border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.75); color: #fff; background: rgba(255,255,255,0.07); }

.btn-dark {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: var(--secondary); padding: 0.875rem 1.875rem; border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}

.btn-dark:hover { background: #3A2A20; transform: translateY(-2px); }

.btn-outline-dark {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  border: 1px solid var(--rule); padding: 0.875rem 1.875rem; border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }

.hero-hours {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; text-align: center; white-space: nowrap;
}

.hero-hours p { font-size: 0.67rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); max-width: none; }

.hero-scroll { position: absolute; bottom: 2rem; right: var(--px); z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero-scroll-line {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  45%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  46%  { transform-origin: bottom; }
  90%  { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
}


/* === 7. Section Layouts === */

section { padding: var(--section) var(--px); }
.section-alt { background: var(--s1); }
.section-dark { background: var(--secondary); }

.section-header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-header.centered { text-align: center; }
.section-header.centered .divider { margin: 0.85rem auto; }
.section-header.centered p { margin: 0 auto; }


/* === 8. Pillars === */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--secondary); }

.pillar { position: relative; overflow: hidden; aspect-ratio: 3/4; background: #2A1A10; }

.pillar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: transform 0.65s var(--ease), opacity 0.4s; }

.pillar:hover .pillar-img { transform: scale(1.05); opacity: 0.5; }

/* CSS gradient shown if image is missing */
.pillar:nth-child(1) { background: linear-gradient(150deg, #3A2215, #1C1410); }
.pillar:nth-child(2) { background: linear-gradient(150deg, #2A1810, #1C1410); }
.pillar:nth-child(3) { background: linear-gradient(150deg, #331E12, #1C1410); }

.pillar-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.75rem;
  background: linear-gradient(to top, rgba(28,20,16,0.9) 0%, transparent 100%);
}

.pillar-info .label { color: rgba(255,255,255,0.42); margin-bottom: 0.6rem; }
.pillar-info h3 { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.85rem); margin-bottom: 0.75rem; font-weight: 400; }
.pillar-info p { color: rgba(255,255,255,0.62); font-size: 0.875rem; max-width: none; line-height: 1.6; margin-bottom: 1.25rem; }

.pillar-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  transition: color 0.2s, gap 0.25s var(--ease);
}

.pillar-link::after { content: '\2192'; font-size: 0.8rem; transition: transform 0.25s var(--ease); }
.pillar-link:hover { color: #fff; gap: 0.75rem; }
.pillar-link:hover::after { transform: translateX(3px); }


/* === 9. Philosophy Block === */

.philosophy { text-align: center; background: var(--secondary); padding: var(--section) var(--px); }

.philosophy blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem); font-weight: 400; font-style: italic;
  color: rgba(255,255,255,0.88); line-height: 1.45; max-width: 820px;
  margin: 0 auto 1.75rem;
}

.philosophy cite { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.28); font-style: normal; }


/* === 10. Menu Grid & Trays === */

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }

.menu-card { background: var(--bg); padding: 1.75rem 1.5rem; transition: background 0.25s; }
.menu-card:hover { background: var(--s1); }

.menu-card-tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.4rem; }

.menu-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; line-height: 1.2; }

.menu-card p { font-size: 0.875rem; color: var(--t3); max-width: none; line-height: 1.55; }

.menu-cta-wrap { margin-top: 2.75rem; text-align: center; }

.trays-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 1rem; }

.tray-card { background: var(--s1); padding: 1.5rem; text-align: center; }

.tray-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--text); margin-bottom: 0.4rem; font-weight: 600; line-height: 1.25; }

.tray-price { font-size: 0.88rem; font-weight: 600; color: var(--primary); }
.trays-note { font-size: 0.82rem; color: var(--t3); text-align: center; }


/* === 11. Story / About Blocks === */

.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }

.story-block.flipped .story-image { order: 2; }
.story-block.flipped .story-content { order: 1; }

.story-image {
  aspect-ratio: 4/5; overflow: hidden;
  background: linear-gradient(150deg, #E8DDD0 0%, #D0C0A8 100%);
  position: relative;
}

.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.story-image:hover img { transform: scale(1.03); }

.story-content .label { margin-bottom: 0.85rem; }
.story-content h2 { margin-bottom: 1.1rem; }
.story-content p { margin-bottom: 0.85rem; }
.story-content p:last-of-type { margin-bottom: 1.5rem; }


/* === 12. Reviews === */

.reviews-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.review-card { padding: 1.75rem; border: 1px solid var(--rule); background: var(--s2); position: relative; }

.review-card-quote {
  font-family: 'Cormorant Garamond', serif; font-size: 4.5rem; line-height: 1;
  color: var(--primary); opacity: 0.18;
  position: absolute; top: 0.75rem; left: 1.25rem;
  pointer-events: none; user-select: none;
}

.review-card p { font-size: 0.9rem; font-style: italic; color: var(--t2); max-width: none; padding-top: 1.75rem; margin-bottom: 1rem; line-height: 1.7; }

.review-card-author { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t3); }

.reviews-cta-wrap { text-align: center; margin-top: 2.5rem; }

.reviews-full { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }

.review-full-card { padding: 2rem; border: 1px solid var(--rule); background: var(--s2); position: relative; }
.review-full-card .review-card-quote { font-size: 5rem; }
.review-full-card p { font-size: 0.925rem; font-style: italic; color: var(--t2); max-width: none; padding-top: 2rem; margin-bottom: 1.25rem; line-height: 1.7; }
.review-source-tag { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3); }


/* === 13. Craft / Pizza Page === */

.craft-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }

.craft-image {
  aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(150deg, #E8DDD0 0%, #C4B09A 100%);
  position: relative;
}

.craft-image img { width: 100%; height: 100%; object-fit: cover; }

.craft-body { padding: var(--section) var(--px); border-top: 1px solid var(--rule); }
.craft-body.alt { background: var(--s1); }

.craft-body-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }

.craft-body-inner.flipped .craft-image { order: 2; }
.craft-body-inner.flipped .craft-text { order: 1; }

.craft-text .label { margin-bottom: 0.85rem; }
.craft-text h2 { margin-bottom: 1.25rem; }
.craft-text p + p { margin-top: 0.8rem; }

.dough-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 2rem; }

.dough-stat { background: var(--bg); padding: 1.25rem; text-align: center; }

.dough-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; color: var(--primary); line-height: 1; margin-bottom: 0.3rem; }

.dough-stat p { font-size: 0.78rem; color: var(--t3); max-width: none; text-align: center; line-height: 1.4; }


/* === 14. Gallery Page === */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.gallery-item {
  aspect-ratio: 1; overflow: hidden; position: relative; cursor: pointer;
  background: linear-gradient(135deg, #E8DDD0 0%, #D0C0A8 100%);
}

.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); z-index: 1; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem;
  background: linear-gradient(to top, rgba(28,20,16,0.75) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.3s; z-index: 2;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-caption span { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.85); }


/* === 15. Connect Page === */

.connect-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }

.connect-detail { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.connect-detail:first-of-type { border-top: 1px solid var(--rule); }
.connect-detail-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t3); }
.connect-detail-value { font-size: 0.95rem; color: var(--text); line-height: 1.6; }
.connect-detail-value a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(191,82,48,0.4); transition: text-decoration-color 0.2s; }
.connect-detail-value a:hover { text-decoration-color: var(--primary); }

.hours-table { margin-top: 2.5rem; }
.hours-table-heading { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t3); margin-bottom: 1rem; }

.hours-row { display: flex; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
.hours-row:last-child { border-bottom: none; }
.hours-day { color: var(--t2); }
.hours-time { color: var(--text); font-weight: 500; }
.hours-closed { color: var(--t3); }

.connect-socials { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }

.social-pill { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t2); border: 1px solid var(--rule); padding: 0.6rem 1rem; border-radius: 2px; transition: border-color 0.2s, color 0.2s; }
.social-pill:hover { border-color: var(--primary); color: var(--primary); }

.order-band { background: var(--primary); padding: clamp(3rem, 5vw, 4.5rem) var(--px); text-align: center; }
.order-band h2 { color: #fff; margin-bottom: 0.5rem; }
.order-band p { color: rgba(255,255,255,0.72); margin: 0 auto 2rem; }

.btn-white { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); background: #fff; padding: 0.875rem 1.875rem; border-radius: 2px; transition: transform 0.15s, box-shadow 0.2s; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }


/* === 16. Page Headers === */

.page-header { padding-top: calc(var(--nav-h) + var(--section)); padding-bottom: var(--section); padding-left: var(--px); padding-right: var(--px); border-bottom: 1px solid var(--rule); }
.page-header .label { margin-bottom: 1rem; }
.page-header h1 { max-width: 680px; margin-bottom: 1rem; }
.page-header p { font-size: 1.05rem; max-width: 60ch; }


/* === 17. Footer === */

.footer { background: var(--secondary); padding: clamp(3.5rem, 6vw, 5rem) var(--px) clamp(2rem, 3vw, 2.5rem); }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }

.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,0.36); max-width: 28ch; line-height: 1.7; }
.footer-col-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.88); }
.footer-contact-line { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; line-height: 1.6; }
.footer-contact-line a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-contact-line a:hover { color: rgba(255,255,255,0.88); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.22); }
.footer-social-row { display: flex; gap: 1.5rem; }
.footer-social-row a { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-social-row a:hover { color: rgba(255,255,255,0.65); }


/* === 18. Scroll Reveal === */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* === 15. Editorial Layout === */

.editorial {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  padding: var(--section) var(--px);
}

.editorial.flip { grid-template-columns: 320px 1fr; }

.editorial-photo {
  aspect-ratio: 3/4; overflow: hidden; position: relative;
  background: linear-gradient(150deg, #E8DDD0 0%, #D0C0A8 100%);
}

.editorial-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.editorial-text .label { margin-bottom: 0.75rem; }
.editorial-text h2 { margin-bottom: 1rem; }
.editorial-text p { margin-bottom: 0.85rem; }
.editorial-text p:last-of-type { margin-bottom: 0; }

/* Craft triptych on homepage */
.craft-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2.5rem;
}
.craft-triptych-item { background: var(--bg); padding: 2rem 1.75rem; }
.craft-triptych-item .label { margin-bottom: 0.6rem; display: block; }
.craft-triptych-item h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }
.craft-triptych-item p { font-size: 0.875rem; color: var(--t2); max-width: none; line-height: 1.65; }

/* Homepage intro text block */
.home-intro { max-width: 640px; margin: 0 auto; text-align: center; padding: var(--section) var(--px); }
.home-intro p { font-size: 1.075rem; color: var(--t2); }
.home-intro p + p { margin-top: 1rem; }


/* === 19. Responsive === */

@media (max-width: 1100px) {
  .trays-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .editorial, .editorial.flip { grid-template-columns: 1fr; }
  .editorial-photo { aspect-ratio: 16/9; max-height: 380px; }
  .craft-triptych { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { aspect-ratio: 16/9; }
  .story-block, .story-block.flipped { grid-template-columns: 1fr; }
  .story-block .story-image, .story-block.flipped .story-image, .story-block.flipped .story-content { order: unset; }
  .story-image { aspect-ratio: 16/9; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .trays-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-intro, .craft-body-inner, .craft-body-inner.flipped { grid-template-columns: 1fr; }
  .craft-body-inner.flipped .craft-image, .craft-body-inner.flipped .craft-text { order: unset; }
  .craft-image { aspect-ratio: 16/9; }
  .connect-layout { grid-template-columns: 1fr; }
  .reviews-strip { grid-template-columns: repeat(2, 1fr); }
  .reviews-strip .review-card:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: span 2; }
}

@media (max-width: 600px) {
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .trays-grid { grid-template-columns: 1fr 1fr; }
  .reviews-strip { grid-template-columns: 1fr; }
  .reviews-strip .review-card:last-child { display: block; }
  .dough-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > *:first-child { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
