/* =========================================================
   Contact — page-specific styles (light theme)
   Nav + footer remain dark globally; this file only restyles
   the contact page body, office cards, and contact form.
   ========================================================= */

:root {
  --contact-bg:            #ffffff;
  --contact-bg-alt:        #f7f7f8;
  --contact-text:          #111111;
  --contact-muted:         #5a5a62;
  --contact-border:        #e6e6ea;
  --contact-border-strong: #d4d4da;
  --contact-shadow:        0 2px 8px rgba(17, 17, 17, 0.04);
  --contact-shadow-hover:  0 12px 32px rgba(17, 17, 17, 0.10);
  --contact-radius:        14px;
}

.page-main {
  min-height: 100vh;
  padding-top: calc(var(--banner-h) + var(--nav-h));
  background: var(--contact-bg);
  color: var(--contact-text);
}

/* ---------- Hero ---------- */

.page-hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--contact-border);
  background: var(--contact-bg);
}

.page-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--epx-red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--epx-red);
  flex-shrink: 0;
}

.page-title {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--contact-text);
  margin-bottom: 28px;
  max-width: 900px;
}

.page-title em {
  font-style: italic;
  color: rgba(17, 17, 17, 0.40);
}

.page-blurb {
  font-size: 18px;
  color: var(--contact-muted);
  max-width: 620px;
  line-height: 1.65;
}

/* ---------- Main two-column section ---------- */

.contact-section {
  background: var(--contact-bg-alt);
  padding: 80px 0 120px;
}

.contact-section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Column eyebrow ---------- */

.col-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--epx-red);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.col-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--epx-red);
  flex-shrink: 0;
}

/* ---------- Offices column ---------- */

.offices-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.office-card {
  background: var(--contact-bg);
  border: 1px solid var(--contact-border);
  border-radius: var(--contact-radius);
  padding: 24px 28px;
  box-shadow: var(--contact-shadow);
  transition: box-shadow 240ms ease, border-color 240ms ease;
}

.office-card:hover {
  box-shadow: var(--contact-shadow-hover);
  border-color: var(--contact-border-strong);
}

.office-card-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.office-card-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.office-card-hd span {
  font-size: 15px;
  font-weight: 700;
  color: var(--contact-text);
  letter-spacing: -0.01em;
}

.office-card-addr {
  font-size: 14px;
  color: var(--contact-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.office-card-ctas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.office-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--contact-border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--contact-text);
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.office-cta:hover {
  background: var(--epx-red);
  border-color: var(--epx-red);
  color: #fff;
}

/* ---------- Form column ---------- */

.form-col {
  background: var(--contact-bg);
  border: 1px solid var(--contact-border);
  border-radius: var(--contact-radius);
  padding: 40px;
  box-shadow: var(--contact-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

/* Honeypot — visually hidden from real users */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--contact-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--contact-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--contact-text);
  background: var(--contact-bg);
  transition: border-color 180ms ease, outline 180ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%235a5a62' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(17, 17, 17, 0.30);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(225, 31, 38, 0.18);
  outline-offset: 0;
  border-color: var(--epx-red);
}

.field input.field-error,
.field select.field-error,
.field textarea.field-error {
  border-color: var(--epx-red);
}

.field-err-msg {
  font-size: 12px;
  color: var(--epx-red);
  margin-top: 2px;
}

/* ---------- Form status ---------- */

.form-status {
  display: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.form-status--success {
  display: block;
  background: #f0faf0;
  border: 1px solid #b6dfb6;
  color: #1e6b1e;
}

.form-status--error {
  display: block;
  background: #fff5f5;
  border: 1px solid #f5b8b8;
  color: #a31515;
}

/* ---------- Submit button ---------- */

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--epx-red);
  color: #fff;
  border: none;
  border-radius: var(--contact-radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.form-submit:hover:not(:disabled) {
  background: #c41920;
  box-shadow: 0 10px 28px -8px rgba(225, 31, 38, 0.50);
}

.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-submit svg {
  flex-shrink: 0;
  transition: transform 220ms ease;
}

.form-submit:hover:not(:disabled) svg {
  transform: translateX(3px);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .contact-section-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .page-hero { padding: 64px 0 56px; }
  .page-hero-inner { padding: 0 24px; }

  .contact-section { padding: 56px 0 80px; }
  .contact-section-inner { padding: 0 24px; gap: 24px; }

  .form-col { padding: 28px 24px; }
}
