/* ─────────────────────────────────────────────────────────────────────────────
 * Animal Massage Awareness — Typography
 * Cormorant Garamond (serif display) + DM Sans (sans body).
 *
 * IMPORTANT — Divi UI overrides
 * ─────────────────────────────
 * Divi sets per-module colors via inline styles on the module wrapper
 * (e.g. `.et_pb_text_0 { color: #xxx }`) and lets the inner element inherit.
 * If we write `.et_pb_text p { color: ... }` directly, the inner <p> stops
 * inheriting and the Divi UI color picker silently has no effect.
 *
 * To avoid this, every cosmetic default (color, font) below is wrapped in
 * `:where(...)` which has specificity (0,0,0). Anything the user sets in
 * Divi's Design tab — at any specificity — always wins.
 *
 * Structural rules (size, line-height on the bare body) stay un-wrapped.
 * ───────────────────────────────────────────────────────────────────────────── */

/* ── Body baseline — structural, not cosmetic ─────────────────────────────── */

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* ── Headings — fluid sizes are structural; colour + family are defaults ── */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem,  4vw   + 1rem, 4rem);    letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 2.5vw + 1rem, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.375rem, 1.2vw + 1rem, 2rem); }

/* Cosmetic defaults — wrapped in :where() so Divi UI always wins. */

:where(h1, h2, h3) {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  color: var(--gcid-color-text-primary, #1D1C16);
}

:where(h4, h5) {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gcid-color-text-primary, #1D1C16);
}

:where(h6) {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gcid-color-text-dim, #695F50);
}

/* ── Body copy ─────────────────────────────────────────────────────────────
 * Defaults only — Divi's per-module text colour / font picker overrides.
 * Structural margin/line-height kept un-wrapped because Divi has no UI for
 * paragraph margin and we want a consistent rhythm.
 * ───────────────────────────────────────────────────────────────────────── */

/* p {
  margin: 0 0 var(--gvid-space-md, 16px) 0;
  line-height: 1.65;
} */

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

/* :where(p) {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: var(--gcid-color-text-secondary, #52443B);
} */

/* Inline emphasis — :where() so Divi inline-style color flows through. */
:where(strong, b)  { font-weight: 600; }
:where(em, i)      { font-style: italic; }

:where(blockquote) {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.5;
  border-left: 3px solid var(--gcid-color-accent, #9E6538);
  padding-left: var(--gvid-space-lg, 24px);
  margin: var(--gvid-space-xl, 32px) 0;
  color: var(--gcid-color-text-primary, #1D1C16);
}

/* ── Selection ──────────────────────────────────────────────────────────── */

::selection {
  background: var(--gcid-color-interactive, #0A847E);
  color: var(--gcid-color-text-on-interactive, #FFFFFF);
}

/* ── Form labels — Divi has no UI for the eyebrow style, keep specificity ─ */

.et_pb_contact_field_options_title,
.et_pb_contact label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gcid-color-text-dim, #695F50);
  margin-bottom: 6px;
}

/* ── Form inputs — Divi's contact-field design panel is incomplete,
 * so we keep these as opinionated defaults. To override per-field, use
 * Divi's Custom CSS field on the module. ───────────────────────────────── */

.et_pb_contact input[type="text"],
.et_pb_contact input[type="email"],
.et_pb_contact textarea,
.et_pb_contact select {
  font-family: "DM Sans", sans-serif;
  font-size: 0.9375rem;
  color: var(--gcid-color-text-primary, #1D1C16);
  background: var(--gcid-color-surface, #FFFFFF);
  border: 1px solid var(--gcid-color-border, #D8D0C0);
  border-radius: var(--gvid-radius-md, 8px);
  padding: 12px 16px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.et_pb_contact input[type="text"]:focus,
.et_pb_contact input[type="email"]:focus,
.et_pb_contact textarea:focus,
.et_pb_contact select:focus {
  border-color: var(--gcid-color-interactive, #0A847E);
  box-shadow: 0 0 0 3px rgba(10, 132, 126, 0.12);
  outline: none;
}

.et_pb_contact input::placeholder,
.et_pb_contact textarea::placeholder {
  color: var(--gcid-color-text-dim, #695F50);
  opacity: 0.7;
}
