/* ==========================================================================
   IP Goldmine — stylesheet
   Hand-coded reproduction of the live youripgoldmine.com design system.
   Mobile-first. Breakpoints at 768px (tablet) and 1024px (desktop).
   ========================================================================== */

/* --- Design tokens (extracted from live build) ---------------------------- */
:root {
  /* Color */
  --navy:        #091C35;
  --navy-deep:   #061223;
  --navy-deeper: #040C16;
  --navy-light:  #1C2B4A;
  --cream:       #E6DCCB;
  --cream-light: #F0EAE0;
  --sand:        #F5F0E8;
  --white:       #FFFFFF;
  --gold:        #CBA462;
  --gold-light:  #DDC188;
  --border:      #D4C7B2;
  --emerald:     #17A06A;
  --text:        #091C35;
  --muted:       #5A5042;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radii */
  --radius:    4px;
  --radius-sm: 2px;
  --radius-lg: 10px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --header-h: 92px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
}

strong { font-weight: 600; }

/* --- Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background-color: var(--gold);
}
.hero--image .eyebrow { color: rgba(230, 220, 203, 0.7); }
.hero--image .eyebrow::before { background-color: var(--gold); }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-block: 1.5rem;
  background-color: transparent;
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background-color: rgba(9, 28, 53, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-block: 0.875rem;
  box-shadow: 0 1px 0 rgba(213, 203, 185, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: auto; }

.nav-links { display: none; }

.site-nav .nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  margin-right: -8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .nav-links a {
    color: rgba(230, 220, 203, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: color 0.2s ease;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    color: var(--cream);
    text-decoration: none;
  }
  .is-scrolled .nav-links a { color: rgba(230, 220, 203, 0.7); }
  .is-scrolled .nav-links a:hover,
  .is-scrolled .nav-links a[aria-current="page"] { color: var(--cream); }
  .has-light-header:not(.is-scrolled) .nav-links a { color: rgba(9, 28, 53, 0.6); }
  .has-light-header:not(.is-scrolled) .nav-links a:hover,
  .has-light-header:not(.is-scrolled) .nav-links a[aria-current="page"] { color: var(--navy); }
  .site-nav .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Light-top pages (legal): header reads dark until scrolled */
.has-light-header:not(.is-scrolled) .nav-toggle span { background-color: var(--navy); }

/* --- Mobile nav drawer ---------------------------------------------------- */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}
.nav-drawer.is-open { visibility: visible; pointer-events: auto; }

.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(9, 28, 53, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-drawer.is-open .nav-drawer-overlay { opacity: 1; }

.nav-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 22rem;
  background-color: var(--navy);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(213, 203, 185, 0.15);
}
.nav-drawer-close {
  width: 40px; height: 40px;
  background: none; border: none;
  color: var(--cream);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.nav-drawer nav { flex: 1; overflow-y: auto; padding: 1.5rem 0; }
.nav-drawer nav a {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--cream);
  font-size: 1.0625rem;
  font-weight: 500;
}
.nav-drawer nav a:hover { background-color: rgba(255,255,255,0.05); text-decoration: none; }
.nav-drawer-foot { padding: 1.5rem; border-top: 1px solid rgba(213, 203, 185, 0.15); }

@media (min-width: 1024px) {
  .nav-drawer { display: none; }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn::after { content: "\2192"; font-size: 1em; }
.btn--noarrow::after { content: none; }

.btn-primary { background-color: var(--cream); color: var(--navy); }
.btn-primary:hover { background-color: var(--gold-light); }

.btn-secondary {
  background-color: rgba(9, 28, 53, 0.8);
  color: var(--gold);
  border-color: rgba(203, 164, 98, 0.4);
}
.btn-secondary:hover { border-color: var(--gold); background-color: rgba(9, 28, 53, 0.95); }

.btn-gold { background-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background-color: var(--gold-light); }

.btn-outline-navy {
  background-color: transparent;
  color: var(--navy);
  border-color: rgba(9, 28, 53, 0.25);
}
.btn-outline-navy:hover { border-color: var(--navy); }

/* Outline button on navy backgrounds: transparent, 2px cream border. */
.btn-outline-cream {
  background-color: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}
.btn-outline-cream:hover { background-color: rgba(230, 220, 203, 0.1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--space-md); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + var(--space-lg));
  padding-bottom: var(--space-lg);
  background-color: var(--sand);
}

.hero--image {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  background-color: var(--navy);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(9, 28, 53, 0.96) 0%,
    rgba(9, 28, 53, 0.82) 38%,
    rgba(9, 28, 53, 0.35) 72%,
    rgba(9, 28, 53, 0.10) 100%
  );
}
.hero--image > .container {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  padding-bottom: var(--space-md);
}

/* Per-page hero background images */
.hero--home {
  background-image: url("/images/hero-silk-flow-DlVMjZkK.jpg");
  background-image: -webkit-image-set(
    url("/images/hero-silk-flow-DlVMjZkK.webp") type("image/webp"),
    url("/images/hero-silk-flow-DlVMjZkK.jpg") type("image/jpeg")
  );
  background-image: image-set(
    url("/images/hero-silk-flow-DlVMjZkK.webp") type("image/webp"),
    url("/images/hero-silk-flow-DlVMjZkK.jpg") type("image/jpeg")
  );
}
.hero--image .lede,
.hero--image > .container > p { color: var(--cream); }
.hero--image a:not(.btn) { color: var(--gold); }

/* Slow-drifting gold glow — gives the dark hero a living, lit-from-within feel.
   Sits above the dark gradient (::before) but below the text (.container z-index:1). */
.hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(46% 56% at 72% 30%, rgba(203, 164, 98, 0.22), transparent 70%);
  animation: heroGlow 16s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1);    opacity: 0.65; }
  100% { transform: translate3d(4%, 3%, 0)   scale(1.18); opacity: 1; }
}

.hero--compact { min-height: auto; padding-block: var(--space-xl); }

/* Navy split hero used on interior pages (copy + portrait) */
.hero--split {
  background-color: var(--navy);
  color: var(--cream);
  padding-top: calc(var(--header-h) + var(--space-md));
  padding-bottom: var(--space-lg);
}
.hero--split h1 { color: var(--cream); }
.hero--split .lede,
.hero--split .hero-copy p { color: rgba(230, 220, 203, 0.82); }
.hero--split .hero-copy p { max-width: 52ch; margin-bottom: var(--space-sm); }
.hero--split a:not(.btn) { color: var(--gold); }
.hero--split .hero-copy h1 { margin-bottom: var(--space-md); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-copy .btn-row { margin-top: var(--space-sm); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); }

/* Interior hero headings are smaller than the home hero */
.hero.hero--split h1,
.hero.hero--lede h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
}

/* Navy compact hero for text-only interior pages (no portrait) */
.hero--lede {
  background-color: var(--navy);
  color: var(--cream);
  padding-top: calc(var(--header-h) + var(--space-lg));
  padding-bottom: var(--space-lg);
}
.hero--lede h1 { color: var(--cream); margin-bottom: var(--space-md); }
.hero--lede .lede { color: rgba(230, 220, 203, 0.82); }
.hero--lede a:not(.btn) { color: var(--gold); }

.hero--center { text-align: center; }
.hero--center .lede,
.hero--center > .container > p { margin-inline: auto; }
.hero--center .btn-row { justify-content: center; }

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.hero--image h1 { color: var(--cream); }
.hero--image h1 .accent { color: var(--gold); display: block; }

.lede {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  line-height: 1.5;
  max-width: 42ch;
  margin-bottom: var(--space-md);
  color: var(--muted);
}
.hero--image .lede { color: rgba(230, 220, 203, 0.85); max-width: 38ch; }

/* --- Hero split: copy + portrait ------------------------------------------ */
.hero-split { display: grid; gap: var(--space-md); align-items: center; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); }

/* --- Video / "watch the overview" card ------------------------------------ */
.video-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: var(--space-md);
  padding: 1.25rem 1.75rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(230, 220, 203, 0.2);
  border-radius: var(--radius);
  color: var(--cream);
  backdrop-filter: blur(4px);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.video-card:hover { background-color: rgba(255,255,255,0.14); text-decoration: none; }
.video-card .play {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1rem;
}
.video-card .vc-eyebrow {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(230, 220, 203, 0.6);
}
.video-card .vc-title { display: block; color: var(--gold); font-weight: 500; }

/* --- Sections ------------------------------------------------------------- */
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.section--navy { background-color: var(--navy); color: var(--cream); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--cream); }

/* Decorative silk/warm textures washed over navy sections (matches live site) */
.tex-silk {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(9, 28, 53, 0.94), rgba(9, 28, 53, 0.94)),
    image-set(
      url("/images/texture-silk-gold-C7M8byRC.webp") type("image/webp"),
      url("/images/texture-silk-gold-C7M8byRC.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tex-warm {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(9, 28, 53, 0.955), rgba(9, 28, 53, 0.955)),
    image-set(
      url("/images/texture-abstract-warm-DiDyDWRH.webp") type("image/webp"),
      url("/images/texture-abstract-warm-DiDyDWRH.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section--sand { background-color: var(--sand); }
.section--cream { background-color: var(--cream-light); }
.section--white { background-color: var(--white); }
.section--paper { background-color: #F8F6F1; }

/* Faint warm texture washed over the light "paper" section so the image
   barely shows through (matches live site's 0.04-opacity overlay) */
.tex-paper {
  background-color: #F8F6F1;
  background-image:
    linear-gradient(rgba(248, 246, 241, 0.96), rgba(248, 246, 241, 0.96)),
    image-set(
      url("/images/texture-abstract-warm-DiDyDWRH.webp") type("image/webp"),
      url("/images/texture-abstract-warm-DiDyDWRH.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* legacy alias retained for existing markup */
.content-section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section h2, .content-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}
.section h3, .content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}
.section p, .content-section p {
  margin-bottom: var(--space-sm);
  max-width: 68ch;
}
.section--navy p, .section--navy .lede { color: rgba(230, 220, 203, 0.85); }

.section-head { max-width: 60ch; margin-bottom: var(--space-lg); }
.section-head.center { margin-inline: auto; text-align: center; }

.prose-list {
  list-style: none;
  margin-bottom: var(--space-md);
  max-width: 68ch;
}
.prose-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-xs);
}
.prose-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
}

/* --- Cards ---------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.card {
  padding: var(--space-md);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h3 { margin-top: 0; }
.section--navy .card {
  background-color: rgba(255,255,255,0.04);
  border-color: rgba(230,220,203,0.15);
}

/* --- Resources hub: overview video + icon cards --------------------------- */
.video-embed {
  max-width: 640px;
  margin: var(--space-md) auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(230, 220, 203, 0.2);
  background-color: rgba(255, 255, 255, 0.04);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.res-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.res-card {
  padding: var(--space-md);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 220, 203, 0.15);
  border-radius: var(--radius);
  text-align: left;
}
.res-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 10px;
  background-color: rgba(203, 164, 98, 0.12);
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.res-icon svg { width: 24px; height: 24px; }
.res-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 var(--space-xs);
  color: var(--cream);
}
.res-card > p { color: rgba(230, 220, 203, 0.7); max-width: none; }
.res-links { list-style: none; margin: var(--space-sm) 0; }
.res-links li { position: relative; padding-left: 1.25rem; margin-bottom: var(--space-xs); }
.res-links li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
}
.res-links a { color: var(--cream); }
.res-links a:hover { color: var(--gold); }
.res-browse { color: var(--gold); font-weight: 500; }

/* --- Stats / impact ------------------------------------------------------- */
.stats {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  text-align: center;
}
.stats dd {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4rem);
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
}
.stats dt {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}
.section--navy .stats dt { color: rgba(230,220,203,0.7); }

/* --- Testimonial ---------------------------------------------------------- */
blockquote {
  max-width: 60ch;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  color: var(--navy);
}
.section--navy blockquote { color: var(--cream); }
blockquote p::before { content: "\201C"; }
blockquote p::after { content: "\201D"; }
blockquote cite {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}

/* --- Split section: copy + media ------------------------------------------ */
.split { display: grid; gap: var(--space-md); align-items: center; }
.split--top { align-items: start; }
.split--top > * { margin: 0; }
.split-media { margin: 0; }
.split-media img { width: 100%; border-radius: var(--radius-lg); }

.section-figure { margin-block: var(--space-md); max-width: 440px; }
.section-figure--wide { max-width: 640px; }
.section-figure img { width: 100%; border-radius: var(--radius-lg); }

/* --- Case-study client headshot ------------------------------------------- */
.client-photo { margin: 0 0 var(--space-sm); width: 120px; height: 120px; }
.client-photo img {
  width: 120px; height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

/* --- FAQ accordion -------------------------------------------------------- */
.faq { max-width: 760px; margin-top: var(--space-lg); }
.faq-item { border-bottom: 1px solid var(--border); }
.section--navy .faq-item { border-color: rgba(230,220,203,0.15); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.faq-q .faq-icon { flex: none; font-size: 1.5rem; line-height: 1; color: var(--gold); transition: transform 0.3s ease; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 1.25rem; margin: 0; max-width: 68ch; }

/* --- Forms ---------------------------------------------------------------- */
.contact-form { max-width: 40rem; margin-top: var(--space-md); }
.contact-form .field { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.contact-form label { font-weight: 600; }
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }

/* Contact page: two-column layout (info left, form right) */
.contact-grid { display: grid; gap: var(--space-lg); align-items: start; }
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}
.contact-info p { max-width: 46ch; }
.contact-info h2:first-child { margin-top: 0; }
.contact-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}
.contact-call-btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); }
.contact-org { margin-top: 0; }
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  max-width: none;
  margin-bottom: var(--space-sm);
}
.contact-line svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; color: var(--gold); }
.field-optional { font-weight: 400; color: var(--muted); }
.contact-form-col .contact-form { max-width: none; margin-top: 0; }
.contact-form-col .form-status { max-width: none; }
.contact-reach { text-align: center; }
.contact-reach .container { max-width: 64ch; }
.contact-reach p { margin-inline: auto; }

.form-status {
  max-width: 40rem;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background-color: var(--sand);
}
.form-status strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.form-status span { color: var(--text); }

/* --- Legal pages ---------------------------------------------------------- */
.legal .container { max-width: 50rem; }
.legal h1 { margin-bottom: var(--space-xs); }
.legal .legal-updated { color: var(--muted); margin-bottom: var(--space-lg); }
.legal .legal-lead { font-size: 1.125rem; font-weight: 500; margin-bottom: var(--space-md); }
.legal p, .legal .prose-list { max-width: none; }
.legal h3 { margin-top: var(--space-md); }
.legal-table { border-collapse: collapse; width: 100%; max-width: 65ch; margin-bottom: var(--space-sm); font-size: 0.9375rem; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 0.625rem 0.75rem; text-align: left; vertical-align: top; }
.legal-table th { background-color: var(--sand); font-family: var(--font-sans); font-weight: 600; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-deeper) 100%);
  color: rgba(230, 220, 203, 0.75);
  padding-block: var(--space-lg) var(--space-md);
}
.site-footer .footer-grid {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.footer-brand .brand-logo { height: 36px; margin-bottom: var(--space-sm); }
.footer-brand p { max-width: 32ch; font-size: 0.9375rem; line-height: 1.6; }
.footer-contact { margin-top: var(--space-sm); font-size: 0.9375rem; font-style: normal; line-height: 1.7; }
.footer-contact a { color: var(--gold); }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 220, 203, 0.5);
  margin-bottom: var(--space-sm);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { color: rgba(230, 220, 203, 0.8); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(230, 220, 203, 0.12);
  font-size: 0.8125rem;
  color: rgba(230, 220, 203, 0.55);
}
.footer-bottom .footer-legal { display: flex; gap: var(--space-md); }
.footer-bottom a { color: rgba(230, 220, 203, 0.7); }
.social-links { display: flex; gap: var(--space-sm); }

/* --- Modal (video) -------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: var(--space-md);
  background-color: rgba(4, 12, 22, 0.85);
  backdrop-filter: blur(6px);
}
.modal.is-open { display: grid; }
.modal-inner { width: min(960px, 100%); aspect-ratio: 16 / 9; position: relative; }
.modal-inner iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.modal-close {
  position: absolute;
  top: -2.75rem; right: 0;
  width: 40px; height: 40px;
  background: none; border: none;
  color: var(--cream);
  font-size: 1.75rem;
  cursor: pointer;
}

/* --- Resource listing pages ----------------------------------------------- */
.resource-page { background-color: var(--navy); color: var(--cream); }
.resource-hero {
  padding-top: calc(var(--header-h) + var(--space-lg));
  padding-bottom: var(--space-md);
}
.resource-hero h1 {
  color: var(--cream);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: var(--space-sm);
}
.resource-hero .lede { color: rgba(230,220,203,0.8); max-width: 62ch; }
.resource-cards { padding-bottom: var(--space-xl); }

.resource-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 820px;
  margin-inline: auto;
}
.resource-card {
  display: block;
  padding: var(--space-md);
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(230,220,203,0.15);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.resource-card:hover,
.resource-card:focus-visible {
  text-decoration: none;
  border-color: rgba(203,164,98,0.5);
  background-color: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}
.resource-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-sm);
}
.resource-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  background-color: rgba(203,164,98,0.12);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}
.resource-readtime { color: rgba(230,220,203,0.5); font-size: 0.8125rem; }
.resource-card h2 {
  color: var(--cream);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-xs);
}
.resource-card p { color: rgba(230,220,203,0.7); margin: 0; max-width: none; }
.resource-card .resource-ext { color: rgba(230,220,203,0.4); font-size: 0.8125rem; margin-top: var(--space-sm); }

/* --- Article detail ------------------------------------------------------- */
.article {
  background-color: var(--navy);
  color: var(--cream);
  padding-top: calc(var(--header-h) + var(--space-lg));
  padding-bottom: var(--space-xl);
}
.article-inner {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(230,220,203,0.6);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}
.article-back::before { content: "\2190"; }
.article-back:hover { color: var(--cream); text-decoration: none; }
.article-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.article h1 {
  color: var(--cream);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: var(--space-sm);
}
.article-meta {
  color: rgba(230,220,203,0.55);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}
.article-body > p { color: rgba(230,220,203,0.82); margin-bottom: var(--space-sm); max-width: none; }
.article-body h2 {
  color: var(--cream);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.article-body h3 {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}
.article-body strong { color: var(--cream); font-weight: 600; }
.article-body .lead-in { color: var(--gold); font-weight: 600; }
.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  color: rgba(230,220,203,0.82);
}
.article-body li { margin-bottom: var(--space-xs); }
.article-cta {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(230,220,203,0.15);
}
.article-author {
  color: rgba(230,220,203,0.6);
  font-size: 0.9375rem;
  font-style: italic;
}

.article-body a,
.article-author a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.article-body a:hover,
.article-author a:hover { color: var(--cream); }

/* --- Utilities ------------------------------------------------------------ */
.center { text-align: center; }
.section.center > .container { max-width: 42rem; margin-inline: auto; }
/* IP Goldmine: sections whose centered heading sits above a wider grid/box.
   The original uses max-w-5xl (Process), max-w-4xl (Two Ways) and max-w-3xl
   (Start Here) containers — wider than the default 42rem reading measure. */
#goldmine-process.center > .container { max-width: 64rem; }
.section.center[aria-labelledby="path-title"] > .container { max-width: 56rem; }
.section.center[aria-labelledby="start-title"] > .container { max-width: 48rem; }
/* Case Studies: "Who This Work Is For" + final CTA use a centered ~800px
   (max-w-3xl-ish) column, wider than the 42rem default reading measure. */
.section.center[aria-labelledby="common-title"] > .container,
.section.center[aria-labelledby="who-title"] > .container,
.section.center[aria-labelledby="cta-title"] > .container { max-width: 50rem; }
/* Centered heading; the bullet list stays left-aligned but sits in a 672px
   block centred in the 800px column (64px gutters), matching the original. */
.section.center[aria-labelledby="common-title"] .prose-list {
  text-align: left;
  max-width: 42rem;
  margin-inline: auto;
}
/* Exact surface shades from the live site (two close cream tones). */
.section.center[aria-labelledby="common-title"] { background-color: #E6DCCB; }
.section.center[aria-labelledby="who-title"] { background-color: #EBE6E0; }
.section.center[aria-labelledby="cta-title"] .lede {
  max-width: 42rem;
  margin-inline: auto;
  color: rgba(230, 220, 203, 0.7);
}
/* Original keeps the two CTAs on one row (nowrap); stack on small screens. */
.section[aria-labelledby="cta-title"] .btn-row { flex-wrap: nowrap; }
@media (max-width: 640px) {
  .section[aria-labelledby="cta-title"] .btn-row { flex-wrap: wrap; }
}

/* Gold gradient text (e.g. "Ownership Is Profitable.") — matches the live
   site's linear-gradient clipped to the text. */
.text-gradient-gold {
  background-image: linear-gradient(135deg, var(--gold), #AF875A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

.mt-md { margin-top: var(--space-md); }

/* --- Services: project-based blocks + gold accents ----------------------- */
.project-subtitle { color: var(--gold); margin-bottom: var(--space-xs); }
.service-blocks { margin-top: var(--space-lg); }
.service-block {
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(9, 28, 53, 0.08);
}
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.block-dash {
  flex: 0 0 32px;
  width: 32px;
  height: 1px;
  align-self: center;
  background-color: rgba(203, 164, 98, 0.6);
}
.block-title-sub { font-weight: 400; color: rgba(9, 28, 53, 0.6); }
.block-hook { color: var(--gold); }
.focus-label { font-weight: 600; color: var(--navy); }
.cta-row { margin-top: var(--space-lg); }

/* --- Services: for / not-for lists --------------------------------------- */
.fit-list { list-style: none; margin-bottom: var(--space-md); }
.fit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}
.fit-ico {
  flex: 0 0 auto;
  margin-top: 0.2em;
  transition: transform 0.3s ease;
}
.fit-list li:hover .fit-ico { transform: scale(1.1); }
.fit-list--yes .fit-ico { color: rgb(23, 150, 99); }
.fit-list--no .fit-ico { color: rgba(9, 28, 53, 0.25); }

/* --- Services: testimonial carousel -------------------------------------- */
/* Widen the section so the chevrons sit at the outer edges with the quote
   (max-w-2xl) centered between them — matching the original max-w-4xl frame. */
.section.center[aria-labelledby="testimonial-title"] > .container { max-width: 56rem; }
#testimonial-title { font-size: 1.875rem; margin-bottom: var(--space-md); }

.testimonial-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
/* Viewport is exactly the quote width (42rem) so neighbouring slides are
   fully clipped and only one quote is ever visible — like the original. */
.carousel-viewport {
  flex: 0 1 42rem;
  width: 42rem;
  min-width: 0;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
/* Override the global serif blockquote styling: the original quote is set in
   Inter italic, ~20px, cream/85, constrained to 672px and centred. */
.testimonial-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  max-width: none;
  padding: 0 var(--space-xs);
  font-family: var(--font-sans);
}
.testimonial-slide p {
  max-width: 42rem;
  margin-inline: auto;
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(230, 220, 203, 0.85);
}
.testimonial-slide cite {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  color: rgba(230, 220, 203, 0.5);
}
.carousel-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: rgba(230, 220, 203, 0.4);
  cursor: pointer;
  transition: color 0.2s ease;
}
.carousel-arrow:hover { color: var(--cream); }
.carousel-arrow svg { width: 32px; height: 32px; }
.carousel-dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: var(--space-lg);
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background-color: rgba(230, 220, 203, 0.3);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.carousel-dots button.is-active { width: 24px; background-color: var(--gold); }

/* On narrow screens the two 48px arrows + gaps eat half the row, squeezing the
   quote into an unreadable column. Shrink the arrows/gap so the viewport (and
   the quote inside it) gets the bulk of the width. */
@media (max-width: 640px) {
  .testimonial-carousel { gap: 0.25rem; }
  .carousel-viewport { flex: 1 1 auto; width: auto; }
  .carousel-arrow { width: 32px; height: 32px; padding: 4px; }
  .carousel-arrow svg { width: 22px; height: 22px; }
  .testimonial-slide { padding: 0; }
}

/* --- Services: final CTA spacing ----------------------------------------- */
.section .cta-actions { margin-block: var(--space-lg); }
.cta-footnote { margin-top: var(--space-sm); font-size: 0.9375rem; opacity: 0.75; }

/* --- IP Goldmine: Goldmine Process 3-column grid ------------------------- */
.process-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
}
.section--navy .process-step-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: rgba(203, 164, 98, 0.9);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  position: relative;
}
.process-step-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background-color: rgba(230, 220, 203, 0.15);
}
.process-step p { color: rgba(230, 220, 203, 0.82); }

/* --- IP Goldmine: Start Here icon + box --------------------------------- */
.start-icon,
.path-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 164, 98, 0.4);
  border-radius: 9999px;
  color: var(--gold);
}
.start-icon { width: 64px; height: 64px; margin-bottom: var(--space-md); }
/* Start Here: bordered navy box, full width of its 48rem container */
.start-box {
  text-align: left;
  background-color: rgba(28, 43, 74, 0.3);
  border: 1px solid rgba(230, 220, 203, 0.1);
  padding: var(--space-md);
  margin-block: var(--space-md);
  margin-inline: auto;
}
/* Made Possible: plain left-aligned text block, no box treatment */
.possible-box {
  text-align: left;
  max-width: 36rem;
  margin-block: var(--space-md);
  margin-inline: auto;
}
.start-box .prose-list,
.possible-box .prose-list { margin-bottom: 0; }
.start-box p:first-child,
.possible-box p:first-child { margin-bottom: var(--space-sm); }
.start-note { font-style: italic; opacity: 0.7; }
.possible-link { font-weight: 600; }

/* --- IP Goldmine: Choose Your Path cards -------------------------------- */
.path-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  text-align: left;
}
@media (min-width: 768px) {
  .path-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
}
.path-card {
  background-color: var(--navy);
  border: 1px solid rgba(230, 220, 203, 0.1);
  padding: var(--space-lg);
}
.path-icon { width: 48px; height: 48px; margin-bottom: var(--space-sm); }
.path-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.path-card-sub {
  color: rgba(230, 220, 203, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  margin-bottom: var(--space-sm);
}
.path-card p:last-child { color: rgba(230, 220, 203, 0.82); }

/* --- About: legal partnership gold callout ------------------------------ */
.partnership-callout {
  color: var(--gold);
  font-weight: 500;
  text-align: center;
  margin-top: var(--space-md);
}

/* --- About: muted uppercase section labels ------------------------------ */
.label-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(9, 28, 53, 0.5);
  margin-bottom: var(--space-xs);
}

/* --- About: Signature Talk callout box ---------------------------------- */
.signature-talk {
  background-color: rgba(230, 220, 203, 0.5);
  padding: var(--space-md);
  margin-block: var(--space-md);
}
.signature-talk .label-eyebrow { margin-bottom: 0.5rem; }
.signature-talk-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0;
}

/* --- About: Education & Credentials timeline ---------------------------- */
.credentials-heading { text-align: center; }
.credentials-list {
  margin-top: var(--space-lg);
  max-width: 48rem;
  margin-inline: auto;
}
.cred-row {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(9, 28, 53, 0.1);
}
.cred-year {
  flex: 0 0 3rem;
  width: 3rem;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
}
.cred-detail { flex: 1; }
.cred-degree {
  color: rgba(9, 28, 53, 0.8);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.cred-school {
  color: rgba(9, 28, 53, 0.5);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.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;
}

/* ==========================================================================
   Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
  .hero-split { grid-template-columns: 1.25fr 0.75fr; gap: var(--space-lg); }
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .split--reverse .split-media { order: -1; }
  .client-photo, .client-photo img { width: 140px; height: 140px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid > .res-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--space-md) / 2);
    margin-inline: auto;
  }
  .site-footer .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-lg); }
}

/* ============================================================
   Scroll-reveal animations (progressive enhancement)
   The .js-anim class is added to <html> by main.js ONLY when the
   browser supports IntersectionObserver and the visitor has not
   requested reduced motion. Without that class these rules are
   inert, so content is always visible if JS is off or unsupported.
   ============================================================ */
.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.js-anim [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* The testimonial carousel runs its own slide animation, so it must never be
   left hidden by the scroll-reveal if the IntersectionObserver doesn't fire
   for it (e.g. stale cache, slow load). Keep it and its dots always visible. */
.js-anim .testimonial-carousel[data-reveal],
.js-anim .carousel-dots[data-reveal] {
  opacity: 1;
  transform: none;
}
/* Safety: never keep content hidden for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero--image::after { animation: none; }
}
