/* ===== enhance.css: visual polish layer (loads after styles.css) ===== */

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ----- Hero ----- */
.hero__overlay {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 85, 0, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(10, 10, 10, 0.92) 100%);
}

.hero__headline {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.hero__description {
  color: rgba(255, 255, 255, 0.78);
}

.badge {
  box-shadow: 0 0 24px rgba(255, 85, 0, 0.15);
}

.badge__dot {
  box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.7);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 85, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0); }
}

/* ----- Form card ----- */
.form-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 85, 0, 0.06),
    0 0 80px rgba(255, 85, 0, 0.07);
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.form-card__label {
  color: var(--orange);
}

.progress-bar__segment {
  height: 4px;
  border-radius: 4px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.progress-bar__segment.active {
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.55);
}

.form-step.active {
  animation: stepIn 0.35s ease both;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step__title {
  color: #B4B8C0;
}

/* Inputs */
.form-input {
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:hover {
  border-color: #3a3a40;
}

.form-input:focus {
  background: #16161c;
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.18);
}

.form-input.input-error {
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.22);
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* Option buttons */
.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.option-btn:hover {
  border-color: rgba(255, 85, 0, 0.55);
  background: #181820;
  transform: translateY(-1px);
}

.option-btn.selected {
  box-shadow: 0 0 0 1px var(--orange), 0 6px 18px rgba(255, 85, 0, 0.14);
}

.option-btn.selected::after {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

/* Primary buttons */
.btn-primary {
  background: linear-gradient(180deg, #FF6A1F 0%, #FF5500 55%, #E64D00 100%);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(255, 85, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #FF7433 0%, #FF5C0A 55%, #F05000 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 85, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  filter: grayscale(0.4) brightness(0.85);
  cursor: not-allowed;
  transform: none;
}

.form-card__note {
  color: #7d828c;
}

/* ----- Section headings ----- */
.section-label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--orange);
  vertical-align: middle;
  margin-right: 10px;
}

.section-label--center::before {
  display: none;
}

.section-heading {
  text-shadow: 0 2px 24px rgba(255, 85, 0, 0.08);
}

/* ----- FAQ ----- */
.faq {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0c0c0e 100%);
}

.faq-category {
  color: var(--orange);
  opacity: 0.85;
}

.faq-item {
  transition: background 0.25s ease;
}

.faq-question {
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.faq-question:hover {
  color: #fff;
  padding-left: 8px;
}

.faq-item.open .faq-question {
  color: var(--orange);
}

.faq-icon {
  width: 32px;
  height: 32px;
  line-height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 20px;
  transition: transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
}

.faq-item.open .faq-icon,
.faq-question:hover .faq-icon {
  border-color: var(--orange);
  background: var(--orange-muted);
}

/* ----- Process / timeline ----- */
.process {
  background: radial-gradient(ellipse at 80% 0%, rgba(255, 85, 0, 0.06), transparent 55%), #000;
  border-top: 1px solid #141416;
}

.timeline__line {
  background: linear-gradient(180deg, var(--orange), var(--border-color) 70%);
}

.timeline__number {
  box-shadow: 0 0 0 5px #000, 0 0 18px rgba(255, 85, 0, 0.35);
}

.timeline__step {
  transition: transform 0.25s ease;
}

.timeline__step:hover {
  transform: translateX(6px);
}

/* ----- Feature cards ----- */
.feature-card {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(160deg, #222226 0%, #1A1A1D 100%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 85, 0, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 85, 0, 0.1);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-muted);
  border: 1px solid rgba(255, 85, 0, 0.25);
  font-size: 22px;
}

.feature-card__desc {
  color: #9a9ea6;
}

/* ----- Final CTA ----- */
.cta {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 85, 0, 0.16), transparent 60%),
    #000;
  border-top: 1px solid #141416;
}

.btn-primary--cta {
  box-shadow: 0 12px 34px rgba(255, 85, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ----- Modal ----- */
.modal {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal.active {
  animation: fadeIn 0.25s ease both;
}

.modal.active .modal__content {
  animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.modal__content {
  border-radius: 16px;
  border-top: 2px solid var(--orange);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 85, 0, 0.12);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ----- Scrollbar ----- */
html { scrollbar-color: #2a2a2e #0a0a0a; }

/* ----- Mobile ----- */
@media (max-width: 768px) {
  .form-card {
    border-radius: 12px;
  }

  .timeline__step:hover,
  .feature-card:hover,
  .option-btn:hover {
    transform: none;
  }

  .faq-question:hover {
    padding-left: 0;
  }
}

/* ----- Respect reduced-motion settings ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Keep badge + headline visible on every form step */
.hero__text.collapsed .badge {
  display: inline-flex;
}

.hero__text.collapsed .hero__headline {
  display: block;
}

/* Restore the normal spacing and description style (undo the collapsed look) */
.hero__text.collapsed {
  margin-bottom: 36px;
}

.hero__text.collapsed .hero__description {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.78);
}

/* ===== Subtle roofing-themed section backgrounds ===== */

/* FAQ: faint overlapping roof-shingle scales with a soft orange glow */
.faq {
  background-color: #0b0b0d;
  background-image:
    linear-gradient(180deg, #0b0b0d 0, rgba(11, 11, 13, 0) 140px, rgba(11, 11, 13, 0) calc(100% - 140px), #0b0b0d 100%),
    radial-gradient(ellipse at 90% 15%, rgba(255, 85, 0, 0.07), transparent 50%),
    radial-gradient(circle at 50% 0, transparent 0 17px, rgba(255, 255, 255, 0.028) 18px, transparent 19px),
    radial-gradient(circle at 50% 0, transparent 0 17px, rgba(255, 255, 255, 0.028) 18px, transparent 19px);
  background-size: auto, auto, 40px 20px, 40px 20px;
  background-position: 0 0, 0 0, 0 0, 20px 10px;
}

/* Process: faint diagonal roof-pitch lines with a glow */
.process {
  background-color: #000;
  background-image:
    linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0) 140px, rgba(0, 0, 0, 0) calc(100% - 140px), #000 100%),
    radial-gradient(ellipse at 10% 50%, rgba(255, 85, 0, 0.08), transparent 55%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.022) 0,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 26px
    );
  background-size: auto, auto, auto;
}

/* Why Choose Us: faint rafter / blueprint grid with a glow */
.features {
  background-color: #0e0e10;
  background-image:
    linear-gradient(180deg, #0e0e10 0, rgba(14, 14, 16, 0) 140px, rgba(14, 14, 16, 0) calc(100% - 140px), #0e0e10 100%),
    radial-gradient(ellipse at 50% 20%, rgba(255, 85, 0, 0.07), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

@media (max-width: 768px) {
  .faq {
    background-size: auto, auto, 32px 16px, 32px 16px;
    background-position: 0 0, 0 0, 0 0, 16px 8px;
  }

  .features {
    background-size: auto, auto, 36px 36px, 36px 36px;
  }
}
/* ===== Typography upgrade ===== */
:root {
  --font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Bebas Neue', 'Inter', sans-serif;
}

/* Barlow Condensed has real weights, so use bold for headlines */
.hero__headline,
.section-heading,
.cta__heading {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Barlow runs slightly smaller than Bebas at the same size, so bump desktop sizes
   (phones keep the original sizes from styles.css) */
@media (min-width: 769px) {
  .hero__headline {
    font-size: clamp(40px, 6.4vw, 62px);
  }

  .section-heading {
    font-size: clamp(44px, 6.4vw, 70px);
  }

  .cta__heading {
    font-size: clamp(40px, 6.4vw, 62px);
  }
}

/* Slightly stronger body text for readability */
.hero__description,
.timeline__desc,
.faq-answer p {
  font-weight: 500;
}

.faq-question {
  font-weight: 700;
}