/* =====================================================================
   ECONOMIC SYSTEMS — CONTACT PAGE
   Page-specific layer for the finalized global styles.css design system.
   This file intentionally uses only the current global tokens.
   ===================================================================== */

/* ACTIVE NAV */
.contact-current {
  color: var(--red);
  background: var(--red-soft-2);
}

/* CONTACT HERO */
.contact-hero {
  position: relative;
  overflow: hidden;
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 86px) 0 92px;
  background: var(--white);
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 14%, rgba(200, 16, 46, .095), transparent 32%),
    radial-gradient(circle at 10% 72%, rgba(56, 33, 43, .04), transparent 28%);
}

.contact-hero-centered {
  position: relative;
  z-index: 1;
  max-width: 930px;
  margin: 0 auto;
  text-align: center;
}

.contact-tagline {
  margin-bottom: 22px;
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
}

.contact-hero h1 {
  max-width: 860px;
  margin: 0 auto 26px;
  font-size: clamp(3rem, 5.25vw, 5rem);
  font-weight: 450;
  letter-spacing: -.052em;
}

.contact-hero-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: #515359;
}

/* SECTION MARKERS / INTRO */
.sec-marker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.sec-marker .eyebrow {
  margin: 0;
}

.sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.section-alt {
  background: var(--soft-warm);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 46px;
}

.section-head h2 {
  max-width: 760px;
}

.section-lead {
  max-width: 570px;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.65;
  color: #55575b;
}

/* CONTACT LAYOUT */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 64px;
  align-items: start;
}

.contact-form-wrap {
  padding: 38px 40px 42px;
  background: var(--white);
  border: 1px solid #ece9e7;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form-wrap h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 2.9vw, 2.6rem);
}

.form-intro {
  max-width: 650px;
  margin-bottom: 36px;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.62;
  color: #57595d;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: .84rem;
  font-weight: 650;
  color: var(--ink);
}

.required {
  margin-left: 2px;
  color: var(--red);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 50px;
  padding: 14px 15px;
  border: 1px solid #dcd8d6;
  border-radius: 12px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: .93rem;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: #c7c1be;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(200, 16, 46, .62);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, .08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9a9694;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.58;
}

.form-hint {
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.45;
}

.select-wrap {
  position: relative;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.form-consent {
  margin-top: 2px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #57595d;
  font-size: .84rem;
  line-height: 1.52;
  cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.form-footer {
  margin-top: 5px;
  text-align: center;
  color: var(--muted);
  font-size: .84rem;
}

.form-footer a {
  color: var(--red);
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* DIRECT CHANNELS */
.aside-sticky {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aside-block {
  padding: 29px;
  background: var(--soft-warm);
  border: 1px solid #ece9e7;
  border-radius: 20px;
}

.aside-label,
.aside-label-light {
  display: block;
  margin-bottom: 17px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.03rem;
  font-weight: 500;
  color: var(--red);
}

.aside-channel {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid #e6e1df;
  transition: transform .16s var(--ease);
}

.aside-channel:last-child {
  border-bottom: 0;
}

.aside-channel:hover {
  transform: translateX(3px);
}

.aside-channel-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #e2ddda;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.aside-channel:hover .aside-channel-icon {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.aside-channel-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aside-channel-value {
  display: block;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 550;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.aside-block-dark {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background:
    radial-gradient(circle at 88% 10%, rgba(200, 16, 46, .22), transparent 35%),
    linear-gradient(135deg, var(--plum) 0%, var(--plum-2) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.aside-block-dark .aside-label-light {
  color: var(--white);
}

.aside-note-dark {
  position: relative;
  color: rgba(255, 255, 255, .78);
  font-family: var(--serif);
  font-size: .96rem;
  line-height: 1.6;
}

/* WHAT HAPPENS NEXT */
.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  min-height: 238px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas:
    'number content'
    'number time';
  gap: 13px 18px;
  align-content: start;
  padding: 30px;
  background: var(--white);
  border: 1px solid #eae6e4;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(20, 18, 19, .025);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s ease;
}

.process-step:hover {
  transform: translateY(-2px);
  border-color: #ddd7d4;
  box-shadow: var(--shadow-sm);
}

.process-num {
  grid-area: number;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.process-content {
  grid-area: content;
}

.process-content h3 {
  margin: 4px 0 9px;
  font-size: 1.3rem;
}

.process-content p {
  color: #57595d;
  font-family: var(--serif);
  font-size: .99rem;
  line-height: 1.6;
}

.process-time {
  grid-area: time;
  align-self: end;
  color: var(--red);
  font-family: var(--serif);
  font-size: .94rem;
  font-style: italic;
  line-height: 1.35;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}

.faq-side {
  position: sticky;
  top: calc(var(--header-h) + 34px);
}

.faq-side h2 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 3.3vw, 3.55rem);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  background: var(--soft-warm);
  border: 1px solid #ebe7e5;
  border-radius: 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.faq-item[open] {
  border-color: #ddd6d3;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 23px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.45;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  font-size: 1.12rem;
  font-weight: 400;
  transition: transform .16s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 23px 23px;
}

.faq-answer p {
  color: #5b5c60;
  font-family: var(--serif);
  font-size: .98rem;
  line-height: 1.64;
}

/* FINAL CTA: global card retained; page-specific spacing only */
.contact-page .section-cta-final {
  padding-top: 90px;
}

/* RESPONSIVE */
@media (max-width: 1120px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .aside-sticky,
  .faq-side {
    position: static;
  }

  .section-head,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .contact-hero {
    min-height: auto;
    padding: calc(var(--header-h) + 68px) 0 70px;
  }

  .contact-form-wrap {
    padding: 31px 28px 34px;
  }

  .form-row,
  .process-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-hero-centered {
    text-align: left;
  }

  .contact-hero h1,
  .contact-hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .contact-form-wrap {
    padding: 27px 22px 29px;
    border-radius: 18px;
  }

  .aside-block {
    padding: 24px 22px;
  }

  .process-step {
    min-height: 0;
    padding: 25px 22px;
  }

  .faq-item summary {
    padding: 20px;
  }

  .faq-answer {
    padding: 0 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aside-channel:hover,
  .process-step:hover {
    transform: none;
  }
}

/* FINAL CONTACT COPY REFINEMENT — process lead only */
.process-lead {
  padding: 22px 24px 23px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 4%, rgba(200, 16, 46, .20), transparent 31%),
    linear-gradient(125deg, var(--plum) 0%, var(--plum-2) 72%, #472733 100%);
  box-shadow: 0 10px 30px rgba(24, 15, 19, .08);
  color: rgba(255, 255, 255, .94);
}

.checkbox-label a {
  color: var(--red);
  font-weight: 600;
}

.checkbox-label a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .process-lead {
    padding: 18px 19px 19px;
    border-radius: 14px;
  }
}

/* ================================================================
   INSIGHTS TYPOGRAPHY SYNC — hero + supporting gradient notes only
   ================================================================ */
.contact-hero-subtitle {
  max-width: 825px;
  margin: 0 auto;
  padding: 24px 28px 25px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 4%, rgba(200,16,46,.20), transparent 31%),
    linear-gradient(125deg, var(--plum) 0%, var(--plum-2) 72%, #472733 100%);
  box-shadow: 0 10px 30px rgba(24,15,19,.08);
  color: rgba(255,255,255,.94);
  font-family: var(--sans);
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.process-lead {
  max-width: 590px;
  padding: 22px 24px 23px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 4%, rgba(200,16,46,.20), transparent 31%),
    linear-gradient(125deg, var(--plum) 0%, var(--plum-2) 72%, #472733 100%);
  box-shadow: 0 10px 30px rgba(24,15,19,.07);
  color: rgba(255,255,255,.94);
  font-family: var(--sans);
  font-size: clamp(1.01rem, 1.16vw, 1.12rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -.008em;
}

@media (max-width: 560px) {
  .contact-hero-subtitle {
    margin-left: 0;
    margin-right: 0;
    padding: 20px 20px 21px;
    border-radius: 15px;
  }

  .process-lead {
    max-width: 100%;
    padding: 18px 19px 19px;
    border-radius: 14px;
  }
}

/* ================================================================
   OPEN EDITORIAL HERO SUPPORT — APPROVED SITE-WIDE TREATMENT
   Opening hero copy stays open on white; interior plum modules remain.
   ================================================================ */

.contact-hero-subtitle {
  position: relative;
  max-width: 790px;
  margin: 0 auto 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #4b4d52;
  font-family: var(--sans);
  font-size: clamp(1.10rem, 1.38vw, 1.27rem);
  font-weight: 300;
  line-height: 1.56;
  letter-spacing: -.012em;
}

.contact-hero-subtitle::before {
  content: '';
  display: block;
  width: 54px;
  height: 2px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: var(--red);
}

@media (max-width: 560px) {
  .contact-hero-subtitle {
    max-width: 100%;
    margin: 0 0 32px;
    padding: 0;
    border-radius: 0;
    font-size: 1.06rem;
    line-height: 1.58;
  }

  .contact-hero-subtitle::before {
    width: 46px;
    margin: 0 0 19px;
  }
}
