/**
 * LBD Directory - Master Stylesheet
 * Incorporating Living by Design Nation Branding & The King's Assembly Typography & Aesthetics
 * (Fonts are asynchronously preconnected in includes/header.php for maximum performance on slow connections)
 */

:root {
  /* Palette - LBD Nation & King's Assembly Kingdom Aesthetics */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --font-editorial: 'Libre Bodoni', Georgia, serif;

  --color-primary: #0b1528;         /* Deep Majestic Kingdom Navy */
  --color-primary-light: #16243d;   /* Navy Card Accent */
  --color-primary-dark: #070e1c;    /* Deep Midnight */
  --color-gold: #d4af37;            /* Zion Kingdom Gold Accent */
  --color-gold-hover: #b89726;      /* Rich Gold Hover */
  --color-gold-light: #fbf5e5;      /* Soft Gold Tint */
  --color-accent-amber: #f59e0b;
  --color-emerald: #10b981;
  --color-rose: #ef4444;

  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 4px 14px 0 rgba(212, 175, 55, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Notification / Due Diligence Bar */
.top-notice-bar {
  background: var(--color-primary-dark);
  color: #e2e8f0;
  font-size: 0.825rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.top-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-notice-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-notice-text i {
  color: var(--color-gold);
}

.top-notice-links a {
  color: var(--color-gold);
  font-weight: 600;
  margin-left: 1rem;
}

.top-notice-links a:hover {
  text-decoration: underline;
}

/* Site Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-badge {
  background: var(--color-gold-light);
  color: #854d0e;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-item a {
  font-family: var(--font-primary);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 0.5rem 0;
  position: relative;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition);
}

.nav-item a:hover::after,
.nav-item a.active::after {
  width: 100%;
}

.nav-item a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--color-gold);
  color: #0b1528;
  border-color: var(--color-gold);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--color-gold-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-border-light);
  border-color: var(--color-primary);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: #0b1528;
}

.btn-danger {
  background: var(--color-rose);
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Mobile Nav Toggle Base Styles */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Hero Section (The King's Assembly Aesthetic + LBD Mission) */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 21, 40, 0.95) 0%, rgba(22, 36, 61, 0.90) 100%),
              url('../img/lbd_hero.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), #ffd700, var(--color-gold));
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: #ffffff;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--color-gold);
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
}

.hero-description {
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Hero Search Bar */
.hero-search-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-width: 820px;
  margin: 0 auto;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 200px 140px;
  gap: 0.75rem;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--color-text-light);
  font-size: 1rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-main);
  transition: var(--transition);
}

.form-select {
  padding-left: 2.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.search-pills-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.pill-link {
  font-size: 0.775rem;
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pill-link:hover {
  background: var(--color-gold);
  color: #0b1528;
  border-color: var(--color-gold);
}

/* Trust Mandate Section ("Why Buy Zion?") */
.trust-section {
  padding: 5rem 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--color-gold);
  font-family: var(--font-primary);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

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

.trust-card {
  background: var(--color-bg);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.trust-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.trust-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.trust-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Due Diligence Banner (Business Rule) */
.due-diligence-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--color-accent-amber);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  margin-top: 3.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.due-diligence-icon {
  font-size: 1.5rem;
  color: #d97706;
  margin-top: 0.1rem;
}

.due-diligence-content h4 {
  color: #92400e;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.due-diligence-content p {
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Sectors Grid */
.sectors-section {
  padding: 5rem 0;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.sector-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.sector-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.sector-card:hover .sector-icon {
  background: var(--color-gold);
  color: #0b1528;
}

.sector-name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.sector-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Business Listings Cards (Browse & Home) */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}

.business-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(212, 175, 55, 0.4);
}

.business-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.business-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--color-border-light);
}

.business-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-meta {
  flex: 1;
}

.business-title {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.business-title a {
  color: var(--color-primary);
}

.business-title a:hover {
  color: var(--color-gold);
}

.business-sector-badge {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.business-card-body {
  padding: 0 1.5rem 1.25rem;
  flex: 1;
}

.business-description {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.business-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag-item {
  font-size: 0.75rem;
  color: #3b82f6;
  background: #eff6ff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.business-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border-light);
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.business-location {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-approved {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-pending {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-changes {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-rejected {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-unverified {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.badge-suspended {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #0f172a;
}

/* Star Rating */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.text-amber { color: #f59e0b; }
.text-muted { color: #cbd5e1; }

.rating-number {
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--color-primary);
  margin-left: 0.25rem;
}

/* CTA Banner ("Join the community of value-driven Leaders") */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  border-top: 3px solid var(--color-gold);
}

.cta-content {
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-desc {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Site Footer */
.site-footer {
  background: #0d1322;
  color: #94a3b8;
  padding: 4.5rem 0 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-gold);
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.925rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
}

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

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--color-gold);
  color: #0b1528;
  transform: translateY(-3px);
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--color-gold);
  padding-left: 0.35rem;
}

.footer-bottom {
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom a {
  color: var(--color-gold);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 40, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.2rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 1.75rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--color-border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================== */

/* Desktop screens: enforce mobile toggle remains hidden */
@media (min-width: 769px) {
  .mobile-nav-toggle {
    display: none !important;
  }
}

/* Tablet screens (<= 1024px) */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .trust-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

/* Mobile & Tablet Portrait screens (<= 768px) */
@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .site-header .header-container {
    height: 68px;
    position: relative;
  }

  .site-logo img {
    height: 40px;
  }

  .logo-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .mobile-nav-toggle { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
    color: var(--color-primary);
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle.active {
    background: var(--color-gold-light);
    color: #854d0e;
    border-color: var(--color-gold);
  }

  /* Navigation stays at the top menu bar as a clean dropdown attached to header */
  .main-nav { 
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 3px solid var(--color-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
    animation: menuDropdown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes menuDropdown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-item a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
  }

  .nav-item a:hover,
  .nav-item a.active {
    background: var(--color-gold-light);
    color: #854d0e;
  }

  .nav-item a::after {
    display: none;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .header-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .top-notice-bar {
    padding: 0.5rem 0.75rem;
    font-size: 0.775rem;
  }
  .top-notice-inner { 
    flex-direction: column; 
    text-align: center; 
    gap: 0.35rem; 
  }
  .top-notice-links { 
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.15rem; 
  }
  .top-notice-links a {
    margin-left: 0;
  }

  .hero-section {
    padding: 3.5rem 0 4rem;
  }
  .hero-title { 
    font-size: 2.15rem; 
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }
  
  .hero-search-card {
    padding: 1rem;
    border-radius: var(--radius-md);
  }
  .search-form { 
    grid-template-columns: 1fr; 
    gap: 0.75rem;
  }
  .form-input, .form-select, .search-form .btn {
    height: 48px;
  }
  .search-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.25rem;
  }
  .pill-link {
    font-size: 0.775rem;
    padding: 0.25rem 0.65rem;
  }

  .sectors-section {
    padding: 3.5rem 0;
  }
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .sector-card {
    padding: 1.25rem 0.85rem;
  }
  .sector-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }
  .sector-name {
    font-size: 0.875rem;
  }

  .trust-grid { 
    grid-template-columns: 1fr; 
    gap: 1.25rem;
  }
  .due-diligence-box {
    margin-top: 2rem;
    padding: 1.25rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .listings-grid { 
    grid-template-columns: 1fr; 
    gap: 1.25rem;
  }
  .business-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
  }
  .business-avatar {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
  .business-title {
    font-size: 1.05rem;
  }
  .business-card-body {
    padding: 0 1.25rem 1rem;
  }
  .business-card-footer {
    padding: 0.85rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    text-align: center;
  }
  .business-card-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-banner {
    padding: 3.5rem 0;
  }
  .cta-title {
    font-size: 1.75rem;
  }
  .cta-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .cta-content .btn {
    width: 100%;
  }

  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 2.25rem;
    padding-bottom: 2.5rem;
  }
}

/* Small Smartphone screens (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .cta-title {
    font-size: 1.5rem;
  }
}
