/* ============================================================
   CONTACT PAGE — scoped to .hfc-page
   Matches the main redesign design system exactly:
   · Dark ink backgrounds  (#0a0f1e / #0c1628 / #141b2d)
   · Cormorant Garamond serif + DM Sans body
   · Gold #c8922a + Aqua #00b4d8 accent palette
   · SVG wave section dividers
   · IntersectionObserver scroll-reveal animations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- Design tokens — fall back to theme CSS vars when present ---- */
.hfc-page {
  --c-ink:         var(--ink,       #0a0f1e);
  --c-ink-soft:    var(--ink-soft,  #1c2540);
  --c-ink-card:    #15203a;
  --c-ocean-dark:  #0c1628;
  --c-slate-dark:  #141b2d;
  --c-ocean:       var(--ocean,     #0d4f7c);
  --c-ocean-mid:   var(--ocean-mid, #1a6fa3);
  --c-aqua:        var(--aqua,      #00b4d8);
  --c-aqua-glow:   rgba(0,180,216,.15);
  --c-gold:        var(--gold,      #c8922a);
  --c-gold-lt:     var(--gold-lt,   #e8b44a);
  --c-gold-soft:   rgba(200,146,42,.12);
  --c-cream:       var(--cream,     #f7f4ee);
  --c-cream-mute:  rgba(247,244,238,.65);
  --c-cream-dim:   rgba(247,244,238,.38);
  --c-white:       #ffffff;
  --c-ok-bg:       rgba(52,211,153,.1);
  --c-ok-bd:       rgba(52,211,153,.3);
  --c-ok-tx:       #34d399;
  --c-err-bg:      rgba(248,113,113,.1);
  --c-err-bd:      rgba(248,113,113,.3);
  --c-err-tx:      #f87171;

  --c-serif: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  --c-sans:  var(--font-body,    'DM Sans', system-ui, sans-serif);
  --c-ease:  cubic-bezier(0.16,1,.3,1);

  background:  var(--c-ink);
  color:       var(--c-cream);
  font-family: var(--c-sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambient radial atmosphere — mirrors homepage hero */
.hfc-page::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 45% at 100%  0%,  rgba(0,180,216,.07),  transparent 60%),
    radial-gradient(ellipse 55% 40% at 0%   100%, rgba(200,146,42,.06), transparent 55%),
    radial-gradient(ellipse 45% 40% at 50%  55%,  rgba(13,79,124,.1),   transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Layout wrapper ---- */
.hfc-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hfc-hero {
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(3rem, 5vw, 4.5rem);
  text-align: center;
  position: relative;
}
/* Grid-line overlay — same as homepage hero */
.hfc-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hfc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.5rem;
}
.hfc-eyebrow::before,
.hfc-eyebrow::after {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--c-gold);
  opacity: .7;
}

.hfc-hero h1 {
  font-family: var(--c-serif);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -.02em;
  color: var(--c-white);
  margin: 0 0 1.25rem;
}
.hfc-hero h1 em { font-style: italic; color: var(--c-gold); }

.hfc-hero-sub {
  max-width: 580px;
  margin: 0 auto;
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  color: var(--c-cream-mute);
}

/* ============================================================
   SVG WAVE DIVIDERS — same shapes used across the site
   ============================================================ */
.hfc-wave { display: block; line-height: 0; margin: 0; }
.hfc-wave svg { display: block; width: 100%; height: 60px; }
.hfc-wave-tall svg { height: 72px; }

/* ============================================================
   SECTION — MAIN CONTACT  (ocean-dark bg)
   ============================================================ */
.hfc-contact-section {
  padding: clamp(4rem, 7vw, 6.5rem) 0 clamp(5rem, 9vw, 8rem);
  background: var(--c-ocean-dark);
  position: relative;
  overflow: hidden;
}
.hfc-contact-section::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 82% 72%, rgba(13,79,124,.28), transparent 70%),
    radial-gradient(ellipse 35% 35% at 10% 18%, rgba(0,180,216,.06), transparent 60%);
}

/* 2-col grid: info left, form right */
.hfc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  position: relative; z-index: 1;
}

/* ---- Reusable section label ---- */
.hfc-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1rem;
}
.hfc-label::before {
  content: '';
  width: 20px; height: 1.5px;
  background: var(--c-gold);
}

/* ============================================================
   LEFT COLUMN — Contact info
   ============================================================ */
.hfc-info h2 {
  font-family: var(--c-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--c-white);
  margin: 0 0 1.25rem;
}
.hfc-info h2 em { font-style: italic; color: var(--c-gold); }

.hfc-info-lead {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--c-cream-mute);
  margin: 0 0 2.5rem;
  max-width: 420px;
}

/* Detail cards — same hover pattern as pillar items on homepage */
.hfc-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.25rem; }

.hfc-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  color: inherit;
  transition:
    border-color .25s ease,
    background   .25s ease,
    transform    .4s var(--c-ease);
}
.hfc-detail:hover {
  border-color: rgba(0,180,216,.3);
  background: rgba(0,180,216,.05);
  transform: translateX(5px);
}
.hfc-detail-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--c-aqua-glow);
  border: 1px solid rgba(0,180,216,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background .25s, box-shadow .25s;
}
.hfc-detail:hover .hfc-detail-icon {
  background: rgba(0,180,216,.18);
  box-shadow: 0 0 18px rgba(0,180,216,.2);
}
.hfc-detail-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-cream-dim);
  margin-bottom: .25rem;
  transition: color .25s;
}
.hfc-detail:hover .hfc-detail-label { color: var(--c-aqua); }
.hfc-detail-value {
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-cream);
  line-height: 1.5;
}

/* Business hours callout */
.hfc-hours {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--c-gold-soft);
  border: 1px solid rgba(200,146,42,.2);
  margin-bottom: 2rem;
}
.hfc-hours-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.hfc-hours p { margin: 0; font-size: .82rem; color: var(--c-gold-lt); line-height: 1.55; }
.hfc-hours strong { display: block; font-weight: 600; margin-bottom: .15rem; }

/* Certification badge pills */
.hfc-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.hfc-badge {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 99px;
  background: var(--c-gold-soft);
  border: 1px solid rgba(200,146,42,.22);
  color: var(--c-gold);
}

/* ============================================================
   RIGHT COLUMN — Form card
   ============================================================ */
.hfc-form-card {
  background: var(--c-ink-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
/* Aqua top-edge glow — matches core service cards */
.hfc-form-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-aqua), transparent);
}
/* Gold corner atmosphere */
.hfc-form-card::after {
  content: '';
  position: absolute; bottom: -30%; right: -15%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,146,42,.07), transparent 70%);
  pointer-events: none;
}

.hfc-form-head { margin-bottom: 2rem; position: relative; z-index: 1; }
.hfc-form-head h3 {
  font-family: var(--c-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: -.01em;
  margin: 0 0 .5rem;
}
.hfc-form-head h3 em { font-style: italic; color: var(--c-gold); }
.hfc-form-head p {
  font-size: .88rem;
  color: var(--c-cream-mute);
  line-height: 1.65;
  margin: 0;
}

/* ---- Alert boxes ---- */
.hfc-alert {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  position: relative; z-index: 1;
}
.hfc-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .1rem; }
.hfc-alert-ok  { background: var(--c-ok-bg);  border: 1px solid var(--c-ok-bd);  color: var(--c-ok-tx);  }
.hfc-alert-err { background: var(--c-err-bg); border: 1px solid var(--c-err-bd); color: var(--c-err-tx); }

/* ---- Form layout ---- */
/*
 * IMPORTANT: field names kept identical to original template:
 *   name="name"     name="email"    name="phone"
 *   name="subject"  name="message"  name="website"  (honeypot)
 * action="submit_contact_form"
 * nonce: contact_form_nonce / contact_nonce
 */
.hfc-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative; z-index: 1;
}

.hfc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.hfc-field { display: flex; flex-direction: column; gap: .45rem; }

.hfc-field label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-cream-dim);
}
.hfc-field label .req {
  color: var(--c-aqua);
  margin-left: .2rem;
}

/* Input / textarea */
.hfc-field input,
.hfc-field textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: .85rem 1.1rem;
  font-family: var(--c-sans);
  font-size: .92rem;
  color: var(--c-cream);
  outline: none;
  box-sizing: border-box;
  transition:
    border-color .25s ease,
    background   .25s ease,
    box-shadow   .25s ease;
  -webkit-appearance: none;
}
.hfc-field input::placeholder,
.hfc-field textarea::placeholder { color: var(--c-cream-dim); }

.hfc-field input:hover,
.hfc-field textarea:hover  { border-color: rgba(255,255,255,.2); }

.hfc-field input:focus,
.hfc-field textarea:focus {
  border-color: var(--c-aqua);
  background: rgba(0,180,216,.05);
  box-shadow: 0 0 0 3px rgba(0,180,216,.12);
}

/* Valid state — subtle green tick */
.hfc-field input:valid:not(:placeholder-shown) {
  border-color: rgba(52,211,153,.35);
}

.hfc-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

/* Honeypot — invisible to humans, bots fill it */
.hfc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

/* Submit row */
.hfc-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* Gold gradient button — identical to homepage .btn-primary */
.hfc-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-lt));
  color: var(--c-ink);
  font-family: var(--c-sans);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform .25s var(--c-ease),
    box-shadow .25s ease;
}
.hfc-btn-submit::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.hfc-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200,146,42,.35);
}
.hfc-btn-submit:hover::after { opacity: 1; }
.hfc-btn-submit:active       { transform: translateY(0); box-shadow: none; }
.hfc-btn-submit svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Consent note beside button */
.hfc-consent {
  flex: 1; min-width: 180px;
  font-size: .78rem;
  color: var(--c-cream-dim);
  line-height: 1.55;
  margin: 0;
}
.hfc-consent svg {
  display: inline; vertical-align: middle;
  width: 11px; height: 11px;
  margin-right: .25rem; opacity: .45;
}

/* ============================================================
   QUICK REACH STRIP  (slate-dark bg — same as Services section)
   ============================================================ */
.hfc-reach {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: var(--c-slate-dark);
  position: relative;
}
/* Dot-grid texture — same as Services section */
.hfc-reach::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hfc-reach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative; z-index: 1;
}

.hfc-reach-card {
  padding: 2rem 1.75rem;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  transition:
    border-color .25s ease,
    background   .25s ease,
    transform    .45s var(--c-ease),
    box-shadow   .45s ease;
}
.hfc-reach-card:hover {
  border-color: rgba(0,180,216,.3);
  background: rgba(0,180,216,.05);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
}

.hfc-reach-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--c-aqua-glow);
  border: 1px solid rgba(0,180,216,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .25s, box-shadow .25s;
}
/* All reach icons use inline SVG — consistent aqua colour, no emoji rendering variance */
.hfc-reach-icon svg {
  width: 24px; height: 24px;
  stroke: var(--c-aqua);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .25s;
}
.hfc-reach-card:hover .hfc-reach-icon {
  background: rgba(0,180,216,.18);
  box-shadow: 0 0 22px rgba(0,180,216,.2);
}
.hfc-reach-card:hover .hfc-reach-icon svg { stroke: #fff; }
.hfc-reach-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-cream-dim);
}
.hfc-reach-value {
  font-size: .92rem; font-weight: 500;
  color: var(--c-cream); line-height: 1.4;
}
.hfc-reach-cta {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-aqua); margin-top: .2rem;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
}
.hfc-reach-cta svg { width: 12px; height: 12px; }

/* ============================================================
   SCROLL REVEAL — same classes + IntersectionObserver as site
   ============================================================ */
.hfc-rv, .hfc-rl, .hfc-rr { will-change: opacity, transform; }
.hfc-rv  { opacity:0; transform:translateY(34px);  transition: opacity .7s var(--c-ease), transform .7s var(--c-ease); }
.hfc-rl  { opacity:0; transform:translateX(-42px); transition: opacity .7s var(--c-ease), transform .7s var(--c-ease); }
.hfc-rr  { opacity:0; transform:translateX(42px);  transition: opacity .7s var(--c-ease), transform .7s var(--c-ease); }
.hfc-rv.hfc-vis, .hfc-rl.hfc-vis, .hfc-rr.hfc-vis { opacity:1; transform:none; }
.hfc-d1{transition-delay:.1s} .hfc-d2{transition-delay:.2s}
.hfc-d3{transition-delay:.3s} .hfc-d4{transition-delay:.4s}
.hfc-d5{transition-delay:.5s}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hfc-contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hfc-info-lead    { max-width: 100%; }
}
@media (max-width: 768px) {
  .hfc-row        { grid-template-columns: 1fr; }
  .hfc-reach-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hfc-reach-card { flex-direction: row; text-align: left; align-items: center; }
  .hfc-reach-cta  { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .hfc-submit-row   { flex-direction: column; align-items: stretch; }
  .hfc-btn-submit   { justify-content: center; }
  .hfc-form-card    { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hfc-rv, .hfc-rl, .hfc-rr,
  .hfc-detail, .hfc-reach-card,
  .hfc-btn-submit,
  .hfc-field input, .hfc-field textarea {
    animation: none !important;
    transition: none !important;
  }
}