/* Monterey Bay Trade Directory - Static Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #F8FAFC;
  color-scheme: light;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

/* === Color Variables === */
:root {
  --navy: #041727;
  --navy-light: #0a2a42;
  --navy-dark: #020d17;
  --gold: #9B7A3C;
  --gold-light: #B8944F;
  --gold-dark: #7D6230;
  --gold-50: #FAF6EE;
  --ocean: #2F7EA8;
  --ocean-light: #3A96C8;
  --ocean-dark: #256588;
  --surface: #F8FAFC;
  --neutral: #E2E8F0;
}

/* === Typography === */
.font-heading { font-family: Georgia, 'Times New Roman', serif; }
.font-body { font-family: 'Inter', system-ui, sans-serif; }

/* === Gradients === */
.navy-gradient { background: linear-gradient(180deg, #041727 0%, #0a2a42 100%); }
.gold-gradient { background: linear-gradient(135deg, #9B7A3C 0%, #B8944F 50%, #9B7A3C 100%); }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* === Header === */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 23, 39, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(155, 122, 60, 0.2);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
@media (min-width: 640px) { .header-inner { height: 112px; } }
.logo-link { display: flex; align-items: center; gap: 8px; }
.logo-img { width: 80px; height: 80px; object-fit: contain; }
@media (min-width: 640px) { .logo-img { width: 96px; height: 96px; } }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-title { color: #fff; font-family: Georgia, serif; font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: 0.025em; }
@media (min-width: 640px) { .logo-title { font-size: 18px; } }
.logo-subtitle { color: var(--gold); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.2; }
@media (min-width: 640px) { .logo-subtitle { font-size: 12px; } }

.nav-desktop { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-link {
  padding: 8px 16px; font-size: 14px; color: rgba(255,255,255,0.8);
  border-radius: 6px; transition: all 0.2s; position: relative;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.btn-gold {
  margin-left: 12px; padding: 10px 20px;
  background: var(--gold); color: var(--navy);
  font-weight: 600; font-size: 14px; border-radius: 6px;
  transition: background 0.2s; display: flex; align-items: center; gap: 8px;
}
.btn-gold:hover { background: var(--gold-light); }

/* Mobile menu */
.mobile-toggle { display: block; color: #fff; padding: 8px; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-menu {
  display: none; background: var(--navy);
  border-top: 1px solid rgba(155, 122, 60, 0.2);
  padding: 16px; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; color: rgba(255,255,255,0.8);
  border-radius: 6px; transition: all 0.2s; font-size: 15px;
}
.mobile-menu a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.mobile-menu .btn-gold {
  margin-top: 8px; text-align: center; justify-content: center;
  padding: 12px 20px; margin-left: 0;
}
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* === Hero Section === */
.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(4,23,39,0.7), rgba(4,23,39,0.6), rgba(4,23,39,0.75));
}
.hero-content {
  position: relative; z-index: 10;
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
  text-align: center;
}
.hero h1 {
  font-family: Georgia, serif; font-weight: 700; color: #fff;
  font-size: 36px; line-height: 1.15; margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}
@media (min-width: 640px) { .hero h1 { font-size: 48px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 60px; } }
.hero h1 .highlight { color: #fff; border-bottom: 4px solid var(--gold); padding-bottom: 4px; }
.hero p {
  color: #fff; font-size: 18px; max-width: 640px; margin: 0 auto 32px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
@media (min-width: 640px) { .hero p { font-size: 20px; } }

/* Search bar */
.search-bar {
  max-width: 560px; margin: 0 auto;
  display: flex; background: #fff; border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  overflow: hidden;
}
.search-bar input {
  flex: 1; padding: 16px 16px 16px 48px; border: none; outline: none;
  font-size: 16px; color: #111827; background-color: #fff;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
  -webkit-appearance: none; appearance: none;
}
.search-bar input::placeholder { color: #9ca3af; opacity: 1; }
.search-bar .search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: #9ca3af;
}
.search-bar .input-wrap { flex: 1; position: relative; }
.search-bar button {
  padding: 0 32px; background: var(--gold); color: var(--navy);
  font-weight: 600; font-size: 15px; transition: background 0.2s;
}
.search-bar button:hover { background: var(--gold-light); }

/* === Page Header (inner pages) === */
.page-header {
  padding: 64px 24px; text-align: center;
}
.page-header h1 {
  font-family: Georgia, serif; font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 12px;
}
@media (min-width: 640px) { .page-header h1 { font-size: 48px; } }
.page-header h1 .gold { color: var(--gold); }
.page-header p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* === Section Styles === */
.section { padding: 64px 0; }
@media (min-width: 640px) { .section { padding: 80px 0; } }
.section-title {
  font-family: Georgia, serif; font-size: 28px; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
}
@media (min-width: 640px) { .section-title { font-size: 36px; } }
.section-subtitle { color: #6b7280; font-size: 18px; max-width: 560px; margin: 0 auto; }

/* === Grid === */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* === Cards === */
.card {
  background: #fff; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}
.card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* Category Card */
.cat-card {
  padding: 32px; text-align: center; position: relative; overflow: hidden; cursor: pointer;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(155, 122, 60, 0.1); display: flex; align-items: center; justify-content: center;
  color: var(--gold); transition: all 0.3s; font-size: 28px;
}
.cat-card:hover .cat-icon { background: var(--gold); color: var(--navy); }
.cat-card h3 { font-family: Georgia, serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cat-card p { color: #6b7280; font-size: 14px; margin-bottom: 12px; }
.cat-count { color: var(--ocean); font-size: 14px; font-weight: 500; }

/* Business Card */
.biz-card { cursor: pointer; }
.biz-card-img {
  position: relative; aspect-ratio: 16/10; background: #e5e7eb; overflow: hidden;
}
.biz-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.biz-card:hover .biz-card-img img { transform: scale(1.05); }
.biz-badge-featured {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--navy);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px;
}
.biz-badge-cat {
  position: absolute; top: 12px; right: 12px;
  background: rgba(4, 23, 39, 0.8); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 4px;
}
.biz-card-body { padding: 20px; }
.biz-card h3 {
  font-family: Georgia, serif; color: var(--navy); font-size: 18px;
  font-weight: 700; margin-bottom: 4px; transition: color 0.2s;
}
.biz-card:hover h3 { color: var(--ocean); }
.biz-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.stars { display: flex; gap: 1px; }
.star { width: 14px; height: 14px; }
.star.filled { color: var(--gold); }
.star.empty { color: #d1d5db; }
.biz-rating span { font-size: 14px; color: #4b5563; }
.biz-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; font-size: 14px; color: #6b7280; }
.biz-meta svg { width: 14px; height: 14px; margin-right: 4px; }
.biz-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.biz-service-tag {
  font-size: 12px; background: var(--surface); color: #4b5563;
  padding: 2px 8px; border-radius: 4px;
}
.biz-view-link {
  display: flex; align-items: center; gap: 4px;
  color: var(--ocean); font-size: 14px; font-weight: 500;
}
.biz-card.ring-gold { box-shadow: 0 0 0 2px var(--gold), 0 1px 3px rgba(0,0,0,0.1); }

/* === Stats Band === */
.stats-band { padding: 56px 0; }
.stat-item { text-align: center; }
.stat-value {
  font-family: Georgia, serif; font-size: 28px; font-weight: 700;
  color: var(--gold); margin-bottom: 4px;
}
@media (min-width: 640px) { .stat-value { font-size: 36px; } }
.stat-label { color: rgba(255,255,255,0.6); font-size: 14px; }

/* === Why Choose Us / Values === */
.value-card { padding: 32px; text-align: center; }
.value-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.value-icon.gold-bg { background: rgba(155, 122, 60, 0.1); color: var(--gold); }
.value-icon.ocean-bg { background: rgba(47, 126, 168, 0.1); color: var(--ocean); }
.value-card h3 { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.value-card p { color: #6b7280; font-size: 14px; line-height: 1.6; }

/* === CTA Section === */
.cta-section {
  position: relative; padding: 64px 0; overflow: hidden;
}
@media (min-width: 640px) { .cta-section { padding: 80px 0; } }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-overlay { position: absolute; inset: 0; background: rgba(4, 23, 39, 0.65); }
.cta-content {
  position: relative; z-index: 10; max-width: 1200px; margin: 0 auto;
  padding: 0 24px; text-align: center;
}
.cta-content h2 {
  font-family: Georgia, serif; font-size: 28px; font-weight: 700;
  color: #fff; margin-bottom: 16px;
}
@media (min-width: 640px) { .cta-content h2 { font-size: 36px; } }
.cta-content p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.cta-buttons { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }
.btn-primary {
  padding: 12px 32px; background: var(--gold); color: var(--navy);
  font-weight: 600; border-radius: 6px; transition: background 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  padding: 12px 32px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3); color: #fff;
  font-weight: 600; border-radius: 6px; transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }
.btn-navy {
  padding: 12px 32px; background: var(--navy); color: #fff;
  font-weight: 600; border-radius: 6px; transition: background 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-navy:hover { background: var(--navy-light); }

/* === Contact Page === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; } }
.contact-info-card { padding: 24px; }
.contact-info-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(155, 122, 60, 0.1); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--gold);
}
.contact-label { font-size: 12px; color: #9ca3af; }
.contact-value { font-size: 14px; font-weight: 500; color: #374151; }
.contact-cta {
  background: var(--navy); border-radius: 8px; padding: 24px; text-align: center;
}
.contact-cta h3 { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.contact-cta p { color: rgba(255,255,255,0.6); font-size: 14px; }

/* === About Page === */
.about-mission { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .about-mission { grid-template-columns: 1fr 1fr; } }
.about-img {
  position: relative; aspect-ratio: 4/3; border-radius: 8px;
  overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); background: #e5e7eb;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-label { color: var(--gold); font-size: 14px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* === Browse Page === */
.browse-controls {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px;
}
@media (min-width: 768px) { .browse-controls { flex-direction: row; align-items: center; } }
.browse-search {
  flex: 1; position: relative;
}
.browse-search input {
  width: 100%; padding: 12px 16px 12px 44px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 15px; outline: none; transition: border-color 0.2s;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
  background-color: #fff; color: #111827;
  -webkit-appearance: none; appearance: none;
}
.browse-search input::placeholder { color: #9ca3af; opacity: 1; }
.browse-search input:focus { border-color: var(--ocean); }
.browse-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #9ca3af;
}
.browse-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 500;
  background: #fff; color: #4b5563; border: 1px solid #e2e8f0;
  transition: all 0.2s; cursor: pointer;
}
.filter-btn:hover { border-color: var(--ocean); color: var(--ocean); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.results-count { font-size: 14px; color: #6b7280; margin-bottom: 16px; }

/* === Business Detail Modal === */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 23, 39, 0.8); backdrop-filter: blur(4px);
  justify-content: center; align-items: flex-start;
  padding: 40px 16px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 12px; width: 100%; max-width: 800px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); overflow: hidden;
  margin: auto 0;
}
.modal-header {
  position: relative; aspect-ratio: 21/9; background: #e5e7eb; overflow: hidden;
}
.modal-header img { width: 100%; height: 100%; object-fit: cover; }
.modal-header-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px; background: linear-gradient(transparent, rgba(4,23,39,0.8));
}
.modal-header h2 {
  font-family: Georgia, serif; color: #fff; font-size: 24px; font-weight: 700;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: background 0.2s; z-index: 10;
}
.modal-close:hover { background: rgba(0,0,0,0.7); }
.modal-body { padding: 24px; }
.modal-meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid #e2e8f0;
}
.modal-meta-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #4b5563; }
.modal-section { margin-bottom: 24px; }
.modal-section h3 {
  font-family: Georgia, serif; font-size: 16px; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
}
.modal-services { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-service-tag {
  font-size: 13px; background: var(--surface); color: #374151;
  padding: 6px 12px; border-radius: 6px; border: 1px solid #e2e8f0;
}
.modal-contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .modal-contact-grid { grid-template-columns: 1fr 1fr; } }
.modal-contact-item {
  display: flex; align-items: center; gap: 8px; padding: 12px;
  background: var(--surface); border-radius: 8px; font-size: 14px;
}
.modal-contact-item svg { color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }
.modal-contact-item a { color: var(--ocean); word-break: break-all; }
.modal-contact-item a:hover { text-decoration: underline; }
.modal-amz-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: var(--ocean); color: #fff;
  font-weight: 600; font-size: 14px; border-radius: 6px;
  transition: background 0.2s; margin-top: 8px;
}
.modal-amz-link:hover { background: var(--ocean-dark); }

/* GHL form section in modal */
.modal-form-section {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid #e2e8f0;
}
.modal-form-section h3 {
  font-family: Georgia, serif; font-size: 18px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
}

/* === Footer === */
.footer { background: var(--navy); color: #fff; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(155, 122, 60, 0.2); display: flex;
  align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0;
}
.footer-brand .logo-title { font-size: 18px; }
.footer p.muted { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6; }
.footer h3 {
  font-family: Georgia, serif; color: var(--gold);
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 12px; }
.footer-contact-item svg { color: var(--gold); width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px; padding-top: 24px; text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13px; }

/* === Utility === */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.bg-surface { background: var(--surface); }
.bg-neutral-30 { background: rgba(226, 232, 240, 0.3); }
.hidden { display: none; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.5s ease-out forwards; }

/* No results */
.no-results {
  text-align: center; padding: 64px 24px; color: #6b7280;
}
.no-results svg { width: 64px; height: 64px; margin: 0 auto 16px; color: #d1d5db; }
.no-results h3 { font-family: Georgia, serif; font-size: 20px; color: var(--navy); margin-bottom: 8px; }
