/* ========================================
   CAYUCOS MARKET — Styles
   ======================================== */

:root {
  --sand:    #f5efe6;
  --cream:   #fdfaf5;
  --ocean:   #2a6b8a;
  --ocean-dark: #1a4f68;
  --kelp:    #4a7c59;
  --kelp-dark: #355c40;
  --coral:   #d96941;
  --text:    #2c2c2c;
  --muted:   #6b6b6b;
  --border:  #e0d8cc;
  --white:   #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.section-label {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean);
  display: block;
  margin-bottom: 0.6rem;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--ocean);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.nav-logo span {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ocean); }

.nav-cta {
  background: var(--ocean);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--ocean-dark) !important; color: white !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?w=1600&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,107,138,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 10rem 2.5rem 6rem;
  max-width: 760px;
  margin-left: 8vw;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: #a8d8ea;
}

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

.btn-primary {
  background: var(--coral);
  color: white;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

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

.btn-outline {
  background: transparent;
  color: white;
  padding: 0.9rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 2px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.hero-stats {
  position: absolute;
  bottom: 3rem;
  right: 8vw;
  z-index: 2;
  display: flex;
  gap: 2.5rem;
}

.hero-stat {
  text-align: center;
  color: white;
}

.hero-stat .num {
  display: block;
  font-size: 2rem;
  font-weight: normal;
  line-height: 1;
}

.hero-stat .lbl {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.3rem;
}

/* ── Marquee ── */
.marquee-bar {
  background: var(--ocean);
  color: white;
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 2rem;
  opacity: 0.85;
}

.marquee-track span.dot {
  opacity: 0.4;
  margin: 0 0.5rem;
}

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

/* ── Sections ── */
section { padding: 6rem 2.5rem; }

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

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--text);
}

.section-header p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 540px;
  font-size: 1.05rem;
}

/* ── About ── */
.about {
  background: var(--sand);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 4px;
}

.about-img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--kelp);
  color: white;
  padding: 1.2rem 1.6rem;
  border-radius: 4px;
  text-align: center;
}

.about-img-badge .num {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.about-img-badge .lbl {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.2rem;
}

.about-text h2 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about-perks {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.perk {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.perk-icon {
  width: 32px;
  height: 32px;
  background: var(--ocean);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Specialties ── */
.specialties { background: var(--cream); }

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

.spec-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.spec-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.spec-card-body {
  padding: 1.4rem;
}

.spec-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.spec-card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.spec-tag {
  display: inline-block;
  margin-top: 0.8rem;
  background: var(--sand);
  color: var(--ocean);
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

/* ── Weekly Specials ── */
.specials {
  background: var(--ocean);
  color: white;
}

.specials .section-label { color: #a8d8ea; }
.specials h2 { color: white; }
.specials .section-header p { color: rgba(255,255,255,0.7); }

.specials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.special-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  transition: background 0.2s;
}

.special-card:hover { background: rgba(255,255,255,0.13); }

.special-emoji {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.special-card h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: white;
}

.special-card p {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.5;
}

.special-price {
  display: block;
  margin-top: 0.8rem;
  font-size: 1.3rem;
  color: #a8d8ea;
  font-family: 'Georgia', serif;
}

.specials-note {
  text-align: center;
  margin-top: 2.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  opacity: 0.55;
  text-transform: uppercase;
}

/* ── Gallery ── */
.gallery { background: var(--sand); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.04); }

/* ── Hours & Location ── */
.location { background: var(--cream); }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.hours-table tr {
  border-bottom: 1px solid var(--border);
}

.hours-table td {
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: 50%;
}

.hours-table td:last-child {
  color: var(--text);
  font-weight: normal;
}

.hours-table tr.today td {
  color: var(--kelp);
}

.hours-table tr.today td:first-child {
  color: var(--kelp);
}

.today-badge {
  display: inline-block;
  background: var(--kelp);
  color: white;
  font-size: 0.6rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.map-container {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: none;
}

.address-block {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--sand);
  border-radius: 4px;
  border-left: 3px solid var(--ocean);
}

.address-block p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

.address-block a {
  color: var(--ocean);
  text-decoration: none;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

/* ── Why a Website? (Expansion pitch) ── */
.pitch {
  background: linear-gradient(135deg, #1a3a2a 0%, #1a4f68 100%);
  color: white;
  text-align: center;
}

.pitch .section-label { color: #a8d8ea; }
.pitch h2 { color: white; font-size: clamp(2rem, 4vw, 3rem); }
.pitch .section-header p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 1rem auto 0; }

.pitch-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  text-align: left;
}

.pitch-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 2rem 1.6rem;
  transition: background 0.2s;
}

.pitch-card:hover { background: rgba(255,255,255,0.12); }

.pitch-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pitch-card h3 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.6rem;
}

.pitch-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.pitch-stat {
  display: block;
  margin-top: 1rem;
  font-size: 1.6rem;
  color: #a8d8ea;
}

.pitch-cta {
  margin-top: 4rem;
}

.pitch-cta p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* ── Newsletter ── */
.newsletter {
  background: var(--sand);
  text-align: center;
  padding: 4rem 2.5rem;
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.newsletter p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: white;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  outline: none;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  background: transparent;
}

.newsletter-form button {
  background: var(--coral);
  color: white;
  border: none;
  padding: 0.85rem 1.4rem;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: #c45830; }

/* ── Footer ── */
footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 4rem 2.5rem 2rem;
}

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

.footer-brand .logo-text {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4 {
  color: white;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

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

.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  opacity: 0.45;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid,
  .location-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .about-img-badge { right: 0; bottom: -1rem; }

  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .specials-grid { grid-template-columns: repeat(2, 1fr); }
  .pitch-cards { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.tall { grid-row: span 1; }

  .hero-stats { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav { padding: 1rem 1.2rem; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.2rem;
  }

  section { padding: 4rem 1.2rem; }

  .hero-content { padding: 8rem 1.2rem 4rem; margin-left: 0; }

  .spec-grid,
  .specials-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

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