/* Consolidated theme stylesheet: base theme styles + parity refinements. */

/*
Theme Name: Matt Garman
Theme URI: https://www.mattgarman.com
Description: Standalone WordPress theme for Matt Garman, Leadership Speaker & Mentor. Dark teal, gold accents, Playfair Display + DM Sans.
Author: Matt Garman
Author URI: https://www.mattgarman.com
Version: 1.0.0
License: Private
Text Domain: matt-garman
*/

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DM-Sans-roman.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DM-Sans-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/Playfair-Display-roman.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/Playfair-Display-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
}

/* ------------------------------------------------------
   CSS VARIABLES - must match values used by tailwind.css
   ------------------------------------------------------ */
:root {
  /* Brand tokens */
  --brand-bg:          200 80% 16%;
  --brand-surface:     200 70% 19%;
  --brand-heading:     199 70% 22%;
  --brand-heading-soft:200 55% 32%;
  --brand-text:        0 0% 100%;
  --brand-text-muted:  200 15% 60%;
  --brand-accent:      42 78% 60%;
  --brand-accent-ink:  200 80% 10%;

  /* Tailwind CSS custom property format (channel values only, no hsl()) */
  --background:        var(--brand-bg);
  --foreground:        var(--brand-text);
  --card:              var(--brand-surface);
  --primary:           0 0% 100%;
  --muted-foreground:  var(--brand-text-muted);
  --border:            200 40% 25%;
  --nav-gold:          var(--brand-accent);
  --navy:              var(--brand-accent-ink);

  /* Full hsl() values for direct use */
  --shadow-gold:       0 4px 20px -4px hsl(var(--brand-accent) / .4);
}

/* ------------------------------------------------------
   GLOBAL SHARED - mobile menu, animation reset
   ------------------------------------------------------ */
[style*="opacity: 0"] { opacity: 1 !important; transform: none !important; }

/* --- Menu backdrop (tint behind panel) --- */
#menu-backdrop {
  display: none;
  position: fixed; inset: 0;
  z-index: 198;
  background: rgba(0, 0, 0, 0.55);
}
#menu-backdrop.open { display: block; }

/* --- Slide-in panel from right --- */
#mobile-menu {
  position: fixed; top: 0; right: 0; height: 100%;
  z-index: 199;
  width: 17rem;
  background: hsl(var(--background));
  border-left: 1px solid hsl(var(--border));
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
#mobile-menu.open { transform: translateX(0); }

/* Panel header row (close button) */
.menu-panel-header {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid hsl(var(--border) / .4);
}
#menu-close {
  background: none; border: none; cursor: pointer;
  color: hsl(var(--foreground)); opacity: 0.7;
  padding: 0.25rem; line-height: 0;
  transition: opacity 0.15s;
}
#menu-close:hover { opacity: 1; }

/* Nav links */
.menu-panel-nav {
  display: flex; flex-direction: column;
  flex: 1; overflow-y: auto;
  padding: 0.5rem 0;
}
.menu-panel-nav a {
  display: block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem; font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.menu-panel-nav a:hover,
.menu-panel-nav a.current {
  background: hsl(var(--border) / .2);
  color: hsl(var(--nav-gold));
}

/* CTA button at bottom */
.menu-panel-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid hsl(var(--border) / .4);
}
.menu-panel-cta {
  display: block; width: 100%; text-align: center;
  background: hsl(var(--nav-gold)); color: hsl(var(--navy));
  font-weight: 600;
  font-size: 1rem; letter-spacing: 0.025em; text-transform: uppercase;
  padding: 0 2rem; min-height: 3rem; border-radius: 6px;
  text-decoration: none; transition: filter 0.15s;
}
.menu-panel-cta:hover { filter: brightness(1.08); }

/* Details/summary accordion chevron (speaker, framework pages) */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] .chevron { transform: rotate(180deg); }
.chevron { transition: transform 0.3s; }

/* ------------------------------------------------------
   FAQ PAGE STYLES
   ------------------------------------------------------ */

/* Breadcrumb */
.faq-breadcrumb { font-size: 0.8125rem; color: hsl(200, 15%, 60%); padding-bottom: 1rem; }
.faq-breadcrumb a { color: hsl(200, 15%, 60%); text-decoration: none; }
.faq-breadcrumb a:hover { color: hsl(42, 78%, 60%); }
.faq-breadcrumb .sep { margin: 0 0.4rem; }

/* Category nav - white strip with border below hero */
.faq-nav-strip { background: #fff; border-top: 1px solid rgb(209, 219, 224); border-bottom: 1px solid rgb(209, 219, 224); }
.faq-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 0; }
.faq-nav a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgb(209, 219, 224);
  background-color: rgb(240, 243, 245);
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(200, 70%, 22%);
  text-decoration: none;
  transition: color .15s, background-color .15s, border-color .15s;
}
.faq-nav a:hover { background: rgb(224, 232, 237); color: hsl(var(--primary)); border-color: rgb(209, 219, 224); }

/* Section heading with number prefix */
.faq-section-heading { display: flex; align-items: baseline; gap: 0.65rem; margin-bottom: 1.25rem; }
.faq-num { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.faq-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }

/* Accordion - dark card style */
details { background: hsl(200, 78%, 14%); border-radius: 0.5rem; margin-bottom: 0.35rem; overflow: hidden; }
details summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.125rem;
  font-weight: 500; font-size: 1.125rem; line-height: 1.75rem;
  color: hsl(0, 0%, 92%); user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary .chevron { flex-shrink: 0; width: 1rem; height: 1rem; transition: transform 0.2s ease; color: hsl(0, 0%, 92%); }
details[open] summary { border-bottom: 1px solid hsl(200 55% 22% / .8); }
details[open] summary .chevron { transform: rotate(180deg); }
details .answer { padding: 0.9rem 1.125rem 1.1rem; color: #fff; line-height: 1.7; font-size: 1rem; }
details .answer p { margin-bottom: 0.65rem; }
details .answer p:last-child { margin-bottom: 0; }
details .answer ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 0.65rem; }
details .answer ul li { margin-bottom: 0.3rem; }
details .answer strong { color: hsl(0, 0%, 90%); }
details .answer a { color: hsl(42, 78%, 60%); text-decoration: underline; }

/* Hero - diamonds at low opacity via pseudo-element */
.faq-hero { position: relative; }
.faq-hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 16rem; height: 100%;
  background-image: url('../images/diamonds-light-blue.png');
  background-repeat: no-repeat; background-position: top right; background-size: 16rem auto;
  opacity: 0.1; pointer-events: none;
}
.faq-hero-inner { max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }
.faq-section-inner { max-width: 48rem; margin: 0 auto; padding: 3rem 1.25rem; }

/* ------------------------------------------------------
   CONTACT PAGE STYLES
   ------------------------------------------------------ */
.contact-direct { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; border-radius: 0.75rem;
  border: 1px solid hsl(42 78% 52% / .25);
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.contact-link:hover { border-color: hsl(42 78% 52% / .6); background: hsl(42 78% 52% / .05); }
.contact-link-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: hsl(42 78% 52% / .12);
}
.contact-link-icon svg { width: 1.1rem; height: 1.1rem; color: hsl(42 78% 52%); }
.contact-link-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); margin-bottom: 0.125rem; }
.contact-link-value { font-size: 0.9375rem; font-weight: 500; }

.form-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .3); border-radius: 1rem; padding: 2rem; }
@media (min-width: 640px) { .form-card { padding: 2.5rem; } }
.form-section-title { font-family: 'Playfair Display', serif; font-size: 1.125rem; font-weight: 600; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid hsl(var(--border) / .3); }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.form-field label { display: block; font-family: 'DM Sans', sans-serif; font-size: 0.875rem; color: hsl(var(--foreground)); margin-bottom: 0; }
.form-input {
  width: 100%; background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .4);
  border-radius: 0.375rem; padding: 0.75rem 1rem; color: hsl(var(--foreground));
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; box-sizing: border-box;
}
.form-input::placeholder { color: hsl(var(--muted-foreground)); }
.form-input:focus { border-color: hsl(42 78% 52%); box-shadow: 0 0 0 2px hsl(42 78% 52% / .2); }
textarea.form-input { min-height: 100px; resize: vertical; }
select.form-input {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.5rem;
}
.form-submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; letter-spacing: 0.025em;
  text-transform: uppercase; font-size: 1rem; height: 3rem; padding: 0 2rem;
  border-radius: 6px; background: hsl(var(--nav-gold)); color: hsl(var(--navy));
  border: none; cursor: pointer; transition: filter 0.2s; width: 100%;
}
@media (min-width: 768px) { .form-submit-btn { width: auto; } }
.form-submit-btn:hover { filter: brightness(1.1); }
.form-divider { height: 1px; background: hsl(var(--border) / .2); margin: 1.75rem 0; }


/* Consolidated overrides */

/* Theme overrides to bring the WP theme closer to the Lovable source site. */

:root {
  --surface-light: 195 38% 95%;
  --surface-tint: 198 58% 20%;
  --shadow-gold: 0 22px 50px -24px hsl(42 83% 62% / 0.65);
  --shadow-deep: 0 32px 70px -38px hsl(200 72% 6% / 0.9);
  --mg-color-bg: hsl(var(--background));
  --mg-color-surface: hsl(var(--card));
  --mg-color-heading: hsl(var(--primary));
  --mg-color-heading-soft: hsl(var(--brand-heading-soft, 200 55% 32%));
  --mg-color-text: hsl(var(--foreground));
  --mg-color-muted: hsl(var(--muted-foreground));
  --mg-color-accent: hsl(var(--nav-gold));
  --mg-color-accent-ink: hsl(var(--navy));
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mg-color-bg);
}

.section-light {
  background:
    linear-gradient(180deg, hsl(var(--surface-light)) 0%, hsl(0 0% 100%) 100%);
  /* Re-resolve tokens for light backgrounds — dark navy/teal replaces white */
  --foreground:            199 70% 22%;
  --primary:               199 70% 22%;
  --muted-foreground:      200 25% 35%;
  --mg-color-heading:      hsl(199 70% 22%);
  --mg-color-heading-soft: hsl(200 55% 32%);
  --mg-color-muted:        hsl(200 25% 35%);
  --mg-color-text:         hsl(199 70% 22%);
  color: var(--mg-color-heading);
}

.section-light .text-primary,
.section-light .hover\:text-primary:hover {
  color: var(--mg-color-heading);
}

.bg-background .text-primary,
.bg-background .hover\:text-primary:hover {
  color: var(--mg-color-accent);
}

.mg-text-heading {
  color: var(--mg-color-heading);
}

.mg-text-heading-soft {
  color: var(--mg-color-heading-soft);
}

.mg-text-accent {
  color: var(--mg-color-accent);
}

.mg-text-on-dark {
  color: var(--mg-color-text);
}

.mg-text-muted {
  color: var(--mg-color-muted);
}

.mg-surface-dark {
  background: var(--mg-color-bg);
}

.mg-surface-light {
  background: linear-gradient(180deg, hsl(var(--surface-light)) 0%, hsl(0 0% 100%) 100%);
}

.mg-eyebrow {
  color: var(--mg-color-accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mg-trusted-label {
  color: var(--mg-color-heading);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mg-link-accent {
  color: var(--mg-color-accent);
}

.mg-link-accent:hover {
  filter: brightness(1.05);
}

.mg-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: hsl(var(--nav-gold) / 0.12);
  color: var(--mg-color-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.mg-icon-accent,
.mg-icon-positive,
.mg-icon-negative,
.mg-icon-muted {
  flex-shrink: 0;
}

.mg-icon-accent {
  color: var(--mg-color-accent);
}

.mg-icon-positive {
  color: #34d399;
}

.mg-icon-negative {
  color: #f87171;
}

.mg-icon-muted {
  color: var(--mg-color-muted);
  opacity: 0.5;
}

.section-container {
  position: relative;
  z-index: 1;
}


.gold-line {
  width: 4.5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--nav-gold)) 0%, hsl(39 88% 75%) 100%);
}

.mg-divider-line {
  width: 4.5rem;
  height: 2px;
  border-radius: 999px;
  background: hsl(0 0% 92%);
}

.speaker-accordion-shell {
  max-width: 64rem;
}

.speaker-accordion-summary {
  padding: 1.95rem 2rem;
}

@media (min-width: 768px) {
  .speaker-accordion-summary {
    padding: 2.15rem 2.35rem;
  }
}

.gold-dot {
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, hsl(var(--nav-gold)) 0%, hsl(39 88% 75%) 100%);
  box-shadow: 0 0 0 6px hsl(42 83% 62% / 0.12);
}

.white-dot {
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: hsl(var(--foreground));
  opacity: 0.9;
}

.mg-btn-primary,
.mg-btn-secondary,
.menu-panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.mg-btn-primary:hover,
.mg-btn-secondary:hover,
.menu-panel-cta:hover {
  filter: brightness(1.08);
}

.mg-btn-primary,
.menu-panel-cta {
  color: var(--mg-color-accent-ink);
  background: hsl(42 83% 62%);
}

.mg-btn-secondary {
  color: hsl(42 83% 62%);
  border: 1px solid hsl(42 83% 62% / 0.55);
  background: transparent;
}

.mg-btn-secondary:hover {
  border-color: hsl(42 83% 62%);
  background: hsl(42 83% 62%);
  color: var(--mg-color-accent-ink);
}

.mg-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0 2.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mg-home-cta-primary {
  background: var(--mg-color-accent);
  color: var(--mg-color-accent-ink);
  box-shadow: var(--shadow-gold);
}

.mg-home-cta-primary:hover {
  filter: brightness(1.08);
}

.mg-home-cta-secondary {
  border: 2px solid var(--mg-color-accent);
  color: var(--mg-color-accent);
  background: transparent;
}

.mg-home-cta-secondary:hover {
  background: var(--mg-color-accent);
  color: var(--mg-color-accent-ink);
}

.mg-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.25rem;
  border-radius: 0.38rem;
  border: 2px solid var(--mg-color-accent);
  color: var(--mg-color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.mg-card-cta:hover {
  background: var(--mg-color-accent);
  color: var(--mg-color-accent-ink);
}

.hero-overlay {
  background:
    linear-gradient(180deg, hsl(200 45% 13% / 0.12) 0%, hsl(200 42% 11% / 0.42) 100%),
    linear-gradient(120deg, hsl(198 42% 24% / 0.28) 0%, transparent 42%, hsl(42 83% 62% / 0.07) 100%);
}

.hero-title {
  color: var(--mg-color-text);
  text-shadow: 0 12px 28px hsl(200 70% 6% / 0.22);
}

.hero-title-accent {
  color: var(--mg-color-text);
}

.hero-intro {
  color: hsl(var(--foreground) / 0.96);
}

.hero-kicker {
  color: hsl(var(--foreground) / 0.72);
}

.hero-diamonds {
  display: none;
}

#menu-backdrop {
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, hsl(200 70% 6% / 0.42), hsl(200 70% 6% / 0.76));
}

#mobile-menu {
  width: min(17rem, 100vw);
  background: var(--mg-color-bg);
  border-left: 1px solid hsl(var(--border) / 0.65);
  box-shadow: none; /* applied only when open — prevents bleed onto closed viewport */
  transition: transform 0.35s cubic-bezier(.22, 1, .36, 1);
}

#mobile-menu.open {
  box-shadow: -28px 0 64px hsl(200 70% 4% / 0.35);
}

.menu-panel-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 0;
}

#menu-toggle:hover {
  background: transparent;
  color: hsl(42 83% 68%);
}

#menu-close {
  color: var(--mg-color-text);
  opacity: 0.84;
  width: auto;
  height: auto;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
  transition: opacity 0.15s, background-color 0.15s, border-color 0.15s;
}

#menu-close:hover {
  opacity: 1;
  background: transparent;
  border-color: transparent;
}

.menu-panel-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem 1.5rem;
  overflow-y: auto;
}

.menu-panel-nav a {
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.menu-panel-nav a:hover,
.menu-panel-nav a.current {
  background: hsl(var(--border) / 0.2);
  color: var(--mg-color-accent);
}

.menu-panel-footer {
  display: none;
}

.menu-panel-nav a.menu-panel-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0 2rem;
  min-height: 3rem;
  border-radius: 6px;
  text-align: center;
  background: hsl(42 83% 62%);
  color: hsl(var(--navy));
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.menu-panel-nav a.menu-panel-cta:hover {
  background: hsl(42 83% 62%);
  color: hsl(var(--navy));
  filter: brightness(1.08);
}

.mg-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mg-band {
  padding: 1.2rem 1rem;
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border) / 0.45);
  background: linear-gradient(180deg, hsl(198 56% 17% / 0.9), hsl(198 56% 13% / 0.9));
  text-align: center;
}

.mg-band-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--nav-gold));
  margin-bottom: 0.45rem;
}

.mg-band-copy {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.mg-video-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  background:
    radial-gradient(circle at top, hsl(42 83% 62% / 0.14), transparent 18rem),
    linear-gradient(180deg, hsl(200 76% 5% / 0.52), hsl(200 76% 5% / 0.84));
}

.mg-video-modal.open {
  display: flex;
}

.mg-video-dialog {
  position: relative;
  width: min(100%, 70rem);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.45);
  background: linear-gradient(180deg, hsl(198 59% 16%), hsl(200 72% 10%));
  box-shadow: var(--shadow-deep);
}

.mg-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.mg-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mg-video-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(200 80% 8% / 0.7);
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mg-video-close:hover {
  background: hsl(200 42% 20% / 0.72);
  border-color: hsl(var(--border) / 0.72);
  transform: scale(1.03);
}

.mg-trusted-logo {
  filter: saturate(0) brightness(0.7) contrast(1.05);
  opacity: 0.72;
}

.mg-trusted-logo:hover {
  filter: saturate(0) brightness(0.48) contrast(1.18);
  opacity: 1;
}

.contact-shell {
  position: relative;
}

.contact-shell::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, hsl(198 25% 80% / 0.08), transparent 72%);
  pointer-events: none;
}

.contact-form-intro {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.75;
}

.contact-page-hero .section-container {
  max-width: 70rem;
}

.contact-hero-copy {
  max-width: 42rem;
  margin: 0 auto;
  text-align: left;
}

.contact-hero-kicker {
  color: var(--mg-color-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero-body {
  color: var(--mg-color-heading);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 34rem;
}

.contact-hero-email {
  margin-top: 1.5rem;
}

.contact-email-link {
  color: var(--mg-color-heading);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 2.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.contact-hero-link {
  margin: 0;
}

.contact-linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--mg-color-heading);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.contact-linkedin-link:hover,
.contact-email-link:hover {
  color: var(--mg-color-heading-soft);
}

.contact-linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.12rem;
  background: var(--mg-color-heading);
  color: #fff;
  flex-shrink: 0;
}

.contact-linkedin-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

.contact-form-shell {
  max-width: 42rem;
  margin: 0 auto;
}

.wpcf7 {
  color: hsl(var(--foreground));
}

.wpcf7 p {
  margin: 0 0 1.1rem;
}

.wpcf7 label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  border: 1px solid hsl(196 28% 33%);
  border-radius: 1rem;
  background: hsl(199 56% 13%);
  color: hsl(var(--foreground));
  padding: 0.95rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.wpcf7 textarea {
  min-height: 10rem;
  resize: vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: hsl(200 16% 58%);
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: hsl(var(--nav-gold));
  box-shadow: 0 0 0 4px hsl(42 83% 62% / 0.12);
  background: hsl(199 56% 15%);
}

.wpcf7 .cf7-two-col {
  display: flex;
  gap: 1.25rem;
}

.wpcf7 .cf7-two-col p {
  display: contents;
}

.wpcf7 .cf7-two-col label {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 640px) {
  .wpcf7 .cf7-two-col {
    flex-direction: column;
  }
}

.wpcf7 hr.gold-line {
  border: none;
  border-top: 1px solid hsl(var(--nav-gold) / 0.35);
  margin: 1.5rem 0;
}

.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 2rem;
  border: 0;
  border-radius: 6px;
  background: hsl(42 83% 62%);
  color: hsl(var(--navy));
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.wpcf7-submit:hover {
  filter: brightness(1.08);
}

.wpcf7-spinner {
  vertical-align: middle;
}

.wpcf7-not-valid-tip,
.wpcf7-response-output {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
}

.contact-page .wpcf7 {
  max-width: 100%;
}

.contact-page .wpcf7 p {
  margin: 0 0 0.95rem;
}

.contact-page .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact-page .wpcf7 select,
.contact-page .wpcf7 textarea {
  border-radius: 0.35rem;
  border-color: hsl(198 35% 28%);
  background: hsl(199 56% 19%);
  font-size: 0.9rem;
}

.contact-page .wpcf7 textarea {
  min-height: 7.5rem;
}

.contact-page .wpcf7-submit {
  width: 100%;
}

@media (max-width: 767px) {
  .contact-hero-copy,
  .contact-form-shell {
    max-width: 100%;
  }

  .contact-email-link {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .mg-band-grid {
    grid-template-columns: 1fr;
  }

  .hero-diamonds {
    display: none;
  }

  .mg-video-modal {
    padding: 1rem;
  }
}

/* ============================================================
   Compass diagram — draw-in animation (page-framework.php)
   ============================================================ */
.compass-wrap {
  opacity: 0;
  transform: scale(0.8) rotate(-30deg);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.compass-wrap.compass-is-visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.compass-needle {
  opacity: 0;
  transition: opacity 0.4s ease-out 0.6s;
}
.compass-wrap.compass-is-visible .compass-needle {
  opacity: 1;
}
.compass-label {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.compass-wrap.compass-is-visible .compass-label {
  opacity: 1;
}

/* ── YouTube facade (thumbnail + play button, iframe injected on click) ── */
.yt-facade {
  cursor: pointer;
}
.yt-facade img {
  transition: transform 0.3s ease;
}
.yt-facade:hover img {
  transform: scale(1.03);
}
.yt-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.yt-play-btn svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.yt-facade:hover .yt-play-btn svg {
  transform: scale(1.1);
  opacity: 0.95;
}
.yt-facade.yt-active {
  cursor: default;
}

/* Privacy Policy page */
.prose-privacy h2 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose-privacy p,
.prose-privacy li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--brand-text);
  margin-bottom: 0.75rem;
}
.prose-privacy ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-privacy a {
  color: var(--brand-accent);
  text-decoration: underline;
}
.prose-privacy a:hover {
  opacity: 0.8;
}

/* Override hCaptcha lazy-load overlay — swap white wash for dark tint */
div[style*="position: fixed"][style*="background-color: rgb(255, 255, 255)"][style*="cursor: pointer"][style*="z-index: 0"] {
  background-color: rgb(0, 0, 0) !important;
  opacity: 0.55 !important;
}
