/* ============================================
   Baja King Fish Tacos — "The Baja Coast, Inland"
   Handcrafted by Darius Kerpal
   ============================================ */

/* --- CSS Variables --- */
:root {
  --ocean: #1B3A4B;
  --ocean-dark: #122833;
  --sunset: #E07A3A;
  --sunset-light: #F09A5A;
  --sand: #F0DCC0;
  --sand-light: #F7EDDA;
  --lime: #4D7C0F;
  --gold: #DAA520;
  --dark: #171717;
  --white: #FAFAFA;
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Utility --- */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(27, 58, 75, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  transition: transform 0.3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.nav-logo span { color: var(--sunset); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--sand);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-phone {
  background: var(--sunset);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-phone:hover { background: var(--sunset-light) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--sand);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(27, 58, 75, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.1rem; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--ocean-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/photo_1.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(23, 23, 23, 0.55) 0%,
    rgba(27, 58, 75, 0.7) 60%,
    rgba(27, 58, 75, 0.95) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  animation: heroFadeIn 0.8s ease-out both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(218, 165, 32, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 em {
  font-style: normal;
  color: var(--sunset);
}
.hero-sub {
  color: var(--sand);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--sunset);
  color: var(--white);
}
.btn-primary:hover { background: var(--sunset-light); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  color: var(--sand);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
}
.hero-stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* --- Wave Divider --- */
.wave-divider {
  width: 100%;
  display: block;
  line-height: 0;
  margin: -1px 0;
}
.wave-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--ocean);
  padding: 2rem 0;
  text-align: center;
}
.stats-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--sand);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
}
.stats-inner .stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

/* --- About Section --- */
.about {
  background: var(--sand-light);
  padding: 5rem 0;
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(27, 58, 75, 0.02) 30px,
    rgba(27, 58, 75, 0.02) 60px
  );
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  aspect-ratio: 4/3;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 {
  color: var(--ocean);
  margin-bottom: 1rem;
}
.about-text h2 span { color: var(--sunset); }
.about-text p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.25rem;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ocean);
  font-size: 0.95rem;
}
.about-feature-icon {
  width: 32px;
  height: 32px;
  background: var(--sunset);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
}

/* --- Menu Section --- */
.menu {
  padding: 5rem 0;
  background: var(--white);
  position: relative;
}
.menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to bottom, var(--sand-light), var(--white));
  pointer-events: none;
}
.menu-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.menu-header h2 {
  color: var(--ocean);
}
.menu-header p {
  color: #666;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  position: relative;
}
.menu-tab {
  background: var(--sand);
  border: 2px solid transparent;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ocean);
}
.menu-tab:hover { border-color: var(--sunset); }
.menu-tab.active {
  background: var(--ocean);
  color: var(--gold);
  border-color: var(--ocean);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  position: relative;
}
.menu-category { display: none; }
.menu-category.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.menu-item {
  background: var(--white);
  border: 1px solid rgba(27, 58, 75, 0.08);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.menu-item:hover {
  box-shadow: 0 8px 25px rgba(27, 58, 75, 0.1);
  transform: translateY(-2px);
}
.menu-item-info h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.menu-item-info p {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.4;
}
.menu-item-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--sunset);
  white-space: nowrap;
  flex-shrink: 0;
}
.menu-note {
  text-align: center;
  margin-top: 2rem;
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
}

/* --- Food Gallery --- */
.gallery {
  padding: 0;
  overflow: hidden;
}
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.gallery-strip img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-strip img:hover { transform: scale(1.05); }
@media (max-width: 768px) {
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip img { height: 180px; }
}
@media (max-width: 480px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip img { height: 150px; }
}

/* --- Reviews Section --- */
.reviews {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-light) 50%, #F5E0C0 100%);
  position: relative;
}
.reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(224, 122, 58, 0.04) 40px,
    rgba(224, 122, 58, 0.04) 80px
  );
  pointer-events: none;
}
.reviews-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.reviews-header h2 { color: var(--ocean); }
.reviews-header p { color: #666; margin-top: 0.5rem; font-size: 1.1rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.2s;
}
.review-card:hover { transform: translateY(-4px); }
.review-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--sunset);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 16px;
  line-height: 1;
}
.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}
.review-text {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
}
.review-author {
  font-weight: 700;
  color: var(--ocean);
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

/* --- Find Us Section --- */
.find-us {
  padding: 5rem 0;
  background: var(--ocean);
  color: var(--sand);
  position: relative;
  overflow: hidden;
}
.find-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(224,122,58,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(218,165,32,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.find-us-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.find-us-header h2 { color: var(--white); }
.find-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
}
.info-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(5px);
}
.info-card h3 {
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.info-icon {
  width: 40px;
  height: 40px;
  background: var(--sunset);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.info-item-text strong {
  display: block;
  color: var(--white);
  margin-bottom: 2px;
}
.info-item-text span, .info-item-text a {
  color: var(--sand);
  font-size: 0.95rem;
}
.info-item-text a:hover { color: var(--gold); }
.hours-grid {
  display: grid;
  gap: 0.6rem;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hours-day { font-weight: 600; color: var(--white); }
.hours-time { color: var(--sand); }
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: var(--sunset);
  color: var(--white);
  padding: 0.8rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.2s;
}
.map-btn:hover { background: var(--sunset-light); transform: translateY(-2px); }

@media (max-width: 768px) {
  .find-us-grid { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: var(--sand);
  padding: 2.5rem 0;
  text-align: center;
}
.footer p {
  font-size: 0.9rem;
  opacity: 0.7;
}
.footer a { color: var(--gold); }
.footer a:hover { text-decoration: underline; }

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: opacity 0.3s, transform 0.3s;
}
.floating-cta.hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  text-decoration: none;
}
.fab:hover { transform: scale(1.1); }
.fab-phone { background: var(--sunset); color: var(--white); }
.fab-map { background: var(--ocean); color: var(--gold); }

/* --- Ocean Texture (subtle) --- */
.ocean-texture {
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(27, 58, 75, 0.015) 2px,
      rgba(27, 58, 75, 0.015) 4px
    );
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sand-light); }
::-webkit-scrollbar-thumb { background: var(--ocean); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sunset); }
