/* ============================================================
   Country Waffles Livermore — Main Stylesheet
   Colors: Teal #2E9BB5 | Dark Teal #1B5E6E | Gold #D4A853 | Cream #F7F3EE
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', Arial, sans-serif;
  color: #2C3E35;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }

/* --- Color Variables --- */
:root {
  --teal: #2E9BB5;
  --dark-teal: #1B5E6E;
  --gold: #D4A853;
  --cream: #F7F3EE;
  --text-dark: #2C3E35;
  --text-mid: #555;
  --text-light: #888;
  --white: #ffffff;
}

/* --- Sticky Header --- */
#nav-container {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--dark-teal);
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar span {
  color: #B8E4EE;
  font-size: 0.8rem;
}
.top-bar a.tb-link {
  color: #B8E4EE;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.top-bar a.tb-link:hover { color: var(--gold); }
.top-bar a.tb-phone {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}
.top-bar a.tb-phone:hover { opacity: 0.85; }

/* --- Navigation --- */
.navbar {
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.navbar .logo { height: 48px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); border-bottom-color: var(--teal); }
.nav-order-btn {
  background: var(--gold);
  color: var(--white) !important;
  padding: 13px 32px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-bottom: none !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(212,168,83,0.45);
  letter-spacing: 0.4px;
  line-height: 1.2;
  display: inline-block !important;
}
.nav-order-btn:hover { background: #b8893a !important; box-shadow: 0 4px 14px rgba(212,168,83,0.55) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--dark-teal); display: block; border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none;
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  padding: 16px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid #eee;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mob-order {
  display: block;
  margin-top: 12px;
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 12px;
  border-radius: 5px;
  font-weight: 700;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--dark-teal);
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #c49840; transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 26px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-teal {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-teal:hover { background: var(--dark-teal); }
.btn-outline-teal {
  display: inline-block;
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  padding: 10px 24px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-outline-teal:hover { background: var(--teal); color: var(--white); }

/* --- Info Strip --- */
.info-strip {
  background: var(--gold);
  padding: 10px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.info-strip .strip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dark-teal);
  font-size: 0.85rem;
  font-weight: 700;
}
.info-strip a.strip-item {
  transition: opacity 0.2s;
}
.info-strip a.strip-item:hover { opacity: 0.8; }

/* --- Section Utilities --- */
.section { padding: 60px 24px; }
.section-sm { padding: 40px 24px; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-dark-teal { background: var(--dark-teal); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { color: var(--dark-teal); margin-bottom: 8px; }
.section-header p { color: var(--text-mid); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-divider { width: 60px; height: 3px; background: var(--gold); margin: 12px auto 0; border-radius: 2px; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--dark-teal) 0%, var(--teal) 100%);
  padding: 60px 24px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

/* --- Dish Cards --- */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dish-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.dish-img { height: 180px; overflow: hidden; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.dish-card:hover .dish-img img { transform: scale(1.04); }
.dish-body { padding: 16px; }
.dish-body h3 { font-family: 'Rye', Georgia, serif; color: var(--dark-teal); font-size: 1rem; margin-bottom: 5px; }
.dish-body p { color: var(--text-mid); font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* --- Reviews --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--white); border-radius: 10px; padding: 20px; box-shadow: 0 3px 12px rgba(0,0,0,0.07); }
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 8px; letter-spacing: 2px; }
.review-text { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; font-style: italic; margin-bottom: 10px; }
.reviewer { font-size: 0.82rem; color: var(--teal); font-weight: 700; }
.review-source { font-size: 0.75rem; color: var(--text-light); }

/* --- Value Cards --- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { background: var(--white); border-radius: 10px; padding: 24px 20px; text-align: center; box-shadow: 0 3px 12px rgba(0,0,0,0.07); }
.value-icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h3 { color: var(--dark-teal); font-size: 0.95rem; margin-bottom: 8px; }
.value-card p { color: var(--text-mid); font-size: 0.83rem; margin: 0; line-height: 1.55; }

/* --- Forms --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Footer --- */
.footer { background: var(--dark-teal); padding: 50px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-logo { height: 50px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-tagline { color: rgba(255,255,255,0.7); font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { font-family: 'Rye', Georgia, serif; color: var(--gold); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col p { color: #B8E4EE; font-size: 0.82rem; line-height: 1.8; margin: 0; }
.footer-col a { display: block; color: #B8E4EE; font-size: 0.82rem; line-height: 2; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-col .footer-contact-link { display: inline-flex; align-items: center; gap: 6px; color: #B8E4EE; font-size: 0.82rem; line-height: 2; transition: color 0.2s; }
.footer-col .footer-contact-link:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { color: #B8E4EE; font-size: 0.82rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.78rem; }

/* --- Email Popup --- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-overlay.show { display: flex; opacity: 1; }
.popup-box {
  background: var(--white);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.popup-header {
  background: linear-gradient(135deg, var(--dark-teal), var(--teal));
  padding: 28px 28px 20px;
  text-align: center;
}
.popup-header h3 { color: var(--gold); font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; margin-bottom: 6px; }
.popup-header p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin: 0; }
.popup-body { padding: 24px 28px 28px; }
.popup-incentive { background: var(--cream); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; text-align: center; border-left: 4px solid var(--gold); }
.popup-incentive strong { color: var(--dark-teal); font-size: 1rem; display: block; margin-bottom: 3px; }
.popup-incentive span { color: var(--text-mid); font-size: 0.83rem; }
.popup-body input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 0.92rem;
  margin-bottom: 12px;
  font-family: 'Lato', Arial, sans-serif;
}
.popup-body input[type="email"]:focus { outline: none; border-color: var(--teal); }
.popup-submit { width: 100%; padding: 13px; background: var(--gold); color: var(--dark-teal); border: none; border-radius: 6px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: 'Playfair Display', Georgia, serif; transition: background 0.2s; }
.popup-submit:hover { background: #c49840; }
.popup-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.popup-close:hover { color: var(--white); }
.popup-skip { text-align: center; margin-top: 10px; }
.popup-skip button { background: none; border: none; color: var(--text-light); font-size: 0.8rem; cursor: pointer; text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  /* On mobile: only the navbar sticks, not the top-bar */
  #nav-container { position: sticky; top: 0; z-index: 1000; }
  .top-bar { position: static; }
  .dishes-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top-bar { justify-content: center; }
  .section { padding: 40px 16px; }
  .dishes-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-strip { gap: 14px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
