/*
Theme Name: Marigold & Grace
Theme URI: https://marigoldandgrace.com.au
Author: Marigold & Grace
Author URI: https://marigoldandgrace.com.au
Description: A warm, editorial custom theme for Marigold & Grace — an independent surrogacy concierge and liaison service for intended parents. Built to feel like a trusted friend, not a corporate site: calm typography, generous whitespace, and one clear invitation — Book a Conversation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marigold-grace
Tags: custom-logo, custom-menu, translation-ready, one-column, two-columns

Note: place a 1200x900 screenshot.png in this theme's root directory
(wp-content/themes/marigold-and-grace/screenshot.png) so the theme
displays a preview image in Appearance > Themes. Use a capture of the
homepage hero on the Ivory Cream background.
*/

/* =========================================================
   1. DESIGN TOKENS — "Marigold Warmth"
   ========================================================= */
:root {
  /* Colour palette */
  --mg-gold: #C4915A;          /* Marigold Gold — primary brand, CTAs, "&" mark */
  --mg-gold-hover: #B8835A;    /* Darkened gold — primary CTA hover */
  --mg-deep: #3D2B1F;          /* Deep Warmth — headlines, dark/reversed bg */
  --mg-rose: #C27A6E;          /* Terracotta Rose — pull quotes, errors, sparing accents */
  --mg-cream: #FAF4EE;         /* Ivory Cream — primary page background (never #FFF) */
  --mg-sage: #8E9D8C;          /* Sage Whisper — balance/growth accent */
  --mg-charcoal: #2E2825;      /* Warm Charcoal — body text (never #000) */
  --mg-border: #E8DDD5;        /* Warm border grey — 1px structural borders */
  --mg-card: #FFFDFB;          /* Near-white warm card surface */

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid type scale (mobile-first; clamps up to the spec sizes) */
  --fs-h1: clamp(2.5rem, 5.5vw + 1rem, 4.5rem);      /* 40 → 72px */
  --fs-h2: clamp(2rem, 3vw + 1rem, 3rem);            /* 32 → 48px */
  --fs-h3: clamp(1.5rem, 1.5vw + 1rem, 2rem);        /* 24 → 32px */
  --fs-quote: clamp(1.375rem, 1.5vw + 1rem, 1.75rem);/* 22 → 28px */
  --fs-body: 1.0625rem;                               /* 17px */
  --fs-small: 0.9375rem;                              /* 15px */

  /* Rhythm */
  --section-pad: clamp(5rem, 10vw, 7.5rem);           /* 80 → 120px */
  --content-width: 72rem;                             /* 1152px */
  --prose-width: 42rem;                               /* ~680px comfortable reading */

  /* Detail */
  --radius-btn: 10px;
  --radius-card: 14px;
  --shadow-card: 0 4px 24px rgba(61, 43, 31, 0.08);
  --transition: 200ms ease;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background-color: var(--mg-cream);
  color: var(--mg-charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

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

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--mg-deep);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}

h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 400; }
h4 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.01em; }

p {
  margin: 0 0 1.25em;
}

a {
  color: var(--mg-deep);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}

/* Ghost/tertiary link treatment */
.mg-prose a,
.mg-link {
  border-bottom: 1px solid transparent;
}

.mg-prose a:hover,
.mg-prose a:focus,
.mg-link:hover,
.mg-link:focus {
  border-bottom-color: var(--mg-gold);
  color: var(--mg-deep);
}

/* The ampersand device — always Cormorant Garamond Italic, always gold */
.mg-amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--mg-gold);
}

/* Visible focus states — WCAG 2.1 AA */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mg-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader-only utility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  background-color: var(--mg-cream);
  color: var(--mg-deep);
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  left: 1rem;
  top: 1rem;
  padding: 1rem 1.5rem;
  z-index: 100000;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-card);
}

/* =========================================================
   4. LAYOUT PRIMITIVES
   ========================================================= */
.mg-container {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.mg-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.mg-section--tight {
  padding-top: calc(var(--section-pad) * 0.6);
  padding-bottom: calc(var(--section-pad) * 0.6);
}

.mg-prose {
  max-width: var(--prose-width);
}

.mg-prose--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mg-lead {
  font-size: 1.1875rem;
  line-height: 1.75;
}

.mg-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mg-gold);
  margin-bottom: 1rem;
}

/* Gold "&" section divider */
.mg-divider {
  border: 0;
  text-align: center;
  margin: 0;
  padding: calc(var(--section-pad) * 0.25) 0;
  overflow: visible;
}

.mg-divider::before {
  content: '&';
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.25rem;
  color: var(--mg-gold);
  display: inline-block;
  line-height: 1;
}

/* Reversed (dark) section */
.mg-section--dark {
  background-color: var(--mg-deep);
  color: var(--mg-cream);
}

.mg-section--dark h1,
.mg-section--dark h2,
.mg-section--dark h3 {
  color: var(--mg-cream);
}

.mg-section--dark a {
  color: var(--mg-cream);
}

/* Soft sage-tinted band, used sparingly for rhythm changes */
.mg-section--sage {
  background-color: #F2F1EA;
}

/* =========================================================
   5. BUTTONS
   ========================================================= */
.mg-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.mg-btn--primary {
  background-color: var(--mg-gold);
  color: #FFFDFB;
  border-color: var(--mg-gold);
}

.mg-btn--primary:hover,
.mg-btn--primary:focus {
  background-color: var(--mg-gold-hover);
  border-color: var(--mg-gold-hover);
  color: #FFFDFB;
}

.mg-btn--secondary {
  background-color: transparent;
  color: var(--mg-gold);
  border-color: var(--mg-gold);
}

.mg-btn--secondary:hover,
.mg-btn--secondary:focus {
  background-color: var(--mg-gold);
  color: #FFFDFB;
}

/* On dark backgrounds */
.mg-section--dark .mg-btn--secondary {
  color: var(--mg-cream);
  border-color: var(--mg-gold);
}

.mg-section--dark .mg-btn--secondary:hover,
.mg-section--dark .mg-btn--secondary:focus {
  background-color: var(--mg-gold);
  color: #FFFDFB;
}

/* =========================================================
   6. HEADER & NAVIGATION (mobile-first)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 244, 238, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mg-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-shrink: 0;
}

.site-branding .custom-logo-link {
  display: block;
  border-bottom: none;
}

.site-branding .custom-logo {
  max-height: 56px;
  width: auto;
}

/* Text fallback wordmark (used until the real logo file is uploaded).
   Matches the real mark's construction: two-line, all-caps serif,
   terracotta tone, ampersand in the same weight (not italic/gold). */
.site-title-fallback {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mg-rose);
  line-height: 1.25;
  text-align: center;
  border-bottom: none;
}

.site-title-fallback span {
  display: block;
}

.site-title-fallback:hover,
.site-title-fallback:focus {
  color: var(--mg-rose);
}

.site-tagline {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--mg-sage);
  margin: 0;
  display: none; /* shown from tablet up */
}

/* Hamburger toggle */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-btn);
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--mg-deep);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--mg-cream);
  border-bottom: 1px solid var(--mg-border);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.5rem 1.75rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  color: var(--mg-deep);
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--mg-gold);
}

.site-nav .mg-nav-cta {
  margin-top: 1rem;
}

.header-cta {
  display: none; /* mobile shows CTA inside the drawer instead */
}

/* Desktop nav */
@media (min-width: 56.25em) { /* 900px */
  .menu-toggle {
    display: none;
  }

  .site-tagline {
    display: block;
  }

  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }

  .site-nav a {
    padding: 0.25rem 0;
    font-size: 0.9375rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
  }

  .site-nav a:hover,
  .site-nav a:focus,
  .site-nav .current-menu-item > a,
  .site-nav .current_page_item > a {
    color: var(--mg-deep);
    border-bottom-color: var(--mg-gold);
  }

  .site-nav .mg-nav-cta {
    display: none; /* desktop uses the standalone header CTA */
  }

  .header-cta {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.9375rem;
    flex-shrink: 0;
  }
}

/* =========================================================
   7. HERO
   ========================================================= */
.mg-hero {
  padding-top: calc(var(--section-pad) * 0.75);
  padding-bottom: var(--section-pad);
}

.mg-hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.mg-hero__content .mg-lead {
  font-size: 1.1875rem;
  max-width: 34rem;
}

.mg-hero__note {
  font-size: var(--fs-small);
  color: var(--mg-sage);
  margin-top: 1rem;
}

.mg-hero__cta {
  margin-top: 2rem;
}

@media (min-width: 56.25em) {
  .mg-hero__grid {
    grid-template-columns: 7fr 5fr; /* asymmetric, editorial */
    gap: 4rem;
  }
}

/* Interior page hero (simpler) */
.mg-page-hero {
  padding-top: calc(var(--section-pad) * 0.65);
  padding-bottom: calc(var(--section-pad) * 0.65);
}

.mg-page-hero h1 {
  max-width: 22ch;
}

.mg-page-hero .mg-subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-quote);
  color: var(--mg-rose);
  margin-top: 0.25rem;
}

/* =========================================================
   8. IMAGE PLACEHOLDERS
   ========================================================= */
.mg-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #F4EAE0 0%, var(--mg-cream) 45%, #E3E7E0 100%);
  box-shadow: var(--shadow-card);
}

.mg-photo::after {
  /* subtle warm wash so empty placeholders never read cold */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(196, 145, 90, 0.12), transparent 60%);
  pointer-events: none;
}

.mg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mg-photo--landscape { aspect-ratio: 16 / 10; }
.mg-photo--wide      { aspect-ratio: 16 / 9; }
.mg-photo--portrait  { aspect-ratio: 4 / 5; }
.mg-photo--square    { aspect-ratio: 1 / 1; }

.mg-photo__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--mg-sage);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

/* Full-bleed quiet photography break between text-heavy sections */
.mg-photo-break {
  padding: 0;
}

.mg-photo-break .mg-photo {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 21 / 9;
}

/* =========================================================
   9. PULL QUOTE with "&" WATERMARK
   ========================================================= */
.mg-pullquote {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.5rem;
  overflow: hidden;
}

.mg-pullquote::before {
  content: '&';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(200px, 30vw, 300px);
  line-height: 1;
  color: var(--mg-gold);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.mg-pullquote blockquote {
  position: relative;
  margin: 0 auto;
  max-width: 38rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-quote);
  line-height: 1.5;
  color: var(--mg-deep);
}

.mg-pullquote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--mg-sage);
}

/* =========================================================
   10. CARDS & GRIDS
   ========================================================= */
.mg-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 40em) {
  .mg-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 56.25em) {
  .mg-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .mg-grid--2-wide { grid-template-columns: repeat(2, 1fr); }
}

.mg-card {
  background-color: var(--mg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.25rem 2rem;
}

.mg-card h3 {
  margin-bottom: 0.75rem;
}

.mg-card > p:last-child {
  margin-bottom: 0;
}

/* Thin-line icon circle */
.mg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--mg-gold);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  color: var(--mg-gold);
}

.mg-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Value pillar — quieter than a card: editorial, no box */
.mg-pillar {
  border-top: 2px solid var(--mg-gold);
  padding-top: 1.5rem;
}

.mg-pillar h3 {
  font-size: 1.5rem;
}

/* Service model cards (Guided / Managed) */
.mg-model-card {
  background-color: var(--mg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2.25rem;
  border-top: 4px solid var(--mg-gold);
}

.mg-model-card--managed {
  border-top-color: var(--mg-sage);
}

.mg-model-card .mg-model-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--mg-rose);
  margin-bottom: 0.25rem;
}

/* Service area card internals */
.mg-service-card h3 {
  font-size: 1.375rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--mg-deep);
}

.mg-service-card .mg-service-what {
  font-size: var(--fs-small);
  color: var(--mg-charcoal);
}

.mg-service-card .mg-service-why {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--mg-rose);
  border-left: 2px solid var(--mg-border);
  padding-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Commitments cards (About) */
.mg-commitment h3 {
  font-size: 1.375rem;
  color: var(--mg-gold);
  font-weight: 600;
}

/* =========================================================
   11. NUMBERED STEPS (homepage 3-step)
   ========================================================= */
.mg-steps {
  counter-reset: mg-step;
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 56.25em) {
  .mg-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.mg-step {
  counter-increment: mg-step;
  position: relative;
  padding-top: 4.25rem;
}

.mg-step::before {
  content: counter(mg-step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
  color: var(--mg-gold);
}

.mg-step h3 {
  font-size: 1.5rem;
}

/* =========================================================
   12. TIMELINE (How It Works — vertical)
   ========================================================= */
.mg-timeline {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  position: relative;
}

.mg-timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.4rem;
  width: 1px;
  background-color: var(--mg-border);
}

.mg-timeline__item {
  position: relative;
  padding: 0 0 3.5rem 4.5rem;
}

.mg-timeline__item:last-child {
  padding-bottom: 0;
}

.mg-timeline__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mg-cream);
  border: 1.5px solid var(--mg-gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--mg-gold);
}

.mg-timeline__item h3 {
  margin-bottom: 0.25rem;
}

.mg-timeline__kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--mg-rose);
  margin-bottom: 0.75rem;
}

.mg-timeline__item .mg-prose {
  max-width: 38rem;
}

@media (min-width: 56.25em) {
  .mg-timeline::before {
    left: 1.4rem;
  }
}

/* =========================================================
   13. TESTIMONIALS
   ========================================================= */
.mg-testimonials {
  position: relative;
  overflow: hidden;
}

.mg-testimonials::before {
  content: '&';
  position: absolute;
  top: 45%;
  right: -4rem;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(220px, 28vw, 300px);
  line-height: 1;
  color: var(--mg-gold);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.mg-testimonial {
  background-color: var(--mg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mg-testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--mg-deep);
  flex-grow: 1;
}

.mg-testimonial footer {
  font-size: var(--fs-small);
  color: var(--mg-charcoal);
}

.mg-testimonial .mg-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mg-sage);
  border: 1px solid var(--mg-border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-top: 0.5rem;
}

/* =========================================================
   14. FAQ ACCORDION (native <details>/<summary>)
   ========================================================= */
.mg-faq {
  max-width: var(--prose-width);
}

.mg-faq details {
  background-color: var(--mg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--radius-card);
  margin-bottom: 1rem;
  box-shadow: none;
  transition: box-shadow var(--transition);
}

.mg-faq details[open] {
  box-shadow: var(--shadow-card);
}

.mg-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--mg-deep);
  border-radius: var(--radius-card);
}

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

.mg-faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--mg-gold);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.mg-faq details[open] summary::after {
  transform: rotate(45deg);
}

.mg-faq .mg-faq__answer {
  padding: 0 1.5rem 1.5rem;
}

.mg-faq .mg-faq__answer p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   15. FORMS
   ========================================================= */
.mg-form {
  max-width: 34rem;
}

.mg-form__field {
  margin-bottom: 1.5rem;
}

.mg-form label {
  display: block;
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--mg-deep);
  margin-bottom: 0.5rem;
}

.mg-form input[type="text"],
.mg-form input[type="email"],
.mg-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--mg-charcoal);
  background-color: var(--mg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--radius-btn);
  padding: 0.875rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.mg-form input:focus,
.mg-form textarea:focus {
  border-color: var(--mg-gold);
  box-shadow: 0 0 0 3px rgba(196, 145, 90, 0.15);
  outline: none;
}

.mg-form textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Honeypot — hidden from humans, present for bots */
.mg-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form notices */
.mg-notice {
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.mg-notice--success {
  background-color: rgba(142, 157, 140, 0.14);
  border: 1px solid var(--mg-sage);
  color: var(--mg-charcoal);
}

.mg-notice--error {
  background-color: rgba(194, 122, 110, 0.1);
  border: 1px solid var(--mg-rose);
  color: var(--mg-charcoal);
}

.mg-form .mg-field-error {
  display: block;
  color: var(--mg-rose);
  font-size: var(--fs-small);
  margin-top: 0.4rem;
}

/* =========================================================
   16. CTA BAND
   ========================================================= */
.mg-cta-band {
  background-color: var(--mg-deep);
  color: var(--mg-cream);
  border-radius: var(--radius-card);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.75rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.mg-cta-band::before {
  content: '&';
  position: absolute;
  bottom: -3rem;
  right: -1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 220px;
  line-height: 1;
  color: var(--mg-gold);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.mg-cta-band h2 {
  color: var(--mg-cream);
}

.mg-cta-band p {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.mg-cta-band .mg-cta-sub {
  font-size: var(--fs-small);
  color: rgba(250, 244, 238, 0.75);
}

.mg-cta-band .mg-btn {
  margin-top: 1rem;
}

/* =========================================================
   17. FOOTER
   ========================================================= */
.site-footer {
  background-color: var(--mg-deep);
  color: rgba(250, 244, 238, 0.85);
  position: relative;
  overflow: hidden;
  margin-top: var(--section-pad);
}

.site-footer::before {
  content: '&';
  position: absolute;
  top: 50%;
  left: 4%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 260px;
  line-height: 1;
  color: var(--mg-gold);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.site-footer__inner {
  position: relative;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56.25em) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
  }
}

.site-footer h2 {
  font-size: 1.375rem;
  color: var(--mg-cream);
  margin-bottom: 1rem;
}

.site-footer p {
  font-size: var(--fs-small);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: rgba(250, 244, 238, 0.85);
  font-size: var(--fs-small);
  border-bottom: 1px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--mg-cream);
  border-bottom-color: var(--mg-gold);
}

.site-footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--mg-cream);
}

.site-footer__bottom {
  position: relative;
  border-top: 1px solid rgba(250, 244, 238, 0.15);
  padding-top: 1.75rem;
  padding-bottom: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(250, 244, 238, 0.6);
}

/* =========================================================
   18. GENERIC PAGE / BLOG FALLBACK
   ========================================================= */
.mg-article {
  padding-top: calc(var(--section-pad) * 0.65);
  padding-bottom: var(--section-pad);
}

.mg-article .entry-content {
  max-width: var(--prose-width);
}

.mg-article .entry-content h2 {
  margin-top: 2em;
}

.mg-article .entry-content h3 {
  margin-top: 1.5em;
}

.mg-article .entry-content ul,
.mg-article .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25em;
}

.mg-article .entry-content li {
  margin-bottom: 0.5em;
}

.mg-article .entry-content blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--mg-gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--mg-deep);
}

.mg-post-list article {
  border-bottom: 1px solid var(--mg-border);
  padding: 2.5rem 0;
  max-width: var(--prose-width);
}

.mg-post-list article:first-child {
  padding-top: 0;
}

.mg-post-list h2 {
  font-size: 1.75rem;
}

.mg-post-list h2 a:hover,
.mg-post-list h2 a:focus {
  color: var(--mg-gold);
}

.mg-post-meta {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mg-sage);
  margin-bottom: 0.5rem;
}

.mg-pagination {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  font-weight: 500;
}

.mg-pagination a {
  color: var(--mg-gold);
}

/* WordPress alignment classes (minimal support) */
.alignwide { max-width: var(--content-width); }
.alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* =========================================================
   19. ABOUT PAGE SPECIFICS
   ========================================================= */
.mg-founder-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 56.25em) {
  .mg-founder-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4.5rem;
  }
}

.mg-founder-story p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.8;
  padding-right: 0.12em;
  padding-top: 0.08em;
  color: var(--mg-gold);
}

.mg-name-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.55;
  color: var(--mg-deep);
  max-width: 34rem;
}

/* =========================================================
   20. CONTACT PAGE SPECIFICS
   ========================================================= */
.mg-contact-grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 56.25em) {
  .mg-contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
  }
}

.mg-contact-methods {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.mg-contact-methods li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mg-contact-methods .mg-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.mg-contact-methods .mg-icon svg {
  width: 20px;
  height: 20px;
}

.mg-response-note {
  background-color: rgba(142, 157, 140, 0.12);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  font-size: var(--fs-small);
  margin-top: 2rem;
}
