/* Baja Sur Fresh Mex — site shell */
:root {
  --ink: #1a1512;
  --ink-soft: #3a322c;
  --paper: #f7f2ea;
  --paper-deep: #ebe3d6;
  --sand: #d4c4a8;
  --teal: #14b69f;
  --teal-deep: #0e8f7c;
  --sunset: #e8925a;
  --black: #0b0b0b;
  --white: #ffffff;
  --muted: #6b6057;
  --line: rgba(26, 21, 18, 0.12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --max: 1100px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(20, 182, 159, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 20%, rgba(232, 146, 90, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

.site-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
}

/* Hero — home */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(160deg, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0.25) 45%, rgba(11, 11, 11, 0.75) 100%),
    url("/assets/img/hero-news.jpg") center / cover no-repeat,
    linear-gradient(135deg, #1a3a34 0%, #2a1810 50%, #0b0b0b 100%);
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(20, 182, 159, 0.25), transparent 60%),
    linear-gradient(to top, rgba(11, 11, 11, 0.85) 0%, transparent 45%);
}

@keyframes hero-drift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4.5rem;
  animation: rise-in 0.9s ease both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-brand em {
  font-style: normal;
  color: var(--teal);
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero p {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: var(--black);
}

.btn-primary:hover {
  background: #3dceb8;
  color: var(--black);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--teal-deep);
  color: var(--white);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.35);
}

.section-dark {
  background: var(--black);
  color: rgba(255, 255, 255, 0.9);
}

.section-dark a {
  color: var(--teal);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 0.6rem;
  line-height: 1.2;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}

.split > * {
  flex: 1 1 280px;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.page-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
  line-height: 1.15;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Cards only for interactive / list items */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.news-item img {
  width: 180px;
  flex: 0 0 auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.news-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.news-item h3 a {
  color: inherit;
  text-decoration: none;
}

.news-item h3 a:hover {
  color: var(--teal-deep);
}

.news-item .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.hours-block,
.contact-block {
  font-size: 1rem;
}

.hours-block strong,
.contact-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.hours-block p,
.contact-block p {
  margin: 0 0 0.35rem;
}

.map-embed {
  width: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 640px;
}

.form-grid label {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-grid label.full {
  flex: 1 1 100%;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

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

.event-list {
  columns: 2;
  column-gap: 2rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.event-list li {
  break-inside: avoid;
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
}

.event-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--teal);
  border-radius: 50%;
}

/* Blog list from r-template_blog */
.blog-container {
  padding: 0 0 3rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.blog-title a {
  color: var(--ink);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--teal-deep);
}

.blog-preview p {
  margin: 0;
  color: var(--muted);
}

.romlicontainer {
  width: min(100% - 2rem, 760px);
  margin: 0 auto 3rem;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-social a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.footer-copy {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.sitewide-slot {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 1.5rem;
}

.sitewide-slot img {
  max-width: 170px;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-inner {
    animation: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--black);
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.7rem 0.5rem;
  }

  .hero {
    min-height: min(88vh, 700px);
    align-items: flex-end;
  }

  .event-list {
    columns: 1;
  }

  .news-item img {
    width: 100%;
  }

  .brand-name {
    display: none;
  }
}
