/* contact.css
   ================================================================
   Page-specific styles for contact.html.
   global.css loads before this and provides tokens, .rv, .wrap.
   NOTE: .btn-*, .section-tag, .section-header, .depth-tag are
   defined in home.css — not global.css — so they are included here.
*/

/* ================================================================
   SHARED COMPONENTS (defined in home.css, not global.css)
   Copy verbatim — do not modify values.
================================================================ */
.section-tag {
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber); display: block; margin-bottom: 10px;
}
.section-header { margin-bottom: 44px; }
.section-header h2 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  color: var(--ink-900); line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.section-header p {
  font-size: 14px; font-weight: 300; color: var(--ink-500);
  max-width: 480px; line-height: 1.6;
}
.depth-tag {
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber); display: block; margin-bottom: 10px;
}
.btn-primary {
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
  padding: 11px 28px; border-radius: var(--r-sm);
  background: var(--navy); color: #fff; border: none;
  box-shadow: 0 1px 2px rgba(12,31,61,.2), 0 4px 16px rgba(12,31,61,.16);
  transition: background .2s, transform .1s, box-shadow .2s;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;--amber:#f59e0b;}
.btn-primary:hover { background: var(--navy-mid); box-shadow: 0 2px 4px rgba(12,31,61,.2), 0 8px 24px rgba(12,31,61,.18);--amber:#f59e0b;}
.btn-primary:active { transform: scale(.98); }
.btn-secondary {
  font-size: 13.5px; font-weight: 400; letter-spacing: -.01em;
  padding: 11px 28px; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-600);
  border: 1px solid var(--warm-300);
  transition: color .18s, border-color .18s, background .18s;
  cursor: pointer;
}
.btn-secondary:hover { color: var(--ink-900); border-color: var(--warm-400); background: var(--warm-50); }
.btn-ghost {
  font-size: 13.5px; font-weight: 400; letter-spacing: -.01em;
  padding: 12px 28px; border-radius: var(--r-sm);
  background: transparent; color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.14);
  transition: color .18s, border-color .18s;
  cursor: pointer; display: inline-block; text-decoration: none;
}
.btn-ghost:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.28); }

/* ================================================================
   PAGE HERO — COMPONENT-SPEC §5, Tier 1 (typographic only)
   bg: white + crosshatch ::before / border-bottom: warm-100
================================================================ */
.page-hero {
  padding: calc(136px + env(safe-area-inset-top, 0px)) 0 80px;
  background: var(--white);
  border-bottom: 1px solid var(--warm-100);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--warm-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--warm-100) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .45;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .section-tag { color: var(--amber); margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08; letter-spacing: -.025em;
  color: var(--ink-900); max-width: 720px; margin: 0 0 20px;
}
.page-hero-sub {
  font-size: 16px; font-weight: 300; line-height: 1.6;
  color: var(--ink-600); max-width: 560px; margin: 0 0 32px;
}

/* ================================================================
   CONTACT BODY — off-white bg
   Two columns: form (left) + stat rail (right, 280px)
================================================================ */
.contact-body {
  padding: 80px 0 104px;
  background: var(--off-white);
  border-bottom: 1px solid var(--warm-100);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}
.contact-main { display: flex; flex-direction: column; }
.contact-track-label { margin-bottom: 20px; }

/* Intent cards */
.intent-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 48px;
}
.intent-card {
  background: var(--white);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  cursor: pointer; position: relative;
  transition: border-color .2s, box-shadow .2s;
  user-select: none;
}
.intent-card:hover { border-color: var(--warm-300); box-shadow: var(--shadow-sm); }
.intent-card.active { border-color: var(--navy); box-shadow: var(--shadow-md); }
.intent-card::before {
  content: ''; position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 2px; background: var(--navy);
  border-radius: 0 1px 1px 0;
  opacity: 0; transition: opacity .2s;--amber:#f59e0b;}
.intent-card.active::before { opacity: 1; }
.intent-card.active .depth-tag { color: var(--navy); }
.intent-card h3 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: 20px; line-height: 1.2; color: var(--ink-900); margin-bottom: 8px;
}
.intent-card p {
  font-size: 13.5px; font-weight: 300; line-height: 1.6; color: var(--ink-600);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-400);
}
.form-input,
.form-select,
.form-textarea {
  font-family: var(--f-sans); font-size: 14px; font-weight: 300;
  color: var(--ink-900); background: var(--white);
  border: 1px solid var(--warm-200); border-radius: var(--r-md);
  padding: 10px 14px; width: 100%; outline: none;
  transition: border-color .18s, box-shadow .18s;
  appearance: none; -webkit-appearance: none; line-height: 1.5;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink-400); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238c8c80' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  background-color: var(--white); padding-right: 36px; cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-conditional { display: none; }
.form-conditional.show { display: contents; }
.form-divider { height: 1px; background: var(--warm-100); }
.form-submit-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 6px;
}
.form-note {
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .08em; color: var(--ink-400);
}

/* Stat rail */
.contact-rail { position: sticky; top: 80px; }
.rail-stat { padding: 24px 0; border-top: 1px solid var(--warm-200); }
.rail-stat:last-child { border-bottom: 1px solid var(--warm-200); }
.rail-stat-num {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.02em; line-height: 1;
  color: var(--ink-900); display: block; margin-bottom: 6px;
}
.rail-stat-label {
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-400); display: block; margin-bottom: 8px;
}
.rail-stat-desc {
  font-size: 13px; font-weight: 300; line-height: 1.55; color: var(--ink-500);
}

/* ================================================================
   OFFICES — warm-50 bg
================================================================ */
.offices-section {
  padding: 104px 0;
  background: var(--warm-50);
  border-top: 1px solid var(--warm-200);
}
.offices-section .section-header { margin-bottom: 48px; }
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.office-card {
  background: var(--white); border: 1px solid var(--warm-200);
  border-radius: var(--r-xl); overflow: hidden;
  transition: box-shadow .22s, transform .22s;
}
.office-card:hover { box-shadow: 0 12px 40px rgba(12,31,61,.09); transform: translateY(-3px); }
.office-card-body { padding: 32px 32px 36px; }
.office-eyebrow {
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber); display: block; margin-bottom: 14px;
}
.office-city {
  font-family: var(--f-serif); font-weight: 400; font-size: 20px;
  letter-spacing: -.015em; color: var(--ink-900); line-height: 1.2; margin-bottom: 14px;
}
.office-address {
  font-size: 14px; font-weight: 300; line-height: 1.8;
  color: var(--ink-600); font-style: normal;
}
.office-tz {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; color: var(--blue);
  display: block; margin-top: 10px;
}
.office-desc {
  font-size: 13px; font-weight: 300; line-height: 1.55; color: var(--ink-500);
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--warm-100);
}

/* Phone card */
.phone-card {
  margin-top: 24px;
  background: var(--white); border: 1px solid var(--warm-200);
  border-radius: var(--r-xl); padding: 48px 40px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px;
}
.phone-card-label {
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--amber);
}
.phone-card-number {
  font-family: var(--f-serif); font-weight: 400;
  font-size: 36px; letter-spacing: -.02em; line-height: 1;
  color: var(--ink-900); transition: color .2s; text-decoration: none;
}
.phone-card-number.closed { color: var(--ink-400); pointer-events: none; }
.phone-status {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 99px;
  background: var(--warm-50); border: 1px solid var(--warm-200);
}
.phone-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.phone-status-dot.open  { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.phone-status-dot.closed { background: var(--ink-400); }
.phone-status-text {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.phone-status-text.open  { color: #16a34a; }
.phone-status-text.closed { color: var(--ink-400); }
.phone-status-time {
  font-family: var(--f-mono); font-size: 10px; font-weight: 400;
  color: var(--ink-400); letter-spacing: .04em;
}
.phone-card-sub {
  font-size: 14px; font-weight: 300; line-height: 1.6;
  color: var(--ink-500); max-width: 520px;
}
.phone-card-note {
  font-size: 12px; font-weight: 300; font-style: italic;
  line-height: 1.6; color: var(--ink-400); max-width: 520px;
}

/* ================================================================
   ALT STRIP — navy, matches home.css .cta-section
================================================================ */
.contact-alt {
  background: var(--navy); padding: 104px 0;
  position: relative; overflow: hidden;--amber:#f59e0b;}
.contact-alt::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,74,128,.3), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.contact-alt::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.contact-alt-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: 80px; align-items: start;
  max-width: 900px; margin: 0 auto;
}
.contact-alt-rule { background: rgba(255,255,255,.08); align-self: stretch; width: 1px; }
.contact-alt-block .section-tag { color: var(--amber); }
.contact-alt-block h3 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(24px, 2.8vw, 36px);
  color: #fff; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 12px;
}
.contact-alt-block p {
  font-size: 14px; font-weight: 300; line-height: 1.6;
  color: rgba(255,255,255,.55); max-width: 340px; margin-bottom: 20px;
}
.press-link {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  color: rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.15);
  padding-bottom: 2px; transition: color .18s, border-color .18s; display: inline-block;
  text-decoration: none;
}
.press-link:hover { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35); }

/* HC overrides */
body.hc .contact-alt { background: #00102a;--amber:#f59e0b;}
body.hc .contact-alt-block h3 { color: #ffffff; }
body.hc .contact-alt-block p { color: rgba(255,255,255,.85); }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .contact-rail {
    position: static;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  }
  .rail-stat { border-top: none; border-left: 1px solid var(--warm-200); padding: 0 28px; }
  .rail-stat:first-child { border-left: none; padding-left: 0; }
  .rail-stat:last-child { border-bottom: none; }
  .offices-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .page-hero { padding: calc(88px + env(safe-area-inset-top,0px)) 0 56px; }
  .page-hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .contact-body { padding: 64px 0 80px; }
  .intent-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-rail { grid-template-columns: 1fr; }
  .rail-stat { border-left: none; border-top: 1px solid var(--warm-200); padding: 20px 0; }
  .rail-stat:last-child { border-bottom: none; }
  .offices-section { padding: 64px 0; }
  .offices-grid { grid-template-columns: 1fr; gap: 16px; }
  .phone-card { padding: 36px 24px; }
  .contact-alt { padding: 80px 0; }
  .contact-alt-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-alt-rule { display: none; }
}
@media (max-width: 480px) {
  .contact-body { padding: 52px 0 64px; }
  .offices-section { padding: 52px 0; }
  .contact-alt { padding: 64px 0; }
}
