/* ---- The Window · Tybee Island ---- */
:root {
  /* Palette sampled from the real logo: navy + cream, with a honey accent */
  --deep: #21265d;      /* brand navy (logo background) */
  --sea: #2f3670;       /* lighter navy — links & accents */
  --sea-light: #b9bde0; /* pale navy tint (on-navy text) */
  --sand: #ece3d4;      /* warm cream */
  --cream: #f4efe6;     /* paper background */
  --sun: #dda23c;       /* honey accent (hot honey!) */
  --sun-dark: #c4881f;
  --ink: #23263f;       /* dark navy text */
  --muted: #5f6377;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(14, 76, 92, 0.12);
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }

a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible keyboard focus for all interactive elements */
a:focus-visible,
.btn:focus-visible,
.nav a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(14, 76, 92, 0.1);
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--deep); }
.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; }
.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.6rem); }
.nav a { color: var(--deep); font-weight: 600; font-size: 0.98rem; }
.nav-cta {
  background: var(--sun);
  color: #3a2500 !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--sun-dark); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--sun); color: #3a2500; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--sun-dark); }
.btn-ghost { background: transparent; color: var(--cream); border: 2px solid rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- Hero: split-logo shutter reveal ----
   The logo sits centered across two panels (each shows one half). The tall wrapper
   lets the hero pin while scrolling slides the panels apart — splitting the logo
   down the middle to uncover the storefront photo behind it. */
.hero-scroll { position: relative; height: 165vh; }
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(15, 30, 46, 0.28) 0%, rgba(15, 30, 46, 0.06) 30%, rgba(15, 30, 46, 0.06) 62%, rgba(15, 30, 46, 0.5) 100%),
    url("assets/thewindow.jpg") center 38% / cover no-repeat,
    linear-gradient(160deg, var(--sea) 0%, var(--deep) 100%);
  overflow: hidden;
}
.hero-curtain { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.shutter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;                /* exact halves so the two logo halves align at the seam */
  overflow: hidden;          /* clips each logo half at the center seam */
  background: var(--deep);   /* matches the logo's navy so the panel blends into it */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.shutter-left  { left: 0;  box-shadow: inset -1px 0 0 rgba(244, 239, 230, 0.1), 8px 0 34px rgba(0, 0, 0, 0.28); }
.shutter-right { right: 0; box-shadow: inset 1px 0 0 rgba(244, 239, 230, 0.1), -8px 0 34px rgba(0, 0, 0, 0.28); }

/* One logo drawn on each panel, centered on the seam so each panel shows a half.
   `lighten` drops the logo's dark navy backdrop into the panel, leaving the mark. */
.logo-half {
  position: absolute;
  top: 50%;
  width: clamp(280px, 40vw, 560px);
  height: auto;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: lighten;
}
.shutter-left  .logo-half { right: 0; transform: translate(50%, -50%); }
.shutter-right .logo-half { left: 0;  transform: translate(-50%, -50%); }

/* ---- Hero copy (static section under the reveal) ---- */
.hero-copy {
  position: relative;
  background: linear-gradient(160deg, var(--sea) 0%, var(--deep) 100%);
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(4.5rem, 10vw, 7rem);
}
.hero-copy-inner { max-width: 640px; margin: 0 auto; }
.hero-copy::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q150 0 300 30 T600 30 T900 30 T1200 30 V60 H0 Z' fill='%23f4efe6'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sand);
  margin: 0 0 0.8rem;
}
.hero-copy h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 1.1rem; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: rgba(255, 250, 240, 0.92); margin: 0 auto; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.1rem; justify-content: center; }
.hero-note { font-weight: 600; color: var(--sand); margin: 0; }

/* Reduced motion: no pin — hold the hero as a static panel showing the whole logo. */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: auto; }
  .hero { position: relative; height: min(70vh, 520px); }
  .shutter { transform: translate3d(0, 0, 0) !important; }
}

/* ---- Strip ---- */
.strip {
  max-width: var(--max);
  margin: -0.5rem auto 0;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  color: var(--deep);
  font-weight: 600;
  font-size: 1.2rem; /* a step up from body text, still below the 1.8rem+ section headers */
}
.strip-item span { font-size: 1.45rem; margin-right: 0.35rem; }

/* ---- Sections ---- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.5rem; color: var(--deep); }
.section-head p { color: var(--muted); max-width: 48ch; margin: 0 auto; }

/* ---- Menu ---- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.menu-card {
  background: var(--cream);
  border: 1px solid rgba(14, 76, 92, 0.12);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.2rem;
  box-shadow: var(--shadow);
}
.menu-card h3 {
  margin: 0 0 1rem;
  color: var(--sea);
  font-size: 1.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px dashed rgba(31, 122, 140, 0.3);
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.45rem 0; }
.menu-list .item { font-weight: 600; }
.menu-list em { color: var(--muted); font-style: italic; font-weight: 400; }
.menu-footnote { text-align: center; color: var(--muted); margin-top: 2rem; font-size: 0.95rem; }

/* ---- About ---- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.about-media { display: flex; justify-content: center; }
.about-logo {
  background: var(--cream);
  border: 1px solid rgba(33, 38, 93, 0.12);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.about-logo img { display: block; width: 100%; height: auto; border-radius: 12px; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--deep); margin: 0 0 1rem; }
.about-text p { color: #35454a; margin: 0 0 1rem; }

/* ---- Reviews (auto-scrolling marquee) ---- */
.reviews {
  position: relative;
  padding: clamp(5rem, 8vw, 6rem) 0;
  background: var(--deep);
  overflow: hidden;
}
.reviews .section-head h2 { color: var(--cream); }
.reviews .section-head p { color: var(--sea-light); }

.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 0.6rem;
  animation: marquee 120s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  flex: 0 0 320px;
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.review-card .stars { color: var(--sun); font-size: 1.05rem; letter-spacing: 2px; }
.review-card blockquote {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.4;
}
.review-card blockquote::before { content: "\201C"; }
.review-card blockquote::after { content: "\201D"; }
.review-card figcaption { color: var(--sea-light); font-size: 0.9rem; font-weight: 600; margin-top: auto; }
.review-card figcaption a { color: var(--sun); }

/* Optional imagery inside a review card:
   .review-photo = a curated dish image; .review-avatar = a reviewer's Google profile photo */
.review-card .review-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  order: -1; /* sit above the stars */
}
.review-card .review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

/* "Read / leave a Google review" call-to-action under the marquee */
.reviews-cta {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
.reviews-cta p { color: var(--sea-light); margin: 0 0 1rem; font-size: 1.05rem; }
.reviews-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.reviews-cta-actions .btn-ghost { color: var(--cream); border-color: rgba(255, 255, 255, 0.7); }
.reviews-cta-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Respect reduced-motion: stop the auto-scroll, allow manual horizontal scroll */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---- Wavy section dividers (carry the hero motif through every color change) ---- */
.reviews::before,
.reviews::after,
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1; /* above the section's opaque background; padding keeps text clear */
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}
/* cream from the section above dips down into the navy Reviews band */
.reviews::before {
  top: -1px;
  transform: scaleY(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q150 0 300 30 T600 30 T900 30 T1200 30 V60 H0 Z' fill='%23f4efe6'/%3E%3C/svg%3E");
}
/* sand from the Visit section rises out of the bottom of the Reviews band */
.reviews::after {
  bottom: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q150 0 300 30 T600 30 T900 30 T1200 30 V60 H0 Z' fill='%23ece3d4'/%3E%3C/svg%3E");
}
/* cream from the Visit section dips down into the navy footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1;
  transform: scaleY(-1);
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q150 0 300 30 T600 30 T900 30 T1200 30 V60 H0 Z' fill='%23f4efe6'/%3E%3C/svg%3E");
}

/* ---- Visit ---- */
.visit { background: linear-gradient(180deg, var(--sand), var(--cream)); max-width: none; }
.visit-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.visit-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 76, 92, 0.1);
}
.visit-card h2 { color: var(--deep); margin: 0 0 1rem; font-size: 1.6rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid rgba(14, 76, 92, 0.08); }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--sea); font-weight: 600; }
.hours .closed td { color: #b23a3a; }
.fineprint { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; }
.address { font-size: 1.1rem; line-height: 1.7; }
.muted { color: var(--muted); font-size: 0.95rem; }
.contact a { font-size: 1.25rem; font-weight: 700; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.visit-actions .btn-ghost { color: var(--deep); border-color: var(--deep); }
.visit-actions .btn-ghost:hover { background: rgba(14, 76, 92, 0.08); }

/* ---- Footer ---- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: rgba(255, 250, 240, 0.85);
  text-align: center;
  padding: 4.75rem 1.5rem 2.75rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-size: 1.2rem; color: var(--cream); margin-bottom: 0.6rem; }
.footer-brand img { border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.15); }
.footer-meta { margin: 0.3rem 0; }
.footer-meta a { color: var(--sea-light); }
.footer-credit { color: rgba(255, 250, 240, 0.55); font-size: 0.85rem; margin-top: 1rem; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; }
  .nav { gap: 0.75rem 1rem; font-size: 0.9rem; }
}
@media (max-width: 420px) {
  /* Very small screens: keep the primary action, tuck the section links
     (still reachable via the hero buttons and on-page scrolling). */
  .nav a:not(.nav-cta) { display: none; }
}
