/* ============================================
   ALICIA HARRISON — aliciaharrison.com
   Editorial Organic Warmth — Katie Duke inspired
   Fonts: Cormorant Garamond + Jost
   ============================================ */

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

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

body {
  font-family: 'Jost', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ---------- Custom Properties ---------- */
:root {
  /* Palette — Warm editorial */
  --color-bg-primary:      #FBF7F2;
  --color-bg-secondary:    #F2EAE1;
  --color-bg-accent:       #E8D4C6;
  --color-text-primary:    #2E2522;
  --color-text-secondary:  #8C7E74;
  --color-accent:          #C2785A;
  --color-accent-hover:    #A8623F;
  --color-accent-secondary:#C99DA3;
  --color-accent-dark:     #3A2C26;
  --color-highlight:       #D4A85C;
  --color-white:           #FFFFFF;
  --color-border:          #E0D6CC;
  --color-overlay:         rgba(46, 37, 34, 0.45);

  /* Typography scale */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Jost', 'Segoe UI', Tahoma, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.5rem;
  --text-5xl:  4.5rem;
  --text-6xl:  5.5rem;

  /* Spacing — generous like Katie Duke */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 7rem;
  --space-3xl: 10rem;

  /* Layout — wider like Katie Duke (~1500px) */
  --max-width:         1440px;
  --max-width-narrow:  720px;
  --side-padding:      6vw;
  --header-height:     80px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-draw:  cubic-bezier(0.65, 0, 0.35, 1);
  --duration:   0.35s;
  --duration-slow: 0.6s;
  --duration-draw: 0.9s;

  /* Shadows — very minimal, editorial */
  --shadow-sm:  0 1px 2px rgba(46, 37, 34, 0.04);
  --shadow-md:  0 2px 8px rgba(46, 37, 34, 0.06);
  --shadow-lg:  0 4px 20px rgba(46, 37, 34, 0.08);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 400;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* Compact h1 — 40% smaller than default at every breakpoint */
.h1--compact { font-size: calc(var(--text-3xl) * 0.6); }

h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

/* Heading underline curve — Katie Duke signature element */
.underline-curve {
  display: block;
  width: 100%;
  height: 12px;
  margin-top: 2px;
  margin-bottom: var(--space-sm);
  overflow: visible;
}

.underline-curve svg {
  width: 100%;
  height: 12px;
  overflow: visible;
}

.underline-curve svg path {
  stroke: var(--color-accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: square;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
}

.underline-curve.drawn svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--ease-draw);
}

.underline-curve.undrawn svg path {
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 0.5s var(--ease-draw);
}

/* Underline on inline text (like "Writer" in hero) */
.text-underline-curve {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

/* Stack the typed word over a hidden ghost of the longest option so
   the slot is always sized to the longest word — prevents layout shift
   when the typewriter cycles through words of different lengths. */
.typed-stack {
  display: inline-grid;
  grid-template-areas: "slot";
  vertical-align: baseline;
}

.typed-stack > .typed-ghost,
.typed-stack > .typed-text {
  grid-area: slot;
  white-space: nowrap;
}

.typed-ghost {
  visibility: hidden;
  pointer-events: none;
}

.typed-stack > .typed-text {
  justify-self: start;
}

.text-underline-curve .underline-curve {
  position: absolute;
  bottom: 0.8em;
  left: -4%;
  width: 108%;
  height: 6px;
  margin: 0;
  pointer-events: none;
}

/* ---------- Arch-Top Images — doorway/window shape ---------- */
.arch-image {
  border-radius: 200px 200px 0 0;
  overflow: hidden;
}

.arch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}

.arch-image:hover img {
  transform: scale(1.05);
  filter: brightness(1.04);
}

/* Arch image sizing defaults */
.arch-image--hero {
  border-radius: 260px 260px 0 0;
  aspect-ratio: 3 / 4;
  max-width: 480px;
  margin: 0 auto;
}

.arch-image--medium {
  border-radius: 180px 180px 0 0;
  aspect-ratio: 3 / 4;
}

.arch-image--small {
  border-radius: 140px 140px 0 0;
  aspect-ratio: 3 / 4;
}

/* ---------- Image Hover Effects ---------- */
.image-hover {
  overflow: hidden;
  position: relative;
}

.image-hover img {
  transition: transform 0.7s var(--ease-out);
}

.image-hover:hover img {
  transform: scale(1.05);
}

/* Warm overlay on hover */
.image-hover--warm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(194, 120, 90, 0.08), rgba(194, 120, 90, 0.15));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

.image-hover--warm:hover::after {
  opacity: 1;
}

/* ---------- Typewriter Effect ---------- */
.typewriter-wrapper {
  display: inline;
}

.typed-text {
  border-right: 2px solid var(--color-accent);
  padding-right: 2px;
  animation: blink-caret 0.75s step-end infinite;
}

.typed-text.done-typing {
  border-right-color: transparent;
  animation: none;
}

@keyframes blink-caret {
  0%, 100% { border-right-color: var(--color-accent); }
  50% { border-right-color: transparent; }
}

h3 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 500;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
}

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

blockquote {
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-md);
  font-style: italic;
  color: var(--color-text-secondary);
  margin: var(--space-md) 0;
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--space-2xl) 0;
}

.section--light   { background-color: var(--color-bg-primary); }
.section--sand    { background-color: var(--color-bg-secondary); }
.section--warm    { background-color: var(--color-bg-accent); }
.section--dark    { background-color: var(--color-accent-dark); color: var(--color-bg-primary); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1em 2.4em;
  transition: all var(--duration) var(--ease-out);
  text-align: center;
  line-height: 1.4;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}
.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--outline {
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
.btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--dark {
  background-color: var(--color-accent-dark);
  color: var(--color-bg-primary);
}
.btn--dark:hover {
  background-color: #4D3B33;
  transform: translateY(-1px);
}

.btn--light {
  background-color: var(--color-bg-primary);
  color: var(--color-accent-dark);
}
.btn--light:hover {
  background-color: var(--color-white);
  transform: translateY(-1px);
}

.btn--arrow::after {
  content: ' \2192';
  transition: transform var(--duration) var(--ease-out);
  display: inline-block;
}
.btn--arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color var(--duration) var(--ease-smooth),
              backdrop-filter var(--duration) var(--ease-smooth);
}

.header.scrolled {
  background-color: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Nav logo — "ah" monogram image */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

/* Desktop nav */
.nav-links {
  display: none;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--duration) var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text-primary);
  transition: all var(--duration) var(--ease-out);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-bg-primary);
  z-index: 999;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  transition: right var(--duration-slow) var(--ease-smooth);
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 37, 34, 0.25);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-smooth);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-text-primary);
  padding: 0.6em 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--duration) var(--ease-out);
}

.mobile-nav a:last-of-type {
  border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-accent);
}

.mobile-nav-social {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
}

.mobile-nav-social a {
  border-bottom: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 0;
  letter-spacing: 0.05em;
}

/* ---------- Hero Sections ---------- */
.hero {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content {
  order: 2;
}

.hero-image {
  order: 1;
  position: relative;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
}

.hero-image--parallax {
  overflow: hidden;
}

.hero-image--parallax img {
  will-change: transform;
  transform: translateY(var(--parallax-offset, 0));
  scale: 1.15;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero .label {
  margin-bottom: var(--space-sm);
  display: block;
}

.hero p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.8;
}

.hero .btn {
  margin-top: var(--space-lg);
}

/* Page hero (simple centered) */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-xl);
  text-align: center;
  background-color: var(--color-bg-secondary);
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto;
  font-weight: 300;
}

/* Page hero with staggered images */
.page-hero--images {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  background-color: var(--color-bg-secondary);
}

.page-hero--images .hero-split {
  align-items: start;
}

.staggered-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.staggered-images picture,
.staggered-images img {
  aspect-ratio: 2 / 3;
}

.staggered-images img,
.staggered-images picture img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.staggered-images > :nth-child(2) {
  margin-top: var(--space-xl);
}

/* ---------- Section Headings ---------- */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-heading .label {
  margin-bottom: var(--space-xs);
  display: block;
}

.section-heading h2 {
  margin-bottom: 4px;
}

.section-heading p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-weight: 300;
}

/* Left-aligned section heading */
.section-heading--left {
  text-align: left;
}

.section-heading--left p {
  margin: 0;
}

/* ---------- My Story Section ---------- */
.story-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.story-text p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* ---------- Fun Facts Grid ---------- */
.fun-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.fun-fact-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(232, 212, 198, 0.22) 100%);
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out);
}

.fun-fact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}

.fun-fact-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-sm);
  border-radius: 50%;
  background-color: rgba(194, 120, 90, 0.10);
  color: var(--color-accent);
  line-height: 1;
  transition: background-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.fun-fact-card:hover .icon {
  background-color: rgba(194, 120, 90, 0.20);
  transform: scale(1.05);
}

.fun-fact-card .icon svg {
  width: 28px;
  height: 28px;
}

.fun-fact-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--color-accent);
}

.fun-fact-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ---------- Brand Callout ---------- */
.brand-callout {
  text-align: center;
  padding: var(--space-2xl) 0;
  background-color: var(--color-bg-accent);
}

.brand-callout h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
  color: var(--color-accent-dark);
  display: block;
}

.brand-callout p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-weight: 300;
}

/* ---------- What I Do / Two-Column Feature ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.feature-image img {
  width: 100%;
  object-fit: cover;
}

.feature-text h2 {
  margin-bottom: 4px;
}

.feature-text p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
}

/* ---------- Cards — clean editorial, no shadows ---------- */
.card {
  background: var(--color-white);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color var(--duration) var(--ease-out);
}

.card:hover {
  border-color: var(--color-accent);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card-image img {
  transform: scale(1.04);
}

.card-body {
  padding: var(--space-md);
}

.card-body .label {
  margin-bottom: var(--space-xs);
  display: inline-block;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.card-body .date {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  display: block;
}

.card-body .read-more {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  margin-top: var(--space-sm);
  letter-spacing: 0.05em;
}

.card-body .read-more::after {
  content: ' \2192';
  transition: transform var(--duration) var(--ease-out);
  display: inline-block;
}

.card-body .read-more:hover::after {
  transform: translateX(4px);
}

/* ---------- Essentials Subpage — Product Cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

/* Text-only card variant — used when no brand asset/logo is available */
.product-card--text .product-card-body {
  padding: var(--space-lg);
  justify-content: center;
  text-align: center;
}

.product-card--text .product-card-body .shop-link {
  align-self: center;
}

.product-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body .brand {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  display: block;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.product-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  flex: 1;
}

.product-card-body .shop-link {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color var(--duration) var(--ease-out);
}

.product-card-body .shop-link:hover {
  color: var(--color-accent-hover);
}

.product-card-body .shop-link::after {
  content: ' \2192';
  display: inline-block;
  transition: transform var(--duration) var(--ease-out);
}

.product-card-body .shop-link:hover::after {
  transform: translateX(3px);
}

.product-section {
  margin-bottom: var(--space-2xl);
}

.product-section:last-of-type {
  margin-bottom: 0;
}

.product-section-heading {
  margin-bottom: var(--space-lg);
}

.product-section-heading h2 {
  font-size: var(--text-2xl);
  margin-bottom: 4px;
}

.product-section-heading p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

.affiliate-disclosure {
  background-color: var(--color-bg-secondary);
  padding: var(--space-md);
  border-left: 3px solid var(--color-accent);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: var(--space-xl) auto 0;
}

.affiliate-disclosure strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Essentials category cards — clean overlay, no rounded corners */
.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

/* "Coming Soon" badge — drop the modifier class on a card once its subpage is live */
.category-card--coming-soon::before {
  content: 'Coming Soon';
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 2;
  background-color: rgba(46, 37, 34, 0.85);
  color: var(--color-bg-primary);
  padding: 0.45em 0.95em;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46, 37, 34, 0.55) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.category-card-overlay h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Essentials preview cards (homepage) */
.essentials-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.essentials-preview-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.essentials-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.essentials-preview-card:hover img {
  transform: scale(1.04);
}

.essentials-preview-card .category-card-overlay {
  background: linear-gradient(to top, rgba(46, 37, 34, 0.5) 0%, transparent 60%);
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ---------- Practice Locations Grid ---------- */
.practice-locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.practice-location-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.practice-location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.practice-location-state {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.practice-location-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.practice-location-meta {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.practice-location-meta a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.practice-location-services {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  flex: 1;
}

.practice-location-services li {
  position: relative;
  padding-left: var(--space-sm);
  margin-bottom: 8px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.practice-location-services li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.practice-location-card .btn {
  align-self: flex-start;
}

/* ---------- Service Tiers ---------- */
.service-tier {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-tier:last-of-type {
  border-bottom: none;
}

.service-tier .feature-split {
  align-items: center;
  gap: var(--space-lg);
}

/* Reverse variant — image leads on desktop, text on right */
.feature-split--reverse .feature-image { order: 1; }
.feature-split--reverse .feature-text  { order: 2; }

/* Mobile: hide service tier photos, tighten spacing under hero, breathe between tiers */
@media (max-width: 767px) {
  .service-tier {
    padding: var(--space-lg) 0;
  }
  .service-tier .feature-image {
    display: none;
  }
  .page-hero--images {
    padding-bottom: var(--space-sm);
  }
  .service-tier:first-of-type {
    padding-top: var(--space-sm);
  }
}

@media (min-width: 768px) {
  .service-tier {
    padding: var(--space-xl) 0;
  }
}

.service-tier-number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 300;
  color: var(--color-bg-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.service-tier h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.service-tier p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.service-tier h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.service-tier ul {
  padding-left: 0;
}

.service-tier ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.service-tier ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.service-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ---------- Brand Application Form ---------- */
.application-section {
  background-color: var(--color-bg-accent);
  padding: var(--space-2xl) 0;
}

.application-form-wrapper {
  background-color: var(--color-white);
  padding: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 0.4em;
  color: var(--color-text-primary);
}

.form-group label .required {
  color: var(--color-accent);
}

.form-group .helper-text {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: 0.3em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-primary);
  transition: border-color var(--duration) var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C7E74' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
  cursor: pointer;
}

/* Radio & Checkbox groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 0.4em;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 400;
  cursor: pointer;
}

.radio-group input,
.checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.form-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-top: var(--space-md);
}

/* Newsletter inline form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.85em 1.2em;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  font-size: var(--text-base);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--color-accent);
}

.newsletter-section {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.newsletter-section .newsletter-form {
  margin: var(--space-md) auto 0;
}

/* Contact page layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.tidycal-wrapper {
  background: var(--color-bg-secondary);
  padding: var(--space-lg);
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tidycal-wrapper h3 {
  margin-bottom: var(--space-sm);
}

.tidycal-wrapper p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

/* ---------- Blog ---------- */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter-pill {
  padding: 0.5em 1.4em;
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 400;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  background: transparent;
  color: var(--color-text-secondary);
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ---------- Section Jump Buttons (essentials topic pages) ---------- */
.section-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.section-jump {
  padding: 0.5em 1.4em;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-secondary);
  background: transparent;
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
}

.section-jump:hover,
.section-jump:focus-visible {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* ---------- Blog Post (Single) ---------- */
.article-header {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-lg);
  text-align: center;
}

.article-header .label {
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.article-header h1 {
  font-size: var(--text-3xl);
  max-width: 800px;
  margin: 0 auto var(--space-sm);
}

.article-header .date {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.article-featured-image {
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-xl);
  padding: 0 var(--side-padding);
}

.article-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.article-body h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-body h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.article-body p {
  color: var(--color-text-secondary);
}

/* Inline links inside body copy — accent color + underline so they stand out */
.article-body p a,
.article-body li a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  transition: color var(--duration) var(--ease-out);
}

.article-body p a:hover,
.article-body li a:hover {
  color: var(--color-accent-hover);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
  color: var(--color-text-secondary);
}

.article-body ul li { list-style-type: disc; }
.article-body ol li { list-style-type: decimal; }
.article-body li { margin-bottom: 0.4em; }

.article-body img {
  margin: var(--space-md) 0;
}

/* Author bio */
.author-bio {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  background-color: var(--color-bg-secondary);
  padding: var(--space-md);
  margin-top: var(--space-2xl);
}

.author-bio picture {
  display: block;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-bio picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 17%;
  transform: scale(2);
  transform-origin: center center;
}

/* Fallback for plain <img> author bios (no <picture> wrapper) */
.author-bio > img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 16%;
  flex-shrink: 0;
}

.author-bio h4 {
  margin-bottom: 4px;
}

.author-bio p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.author-bio a {
  color: var(--color-accent);
  font-weight: 500;
}

/* More posts */
.more-posts {
  padding: var(--space-2xl) 0;
}

/* ---------- Recipe Card ---------- */
.source-credit {
  border-left: 2px solid var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-lg) 0;
  background-color: var(--color-bg-secondary);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.source-credit strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.recipe-card {
  background-color: var(--color-bg-secondary);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border: 1px solid var(--color-border);
}

.recipe-card h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.recipe-card .recipe-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.recipe-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-md);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.recipe-meta-item {
  text-align: center;
}

.recipe-meta-item .label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.recipe-meta-item .value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-primary);
}

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

.recipe-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.recipe-card ul.ingredients,
.recipe-card ol.instructions {
  padding-left: 1.25em;
  color: var(--color-text-primary);
}

.recipe-card ul.ingredients li {
  list-style-type: none;
  position: relative;
  padding-left: 1.25em;
  margin-bottom: 0.55em;
  line-height: 1.55;
}

.recipe-card ul.ingredients li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.recipe-card ol.instructions li {
  list-style-type: decimal;
  margin-bottom: 0.7em;
  padding-left: 0.4em;
  line-height: 1.7;
}

.recipe-card ol.instructions li::marker {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 500;
}

.recipe-card a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.recipe-card a:hover {
  color: var(--color-accent-hover);
}

.recipe-notes {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.recipe-notes h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.recipe-notes p,
.recipe-notes li {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.recipe-notes ul {
  padding-left: 1.25em;
}

.recipe-notes ul li {
  list-style-type: disc;
  margin-bottom: 0.4em;
}

@media (max-width: 600px) {
  .recipe-card {
    padding: var(--space-md);
  }

  .recipe-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* ---------- Books Marquee ---------- */
.books-scroll-wrapper {
  overflow: hidden;
  position: relative;
  padding-bottom: var(--space-sm);
}

.books-scroll {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  animation: books-marquee 80s linear infinite;
}

.books-scroll-wrapper:hover .books-scroll,
.books-scroll-wrapper:focus-within .books-scroll {
  animation-play-state: paused;
}

@keyframes books-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .books-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
  }
  .books-scroll {
    width: min-content;
    padding: 0 var(--side-padding);
    animation: none;
  }
}

.book-card {
  flex-shrink: 0;
  width: 160px;
  text-align: center;
  transition: transform var(--duration) var(--ease-out);
}

.book-card:hover {
  transform: translateY(-4px);
}

.book-cover {
  width: 160px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.25;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.book-card p {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* ---------- Shop The Look ---------- */
.shop-look-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.shop-look-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: var(--space-2xl) 0;
  background-color: var(--color-bg-accent);
}

.cta-banner h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  color: var(--color-accent-dark);
  display: block;
}

/* ---------- Tagline Banner ---------- */
.tagline-banner {
  text-align: center;
  padding: var(--space-xl) 0;
  background-color: var(--color-accent-dark);
}

.tagline-banner p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-bg-primary);
  font-weight: 300;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Credentials Strip — bold, editorial ---------- */
.credentials-strip {
  background-color: var(--color-accent-dark);
  padding: var(--space-2xl) 0;
  overflow: hidden;
  position: relative;
}

.credentials-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

.credentials-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

.credentials-heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.credentials-heading span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.credential-item {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 220px;
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  border: 1px solid rgba(194, 120, 90, 0.25);
  transition: border-color var(--duration) var(--ease-out),
              background-color var(--duration) var(--ease-out);
}

.credential-item:hover {
  border-color: var(--color-accent);
  background-color: rgba(194, 120, 90, 0.08);
}

.credential-item h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-bg-primary);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.credential-item p {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 247, 242, 0.5);
}

.credential-item::before {
  display: none;
}

/* Full-width primary credential */
.credential-item--primary {
  flex: 1 1 100%;
  max-width: 100%;
  border-color: rgba(194, 120, 90, 0.4);
}

.credential-item--primary h4 {
  font-size: var(--text-2xl);
  color: var(--color-accent);
}

@media (min-width: 1024px) {
  .credential-item h4 {
    font-size: var(--text-xl);
  }

  .credential-item--primary h4 {
    font-size: var(--text-3xl);
  }
}

/* ---------- Subscribe Page ---------- */
.subscribe-page {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.subscribe-content {
  max-width: 540px;
  margin: 0 auto;
}

.subscribe-content h1 {
  margin-bottom: var(--space-sm);
}

.subscribe-content p {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  font-weight: 300;
  margin-bottom: var(--space-lg);
}

.subscribe-content .form-note {
  margin-top: var(--space-md);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-accent-dark);
  color: var(--color-bg-secondary);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand .footer-monogram {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-md);
  /* Tint dark burgundy mark to warm cream for visibility on dark footer */
  filter: brightness(0) invert(1) sepia(0.4) saturate(0.5) hue-rotate(340deg) brightness(0.95);
  opacity: 0.85;
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  margin-bottom: var(--space-sm);
  color: var(--color-bg-primary);
}

.footer .newsletter-form input[type="email"] {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-bg-primary);
}

.footer .newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer .newsletter-form input[type="email"]:focus {
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.12);
}

.footer h5 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--color-bg-primary);
}

.footer-links a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(242, 234, 225, 0.6);
  padding: 0.35em 0;
  transition: color var(--duration) var(--ease-out);
}

.footer-links a:hover {
  color: var(--color-bg-primary);
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-sm);
  color: rgba(242, 234, 225, 0.6);
  padding: 0.35em 0;
  transition: color var(--duration) var(--ease-out);
}

.footer-social a:hover {
  color: var(--color-bg-primary);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-md);
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(242, 234, 225, 0.4);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-legal a {
  color: rgba(242, 234, 225, 0.55);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  transition: color var(--duration) var(--ease-out);
}

.footer-legal a:hover {
  color: var(--color-accent);
}

/* ---------- Meet Section — Typewriter ---------- */
.meet-section {
  padding: var(--space-2xl) 0;
}

.meet-typewriter {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  display: block;
  text-align: center;
}

.typed-text-meet {
  color: var(--color-accent);
  border-right: 2px solid var(--color-accent);
  padding-right: 3px;
  animation: blink-caret 0.75s step-end infinite;
}

.typed-text-meet.done-typing {
  border-right-color: transparent;
  animation: none;
}

@media (min-width: 1024px) {
  .meet-typewriter {
    font-size: var(--text-5xl);
  }
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
  transition-delay: 0.15s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-group > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-group > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* Image reveal */
.img-reveal {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.img-reveal.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Responsive ---------- */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  :root {
    --side-padding: 4vw;
    --header-height: 88px;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .h1--compact { font-size: calc(var(--text-4xl) * 0.6); }

  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }

  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .hero-content { order: 1; }
  .hero-image { order: 2; }

  .hero-image img {
    aspect-ratio: 3 / 4;
    max-height: 600px;
  }

  .story-section {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-xl);
  }

  .fun-facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .essentials-preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .practice-locations-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .service-tier .feature-split {
    gap: var(--space-xl);
  }

  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shop-look-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links { display: flex; }
  .hamburger { display: none; }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .newsletter-form {
    flex-direction: row;
  }

  .newsletter-form .btn {
    flex-shrink: 0;
  }

  .page-hero--images .hero-split {
    grid-template-columns: 1fr 1fr;
  }

  .nav-logo img {
    height: 46px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-3xl); }
  .h1--compact { font-size: calc(var(--text-5xl) * 0.6); }

  section {
    padding: var(--space-3xl) 0;
  }

  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }

  .hero {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
  }

  .hero-split {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
  }

  .hero-image img {
    max-height: 680px;
  }

  .story-section {
    gap: var(--space-2xl);
  }

  .feature-split {
    gap: var(--space-2xl);
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .article-header h1 {
    font-size: var(--text-4xl);
  }

  .service-tier .feature-split {
    gap: var(--space-2xl);
  }

  .fun-facts-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Wide: 1280px+ */
@media (min-width: 1280px) {
  h1 { font-size: var(--text-6xl); }
  .h1--compact { font-size: calc(var(--text-6xl) * 0.6); }

  .nav-logo img {
    height: 50px;
  }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.5em 1em;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}
