/* ==========================================================================
   SEIB CONSTRUCTION — INSURANCE RESTORATION PAGE
   Styles unique to restoration.html only.
   Shared tokens → global.css | Shared components → components.css
   RULE: Never hardcode brand colors — always use CSS custom properties.
   ========================================================================== */

/* --------------------------------------------------------------------------
   SCROLL REVEAL (global.js watches [data-animate], adds .is-visible)
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Eyebrow on dark backgrounds — copper-light instead of copper */
.section-eyebrow--light {
  color: var(--copper-light);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}

/* --------------------------------------------------------------------------
   HERO ENTRANCE ANIMATION (above-the-fold — CSS keyframes, not observer)
   -------------------------------------------------------------------------- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-animate {
  animation: heroFadeUp 0.7s ease forwards;
}

.hero-animate--delay {
  animation-delay: 0.25s;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   §01 HERO
   -------------------------------------------------------------------------- */
.resto-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--navy-deep) 0%,
    var(--navy) 55%,
    var(--navy-mid) 100%
  );
  padding-top: 72px;
  overflow: hidden;
}

.resto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, var(--copper-dim) 0%, transparent 55%),
    radial-gradient(
      ellipse at 80% 30%,
      rgba(184, 115, 51, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.resto-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
}

.resto-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 88px);
  position: relative;
  z-index: 1;
}

/* Urgency badge — copper, not red */
.resto-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--copper-dim);
  border: 1px solid rgba(184, 115, 51, 0.4);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  margin-bottom: var(--space-4);
}

.resto-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--copper);
  animation: pulseDot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.65);
  }
}

.resto-hero-badge span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--copper-light);
}

.resto-hero-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}

.resto-hero-headline em {
  font-style: italic;
  color: var(--copper-light);
}

.resto-hero-sub {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: var(--space-7);
}

.resto-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.resto-hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.resto-hero-assurance {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.resto-hero-assurance-icon {
  color: var(--copper-light);
  font-size: 13px;
}

.resto-hero-assurance span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Right: before/after split visual */
.resto-hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(184, 115, 51, 0.25);
  box-shadow: var(--shadow-xl);
}

.resto-hero-before,
.resto-hero-after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resto-hero-before {
  left: 0;
  background: linear-gradient(
    160deg,
    var(--navy-deep) 0%,
    var(--navy-mid) 100%
  );
  border-right: 2px solid rgba(255, 255, 255, 0.08);
  opacity: 0.6;
}

.resto-hero-after {
  right: 0;
  background: linear-gradient(160deg, var(--navy-mid) 0%, var(--navy) 100%);
}

.resto-hero-before span,
.resto-hero-after span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.resto-hero-split-divider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background-color: var(--navy-deep);
  border: 2px solid var(--copper);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--copper);
  box-shadow: 0 0 0 4px rgba(15, 27, 51, 0.6);
}

.resto-hero-photo-note {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(
    to top,
    rgba(15, 27, 51, 0.7) 0%,
    transparent 100%
  );
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

.resto-hero-photo-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
}

@media (max-width: 960px) {
  .resto-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .resto-hero-visual {
    aspect-ratio: 16 / 9;
    max-height: 320px;
  }
}

/* --------------------------------------------------------------------------
   §02 WHY INSURANCE COMPANIES PREFER SEIB
   -------------------------------------------------------------------------- */
.resto-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.resto-why-card {
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.resto-why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.resto-why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
}

.resto-why-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 1.5px;
  margin-bottom: var(--space-4);
}

.resto-why-icon {
  font-size: 32px;
  display: block;
  margin-bottom: var(--space-4);
}

.resto-why-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.resto-why-desc {
  font-size: var(--fs-body);
  color: var(--text-mid);
  line-height: 1.8;
}

/* Insurance testimonial */
.resto-testimonial {
  background-color: var(--navy);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.resto-testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 180px;
  color: rgba(184, 115, 51, 0.1);
  position: absolute;
  top: -20px;
  left: 24px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.resto-testimonial-quote {
  position: relative;
  z-index: 1;
}

.resto-testimonial-stars {
  color: #f4b942;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: var(--space-4);
}

.resto-testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--white);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: var(--space-5);
}

.resto-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.resto-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper), var(--copper-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.resto-testimonial-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.resto-testimonial-meta span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.resto-testimonial-badge {
  flex-shrink: 0;
  text-align: center;
  padding: var(--space-6);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.resto-testimonial-badge-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--copper-light);
  display: block;
  line-height: 1;
}

.resto-testimonial-badge-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  display: block;
  margin-top: var(--space-2);
  max-width: 80px;
}

@media (max-width: 860px) {
  .resto-why-grid {
    grid-template-columns: 1fr;
  }
  .resto-testimonial {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .resto-testimonial-badge {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-5) 0 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  .resto-testimonial-badge-label {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   §03 RESTORATION PROCESS — 5-step timeline on navy background
   -------------------------------------------------------------------------- */
.resto-process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  position: relative;
}

.resto-process-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(100% / 10);
  right: calc(100% / 10);
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(184, 115, 51, 0.3),
    rgba(212, 149, 90, 0.5),
    rgba(184, 115, 51, 0.3)
  );
}

.resto-process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.resto-step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  border: 2px solid rgba(184, 115, 51, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-md);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.resto-process-step:hover .resto-step-circle {
  border-color: var(--copper);
  box-shadow:
    var(--shadow-lg),
    0 0 0 4px var(--copper-dim);
}

.resto-step-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 1px;
  line-height: 1;
}

.resto-step-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}

.resto-step-title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.resto-step-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.resto-process-cta {
  text-align: center;
  margin-top: var(--space-10);
}

@media (max-width: 900px) {
  .resto-process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
  .resto-process-steps::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .resto-process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   §04 BEFORE & AFTER CASE STUDIES
   -------------------------------------------------------------------------- */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.case-card {
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-card-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 9;
  position: relative;
}

.case-before {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  opacity: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /*padding-top: var(--space-3);*/
}

.case-after {
  background: linear-gradient(160deg, var(--navy-mid) 0%, var(--navy) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /*padding-top: var(--space-3);*/
}

.case-before img,
.case-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-photo-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(15, 27, 51, 0.6);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  position: absolute;
  top: 20px;
}

.case-before .case-photo-label {
  left: 20px;
}

.case-after .case-photo-label {
  right: 20px;
}

.case-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.case-card-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.case-type-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--copper-dim);
  color: var(--copper);
  margin-bottom: var(--space-3);
}

.case-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.case-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.case-stat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--cream);
}

.case-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
  flex-shrink: 0;
}

.case-stat-label {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   §05 RESTORATION + UPGRADE PATH
   -------------------------------------------------------------------------- */
.resto-upgrade-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.resto-upgrade-photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    135deg,
    var(--copper-dim) 0%,
    var(--off-white) 100%
  );
  border: 1px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.resto-upgrade-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resto-upgrade-photo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  padding: var(--space-5);
  line-height: 2;
}

.resto-upgrade-content p {
  margin-bottom: var(--space-4);
}

.resto-upgrade-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (max-width: 860px) {
  .resto-upgrade-inner {
    grid-template-columns: 1fr;
  }
  .resto-upgrade-photo {
    aspect-ratio: 16 / 9;
    max-height: 300px;
  }
}

/* --------------------------------------------------------------------------
   §06 EMERGENCY CTA
   -------------------------------------------------------------------------- */
.resto-cta-section {
  background: linear-gradient(
    135deg,
    var(--navy-deep) 0%,
    var(--navy) 60%,
    var(--navy-mid) 100%
  );
  position: relative;
  overflow: hidden;
}

.resto-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, var(--copper-dim) 0%, transparent 50%),
    radial-gradient(
      ellipse at 85% 30%,
      rgba(184, 115, 51, 0.06) 0%,
      transparent 45%
    );
  pointer-events: none;
}

.resto-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.resto-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--copper-light);
  display: block;
  margin-bottom: var(--space-4);
  opacity: 0.85;
}

.resto-cta-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.resto-cta-sub {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-body);
  line-height: 1.8;
  margin-bottom: var(--space-7);
}

.resto-cta-phone {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  transition: color var(--transition-base);
}

.resto-cta-phone:hover {
  color: var(--copper-light);
}

.resto-cta-phone-icon {
  font-size: 0.7em;
  color: var(--copper);
}

.resto-cta-hours {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* Form card */
/*.resto-cta-form-wrap {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
}*/

.resto-cta-form-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.resto-cta-form-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-2);
}

.ghl-form-placeholder {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(184, 115, 51, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-9) var(--space-6);
  text-align: center;
}

.ghl-form-placeholder p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
  line-height: 2;
}

@media (max-width: 900px) {
  .resto-cta-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* Restoration hero — 2-column layout with a stacked Before/After pair on the right.
       Inlined so it renders reliably even if restoration.css is cached on staging.
       Mirrors the .resto-hero-inner grid in assets/css/restoration.css. */
.resto-hero-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.resto-hero-ba figure {
  position: relative;
  margin: 0;
  border: 1px solid rgba(184, 115, 51, 0.25);
  box-shadow: 0 12px 32px rgba(15, 27, 51, 0.22);
}
.resto-hero-ba img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 7;
  object-fit: cover;
}
.resto-hero-ba figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 27, 51, 0.78);
  padding: 4px 10px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .resto-hero-ba {
    grid-template-columns: 1fr;
  }
}

/* Single restoration hero image (replaces the before/after pair) */
.resto-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(184, 115, 51, 0.25);
  box-shadow: 0 12px 32px rgba(15, 27, 51, 0.22);
}
.resto-hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
