/* ==========================================================================
   ELEVATED ROOFING PARTNERS — contact-v2.css
   Contact Page Visual Upgrade — Matches Homepage Premium Treatments
   Layers on top of existing main.css + components.css + booking.css
   ========================================================================== */

/* ========================================
   HERO — CINEMATIC TREATMENT
   ======================================== */

/* Position group photo so faces are visible */
.contact-v2 .hero__bg {
  background-position: center 20%;
}

/* Deeper, three-point gradient for cinematic depth */
.contact-v2 .hero__bg::after {
  background: linear-gradient(
    160deg,
    rgba(10, 10, 11, 0.88) 0%,
    rgba(21, 21, 23, 0.48) 45%,
    rgba(10, 10, 11, 0.72) 100%
  );
}

/* Vignette layer */
.contact-v2 .hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(10, 10, 11, 0.35) 100%
  );
  pointer-events: none;
}

/* Gold accent line above eyebrow */
.contact-v2 .hero__content .eyebrow::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  margin-bottom: var(--space-5);
}

/* Hero text staggered entrance */
.contact-v2 .hero__content .eyebrow,
.contact-v2 .hero__content h1,
.contact-v2 .hero .hero__subtext {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: no-preference) {
  .contact-v2 .hero__content .eyebrow {
    animation: contactHeroReveal 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
  }
  .contact-v2 .hero__content h1 {
    animation: contactHeroReveal 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
  }
  .contact-v2 .hero .hero__subtext {
    animation: contactHeroReveal 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-v2 .hero__content .eyebrow,
  .contact-v2 .hero__content h1,
  .contact-v2 .hero .hero__subtext {
    opacity: 1;
    transform: none;
  }
}

@keyframes contactHeroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero eyebrow — GOLD (pops on dark) */
.contact-v2 .hero .eyebrow {
  color: var(--color-gold);
}

/* Hero eyebrow accent bar — OD GREEN (subtle contrast) */
.contact-v2 .hero__content .eyebrow::before {
  background: #7B7536;
}

/* ========================================
   SECTION HEADINGS — ANIMATED UNDERLINE
   ======================================== */
.contact-v2 .section-heading::after {
  width: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .contact-v2 .section-heading::after {
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .contact-v2 .reveal.revealed .section-heading::after {
    width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-v2 .section-heading::after {
    width: 48px;
  }
}

/* ========================================
   CONTACT FORM SECTION — DIAGONAL STRIPES
   Offwhite background, OD green accents
   ======================================== */
.contact-v2 #contact-form-section {
  position: relative;
  overflow: hidden;
}

.contact-v2 #contact-form-section > .container {
  position: relative;
  z-index: 1;
}

.contact-v2 #contact-form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 24px,
    rgba(197, 160, 89, 0.12) 24px,
    rgba(197, 160, 89, 0.12) 25px
  );
  pointer-events: none;
  z-index: 0;
}

/* Section heading underline — OD GREEN on offwhite */
.contact-v2 #contact-form-section .section-heading::after {
  background-color: #7B7536;
}

/* ========================================
   FORM — ENHANCED FOCUS STATES
   ======================================== */

/* Gold glow on focus */
.contact-v2 .contact-form input:focus,
.contact-v2 .contact-form select:focus,
.contact-v2 .contact-form textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15), 0 2px 8px rgba(197, 160, 89, 0.08);
}

/* Submit button — gold on contact page */
.contact-v2 .contact-form .btn--primary {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-charcoal);
}

.contact-v2 .contact-form .btn--primary:hover {
  background-color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
}

/* ========================================
   CONTACT SCHEDULE PANEL — VISUAL POLISH
   ======================================== */

/* Heading — OD green accent */
.contact-v2 .contact-schedule__heading {
  color: var(--color-text-primary);
}

/* Book button — OD GREEN */
.contact-v2 .contact-schedule .btn--green {
  background-color: #7B7536;
  border-color: #7B7536;
  color: #FFFFFF;
}

.contact-v2 .contact-schedule .btn--green:hover {
  background-color: #656220;
  border-color: #656220;
}

/* Trust icons — OD GREEN */
.contact-v2 .contact-schedule__trust-icon {
  color: var(--color-gold);
}

/* Trust item links — GOLD */
.contact-v2 .contact-schedule__trust-item a {
  color: var(--color-gold);
}

.contact-v2 .contact-schedule__trust-item a:hover {
  color: var(--color-gold-hover);
}

/* Trust border — OD GREEN tint */
.contact-v2 .contact-schedule__trust {
  border-top-color: rgba(123, 117, 54, 0.2);
}

/* ========================================
   BOOKING SECTION — BLUEPRINT GRID PATTERN
   ======================================== */
.contact-v2 .booking-section {
  position: relative;
  overflow: hidden;
}

.contact-v2 .booking-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(197, 160, 89, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Booking eyebrow — GOLD (dark bg) */
.contact-v2 .booking-section__text .eyebrow {
  color: var(--color-gold);
}

/* Booking checkmarks — OD GREEN (contrast against gold eyebrow) */
.contact-v2 .booking-feature::before {
  color: #7B7536;
}

/* ========================================
   ENHANCED REVEAL TIMING
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .contact-v2 .reveal {
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

/* ========================================
   FOOTER — SUBTLE GRID TEXTURE
   ======================================== */
.contact-v2 .footer {
  position: relative;
}

.contact-v2 .footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(197, 160, 89, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
