/* ==========================================================================
   sd.insure — Page-Specific Styles
   ========================================================================== */

/* Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 40%, var(--navy-mid) 100%);
  color: #fff;
  padding: 7rem 1.5rem 6rem;
  text-align: center;
  overflow: hidden;
}

/* Decorative gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -12%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -35%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

.hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.2rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 54ch;
}

.hero .btn-group {
  justify-content: center;
}

.hero-sm {
  padding: 1.75rem 1.5rem 1.5rem;
}

.hero-sm h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.hero-sm h1::after {
  width: 40px;
  height: 2px;
  margin: 0.6rem auto 0;
}

.hero-sm p {
  font-size: 0.95rem;
  margin: 0.5rem auto 0;
  color: rgba(255, 255, 255, 0.55);
}

/* Insurance Grid (Homepage)
   ========================================================================== */
.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.insurance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid rgba(226, 230, 237, 0.7);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  text-decoration: none;
  color: var(--charcoal);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  flex: 0 1 calc(25% - 1rem);
}

.insurance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.insurance-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
  color: var(--charcoal);
}

.insurance-card:hover::before {
  opacity: 1;
}

.insurance-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-glow);
  border-radius: 14px;
}

.insurance-card-label {
  font-family: var(--font-heading);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 5rem 1rem 4rem;
  }

  .hero p {
    font-size: 1.05rem;
    margin: 1.25rem auto 2rem;
  }

  .hero .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero .btn-group .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .insurance-card {
    flex: 0 1 calc(50% - 0.75rem);
  }

  .info-section,
  .about-section {
    padding: 2.5rem 1rem;
  }

  .info-content h2,
  .about-content h2 {
    font-size: 1.3rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 0.75rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .insurance-card {
    flex: 0 1 calc(50% - 0.625rem);
    padding: 1.25rem 0.75rem;
  }

  .insurance-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }

  .info-section,
  .about-section {
    padding: 2rem 0.75rem;
  }

  .value-grid {
    gap: 1rem;
  }
}

/* Agent Finder Teaser (Homepage)
   ========================================================================== */
.finder-teaser {
  position: relative;
}

.finder-teaser .container {
  position: relative;
  z-index: 1;
}

.finder-teaser h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.finder-teaser p {
  margin: 1.25rem auto 2rem;
  max-width: 50ch;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Agent Finder Layout
   ========================================================================== */
.finder-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  min-height: 600px;
}

.finder-sidebar {
  background: #fff;
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.finder-sidebar h3 {
  margin-bottom: 1rem;
}

.finder-search {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.finder-search:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.finder-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.finder-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.finder-results {
  margin-top: 1rem;
}

.finder-map {
  background: var(--warm-gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  min-height: 600px;
}

@media (max-width: 768px) {
  .finder-layout {
    grid-template-columns: 1fr;
  }

  .finder-map {
    min-height: 400px;
  }
}

/* Form Styles
   ========================================================================== */
.form-page {
  max-width: 680px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--rust);
}

.form-error {
  color: var(--rust);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Insurance Info Pages
   ========================================================================== */
.info-section {
  padding: 3.5rem 1.5rem;
}

.info-section:nth-child(even) {
  background: #fff;
}

.info-content {
  max-width: 780px;
  margin: 0 auto;
}

.info-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 1rem;
}

.info-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.info-content ul {
  margin-bottom: 1.25rem;
  padding-left: 0;
}

.info-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.info-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* About Page
   ========================================================================== */
.about-section {
  padding: 3.5rem 1.5rem;
}

.about-section:nth-child(even) {
  background: #fff;
}

.about-content {
  max-width: 780px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-muted);
}

.about-content ul {
  margin-bottom: 1.25rem;
  padding-left: 0;
}

.about-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.about-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

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

@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}
