/* ============================================================
   Contact — Single-section, info + form layout
   New design system
   ============================================================ */

:root {
  --teal:      #006778;
  --ink:       #0a0a0a;
  --bg:        #f9f8f7;
  --bg-alt:    #f4f2f0;
  --muted:     #807771;
  --muted-2:   #a8a09b;
  --hairline:  #e4dfdb;
  --body:      #2a2522;

  --maxw:      1080px;
  --gutter:    clamp(24px, 4vw, 56px);

  --line:      var(--hairline);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: 62px;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bg); }

img, svg { display: block; max-width: 100%; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}
a:hover { opacity: .65; }

.t3-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

/* ----- Typography (shared) ----- */

.t3-display {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem 0;
  text-wrap: balance;
}

.t3-kicker {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0 0 2rem 0;
  display: block;
}

/* ----- LEFT: contact info ----- */

.contact-info {
  position: sticky;
  top: 6rem;
}

.contact-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 2.5rem 0;
  max-width: 38ch;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}

.contact-channels {
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-channel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.contact-channel:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.contact-channel__label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.005em;
}
.contact-channel__value {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: border-color .15s ease, color .15s ease;
}
.contact-channel__value:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
  opacity: 1;
}

/* ----- INLINE CTA (Diagnostic Tool box) ----- */

.inline-cta {
  margin-top: 1rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--ink);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transition: background .2s ease, border-color .2s ease;
}
.inline-cta:hover {
  background: var(--bg);
  border-color: var(--teal);
}

.inline-cta__text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 220px;
}
.inline-cta__sub {
  font-size: 12px;
  letter-spacing: 0.005em;
  color: var(--teal);
}
.inline-cta__headline {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
  text-wrap: balance;
}

.inline-cta__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0.75rem 1.2rem;
  background: var(--teal);
  border: 1px solid var(--teal);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  border-radius: 0;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.inline-cta__link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  opacity: 1;
}
.inline-cta__link .arrow { transition: transform .2s ease; }
.inline-cta__link:hover .arrow { transform: translateX(4px); }

/* ----- RIGHT: form ----- */

.contact-form {
  background: transparent;
  border: 0;
  padding: 0;
}

.contact-form__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.6rem 0;
  text-wrap: balance;
}
.contact-form__sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 2rem 0;
  letter-spacing: -0.005em;
  max-width: 44ch;
}

/* Field primitives — same vocabulary as pipeline-reset */

.t3-field {
  display: block;
  margin-bottom: 1.5rem;
}
.t3-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.t3-field__row .t3-field { margin-bottom: 1.5rem; }

.t3-field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: .55rem;
  font-weight: 400;
}
.t3-field__optional {
  color: var(--muted-2);
  font-size: 12px;
  margin-left: 0.4rem;
}

.t3-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.t3-field textarea {
  width: 100%;
  padding: .7rem 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .15s ease;
  letter-spacing: -0.005em;
  -webkit-appearance: none;
  appearance: none;
}
.t3-field textarea {
  min-height: 130px;
  resize: vertical;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--hairline);
  background: var(--bg);
}
.t3-field input:focus,
.t3-field textarea:focus {
  border-color: var(--teal);
  border-bottom-color: var(--teal);
}
.t3-field input::placeholder,
.t3-field textarea::placeholder { color: var(--muted-2); font-weight: 400; }

/* Submit button (same as t3-btn--teal) */

.t3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.05rem 1.6rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.t3-btn:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); opacity: 1; }
.t3-btn .arrow { display: inline-block; transition: transform .2s ease; }
.t3-btn:hover .arrow { transform: translateX(4px); }
.t3-btn--teal { background: var(--teal); border-color: var(--teal); }
.t3-btn--teal:hover { background: var(--ink); border-color: var(--ink); }

.contact-form__submit {
  width: 100%;
  margin-top: 1rem;
}

.contact-form__alt {
  margin-top: 1rem;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.005em;
}

.contact-form__status {
  margin-top: 1rem;
  font-size: 13px;
  color: var(--muted);
  min-height: 1em;
  text-align: center;
}
.contact-form__status.is-error   { color: #b42318; }
.contact-form__status.is-success { color: var(--teal); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info { position: static; }
  .t3-field__row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
  .inline-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }
  .inline-cta__text {
    flex: 0 0 auto;       /* override flex-basis so vertical space doesn't grow */
    width: 100%;
  }
  .inline-cta__headline {
    font-size: 1.15rem;   /* bump for presence vs the full-width button */
    line-height: 1.3;
  }
  .inline-cta__link {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.2rem;
    font-size: 14.5px;
  }
}


/* ============================================================
   ─── Production Site Header (mirrors WordPress nav) ─────────
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 99999;
  background: var(--bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  font-family: var(--font-sans);
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(249, 248, 247, 0.98);
}
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.15rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}
.site-logo {
  font-size: 0.9rem; font-weight: 900;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  border-bottom: 0;
}
.site-nav { display: flex; align-items: center; gap: 3rem; }
.nav-item {
  font-size: 0.7rem; font-weight: 900;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 0;
  position: relative; padding-bottom: 4px;
}
.nav-item::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--teal);
  transition: width 0.25s ease;
}
.nav-item:hover { opacity: 1; }
.nav-item:hover::after { width: 100%; }
.nav-cta { color: var(--teal); }
.nav-toggle {
  display: none; border: 2px solid var(--ink);
  background: transparent; color: var(--ink);
  padding: 0.65rem 0.9rem; cursor: pointer;
  align-items: center; gap: 0.75rem; font-family: inherit;
}
.nav-toggle-text {
  font-size: 0.65rem; font-weight: 900;
  letter-spacing: 0.3em; text-transform: uppercase;
}
.nav-toggle-icon { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: ''; position: absolute; left: 0; width: 100%;
  height: 2px; background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-icon::before { top: 2px; }
.nav-toggle-icon::after  { top: 8px; }

@media (max-width: 1024px) {
  .site-header-inner { padding: 1.1rem 2rem; }
  .site-nav { gap: 1.5rem; }
}
@media (max-width: 768px) {
  .site-header-inner { padding: 0.9rem 1.25rem; gap: 1rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; top: 100%; width: 100%;
    background: rgba(249, 248, 247, 0.98);
    border-bottom: 1px solid var(--hairline);
    display: grid; gap: 0; padding: 0.75rem 1.25rem 1.25rem;
    transform-origin: top; transform: scaleY(0);
    opacity: 0; pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .site-header.is-open .site-nav {
    transform: scaleY(1); opacity: 1; pointer-events: auto;
  }
  .site-nav .nav-item {
    padding: 1rem 0;
    border-top: 1px solid rgba(228,223,219,0.7);
  }
  .site-nav .nav-item::after { display: none; }
  .site-header.is-open .nav-toggle-icon::before { top: 5px; transform: rotate(45deg); }
  .site-header.is-open .nav-toggle-icon::after  { top: 5px; transform: rotate(-45deg); }
}

/* ============================================================
   ─── Production Site Footer ─────────────────────────────────
   ============================================================ */

.site-footer {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 4rem 0 2.25rem;
  border-top: 1px solid #1f2937;
  font-family: var(--font-sans);
}
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer p { margin-top: 0; }
.site-footer ul { margin: 0; }
.rp-footer-container { max-width: 1360px; margin: 0 auto; padding: 0 1rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.25rem; margin-bottom: 2.5rem; align-items: start;
}
.footer-logo { max-width: 420px; height: auto; margin-bottom: 0.75rem; display: block; }
.footer-role {
  display: block; font-size: 11px; letter-spacing: 0.28em;
  color: #9ca3af; margin-bottom: 1.4rem; font-weight: 800;
  text-transform: uppercase;
}
.footer-tagline {
  color: #d1d5db; font-size: 1rem; line-height: 1.6;
  max-width: 520px; margin-bottom: 1.35rem;
}
.footer-badge {
  display: inline-block; font-size: 10px; letter-spacing: 0.32em;
  padding: 0.7rem 0.95rem; border: 1px solid #374151;
  color: #5bbdd4; background: rgba(0,103,120,0.12);
  font-weight: 900; text-transform: uppercase;
}
.footer-label {
  font-size: 10px; color: #5bbdd4; letter-spacing: 0.35em;
  margin-bottom: 1.25rem; display: block; font-weight: 900;
  text-transform: uppercase;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.85rem; }
.footer-links a {
  color: #ffffff; text-decoration: none;
  font-size: 0.98rem; font-weight: 650;
  display: inline-block; opacity: 0.92; border-bottom: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover { color: #5bbdd4; transform: translateX(6px); opacity: 1; }
.footer-email {
  display: inline-block; color: #ffffff; text-decoration: none;
  font-size: 1.1rem; font-weight: 900; margin-bottom: 1.1rem;
  opacity: 0.95; border-bottom: 0; transition: color 0.2s ease;
}
.footer-email:hover { color: #5bbdd4; opacity: 1; }
.footer-social { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.2rem; }
.footer-social a {
  color: #9ca3af; text-decoration: none;
  font-size: 0.95rem; font-weight: 700; display: inline-block;
  border-bottom: 0; transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { color: #ffffff; transform: translateX(6px); }
.footer-note { color: #6b7280; font-size: 0.9rem; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid #111827; padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  align-items: center; gap: 2rem; flex-wrap: wrap;
}
.footer-bottom-left, .footer-bottom-right {
  font-size: 10px; letter-spacing: 0.35em;
  color: #6b7280; font-weight: 900; text-transform: uppercase;
}

@media (max-width: 1024px) {
  .rp-footer-container { padding: 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-logo { max-width: 380px; }
  .footer-tagline { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
