/* =========================================================
   RUSTIC RISE SOURDOUGH — stylesheet
   Design tokens
   ========================================================= */
:root {
  --color-cream: #F8F4EC;      /* background */
  --color-linen: #EFE4CD;      /* card / alt-section background */
  --color-brown: #8B5E3C;      /* brand / headings / buttons */
  --color-brown-dark: #6E4A2E; /* hover states */
  --color-crust: #3A2A1D;      /* body text */
  --color-wheat: #C99A4A;      /* accent gold — dividers, underlines */
  --color-white: #FFFFFF;
  --color-shadow: rgba(58, 42, 29, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 14px;
  --transition: 0.25s ease;
}

/* =========================================================
   Reset & base
   ========================================================= */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-crust);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-brown);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5.5rem 0; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-wheat);
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head p {
  color: #6b5847;
  font-size: 1.05rem;
}

/* =========================================================
   Signature element: the "score line" —
   a torn, hand-cut divider styled after the slashes a baker
   scores into a loaf before it goes in the oven.
   ========================================================= */
.score-divider {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0 auto;
}

.score-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.score-divider path {
  fill: none;
  stroke: var(--color-wheat);
  stroke-width: 2;
  stroke-linecap: round;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-brown);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-brown-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-brown);
  border-color: var(--color-brown);
}
.btn-outline:hover {
  background: var(--color-brown);
  color: var(--color-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-brown);
  border-color: var(--color-white);
}

/* =========================================================
   Navigation
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(139, 94, 60, 0.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-brown);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--color-crust);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-wheat);
  transition: width var(--transition);
}

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

.nav-links a.active { color: var(--color-brown); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-brown);
  border-radius: 2px;
}

/* =========================================================
   HOME — Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,42,29,0.15) 0%, rgba(58,42,29,0.55) 75%, rgba(58,42,29,0.78) 100%);
  z-index: -1;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
  color: var(--color-white);
}

.hero-content .section-eyebrow { color: #E8C48A; }

.hero-content h1 {
  color: var(--color-white);
  max-width: 720px;
}

.hero-content p {
  max-width: 560px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* =========================================================
   HOME — Intro
   ========================================================= */
.intro {
  text-align: center;
}
.intro .container { max-width: 760px; }
.intro p { font-size: 1.1rem; color: #5b4a3a; }

/* =========================================================
   HOME — Process (Ferment / Shape / Bake)
   ========================================================= */
.process { background: var(--color-linen); }

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

.process-step figure {
  margin: 0 0 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.process-step img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-step .section-eyebrow { margin-bottom: 0.4rem; }

.process-step h3 { margin-bottom: 0.4rem; }

.process-step p {
  color: #6b5847;
  font-size: 0.98rem;
}

/* =========================================================
   HOME — Feature cards
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid rgba(139,94,60,0.12);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: 0 10px 24px var(--color-shadow);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #6b5847;
  font-size: 0.98rem;
  margin: 0;
}

/* =========================================================
   HOME — CTA banner
   ========================================================= */
.cta-banner {
  background: var(--color-brown);
  color: var(--color-white);
  text-align: center;
}

.cta-banner h2 { color: var(--color-white); }
.cta-banner p {
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================================
   GALLERY
   ========================================================= */
.page-header {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding-bottom: 5.5rem;
}

.gallery-item {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(139,94,60,0.12);
  box-shadow: 0 10px 24px var(--color-shadow);
  cursor: pointer;
  aspect-ratio: 4 / 5;
}

.gallery-item .frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-linen);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* never crop the loaves */
}

.gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(58,42,29,0) 45%, rgba(58,42,29,0.86) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-caption span {
  color: var(--color-white);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
}

.gallery-item .zoom-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--color-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .zoom-hint,
.gallery-item:focus-visible .zoom-hint {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 18, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-content {
  max-width: min(90vw, 1000px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: var(--color-cream);
  text-align: center;
  font-size: 1.02rem;
  max-width: 640px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover { color: var(--color-wheat); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 5.5rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid rgba(139,94,60,0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 24px var(--color-shadow);
}

.contact-card .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--color-brown);
}

.contact-card p, .contact-card a {
  margin: 0;
  color: #5b4a3a;
  font-size: 0.98rem;
}

.contact-card a:hover { color: var(--color-brown); }

.whatsapp-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: #3d7a4f;
}

.contact-form-wrap {
  background: var(--color-white);
  border: 1px solid rgba(139,94,60,0.12);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: 0 10px 24px var(--color-shadow);
}

.form-row {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-crust);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(139,94,60,0.3);
  border-radius: 8px;
  background: var(--color-cream);
  color: var(--color-crust);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-wheat);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: #8a7a68;
  margin-top: 0.75rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-crust);
  color: rgba(248,244,236,0.82);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.footer-brand img { height: 40px; }

.footer-brand span {
  font-family: var(--font-display);
  color: var(--color-cream);
  font-size: 1.15rem;
}

.footer-col h5 {
  color: var(--color-wheat);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a:hover { color: var(--color-wheat); }

.footer-bottom {
  border-top: 1px solid rgba(248,244,236,0.15);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(248,244,236,0.55);
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.75;
  white-space: nowrap;
  margin-left: auto;
}
.footer-credit img { height: 58px; width: auto; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .process-grid,
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    border-bottom: 1px solid rgba(139,94,60,0.15);
  }
  .nav-links.open { max-height: 320px; padding: 1rem 1.5rem 1.5rem; }
  .nav-links li { width: 100%; padding: 0.6rem 0; }
  .nav-toggle { display: flex; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
}
