/* Grover Beach Sourdough — matches the look of the original Flatsome/WordPress site */

:root {
  --red: #92000d;
  --yellow: #ffde17;
  --text: #777;
  --heading: #555;
  --link: #334862;
  --font: "Special Elite", "Courier New", monospace;
  --container: 1080px;
}

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

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #000; }

h1, h2, h3, h4 { font-weight: 400; color: var(--heading); margin: 0 0 .5em; line-height: 1.3; }
h1 { font-size: 1.7em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.25em; }
p { margin: 0 0 1.3em; }

.red { color: var(--red); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { padding: 0 15px 30px; width: 100%; }
@media (min-width: 850px) {
  .col-8 { width: 66.666%; }
  .col-4 { width: 33.333%; }
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  transition: background-color .3s;
}
.site-header.stuck {
  position: fixed;
  background: rgba(240, 240, 240, .9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  animation: slide-down .4s;
}
@keyframes slide-down { from { transform: translateY(-100%); } to { transform: none; } }

.header-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
  height: 111px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: height .3s;
}
.stuck .header-inner { height: 70px; }

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 335px;
}
.logo img { max-height: 111px; width: auto; margin: 0 auto; transition: max-height .3s; }
.stuck .logo img { max-height: 70px; }

.menu-toggle {
  background: none;
  border: 0;
  padding: 10px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: #333; }

.header-contact {
  color: #000;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}
.header-contact a { color: #000; }

@media (max-width: 849px) {
  .header-inner { height: 70px; }
  .logo { width: 240px; }
  .logo img { max-height: 70px; }
  .header-contact { display: none; }
}

/* Off-canvas menu (left, like the original) */
.side-menu {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 260px;
  background: #fff;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform .3s;
  padding: 50px 0 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, .2);
}
.side-menu.open { transform: none; }
.side-menu nav a {
  display: block;
  padding: 12px 20px;
  border-top: 1px solid #ececec;
  color: rgba(102, 102, 102, .85);
  text-transform: uppercase;
  font-size: .8em;
  letter-spacing: .02em;
}
.side-menu nav a:hover { color: #111; background: #f7f7f7; }
.side-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; font-size: 28px; color: #999; cursor: pointer;
}
.side-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 40;
  opacity: 0; visibility: hidden;
  transition: opacity .3s;
}
.side-backdrop.open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 430px;
  overflow: hidden;
}
@media (min-width: 550px) { .hero { padding-top: 50%; } }

.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero.jpg") 35% 51% / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, .3);
}

.hero-layers {
  position: absolute;
  left: 0; right: 0; bottom: 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 15px;
}

.hero-box {
  width: 84%;
  background: rgba(25, 25, 25, .75);
  color: #fff;
  text-align: center;
  text-shadow: 1px 2px 2px #000;
  padding: 15px 10px 20px;
  font-size: 1.1rem;
  line-height: .95;
}
@media (min-width: 550px) { .hero-box { width: 60%; font-size: 1.7rem; line-height: 1.1; } }
@media (min-width: 850px) { .hero-box { width: 80%; } }

.hero-headline {
  font-size: 1.2em;
  line-height: 1.1em;
  font-weight: 600;
  padding-top: 20px;
  padding-bottom: 6px;
}
.hero-small { font-size: .75em; }

.announcement {
  width: 84%;
  max-width: 900px;
  background: rgba(25, 25, 25, .82);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .22);
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  padding: 12px 16px;
  text-align: center;
}
.announcement h2 { color: #fff; font-size: 1.4em; text-transform: uppercase; margin-bottom: .25em; }
.announcement p { margin: 0 0 .4em; font-size: 1.15em; }
.announcement p:last-child { margin-bottom: 0; }
.announcement a { color: var(--yellow); text-decoration: underline; }

/* ---------- Baked Daily (menu) ---------- */

.baked {
  position: relative;
  padding: 30px 15px;
  background: url("../img/section-bg.jpg") center / cover no-repeat;
}
.baked-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, .9); }
.baked-content { position: relative; max-width: 900px; margin: 0 auto; }
.baked h1 { font-size: 3em; text-align: center; color: var(--red); }

.menu-columns { display: flex; flex-direction: column; }
.menu-column { display: contents; }
@media (min-width: 550px) {
  .menu-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .menu-column { display: block; }
}

.menu-section { padding: 0 0 24px; }
.menu-title {
  font-weight: 600;
  text-decoration: underline;
  font-size: 1.25em;
  margin-bottom: .75em;
}
.menu-section.boxed { border: 1px solid #000; padding: 12px 16px 6px; margin-bottom: 24px; }
.boxed .menu-title { text-align: center; }
.food-list.two-col li { break-inside: avoid; }
@media (min-width: 550px) { .food-list.two-col { columns: 2; column-gap: 40px; } }
.menu-note { font-size: .85em; font-style: italic; color: #000; margin: -.4em 0 1em; }

.menu-follow { text-align: center; font-style: italic; font-size: .85em; color: #555; margin: 10px 0 0; }
.menu-follow a { color: var(--red); }

.food-list { margin: 0; padding-left: 1.2em; line-height: 1.2em; }
.food-list li { margin-bottom: .6em; }
.food-list strong { color: #777; }
.food-list .details { font-size: .9em; color: #000; padding-left: 10px; }
.food-list .price { float: right; padding-left: 12px; padding-right: 5px; color: #000; white-space: nowrap; }

/* ---------- Section titles (lines on both sides) ---------- */

.section-title {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 1.7em;
  text-transform: uppercase;
  margin: 25px 0 30px;
}
.section-title b { flex: 1; height: 2px; background: currentColor; opacity: .1; }
.section-title span { padding: 0 15px; color: #343434; }

/* ---------- About ---------- */

.about { border-top: 1px solid #ebebeb; padding: 27px 0; background: #fff; }
.about-text p { font-size: 140%; color: #333; line-height: 1.5; }
.about-text a { color: var(--link); }
.about-photos { display: flex; flex-direction: column; gap: 20px; }
.cover-img {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  box-shadow: 0 1px 3px -2px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .1);
}
.cover-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */

.faq { padding: 10px 0 0; }
.faq h3 { color: var(--heading); }
.shadow-img { box-shadow: 0 1px 3px -2px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .1); }
.shadow-img img { width: 100%; }

/* ---------- Gallery ---------- */

.gallery { padding: 30px 15px; }
.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 30px;
  --per-row: 2;
}
@media (min-width: 550px) { .gallery-grid { --per-row: 3; } }
@media (min-width: 850px) { .gallery-grid { --per-row: 4; } }

.gallery-item {
  position: relative;
  display: block;
  width: calc((100% - (var(--per-row) - 1) * 30px) / var(--per-row));
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .15); transition: background .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { background: rgba(0, 0, 0, .3); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: .7em;
  font-size: .9em;
  color: #f1f1f1;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .4);
}

/* ---------- Spread the word ---------- */

.divider-yellow { max-width: 1200px; height: 3px; margin: 1em auto; background: var(--yellow); }
.share-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 15px 20px;
}
.share-title { font-size: 2em; text-transform: uppercase; color: #777; margin-right: 10px; }
.share-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #999; }
.share-icon svg { width: 30px; height: 30px; fill: currentColor; }
.share-icon:hover { color: #333; }

/* ---------- Reviews slider ---------- */

.reviews {
  position: relative;
  background: #000;
  min-height: 378px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 70px 40px;
}
.slides {
  width: 100%;
  max-width: 1120px;
  min-height: 378px;
  display: grid;
  align-items: center;
  background: #1e1e1e;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .6);
  padding: 40px 10%;
}
.slide {
  grid-area: 1 / 1;
  margin: 0;
  color: #f1f1f1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s, visibility .6s;
}
.slide.active { opacity: 1; visibility: visible; }
.stars { color: #d26e4b; letter-spacing: 2px; font-size: 1.1em; margin-bottom: .3em; }
.slide blockquote { margin: 0; font-style: italic; font-size: 1.3em; line-height: 1.3; }
.slide figcaption { padding-top: .8em; font-size: 1em; }
.slide figcaption strong { font-weight: 700; }

.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 2px solid rgba(255, 255, 255, .7);
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer; opacity: .6;
  font-family: Arial, sans-serif; padding-bottom: 4px;
}
.slide-nav:hover { opacity: 1; }
.slide-nav.prev { left: 15px; }
.slide-nav.next { right: 15px; }
.slide-dots { position: absolute; bottom: 15px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slide-dots button {
  width: 10px; height: 10px; border-radius: 50%; padding: 0;
  border: 1px solid #fff; background: transparent; opacity: .5; cursor: pointer;
}
.slide-dots button.active { background: #fff; opacity: 1; }
@media (max-width: 549px) {
  .reviews { padding: 0 0 36px; }
  .slides { padding: 40px 20px; }
  .slide-nav { display: none; }
  .slide blockquote { font-size: 1.1em; }
}

/* ---------- Visit ---------- */

.visit {
  position: relative;
  min-height: 300px;
  padding: 60px 15px;
  text-align: center;
  background: url("../img/sourdough-25.jpg") 24% 83% / cover no-repeat;
}
.visit-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.visit-content { position: relative; max-width: 900px; margin: 0 auto; }
.visit h2 { color: #fff; text-transform: uppercase; }
.visit p, .visit a { color: var(--yellow); font-size: 1.4em; line-height: 1.5; }
.visit p a { font-size: 1em; }

.map iframe { display: block; width: 100%; height: 450px; border: 0; }

/* ---------- Footer ---------- */

.site-footer { background: #5b5b5b; color: rgba(255, 255, 255, .8); }
.site-footer a { color: rgba(255, 255, 255, .9); }
.footer-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 15px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-main strong { color: #fff; }
.footer-right { text-align: right; }
.footer-credits {
  background: rgba(0, 0, 0, .2);
  text-align: center;
  padding: 15px;
  font-size: .9em;
  color: rgba(255, 255, 255, .5);
}
.footer-credits a { color: rgba(255, 255, 255, .5); }
.footer-credits a:hover { color: #fff; }
@media (max-width: 549px) {
  .footer-main { flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }
}

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid #666; background: rgba(255, 255, 255, .8);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top svg { width: 18px; height: 18px; fill: none; stroke: #666; stroke-width: 2.5; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .9);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 82vh; margin: 0 auto; }
.lightbox figcaption { color: #f1f1f1; padding-top: 10px; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 44px; cursor: pointer; opacity: .7; font-family: Arial, sans-serif;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 20px; }
.lb-prev { left: 15px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 15px; top: 50%; transform: translateY(-50%); }

.pdf-page-break { display: none; }
.menu-pdf { text-align: center; margin: 18px 0 0; }
.menu-pdf-btn {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 7px 18px;
  font-size: .9em;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.menu-pdf-btn:hover { background: var(--red); color: #fff; }
