/* ============================================================
   GLOBAL.CSS — Design tokens, resets, typography, buttons,
   forms. Shared by the landing pages and the thank-you pages.

   The tokens below are read off the live Elementor pages at
   help.wellnessspacecounseling.org so the static rebuild keeps
   the same look: Marcellus SC headings over Inter body copy,
   the white-to-teal hero wash, and the sand-coloured CTA.
   ============================================================ */

:root {
  /* --- Brand palette --- */
  --color-navy:        #1e3e5b;  /* headings, nav, icons */
  --color-navy-dark:   #16304a;
  --color-teal:        #98d3cf;  /* hero gradient end, thank-you bg */
  --color-teal-light:  #d7eceb;
  --color-sand:        #edcb94;  /* primary button */
  --color-sand-dark:   #e0b877;
  --color-heading:     #3a3a3a;  /* h1 on the landing pages */
  --color-text:        #505050;
  --color-text-muted:  #6b6b6b;
  --color-white:       #ffffff;
  --color-border:      #e2e8ea;
  --color-bg-soft:     #f6fafa;
  --color-ink:         #141414;  /* button label */

  /* --- Type --- */
  --font-heading: "Marcellus SC", "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;   /* 17px — matches live */
  --text-lg:   1.1875rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.5rem;      /* h2 — 40px */
  --text-4xl:  3rem;        /* h1 — 48px */

  /* --- Spacing / shape --- */
  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   18px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(30, 62, 91, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 62, 91, 0.10);
  --shadow-lg: 0 18px 48px rgba(30, 62, 91, 0.14);

  --container: 1200px;
  --nav-height: 88px;
}

/* ============================================================
   RESET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Anchor links land below the sticky navbar instead of under it. */
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.5px;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.75px;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--color-navy);
}

h1 {
  font-size: var(--text-4xl);
  color: var(--color-heading);
  line-height: 1.2;
}

h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-navy); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--color-sand-dark); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 1.2px;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.section-subhead {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin: 0 0 1.25rem;
}

.text-center { text-align: center; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow { max-width: 860px; }

.section { position: relative; padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section--soft { background-color: var(--color-bg-soft); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.95rem 2.25rem;
  border: 2px solid transparent;
  border-radius: 0;   /* square, as on the live pages */
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background-color: var(--color-sand);
  color: var(--color-ink);
  border-color: var(--color-sand);
}

.btn--primary:hover {
  background-color: var(--color-sand-dark);
  border-color: var(--color-sand-dark);
  color: var(--color-ink);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--outline:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn--block { width: 100%; display: block; }

/* ============================================================
   FORMS
   ============================================================ */

.form-group { margin-bottom: 1.1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
  letter-spacing: 0.3px;
}

.required { color: #c0392b; }

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-white);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(152, 211, 207, 0.35);
}

select.form-control {
  appearance: none;
  /* Inline SVG caret so the select matches the text inputs in every browser. */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231e3e5b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.form-control.input--error { border-color: #c0392b; }

.field-error {
  display: block;
  font-size: var(--text-xs);
  color: #c0392b;
  margin-top: 0.3rem;
  letter-spacing: 0.2px;
}

.form-error {
  margin-top: 0.9rem;
  font-size: var(--text-sm);
  color: #c0392b;
  letter-spacing: 0.2px;
}

/* Honeypot: a bot fills every field it finds, a human never sees this one. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.divider {
  width: 56px;
  height: 3px;
  background-color: var(--color-sand);
  border: 0;
  margin: 0 0 1.5rem;
}

.divider--center { margin-left: auto; margin-right: auto; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  :root { --text-4xl: 2.5rem; --text-3xl: 2rem; }
  .grid-2 { gap: 2.5rem; }
}

@media (max-width: 860px) {
  :root { --text-4xl: 2.125rem; --text-3xl: 1.75rem; --nav-height: 72px; }
  .section { padding: 3.5rem 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.125rem; }
  .form-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
