@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand-navy: #0B2447;
  --brand-navy-2: #16305C;
  --brand-blue: #2E86DE;
  --brand-green: #1E7B34;
  --brand-orange: #E8770C;
  --brand-pink: #D6336C;
  --brand-purple: #7048E8;
  --background: #FFFFFF;
  --surface: #F7F9FC;
  --text: #16213A;
  --muted: #6B7688;
  --border: #E4E8F0;
  --success: #1E9E52;
  --warning: #E8A20C;
  --danger: #D64545;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(11, 36, 71, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 36, 71, 0.18);
  --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  margin: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility bar */
.utility-bar {
  background: var(--brand-navy);
  color: #fff;
  font-size: 13px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.utility-bar .ub-message { flex: 1; text-align: center; }
.utility-bar .ub-message a { color: #6FE39B; font-weight: 600; margin-left: 6px; }
.utility-bar .ub-account { display: flex; gap: 14px; font-size: 12.5px; white-space: nowrap; }
.utility-bar .ub-account a { color: #c8d3e6; }
.utility-bar .ub-account a:hover { color: #fff; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; font-family: var(--font-display);
  flex-shrink: 0;
}
.brand-text .brand-name { font-family: var(--font-display); font-weight: 700; color: var(--brand-navy); font-size: 18px; line-height: 1.1; letter-spacing: -.01em; }
.brand-text .brand-tagline { font-size: 11px; color: var(--muted); }

.main-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.main-nav a { font-weight: 600; font-size: 14.5px; color: var(--text); }
.main-nav a:hover { color: var(--brand-blue); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-body);
}
.btn-primary { background: var(--brand-navy); color: #fff; }
.btn-primary:hover { background: var(--brand-navy-2); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--brand-navy); }
.btn-cta { background: var(--brand-orange); color: #fff; }
.btn-green { background: var(--brand-green); color: #fff; }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 46px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.90) 32%, rgba(11,36,71,0.20) 62%, rgba(11,36,71,0.35) 100%),
    url('https://images.unsplash.com/photo-1712998000706-7e9c218e5e91?fm=jpg&q=70&w=1800&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--brand-green); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.hero h1 {
  font-size: 46px; color: var(--brand-navy); margin: 0 0 16px; line-height: 1.08;
  font-weight: 700; letter-spacing: -0.01em; max-width: 480px;
}
.hero p.lead { color: var(--text); font-size: 16.5px; max-width: 480px; margin-bottom: 24px; opacity: .85; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }

.search-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px; display: flex; gap: 18px; flex-wrap: wrap; align-items: end;
  max-width: 900px;
}
.search-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 600; flex: 1; min-width: 130px; }
.search-field input, .search-field select {
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; font-family: var(--font-body); color: var(--text);
}

/* Stats */
.stats-strip { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.stat { text-align: center; display: flex; align-items: center; gap: 12px; }
.stat-icon { width: 40px; height: 40px; flex-shrink: 0; }
.stat .num { font-size: 24px; font-weight: 700; color: var(--brand-navy); font-family: var(--font-display); text-align: left; line-height: 1.1; }
.stat .label { font-size: 12.5px; color: var(--muted); text-align: left; }

/* Sections */
.section { padding: 48px 0; }
.section-title { font-size: 24px; font-weight: 700; color: var(--brand-navy); margin: 0 0 6px; text-align: center; }
.section-subtitle { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.section-title-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.section-title-row h2 { font-size: 21px; color: var(--brand-navy); margin: 0; font-weight: 700; }
.view-all { font-size: 13.5px; font-weight: 600; color: var(--brand-blue); }

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-tile {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: left;
  display: flex; gap: 12px; align-items: center; background: #fff; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.category-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.category-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.category-icon svg { width: 20px; height: 20px; }
.category-tile .cat-name { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.category-tile .cat-sub { font-size: 11.5px; color: var(--muted); }

/* Business cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.business-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.business-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.business-card .thumb {
  height: 140px; background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 12px; position: relative;
}
.badge {
  position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
}
.badge-verified { background: var(--success); color: #fff; }
.badge-sample { background: var(--warning); color: #4a3300; }
.business-card .body { padding: 14px; }
.business-card .biz-name { font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.business-card .biz-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.rating { color: var(--brand-orange); font-weight: 700; font-size: 13px; }
.price { font-weight: 700; color: var(--brand-navy); font-size: 13px; margin-top: 6px; }

/* Featured + Map row */
.featured-map-row { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; align-items: start; }
.map-panel { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-panel .map-visual {
  height: 240px; position: relative; background: linear-gradient(160deg, #DCEEDC 0%, #CFE7EE 55%, #D7ECF5 100%);
  overflow: hidden;
}
.map-pin { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.map-panel .map-legend { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--muted); }
.map-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }

/* 3-column info + AI */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 18px; }
.info-list { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.info-list h3 { font-size: 15px; color: var(--brand-navy); margin: 0 0 12px; font-weight: 700; }
.info-row { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-row .info-meta { font-size: 11.5px; color: var(--muted); }
.ai-card { background: var(--brand-navy); color: #fff; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.ai-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.ai-card p { font-size: 12.5px; color: #b9c6de; margin: 0 0 14px; }
.ai-chat-bubble { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px; }
.ai-input { display: flex; gap: 6px; margin-top: auto; }
.ai-input input { flex: 1; border-radius: 8px; border: none; padding: 9px 10px; font-size: 12.5px; }

/* Trust bar */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.trust-card .trust-icon { width: 34px; height: 34px; margin: 0 auto 8px; }
.trust-card .trust-name { font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.trust-card .trust-note { font-size: 11.5px; color: var(--muted); }
.trust-card blockquote { font-size: 12.5px; font-style: italic; color: var(--text); margin: 4px 0; }
.trust-card cite { font-size: 11.5px; color: var(--muted); font-style: normal; }

/* Newsletter */
.newsletter-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.newsletter-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.newsletter-row h3 { margin: 0 0 4px; font-size: 16px; color: var(--brand-navy); font-weight: 700; }
.newsletter-row p { margin: 0; font-size: 13px; color: var(--muted); }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); font-size: 13.5px; min-width: 220px; }
.social-row { display: flex; gap: 10px; }
.social-icon { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.social-icon svg { width: 15px; height: 15px; color: var(--brand-navy); }

/* Footer */
.site-footer { background: var(--brand-navy); color: #cfd9ea; padding: 40px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 22px; }
.footer-grid h4 { color: #fff; font-size: 13.5px; margin: 0 0 12px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13px; }
.footer-grid li a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: 12px; color: #8395b3; margin-top: 30px; border-top: 1px solid #23375f; padding-top: 16px; }

/* Category / directory pages */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--brand-blue); }

/* Business detail */
.biz-hero { border-radius: var(--radius); overflow: hidden; height: 320px; background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 14px; margin-bottom: 20px; position: relative; }
.biz-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
.facility-pill { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; margin: 0 8px 8px 0; }
.sticky-box { position: sticky; top: 90px; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.review-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.review-item:last-child { border-bottom: none; }

/* Forms */
.form-page { max-width: 420px; margin: 60px auto; }
.form-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-group input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; }
.alert-danger { background: #FBEAEA; color: var(--danger); border: 1px solid #f3caca; }
.alert-success { background: #E9F9EF; color: var(--success); border: 1px solid #c7ecd4; }
.muted-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }

/* Error pages */
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-size: 72px; font-weight: 800; color: var(--brand-navy); font-family: var(--font-display); }

@media (max-width: 1000px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr 1fr; }
  .featured-map-row { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-bg { background-position: center; }
  .utility-bar .ub-account { display: none; }
}
