/* ============================================================
   Top Roofing Solutions — Main Stylesheet
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
  --primary:        #D35400;
  --primary-dark:   #A93226;
  --primary-light:  #E8650A;
  --accent:         #E67E22;
  --accent-light:   #F39C12;
  --bg:             #fafaf9;
  --surface:        #ffffff;
  --surface-2:      #f7f6f4;
  --border:         #e8e6e1;
  --text:           #1a1a19;
  --text-secondary: #5f5e5b;
  --text-muted:     #9c9a95;
  --star-color:     #D9A514;
  --verified-bg:    #31aa40;
  --verified-fg:    #f4faf4;
  --premium-bg:     #005798;
  --premium-fg:     #f4f9ff;
  --featured-bg:    #00a692;
  --featured-fg:    #f2fbf9;
  --radius:         10px;
  --radius-sm:      6px;
  --radius-lg:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow:         0 2px 8px rgba(0,0,0,.10);
  --shadow-md:      0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.14);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.logo span.highlight { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all .2s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--surface-2);
  color: var(--text);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 2px 8px rgba(211,84,0,.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(211,84,0,.35); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(211,84,0,.04); }
.btn-ghost { color: var(--text-secondary); padding: 9px 12px; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2c2c54 40%, #162032 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #f37513, #e99b2a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,.72);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-search {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  max-width: 600px;
  margin: 0 auto 24px;
}
.hero-search input, .hero-search select {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: transparent;
  color: var(--text);
}
.hero-search select { flex: 0 0 140px; border-left: 1px solid var(--border); padding-left: 14px; }
.hero-search .btn { flex-shrink: 0; padding: 10px 20px; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
.hero-stat strong { color: #fff; font-size: 16px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--text);
}
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-all:hover { text-decoration: underline; }

/* ============================================================
   STATE TABS
   ============================================================ */
.state-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.state-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  cursor: pointer;
  transition: all .2s;
}
.state-tab:hover { border-color: var(--primary); color: var(--primary); }
.state-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(211,84,0,.3);
}

/* ============================================================
   RANKING CARDS
   ============================================================ */
.ranking-list { display: flex; flex-direction: column; gap: 12px; }
.ranking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all .25s;
  box-shadow: var(--shadow-sm);
}
.ranking-card:hover {
  border-color: rgba(211,84,0,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.rank-gold   { background: linear-gradient(135deg, #f7d060, #d9a514); color: #5a3e00; }
.rank-silver { background: linear-gradient(135deg, #e0e0e0, #b0b0b0); color: #3a3a3a; }
.rank-bronze { background: linear-gradient(135deg, #d4956a, #a0522d); color: #fff; }
.rank-default{ background: var(--surface-2); color: var(--text-muted); }

.company-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.company-logo img { width: 100%; height: 100%; object-fit: cover; }

.ranking-info { flex: 1; min-width: 0; }
.ranking-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ranking-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.ranking-location { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }
.rating-row { display: flex; align-items: center; gap: 6px; }
.rating-score { font-weight: 700; font-size: 14px; color: var(--text); }
.rating-count { font-size: 13px; color: var(--text-muted); }

.services-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 50px;
}

.ranking-actions { display: flex; gap: 8px; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
@media (max-width: 600px) { .ranking-actions { flex-direction: row; } }

/* ============================================================
   COMPANY CARDS (Grid)
   ============================================================ */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .25s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.company-card:hover {
  border-color: rgba(211,84,0,.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-header { display: flex; gap: 14px; margin-bottom: 14px; align-items: flex-start; }
.card-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.card-location { font-size: 13px; color: var(--text-muted); }
.card-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.card-services { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.est-badge { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.badge-verified { background: var(--verified-bg); color: var(--verified-fg); }
.badge-premium  { background: var(--premium-bg);  color: var(--premium-fg); }
.badge-featured { background: var(--featured-bg); color: var(--featured-fg); }

/* ============================================================
   STARS
   ============================================================ */
.stars { display: inline-flex; gap: 1px; }
.star { font-size: 15px; line-height: 1; cursor: default; transition: transform .1s; }
.star-filled { color: var(--star-color); }
.star-half   { color: var(--star-color); opacity: .6; }
.star-empty  { color: #d1cfca; }
.stars[data-interactive="true"] .star { cursor: pointer; }
.stars[data-interactive="true"] .star:hover { transform: scale(1.2); }

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all .25s;
}
.why-card:hover { border-color: rgba(211,84,0,.3); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(211,84,0,.1), rgba(230,126,34,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.why-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--primary);
  background: rgba(211,84,0,.03);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.service-card a { display: block; }
.service-icon { font-size: 26px; margin-bottom: 8px; }
.service-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: linear-gradient(135deg, #1a1a2e, #2c2c54); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.step-desc { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.55; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-banner p { font-size: 16px; opacity: .85; margin-bottom: 28px; }
.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover { background: var(--surface-2); transform: translateY(-1px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-about { font-size: 13px; line-height: 1.65; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   COMPANY DETAIL PAGE
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

.company-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.company-hero-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.company-hero-info { flex: 1; }
.company-hero-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.company-hero-tagline { font-size: 15px; color: var(--text-muted); margin-bottom: 10px; }
.company-hero-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.company-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.meta-value { font-size: 14px; font-weight: 600; color: var(--text); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
.detail-main { min-width: 0; }
.detail-sidebar {}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   RATING WIDGET
   ============================================================ */
.rating-overview {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.rating-big-score {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.rating-big-stars { font-size: 22px; margin: 4px 0; }
.rating-big-count { font-size: 13px; color: var(--text-muted); }
.rating-bars { flex: 1; min-width: 200px; }
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--text-muted);
}
.rating-bar-row span:first-child { width: 30px; text-align: right; }
.bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--star-color); border-radius: 3px; transition: width .4s; }
.rating-bar-row span:last-child { width: 24px; }

/* Review Form */
.review-form { margin-top: 20px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211,84,0,.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.star-picker { display: flex; gap: 4px; }
.star-picker .star { font-size: 28px; cursor: pointer; color: #d1cfca; transition: all .15s; }
.star-picker .star:hover, .star-picker .star.active { color: var(--star-color); transform: scale(1.15); }

/* Reviews list */
.review-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; }
.reviewer-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-title { font-weight: 600; font-size: 14px; margin: 6px 0 4px; }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* Sidebar contact card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.contact-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}
.contact-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.contact-item a { color: var(--primary); }
.contact-item a:hover { text-decoration: underline; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-bar-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-bar-row .form-input { flex: 1; min-width: 200px; }
.search-bar-row .form-select { flex: 0 0 140px; }
.results-header {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.results-header strong { color: var(--text); }

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; background: #f0f2f5; }
.admin-sidebar {
  width: 240px;
  background: #1a1a2e;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar-logo .logo { font-size: 17px; color: #fff; }
.admin-sidebar-logo .logo-icon { width: 30px; height: 30px; font-size: 15px; }

.admin-nav { padding: 16px 12px; flex: 1; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all .2s;
}
.admin-nav-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav-item.active { background: rgba(211,84,0,.25); color: var(--accent); }
.admin-nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; }

.admin-main { flex: 1; overflow: auto; }
.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-header h1 { font-size: 18px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
.admin-body { padding: 32px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-card.accent { background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; }
.stat-card.accent .stat-value, .stat-card.accent .stat-label { color: #fff; }
.stat-card.accent .stat-label { opacity: .8; }

.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-table-head h3 { font-size: 16px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
tbody tr:hover { background: rgba(0,0,0,.015); }
tbody td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }

.table-actions { display: flex; gap: 6px; }
.btn-action {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  transition: all .2s;
}
.btn-edit:hover  { border-color: #0077cc; color: #0077cc; }
.btn-delete:hover{ border-color: #c0392b; color: #c0392b; }
.btn-approve:hover{ border-color: var(--verified-bg); color: var(--verified-bg); }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.status-dot::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
}
.status-active::before   { background: var(--verified-bg); }
.status-inactive::before { background: #e74c3c; }
.status-pending::before  { background: #f39c12; }

/* Login page */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e, #2c2c54);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}
.login-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  transition: all .2s;
  cursor: pointer;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-width: 280px;
  animation: slideIn .3s ease;
  border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--verified-bg); }
.toast.error   { border-left-color: #e74c3c; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { order: -1; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .hero-search { flex-wrap: wrap; }
  .hero-search select { flex: 1 1 100%; border-left: none; border-top: 1px solid var(--border); }
  .ranking-card { flex-wrap: wrap; }
  .ranking-actions { flex-direction: row; align-items: center; width: 100%; }
  .company-hero { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-body { padding: 20px 16px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .company-hero { padding: 20px; }
  .cta-banner { padding: 32px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
