/*
Theme Name: Chris Bustamante DNP
Theme URI: https://example.com/
Author: Built for Chris Bustamante, DNP
Author URI: https://example.com/
Description: A bold, editorial WordPress theme for Chris Bustamante, DNP — male aesthetics & sexual health. Near-black / cream / oxblood palette, custom homepage, reusable header & footer, and a generic page template so the site can be expanded with About, Credentials, Blog and other pages.
Version: 1.27.3
Requires at least: 6.0
Tested up to: 6.5
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: chris-bustamante
*/

/* =========================================================================
   0. FONTS  (self-hosted — files live in assets/fonts/)
   ========================================================================= */
@font-face {
  font-family: "Founders Grotesk";
  src: url("assets/fonts/FoundersGrotesk-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Founders Grotesk";
  src: url("assets/fonts/FoundersGrotesk-RegularItalic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Founders Grotesk";
  src: url("assets/fonts/FoundersGrotesk-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Founders Grotesk";
  src: url("assets/fonts/FoundersGrotesk-BoldItalic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* =========================================================================
   1. DESIGN TOKENS
   ========================================================================= */
:root {
  --ink: #0b0b0b;          /* near-black sections */
  --ink-pure: #000000;     /* header */
  --cream: #f3ece0;        /* warm off-white */
  --cream-deep: #ece2d2;
  --maroon: #7d1719;       /* primary button / accent (oxblood) */
  --maroon-bright: #a31f1f;/* hover / icons */
  --maroon-dark: #5d1011;
  --white: #ffffff;
  --on-dark: rgba(255, 255, 255, 0.82);
  --on-dark-soft: rgba(255, 255, 255, 0.62);
  --on-light: #141414;
  --on-light-soft: #4a4a4a;
  --hairline-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Founders Grotesk", system-ui, sans-serif;
  --font-sans: "Founders Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --container-wide: 1480px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-light);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--maroon-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maroon);
  color: #fff;
  padding: 12px 18px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 1.05em 2.1em 0.75em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(125, 23, 25, 0.7);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn:hover {
  background: var(--maroon-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(163, 31, 31, 0.75);
}
.btn:active { transform: translateY(0); }
.hero__cta,
.redefining__cta,
.big-feelings__cta {
  font-size: 0.95rem !important;
  padding: 1.05em 2.1em 0.75em !important;
}
.btn--ghost {
  background: transparent;
  border: 1.5px solid currentColor;
  box-shadow: none;
}
.btn--ghost:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* Subtle film-grain for atmosphere on dark areas (very low opacity) */
.has-grain { position: relative; }
.has-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

/* =========================================================================
   3. SITE HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink-pure);
  color: #fff;
  transition: box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-block: 12px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark { width: 30px; height: 38px; flex: none; color: #fff; }
.site-footer__brand .brand__mark { width: 46px; height: 58px; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand__mark-img { width: auto; height: 38px; }

/* Primary navigation */
.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.primary-nav__menu a {
  position: relative;
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  padding-block: 6px;
}
.primary-nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--maroon-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.primary-nav__menu a:hover,
.primary-nav__menu .current-menu-item > a { color: #fff; }
.primary-nav__menu a:hover::after,
.primary-nav__menu .current-menu-item > a::after { transform: scaleX(1); }

/* Dropdown sub-menus */
.primary-nav__menu li { position: relative; }

.primary-nav__menu .menu-item-has-children > a { padding-right: 16px; }
.primary-nav__menu .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 45%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.7;
}

.primary-nav__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ink-pure);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 50;
}

.primary-nav__menu li:hover > .sub-menu,
.primary-nav__menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav__menu .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.primary-nav__menu .sub-menu a::after { display: none; }
.primary-nav__menu .sub-menu a:hover { background: rgba(255, 255, 255, 0.06); }

.header-cta { white-space: nowrap; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   4. HERO
   ========================================================================= */
.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: min(70vh, 680px);
  padding-block: clamp(36px, 5vw, 72px);
}
.hero__text {
  max-width: 48ch;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
}

.hero__media {
  position: relative;
  align-self: start;
  width: 70% !important;
  margin-top: -60px;
}
.hero__media img {
  width: 100% !important;
  min-width: 650px;
  height: auto;
  aspect-ratio: 1040 / 1300;
  object-fit: cover;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.14));
  -webkit-mask-image: linear-gradient(to bottom, black 78%, transparent 98%);
          mask-image: linear-gradient(to bottom, black 78%, transparent 98%);
}
.hero__subtitle {
  margin-top: clamp(20px, 2.5vw, 30px);
  max-width: 34ch;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1c1c1c;
}
.hero__tagline {
  margin-top: 8px;
  max-width: 40ch;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--on-light-soft, #555);
}
.hero__cta { margin-top: clamp(24px, 3vw, 36px); }


/* =========================================================================
   5. CONTINUOUS DARK BLOCK (Redefining + Procedures + Big Feelings + Video)
   ========================================================================= */
.dark-block { background: var(--ink); color: #fff; }

/* 5a. Redefining */
.redefining {
  text-align: center;
  padding-block: clamp(64px, 9vw, 120px) clamp(40px, 6vw, 72px);
  position: relative;
  z-index: 1;
}
.redefining__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.redefining__body {
  max-width: 720px;
  margin-inline: auto;
}
.redefining__body p {
  color: var(--on-dark);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.7;
}
.redefining__body p + p { margin-top: 1.4em; }
.redefining__cta { margin-top: clamp(30px, 4vw, 44px); }

/* 5b. Procedures (3 edge-to-edge cards) */
.procedures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.procedure {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #161616;
}
.procedure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.procedure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%);
  transition: opacity 0.4s var(--ease);
}
.procedure:hover img { transform: scale(1.06); filter: brightness(1.05); }
.procedure__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(18px, 2vw, 30px);
  z-index: 2;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease);
}
.procedure:hover .procedure__label { transform: translateY(-4px); }
.procedure__label sup { font-size: 0.75em; top: -0.4em; }

/* 5c. Big Feelings */
.big-feelings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.big-feelings__media {
  position: relative;
  align-self: stretch;
  background: #15110f;
}
.big-feelings__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.big-feelings__content {
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  max-width: 680px;
  margin-inline: auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.big-feelings__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-bottom: clamp(16px, 2vw, 22px);
}
.big-feelings__content p {
  color: var(--on-dark);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.65;
  max-width: 50ch;
  margin-bottom: 1.5em;
}
.big-feelings__cta { margin-top: clamp(24px, 3vw, 34px); }

/* 5d. Video feature */
.video-feature {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  background: #1a1a1a;
  display: block;
}
.video-feature__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.4s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}
.video-feature:hover::after { background: rgba(0, 0, 0, 0.05); }
.video-feature.is-playing::after { opacity: 0; }
.video-feature__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(64px, 7vw, 92px);
  height: clamp(64px, 7vw, 92px);
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.video-feature:hover .video-feature__play { transform: translate(-50%, -50%) scale(1.08); }
.video-feature__play svg { width: 100%; height: 100%; }
.video-feature.is-playing .video-feature__play {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================================
   6. PRESS QUOTE
   ========================================================================= */
.press-quote {
  background: var(--cream);
  text-align: center;
  padding-block: clamp(64px, 10vw, 130px);
}
.press-quote__text {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.press-quote__cite {
  display: block;
  margin-top: clamp(14px, 2vw, 22px);
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  color: #2a2a2a;
}

/* =========================================================================
   7. FULL-WIDTH PHOTO
   ========================================================================= */
.full-photo {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  aspect-ratio: 16 / 7.5;
  overflow: hidden;
  background: #1a1a1a;
}
.full-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================================
   8. SITE FOOTER
   ========================================================================= */
.site-footer {
  background: var(--ink-pure);
  color: #fff;
  padding-block: clamp(48px, 7vw, 80px);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.site-footer__brand .brand__mark { width: 46px; height: 56px; }
.site-footer__brand .brand__name { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }

.site-footer__cols {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 44px);
}
.footer-elsewhere__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.footer-elsewhere__menu {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 24px;
}
.footer-elsewhere__menu a {
  font-size: 0.92rem;
  color: var(--on-dark-soft);
  transition: color 0.3s var(--ease);
}
.footer-elsewhere__menu a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-dark);
}

.social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}
.social a {
  color: var(--maroon-bright);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social a:hover { color: #d33; transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; }

.site-footer__legal {
  margin: 0;
  text-align: left;
  font-size: 0.82rem;
  color: var(--on-dark-soft);
}

/* =========================================================================
   9. GENERIC PAGE / POST (for future About, Credentials, Blog, etc.)
   ========================================================================= */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(60px, 9vw, 120px);
  text-align: center;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.page-hero__meta { margin-top: 14px; color: var(--on-dark-soft); }

.content-area {
  background: var(--cream);
  padding-block: clamp(48px, 7vw, 96px);
}
.entry-content {
  max-width: 760px;
  margin-inline: auto;
  font-size: 1.12rem;
  line-height: 1.75;
  color: #1c1c1c;
}
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-top: 1.8em;
  letter-spacing: -0.01em;
}
.entry-content h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 1.6em;
}
.entry-content a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--maroon-bright); }
.entry-content img { border-radius: 10px; margin-block: 1.6em; }
.entry-content blockquote {
  border-left: 4px solid var(--maroon);
  padding-left: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: #2a2a2a;
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.5em; }

/* Blog listing */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  max-width: var(--container);
  margin-inline: auto;
}
.post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.45); }
.post-card__thumb { aspect-ratio: 16 / 10; background: var(--cream-deep); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 26px 30px; }
.post-card__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.post-card__title a:hover { color: var(--maroon); }
.post-card__meta { margin-top: 8px; font-size: 0.85rem; color: var(--on-light-soft); }
.post-card__excerpt { margin-top: 14px; color: #333; }

.pagination { max-width: var(--container); margin: 48px auto 0; text-align: center; }
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border-radius: 8px;
  font-weight: 600;
}
.pagination .current { background: var(--maroon); color: #fff; }

/* =========================================================================
   10. SCROLL-REVEAL ANIMATION
   ========================================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero load-in (gated behind .js so content shows if JS is disabled) */
.js .hero__title, .js .hero__subtitle, .js .hero__tagline, .js .hero__cta, .js .hero__media {
  opacity: 0;
  animation: heroIn 0.9s var(--ease) forwards;
}
.hero__subtitle { animation-delay: 0.12s; }
.hero__tagline { animation-delay: 0.16s; }
.hero__cta { animation-delay: 0.22s; }
.hero__media { animation-delay: 0.18s; animation-name: heroMediaIn; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroMediaIn { from { opacity: 0; transform: translateY(40px) scale(0.98); } to { opacity: 1; transform: none; } }

/* =========================================================================
   11. RESPONSIVE
   ========================================================================= */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-pure);
    padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--hairline-dark);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav__menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav__menu li { border-bottom: 1px solid var(--hairline-dark); }
  .primary-nav__menu a { display: block; padding: 16px 0; font-size: 1.1rem; }
  .primary-nav__menu a::after { display: none; }
  .primary-nav__menu .menu-item-has-children > a::before { display: none; }
  .primary-nav__menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 16px;
  }
  .primary-nav__menu .sub-menu a { padding: 10px 0; font-size: 1rem; }
  .header-cta { margin-top: 20px; align-self: flex-start; }

  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
    text-align: left;
  }
  .hero__text { max-width: 100%; }
  .hero__media {
    width: 100% !important;
    max-width: 420px;
    margin: 0 auto !important;
    margin-top: 0 !important;
  }
  .hero__media img { height: auto; min-width: 0 !important; }

  .procedures { grid-template-columns: 1fr; }
  .procedure { aspect-ratio: 16 / 11; }

  .big-feelings { grid-template-columns: 1fr; }
  .big-feelings__media { order: 1; aspect-ratio: 4 / 3; }
  .big-feelings__content { order: 2; }

  .site-footer__cols {
    text-align: center;
    gap: 32px;
  }
  .footer-elsewhere__menu { grid-template-columns: repeat(2, auto); justify-content: center; }
  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  .social { justify-content: center; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { padding: 1.0em 1.7em 0.7em; font-size: 0.9rem; }
  .video-feature { aspect-ratio: 16 / 10; }
  .full-photo { aspect-ratio: 4 / 3; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title, .hero__subtitle, .hero__tagline, .hero__cta, .hero__media { opacity: 1; }
}

/* =========================================================================
   CONTACT MODAL (site-wide — triggered from the header's "Get in Touch"
   button; markup lives in footer.php so it's available on every page)
   ========================================================================= */

.cb-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cb-modal.is-open {
  display: flex;
}

.cb-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.cb-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--ink, #111);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 44px);
}

.cb-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.cb-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cb-modal__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: #fff;
  margin: 0 0 0.5rem;
}

.cb-modal__blurb {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

/* Contact form (used inside the modal) */
.contact-notice {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contact-notice--success {
  background: rgba(80, 160, 100, 0.15);
  color: #b7e4c7;
  border: 1px solid rgba(80, 160, 100, 0.4);
}

.contact-notice--error {
  background: rgba(192, 57, 43, 0.15);
  color: #f5c6c0;
  border: 1px solid rgba(192, 57, 43, 0.4);
}

.contact-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 480px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.contact-form__field {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.4rem;
}

.contact-form__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink, #111);
  background: var(--cream-deep, #ece2d2);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.25s var(--ease);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--maroon, #C0392B);
}

.contact-form__submit {
  margin-top: 0.25rem;
  border: 0;
  cursor: pointer;
}

@media (max-width: 480px) {
  .cb-modal__panel { padding: 28px 20px; }
}
