/* Contact page - part of the site's unified 2026-11 theme (adopted from
   the QA-QC & HSE page design: Inter throughout, same green family).
   Originally this page had its own one-off Arial/sharp-edged look from its
   source mockup - updated here to match the rest of the site instead.
   Still scoped entirely under .contact-page so nothing here leaks into any
   other page; the shared site header/footer (outside this wrapper, in
   base.njk) already use this same theme via style.css's :root. */

.contact-page {
  --ct-green: #2f6b45;
  --ct-deep: #1a4a33;
  --ct-ink: #20352a;
  --ct-muted: #617267;
  --ct-pale: #edf4ee;
  --ct-line: #dce5dd;

  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ct-ink);
  background: #fff;
}
.contact-page * { box-sizing: border-box; }
.contact-page a { color: inherit; text-decoration: none; }
/* The global stylesheet sets font-family directly on h1-h6 (Georgia, the
   site's heading font), which beats inheriting Arial from .contact-page
   itself - an explicit rule on an element always wins over inheriting from
   an ancestor, regardless of the ancestor rule's specificity. Every
   heading in this page needs the override explicitly, not just .contact-page. */
.contact-page h1,
.contact-page h2,
.contact-page h3 { font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
/* Same issue, different property: the global stylesheet sets
   text-align:justify directly on every <p>, which beats inheriting
   left-alignment from .contact-page. .locations-heading/.support-heading
   are meant to centre their own paragraph text (via inherited
   text-align:center further down this file) - give those two an explicit
   override too, since they're just as vulnerable to the same bug. */
.contact-page p { text-align: left; }
.contact-page .locations-heading p,
.contact-page .support-heading p { text-align: center; }
.contact-page .wrap { width: min(1160px, calc(100% - 64px)); margin: auto; }
.contact-page .top-accent { height: 5px; background: var(--ct-green); }
.contact-page .main { padding: 76px 0 82px; }
.contact-page .hero-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 76px; align-items: start; }
.contact-page .kicker { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ct-green); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.contact-page .kicker:before { content: ""; width: 25px; height: 1px; background: var(--ct-green); }
.contact-page h1 { font-size: clamp(48px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.065em; font-weight: 600; margin: 24px 0; }
.contact-page h1 span { color: var(--ct-green); }
.contact-page .intro { font-size: 16px; line-height: 1.75; color: var(--ct-muted); max-width: 430px; margin: 0; }
.contact-page .intro-note { margin-top: 46px; padding-top: 19px; border-top: 1px solid var(--ct-line); max-width: 390px; font-size: 12px; line-height: 1.7; color: var(--ct-muted); }
.contact-page .intro-note strong { display: block; color: var(--ct-ink); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }

.contact-page .form-card { border: 1px solid var(--ct-line); padding: 35px 38px 37px; background: #fff; }
.contact-page .form-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding-bottom: 23px; border-bottom: 1px solid var(--ct-line); margin-bottom: 25px; }
.contact-page .form-head h2 { font-size: 23px; letter-spacing: -0.04em; margin: 0 0 7px; font-weight: 600; }
.contact-page .form-head p { font-size: 12px; color: var(--ct-muted); margin: 0; line-height: 1.5; }
.contact-page .form-no { font-size: 10px; letter-spacing: 0.12em; color: var(--ct-green); font-weight: 700; white-space: nowrap; }
.contact-page form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.contact-page .field { display: flex; flex-direction: column; gap: 8px; }
.contact-page .field.full { grid-column: 1 / -1; }
.contact-page label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: #536158; }
.contact-page input,
.contact-page select,
.contact-page textarea { width: 100%; border: 0; border-bottom: 1px solid #cbd6cd; border-radius: 0; padding: 12px 0 13px; background: transparent; font: 14px "Inter", sans-serif; color: var(--ct-ink); outline: none; }
.contact-page input:focus,
.contact-page select:focus,
.contact-page textarea:focus { border-color: var(--ct-green); }
.contact-page input::placeholder,
.contact-page textarea::placeholder { color: #9aa69d; }
.contact-page select { appearance: none; color: #77837b; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23536158' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 5px center; }
.contact-page textarea { min-height: 72px; resize: vertical; }
.contact-page .submit-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 4px; flex-wrap: wrap; }
.contact-page button { border: 0; background: var(--ct-green); color: white; padding: 16px 20px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 30px; cursor: pointer; }
.contact-page button:hover { background: var(--ct-deep); }
.contact-page button span { font-size: 18px; font-weight: 400; }
.contact-page .privacy { font-size: 10px; line-height: 1.5; color: var(--ct-muted); max-width: 185px; }

.contact-page .address-section { background: var(--ct-pale); padding: 68px 0; }
.contact-page .locations-heading { margin: 0 auto 34px; max-width: 680px; text-align: center; }
.contact-page .locations-heading h2 { font-size: clamp(36px, 4.5vw, 53px); line-height: 1.02; letter-spacing: -0.055em; margin: 0 0 15px; font-weight: 600; }
.contact-page .locations-heading h2 span { color: var(--ct-green); }
.contact-page .locations-heading p { font-size: 14px; line-height: 1.75; color: var(--ct-muted); margin: 0 auto; max-width: 560px; }
.contact-page .location-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: stretch; }
.contact-page .plant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid #d5e0d6; align-content: start; }
.contact-page .location-card { padding: 19px 8px 19px 0; border-bottom: 1px solid #d5e0d6; cursor: pointer; transition: padding-left 0.2s ease; }
.contact-page .location-card:hover { padding-left: 10px; }
.contact-page .location-card:hover h3 { color: var(--ct-green); }
.contact-page .location-card:focus-visible { outline: 2px solid var(--ct-green); outline-offset: 2px; }
.contact-page .location-card.is-selected { padding-left: 10px; border-bottom-color: var(--ct-green); }
.contact-page .location-card.is-selected h3 { color: var(--ct-green); }
.contact-page .location-card.is-selected .location-type:after { content: " \00b7 selected"; text-transform: none; font-weight: 500; opacity: 0.75; }
.contact-page .location-type,
.contact-page .office-label { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ct-green); font-weight: 700; }
.contact-page .location-card h3,
.contact-page .head-office h3 { font-size: 18px; letter-spacing: -0.025em; margin: 8px 0 6px; font-weight: 600; }
.contact-page .location-card p,
.contact-page .head-office p { font-size: 12px; line-height: 1.65; color: var(--ct-muted); margin: 0; }
.contact-page .head-office { background: #fff; padding: 26px; border: 1px solid #d5e0d6; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.contact-page .head-office h3 { font-size: 23px; margin-top: 10px; }
.contact-page .directions { display: inline-flex; align-items: center; gap: 12px; color: var(--ct-green); font-size: 12px; font-weight: 700; margin: 16px 0 20px; }
.contact-page .directions span { font-size: 18px; }
.contact-page .office-map { width: 100%; height: 220px; min-height: 220px; margin-top: 18px; background: #dfe8df; display: block; position: relative; overflow: hidden; }
.contact-page .office-map iframe { width: 100%; height: 220px; min-height: 220px; border: 0; display: block; position: absolute; inset: 0; filter: grayscale(0.15) saturate(0.85); }

.contact-page .support { padding: 78px 0 85px; }
.contact-page .support-heading { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 15px; margin-bottom: 38px; }
.contact-page .support-heading .section-no { margin-bottom: 13px; }
.contact-page .support-heading h2 { font-size: clamp(36px, 4.5vw, 54px); line-height: 1; letter-spacing: -0.055em; margin: 0; font-weight: 600; }
.contact-page .support-heading p { max-width: 520px; color: var(--ct-muted); font-size: 13px; line-height: 1.7; margin: 0; }
.contact-page .support-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ct-line); border-bottom: 1px solid var(--ct-line); }
.contact-page .support-item { padding: 29px 24px 31px; min-height: 205px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-page .support-item + .support-item { border-left: 1px solid var(--ct-line); }
.contact-page .support-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ct-pale); color: var(--ct-green); display: flex; align-items: center; justify-content: center; }
.contact-page .support-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-page .support-item h3 { font-size: 22px; letter-spacing: -0.04em; margin: 20px 0 10px; font-weight: 600; }
.contact-page .support-item p { font-size: 13px; line-height: 1.7; color: var(--ct-muted); margin: 0 auto 17px; max-width: 310px; }
.contact-page .support-item a { font-size: 11px; font-weight: 700; color: #fff; background: var(--ct-green); padding: 13px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; overflow-wrap: anywhere; min-height: 43px; transition: background 0.2s ease; }
.contact-page .support-item a:hover { background: var(--ct-deep); }

@media (max-width: 850px) {
  .contact-page .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .contact-page .intro-note { margin-top: 28px; }
  .contact-page .location-layout { grid-template-columns: 1fr; }
  .contact-page .head-office { max-width: none; }
  .contact-page .office-map,
  .contact-page .office-map iframe { height: 240px; min-height: 240px; }
  .contact-page .support-heading { align-items: center; text-align: center; }
}
@media (max-width: 620px) {
  .contact-page .wrap { width: calc(100% - 38px); }
  .contact-page .main { padding: 49px 0 58px; }
  .contact-page h1 { font-size: 54px; }
  .contact-page .intro { font-size: 15px; }
  .contact-page .form-card { padding: 27px 21px; }
  .contact-page .form-head { display: block; }
  .contact-page .form-no { display: block; margin-top: 13px; }
  .contact-page form { grid-template-columns: 1fr; gap: 18px; }
  .contact-page .field.full,
  .contact-page .submit-row { grid-column: auto; }
  .contact-page .submit-row { align-items: flex-start; flex-direction: column; }
  .contact-page .address-section { padding: 52px 0; }
  .contact-page .address-grid { gap: 25px; }
  .contact-page .plant-list { grid-template-columns: 1fr; }
  .contact-page .support { padding: 58px 0; }
  .contact-page .support-heading { display: flex; align-items: center; text-align: center; }
  .contact-page .support-heading p { margin-top: 0; }
  .contact-page .support-grid { grid-template-columns: 1fr; }
  .contact-page .support-item { min-height: 0; padding: 24px 0; }
  .contact-page .support-item + .support-item { border-left: 0; border-top: 1px solid var(--ct-line); padding-left: 24px; }
  .contact-page .support-item h3 { margin: 13px 0 8px; }
}
