/* =========================================================
   COMPONENTS.CSS
   Reusable UI components only.
   No page-specific overrides. No section layout wrappers.
   ========================================================= */

/* Breadcrumb styles are owned by core/sections.css. */

/* ------------------------------
   Hero utility components
   ------------------------------ */
.hero-service-links-bridge {
  margin-top: 20px;
  margin-bottom: 34px;
  max-width: 760px;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.8;
  color: #d7e0ee;
}

.hero-service-links-bridge a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 213, 116, 0.38);
  transition: color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.hero-service-links-bridge a:hover,
.hero-service-links-bridge a:focus {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.services-header .hero-service-links-bridge {
  margin: 18px auto 0;
  max-width: 920px;
  padding: 18px 22px;
  text-align: center;
  color: #d9e3f3;
  background: linear-gradient(180deg, #0b2347 0%, #071a36 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(5, 19, 41, 0.18);
}

.services-header .hero-service-links-bridge a {
  color: var(--gold-light);
  border-bottom-color: rgba(242, 213, 116, 0.35);
}

.services-header .hero-service-links-bridge a:hover,
.services-header .hero-service-links-bridge a:focus {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
}

/* ------------------------------
   Hero buttons
   ------------------------------ */
.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  margin-bottom: 30px;
}

.hero-btns .lux-btn,
.cta-action-row .lux-btn,
.full-width-btn.lux-btn {
  min-height: 52px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.gold-btn {
  background: linear-gradient(135deg, #d4af37 0%, #f2d574 100%);
  color: #0b1e3a;
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.24);
}

.gold-btn:hover,
.gold-btn:focus {
  color: #0b1e3a;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.30);
}

.outline-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.outline-light:hover,
.outline-light:focus {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.outline-dark {
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 30, 58, 0.14);
}

.outline-dark:hover,
.outline-dark:focus {
  color: var(--navy-deep);
  background: var(--white);
  border-color: rgba(11, 30, 58, 0.24);
  transform: translateY(-2px);
}

/* Glass review card styles are owned by pages/service-page.css. */

/* Luxury ticker styles are owned by core/sections.css. */

/* Image badge styles are owned by core/sections.css. */

/* Service links bridge styles are owned by pages/service-page.css. */

/* ------------------------------
   Story / editorial accent panels
   ------------------------------ */
.story-accent-panel {
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.98) 62%, rgba(241,246,255,0.98) 100%);
  border: 1px solid rgba(11, 30, 58, 0.07);
  box-shadow: 0 26px 64px rgba(11, 30, 58, 0.08);
}

.story-accent-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #d1aa45 0%, #f1d07d 100%);
}

.story-accent-panel::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 168, 255, 0.18) 0%, rgba(119, 168, 255, 0.06) 45%, rgba(119, 168, 255, 0) 72%);
  pointer-events: none;
}

.story-accent-panel > * {
  position: relative;
  z-index: 1;
}

.story-accent-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #b78925;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story-accent-label::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d1aa45 0%, rgba(209, 170, 69, 0.18) 100%);
}

.story-accent-text {
  margin: 0;
  color: #233756;
  font-size: 1.04rem;
  line-height: 1.9;
}

.story-accent-text strong {
  color: #0b1e3a;
}

.story-accent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 26px;
  align-items: stretch;
}

.story-accent-sidecard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 30, 58, 0.035) 0%, rgba(11, 30, 58, 0.055) 100%);
  border: 1px solid rgba(11, 30, 58, 0.06);
}

.story-accent-sidecard .story-accent-label {
  margin-bottom: 10px;
}

.story-accent-sidecard .story-accent-text {
  font-size: 0.98rem;
  line-height: 1.82;
}

.story-accent-stack {
  display: grid;
  gap: 18px;
}

.story-accent-strip {
  position: relative;
  padding: 22px 24px 22px 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(249,250,252,0.98) 100%);
  border: 1px solid rgba(11, 30, 58, 0.08);
  box-shadow: 0 18px 42px rgba(11, 30, 58, 0.07);
}

.story-accent-strip::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d1aa45 0%, #f1d07d 100%);
}

.story-accent-strip .story-accent-text {
  font-size: 1rem;
  line-height: 1.86;
}

.hero-note-premium {
  margin-top: 22px;
}

/* ------------------------------
   Local note boxes
   ------------------------------ */
.services-local-note-box {
  max-width: 980px;
  margin: 24px auto 0;
  padding: 22px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 30, 58, 0.08);
  box-shadow: 0 18px 42px rgba(11, 30, 58, 0.06);
}

.services-local-note-lead {
  margin-bottom: 10px;
  color: var(--navy-deep);
  font-weight: 600;
}

.services-local-note-sub {
  margin-bottom: 0;
  color: #53647d;
}

.bg-pearl .services-local-note-box,
.services-editorial .services-local-note-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(248,250,252,0.92) 100%);
}

/* Shared service-row styles are owned by core/sections.css. */

/* Comparison card styles are owned by core/sections.css. */

/* Review card styles are owned by core/sections.css. */

/* FAQ accordion styles are owned by core/sections.css. */

/* Area/service card styles are owned by core/sections.css. */

/* ------------------------------
   Form controls
   ------------------------------ */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.span-2 {
  grid-column: span 2;
}

.field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-light);
}

.lux-input,
.lux-textarea,
.w-select.lux-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--navy-deep);
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

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

.lux-input:focus,
.lux-textarea:focus,
.w-select.lux-input:focus {
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.lux-input::placeholder,
.lux-textarea::placeholder {
  color: #94a3b8;
}

.w-select.lux-input {
  min-height: 56px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

.w-select.lux-input:invalid {
  color: #94a3b8;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-deep);
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover {
  background: var(--white);
  border-color: rgba(212, 175, 55, 0.5);
}

.radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.radio-option:has(input[type="radio"]:checked) {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.full-width-btn {
  width: 100%;
  cursor: pointer;
  border: none;
}

.full-width-btn.gold-btn,
button.full-width-btn.gold-btn,
input.full-width-btn.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b1e3a;
  background: linear-gradient(135deg, #d4af37 0%, #f2d574 100%);
  box-shadow: 0 16px 38px rgba(212, 175, 55, 0.24);
}

.full-width-btn.gold-btn:hover,
button.full-width-btn.gold-btn:hover,
input.full-width-btn.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(212, 175, 55, 0.32);
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-card,
.estimate-form-card,
.pre-footer-form-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(11, 30, 58, 0.08);
  box-shadow: 0 28px 74px rgba(11, 30, 58, 0.12);
}

.form-card::before,
.estimate-form-card::before,
.pre-footer-form-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 86% 0%, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0) 34%);
  pointer-events: none;
}

.form-card > *,
.estimate-form-card > *,
.pre-footer-form-card > * {
  position: relative;
  z-index: 1;
}

/* ------------------------------
   Shared CTA / trust strips
   ------------------------------ */
.cta-card,
.trust-card,
.info-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(11, 30, 58, 0.08);
  box-shadow: 0 18px 42px rgba(11, 30, 58, 0.07);
}

.cta-card {
  padding: 34px 36px;
  background: linear-gradient(135deg, #0b1e3a 0%, #102b52 100%);
  color: var(--white);
}

.cta-card .lux-p-body,
.cta-card p {
  color: #d9e3f3;
}

.trust-card,
.info-card {
  padding: 26px 28px;
}

.card-grid-2,
.card-grid-3,
.card-grid-4 {
  display: grid;
  gap: 24px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill,
.service-pill,
.location-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.24);
}

/* ------------------------------
   Responsive component rules
   ------------------------------ */
@media (max-width: 991px) {
  .hero-stats-row {
    justify-content: center;
  }

  .story-accent-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .services-header .hero-service-links-bridge {
    margin-top: 16px;
    padding: 16px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.75;
  }

  .story-accent-panel {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .story-accent-strip {
    padding: 20px 18px 20px 26px;
    border-radius: 20px;
  }

  .story-accent-text,
  .story-accent-sidecard .story-accent-text,
  .story-accent-strip .story-accent-text {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .fields-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .span-2 {
    grid-column: span 1;
  }

  .radio-option {
    width: 100%;
    justify-content: flex-start;
  }
  
  .hero-btns {
    align-items: stretch;
    gap: 12px;
    margin-top: 26px;
  }

  .hero-btns .lux-btn,
  .cta-action-row .lux-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .form-card,
  .estimate-form-card,
  .pre-footer-form-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .hero-stats-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 24px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .services-local-note-box {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .card-grid-2,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .cta-card,
  .trust-card,
  .info-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

/* ------------------------------
   Ownership note
   ------------------------------
   components.css should contain reusable UI primitives only: buttons, form controls,
   small cards, pills, utility panels, and non-page-specific micro-components.
   Full section systems belong in core/sections.css.
   Service-page overrides belong in pages/service-page.css.
*/