/* ============================================
   SuffolkServicePros — Core Styles
   ============================================ */

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #163d6b 100%);
  padding: 72px 2rem 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect width='60' height='60' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
}
.hero > * { position: relative; }
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  color: white;
  margin-bottom: 14px;
  line-height: 1.15;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero > p {
  color: rgba(255,255,255,0.7);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 32px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 6px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 24px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  display: inline-block;
}
.hero-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Search Bar --- */
.search-bar {
  display: flex;
  gap: 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.search-bar select,
.search-bar input {
  flex: 1;
  padding: 16px 18px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.search-bar select {
  flex: 0 0 auto;
  max-width: 180px;
  border-right: 1px solid var(--cream-dark);
  background: white;
  cursor: pointer;
}
.search-bar button {
  padding: 16px 24px;
  background: var(--gold);
  color: white;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--gold-light); }

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 2rem;
  text-align: center;
}
.stat { padding: 16px 0; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
}
.stats-row .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Section Labels --- */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  text-align: center;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* --- Categories --- */
.categories-section {
  background: var(--cream);
  padding: 64px 2rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.cat-card {
  background: white;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--cream-dark);
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cat-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(200,134,10,0.12);
  transform: translateY(-2px);
}
.cat-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}
.cat-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* --- How It Works --- */
.how-section {
  padding: 64px 2rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.step {
  text-align: center;
  padding: 0 12px;
}
.step .step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Listings / Pro Cards --- */
.listings-section {
  background: var(--cream);
  padding: 64px 2rem;
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.pro-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow);
  transition: all 0.2s;
  position: relative;
}
.pro-card:hover {
  box-shadow: 0 4px 20px rgba(13,43,78,0.12);
}
.featured-ring {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(200,134,10,0.08);
}
.featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.pro-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.pro-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.pro-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.pro-trade {
  font-size: 13px;
  color: var(--text-muted);
}
.pro-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.stars {
  color: var(--gold);
  font-size: 15px;
}
.rating-text {
  font-size: 13px;
  color: var(--text-muted);
}
.pro-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--cream-dark);
}
.verified-badge {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}
.btn-contact {
  background: var(--navy);
  color: white;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-contact:hover { background: var(--navy-mid); }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #163d6b 100%);
  padding: 64px 2rem;
  text-align: center;
}
.cta-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  color: white;
  margin-bottom: 10px;
}
.cta-section p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin-bottom: 28px;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-white {
  background: white;
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-white:hover { background: var(--cream); }
.btn-outline-white {
  background: transparent;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* --- FAQ --- */
details summary::-webkit-details-marker { display: none; }
details[open] summary svg { transform: rotate(180deg); }
details[open] summary { color: var(--gold); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .search-bar { flex-direction: column; border-radius: 12px; }
  .search-bar select { max-width: none; border-right: none; border-bottom: 1px solid var(--cream-dark); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 1rem 40px; }
  .hero-trust { flex-direction: column; align-items: center; gap: 8px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 0; padding: 24px 1rem; }
}
