/* ==================================================================== *
 * CONTACT
 *
 * Layer 7, loaded after about.css. Owns only .rfw-contact-*, .rfw-hours-*,
 * .rfw-method-* and .rfw-service-link* selectors, so it cannot reach the
 * homepage, service, location, blog or About layouts.
 *
 * Every colour is an existing token — the Contact design ships the same
 * palette the rest of the site already uses, so no new value is introduced.
 *
 * The design's form-field CSS is deliberately absent: the GoHighLevel embed
 * carries its own styling, and the static demo form is not ported.
 * ==================================================================== */

/* ------------------------------------------------------------------ *
 * 1. Hero — NOT animated. See contact-hero.php.
 * ------------------------------------------------------------------ */
.rfw-contact-hero {
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--rfw-line-3);
  background:
    radial-gradient(circle at 8% 14%, var(--rfw-hero-glow-1), transparent 28%),
    radial-gradient(circle at 91% 8%, var(--rfw-hero-glow-2), transparent 30%),
    var(--rfw-paper);
}

.rfw-contact-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 70px;
  align-items: center;
}

.rfw-contact-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.1rem, 6vw, 6rem);
  /* Clears Manrope's ink floor — see the note in sections.css. */
  line-height: 1.02;
  letter-spacing: -.07em;
  overflow-wrap: break-word;
}

.rfw-contact-hero h1 span {
  color: var(--rfw-green-deep);
}

.rfw-contact-hero-copy {
  max-width: 680px;
  margin: 24px 0 28px;
  color: var(--rfw-text-hero);
  font-size: 1.12rem;
}

.rfw-contact-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  max-width: 580px;
  margin-top: 28px;
}

.rfw-contact-point {
  padding: 13px 15px;
  border: 1px solid var(--rfw-line);
  border-radius: 14px;
  background: var(--rfw-white);
  color: var(--rfw-text-tick);
  font-size: .88rem;
  font-weight: 700;
}

/* Decorative: the meaning is in the text, so it is never read aloud. */
.rfw-contact-point::before {
  content: "\2713";
  margin-right: 8px;
  color: var(--rfw-green-deep);
  font-weight: 900;
}

/* ------------------------------------------------------------------ *
 * Dark contact panel
 * ------------------------------------------------------------------ */
.rfw-contact-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 30px;
  background: var(--rfw-card-dark);
  color: var(--rfw-on-dark);
  box-shadow: var(--rfw-shadow);
}

.rfw-contact-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rfw-dot-glow), transparent 65%);
}

.rfw-contact-panel .rfw-eyebrow {
  color: var(--rfw-accent-on-dark);
}

.rfw-contact-panel h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.rfw-contact-panel > p {
  color: var(--rfw-on-dark-soft);
}

.rfw-contact-items {
  position: relative;
  z-index: 2;
  margin-top: 28px;
}

.rfw-contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--rfw-line-on-dark);
}

.rfw-contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rfw-fill-subtle);
  color: var(--rfw-green);
}

.rfw-contact-icon svg {
  width: 20px;
  height: 20px;
}

.rfw-contact-item small {
  display: block;
  color: var(--rfw-on-dark-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.rfw-contact-item strong {
  display: block;
  margin-top: 3px;
  color: var(--rfw-on-dark);
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  /* A long email or address must wrap, never widen the panel. */
  overflow-wrap: anywhere;
}

.rfw-contact-item a {
  transition: color .2s ease;
}

.rfw-contact-item a:hover {
  color: var(--rfw-green);
}

/* ------------------------------------------------------------------ *
 * 2. Form section
 * ------------------------------------------------------------------ */
.rfw-contact-section {
  padding: 96px 0;
  background: var(--rfw-white);
}

.rfw-contact-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 76px;
  align-items: start;
}

/* Sticky. Never given .rfw-reveal — a transformed ancestor would kill this. */
.rfw-contact-side {
  position: sticky;
  top: 24px;
}

.rfw-contact-side p {
  max-width: 430px;
  color: var(--rfw-muted);
}

.rfw-hours-card {
  margin-top: 28px;
  padding: 25px;
  border: 1px solid var(--rfw-line);
  border-radius: 22px;
  background: var(--rfw-paper);
}

.rfw-hours-card h3 {
  margin: 0 0 17px;
  font-size: 1.25rem;
}

.rfw-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--rfw-line-5);
  font-size: .9rem;
}

.rfw-hours-row:first-of-type {
  border-top: 0;
}

/* A line with no "|" has no value column, so it should not be pushed apart. */
.rfw-hours-row--full {
  justify-content: flex-start;
}

.rfw-hours-row span {
  color: var(--rfw-sub-link);
}

.rfw-hours-row strong {
  font-weight: 700;
  text-align: right;
}

.rfw-contact-form-card {
  padding: 36px;
  border: 1px solid var(--rfw-line);
  border-radius: 28px;
  background: var(--rfw-white);
  box-shadow: var(--rfw-shadow);
}

.rfw-contact-form-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rfw-line-4);
}

.rfw-contact-form-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.rfw-contact-form-head p {
  margin: 8px 0 0;
  color: var(--rfw-muted);
}

/*
 * The embed reserves its height up front so the surrounding layout does not
 * jump when GoHighLevel finishes loading and resizes the frame.
 */
.rfw-contact-embed {
  min-height: var(--rfw-form-height, 700px);
}

.rfw-contact-embed iframe {
  display: block;
  width: 100%;
  min-height: var(--rfw-form-height, 700px);
  border: 0;
}

.rfw-contact-embed-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--rfw-line);
  border-radius: 16px;
  background: var(--rfw-paper);
  color: var(--rfw-muted);
  font-size: .92rem;
  text-align: center;
}

/* ------------------------------------------------------------------ *
 * 3. Ways to get started
 * ------------------------------------------------------------------ */
.rfw-contact-methods {
  padding: 92px 0;
  border-top: 1px solid var(--rfw-line-4);
  border-bottom: 1px solid var(--rfw-line-4);
  background: var(--rfw-surface-alt);
}

.rfw-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.rfw-method {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--rfw-line-2);
  border-radius: 22px;
  background: var(--rfw-white);
  box-shadow: var(--rfw-shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}

@media (hover: hover) {
  .rfw-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--rfw-shadow-card-hover);
  }
}

.rfw-method-num {
  color: var(--rfw-green-deep);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.rfw-method h3 {
  margin: 46px 0 9px;
  font-size: 1.4rem;
  line-height: 1.15;
}

.rfw-method p {
  margin: 0;
  color: var(--rfw-muted);
  font-size: .9rem;
}

.rfw-method-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--rfw-green-deep);
  font-size: .88rem;
  font-weight: 800;
  /* A long "Call +1 (555) 010-0142" label must wrap inside its card. */
  overflow-wrap: anywhere;
}

.rfw-method-link::after {
  content: " \2192";
}

.rfw-method-link:hover {
  color: var(--rfw-pill-text);
}

/* ------------------------------------------------------------------ *
 * 4. Closing services band
 * ------------------------------------------------------------------ */
.rfw-contact-services {
  padding: 92px 0;
  background: var(--rfw-band-bg);
  color: var(--rfw-on-dark);
}

.rfw-contact-services .rfw-eyebrow {
  color: var(--rfw-accent-on-dark);
}

.rfw-contact-services .rfw-section-title {
  max-width: 760px;
}

.rfw-contact-services .rfw-section-lead {
  max-width: 680px;
  color: var(--rfw-on-dark-muted);
}

.rfw-service-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.rfw-service-link {
  padding: 22px;
  border: 1px solid var(--rfw-line-on-dark);
  border-radius: 20px;
  background: var(--rfw-fill-subtle);
}

.rfw-service-link small {
  color: var(--rfw-accent-on-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.rfw-service-link h3 {
  margin: 20px 0 7px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.rfw-service-link p {
  margin: 0;
  color: var(--rfw-on-dark-muted);
  font-size: .87rem;
}

.rfw-service-link-cta {
  display: inline-block;
  margin-top: 17px;
  color: var(--rfw-on-dark);
  font-size: .84rem;
  font-weight: 800;
  transition: color .2s ease;
}

.rfw-service-link-cta:hover {
  color: var(--rfw-green);
}

/* ==================================================================== *
 * RESPONSIVE — the theme's two existing breakpoints. No new breakpoint.
 * ==================================================================== */
@media (max-width: 1020px) {
  .rfw-contact-hero h1 {
    line-height: 1.04;
  }

  .rfw-contact-hero-grid,
  .rfw-contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  /* Sticky is pointless in a single column and would trap the card. */
  .rfw-contact-side {
    position: static;
  }

  .rfw-contact-side p {
    max-width: none;
  }

  .rfw-method-grid,
  .rfw-service-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .rfw-contact-hero {
    padding: 46px 0 54px;
  }

  .rfw-contact-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.7rem);
    line-height: 1.06;
  }

  .rfw-contact-section,
  .rfw-contact-methods,
  .rfw-contact-services {
    padding: 72px 0;
  }

  .rfw-contact-points,
  .rfw-method-grid,
  .rfw-service-links {
    grid-template-columns: 1fr;
  }

  .rfw-contact-panel,
  .rfw-contact-form-card {
    padding: 25px;
  }

  .rfw-method {
    min-height: 0;
  }

  .rfw-method h3 {
    margin-top: 30px;
  }

  /* Stacked label above value reads better than a squeezed two-column row. */
  .rfw-hours-row {
    flex-direction: column;
    gap: 2px;
  }

  .rfw-hours-row strong {
    text-align: left;
  }
}
