/* ========================================
   THAI PERMACULTURE CONTACT PAGE
   Editorial contact routes + registry form layout.
   Uses the site's directory tokens with theme fallbacks.
   ======================================== */

.ct-hero,
.ct-main,
.ct-hero *,
.ct-main * { box-sizing: border-box; }

.ct-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 24px 62px;
  background:
    radial-gradient(circle at 10% 20%, rgba(197,160,101,.2) 0 1px, transparent 1.5px) 0 0 / 19px 19px,
    linear-gradient(115deg, var(--tp-deep, #2d3a26), var(--tp-green, #3a5a40));
  color: var(--tp-cream, #f7f9f4);
}
.ct-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -145px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(217,185,133,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(217,185,133,.05), 0 0 0 104px rgba(217,185,133,.035);
}
.ct-hero .section-inner,
.ct-main .section-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin-inline: auto;
}
.ct-kicker,
.ct-info-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--tp-cta-bg, #d9b985);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.ct-hero h1 {
  max-width: 760px;
  margin: 0 0 17px;
  color: var(--tp-cream, #f7f9f4);
  font-family: 'Lora', serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.03;
}
.ct-hero-sub {
  max-width: 680px;
  margin: 0;
  color: rgba(247,249,244,.82);
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  line-height: 1.7;
}

.ct-main {
  padding: 70px 24px 90px;
  background: var(--tp-cream, #f7f9f4);
}
.ct-route-intro {
  max-width: 730px;
  margin-bottom: 28px;
}
.ct-route-intro .ct-kicker,
.ct-form-wrap .ct-kicker { color: var(--tp-gold-ink, #8b6b2f); }
.ct-route-intro h2,
.ct-form-wrap h2,
.ct-info-card h2 {
  margin: 0 0 12px;
  color: var(--tp-green, #3a5a40);
  font-family: 'Lora', serif;
  font-weight: 700;
  line-height: 1.18;
}
.ct-route-intro h2 { font-size: clamp(29px, 4vw, 42px); }
.ct-route-intro p,
.ct-form-intro,
.ct-info-card p {
  margin: 0;
  color: var(--tp-text-soft, #5f6b59);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
.ct-route-intro strong { color: var(--tp-deep, #2d3a26); }

.ct-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 68px;
  background: rgba(197,160,101,.55);
  border: 1px solid rgba(197,160,101,.55);
}
.ct-route-card {
  position: relative;
  min-height: 210px;
  padding: 28px 24px 25px;
  background: var(--tp-white, #fff);
}
.ct-route-number {
  display: block;
  margin-bottom: 24px;
  color: var(--tp-ev-signal, #9d4434);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.ct-route-card h3 {
  margin: 0 0 10px;
  color: var(--tp-green, #3a5a40);
  font-family: 'Lora', serif;
  font-size: 21px;
  line-height: 1.2;
}
.ct-route-card p {
  margin: 0;
  color: var(--tp-text-soft, #5f6b59);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 32px;
  align-items: start;
}
.ct-form-wrap {
  padding: 36px;
  background: var(--tp-white, #fff);
  border: 1px solid var(--tp-border, #dfe5db);
  box-shadow: 0 18px 42px rgba(45,58,38,.1);
}
.ct-form-wrap h2 { font-size: clamp(27px, 3vw, 36px); }
.ct-form-intro { max-width: 620px; margin-bottom: 26px; }
.ct-form-wrap .mf-form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ct-info { display: grid; gap: 18px; }
.ct-info-card {
  padding: 28px;
  background: var(--tp-deep, #2d3a26);
  border: 1px solid var(--tp-deep, #2d3a26);
  color: var(--tp-cream, #f7f9f4);
}
.ct-info-card h2 {
  color: var(--tp-cream, #f7f9f4);
  font-size: 24px;
}
.ct-info-card p { color: rgba(247,249,244,.75); }
.ct-email-link {
  display: inline-block;
  max-width: 100%;
  margin-top: 20px;
  overflow-wrap: anywhere;
  color: var(--tp-cta-bg, #d9b985);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.ct-email-link:hover { color: var(--tp-cream, #f7f9f4); }
.ct-info-card-note {
  background: var(--tp-white, #fff);
  border-color: rgba(197,160,101,.65);
}
.ct-info-card-note .ct-info-eyebrow { color: var(--tp-gold-ink, #8b6b2f); }
.ct-info-card-note h2 { color: var(--tp-green, #3a5a40); }
.ct-info-list {
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.ct-info-list li {
  position: relative;
  padding-left: 24px;
  color: var(--tp-text-soft, #5f6b59);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
}
.ct-info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  background: var(--tp-ev-signal, #9d4434);
  border-radius: 50%;
}

/* Contact-page form tuning. Core field behavior remains in forms.css. */
.ct-form-wrap .mf-label { color: var(--tp-deep, #2d3a26); }
.ct-form-wrap .mf-input,
.ct-form-wrap .mf-textarea {
  background: var(--tp-cream, #f7f9f4);
  border-color: var(--tp-border, #dfe5db);
  color: var(--tp-deep, #2d3a26);
}
.ct-form-wrap .mf-input:focus,
.ct-form-wrap .mf-textarea:focus {
  border-color: var(--tp-gold, #c5a065);
  box-shadow: 0 0 0 3px rgba(197,160,101,.18);
}
.ct-form-wrap .mf-submit { margin-left: 0; }

@media (max-width: 980px) {
  .ct-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ct-hero { padding: 94px 20px 48px; }
  .ct-main { padding: 52px 18px 68px; }
  .ct-route-grid { grid-template-columns: 1fr; margin-bottom: 48px; }
  .ct-route-card { min-height: 0; padding: 23px 21px; }
  .ct-route-number { margin-bottom: 12px; }
  .ct-form-wrap { padding: 26px 20px; }
  .ct-info { grid-template-columns: 1fr; }
  .ct-info-card { padding: 24px 22px; }
  .ct-form-wrap .mf-submit { width: 100%; }
}
