/* ==========================================================================
   Nourish Wise Co. — Design System v3
   Quiet luxury. Aesop meets Kinfolk. No shortcuts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');


/* --------------------------------------------------------------------------
   Color Tokens
   -------------------------------------------------------------------------- */
:root {
  --white: #FFFFFF;
  --off-white: #F7F5F3;
  --cream: #F0EDE8;
  --gray-100: #E8E4E0;
  --gray-200: #D4CFC8;
  --gray-300: #B8B0A6;
  --gray-400: #8B8178;
  --gray-500: #6B6259;
  --gray-600: #4A4440;
  --black: #1A1715;
  --text: #1A1715;
  --text-secondary: #6B6259;
  --accent: #C4A882;
  --accent-hover: #B89A74;

  /* Spacing */
  --section-py: clamp(4rem, 10vw, 8rem);
  --container-px: clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;
}


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

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

@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background-color: var(--white);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--black);
  color: var(--white);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 0 !important; /* Never ever */
}


/* --------------------------------------------------------------------------
   Typography Scale
   -------------------------------------------------------------------------- */

/* Display sizes use Cormorant Garamond */
.display-xl,
.display-lg,
.display-md,
.display-sm,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.display-xl {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.display-lg {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.display-md {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
}

.display-sm {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
}

/* Body text uses DM Sans */
.body-lg {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0;
}

.body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0;
}

@media (min-width: 1024px) {
  .body {
    font-size: 1.125rem;
  }
}

.body-sm {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* Default heading element styles */
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; }
h4 { font-size: 1.25rem; font-weight: 500; }
h5 { font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; }
h6 { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

p {
  max-width: 68ch; /* Optimal reading length */
}


/* --------------------------------------------------------------------------
   Inline Links
   -------------------------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

/* Inline body links */
p a,
.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
  transition: text-decoration-thickness var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

p a:hover,
.inline-link:hover {
  text-decoration-thickness: 2px;
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}


/* --------------------------------------------------------------------------
   Layout — Container & Grid
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* Break out of container to full viewport */
.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Section vertical rhythm */
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-sm {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

/* Grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

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

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

/* Asymmetric split — 40/60 */
.grid-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .grid-split {
    grid-template-columns: 2fr 3fr;
  }
}

/* About page headshot */
.headshot-wrap {
  width: 220px;
  height: 260px;
}

@media (max-width: 480px) {
  .headshot-wrap {
    width: 160px;
    height: 190px;
  }
}

.headshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

/* Utility: vertical stack with consistent spacing */
.stack > * + * {
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.stack-lg > * + * {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Flex row helpers */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-gap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}


/* --------------------------------------------------------------------------
   Dividers
   -------------------------------------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0;
}

.divider-contained {
  border: none;
  border-top: 1px solid var(--gray-200);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Horizontal rule within text flow */
hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: clamp(2rem, 4vw, 3rem) 0;
}


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  border-radius: 0; /* Sharp. Always. */
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Primary button */
.btn-primary {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Secondary button */
.btn-secondary {
  background-color: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-secondary:hover {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Ghost button — for use on dark backgrounds */
.btn-ghost {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover {
  background-color: var(--white);
  color: var(--black);
}

/* Small button variant */
.btn-sm {
  font-size: 0.7rem;
  padding: 0.75rem 1.75rem;
}


/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 2rem var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out),
              backdrop-filter var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

/* JS adds this class when scrolled > 50px */
.header.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-100);
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 110;
}

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

.header-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out),
              text-shadow var(--duration-base) var(--ease-out);
}

.header.scrolled .header-logo-text {
  color: var(--text);
  text-shadow: none;
}

/* Desktop nav */
.nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

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

.nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration-base) var(--ease-out),
              text-shadow var(--duration-base) var(--ease-out);
}

.header.scrolled .nav-link {
  color: var(--text);
  text-shadow: none;
}

/* Underline animates from left */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--duration-base) var(--ease-out);
}

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

.nav-link:hover {
  color: var(--white);
}

.header.scrolled .nav-link:hover {
  color: var(--text);
}

/* Header CTA area */
.header-cta {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .header-cta {
    display: flex;
  }
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

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

.hamburger-line {
  display: block;
  height: 1px;
  background-color: var(--white);
  transition: width var(--duration-base) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out);
}

.header.scrolled .hamburger-line {
  background-color: var(--text);
}

.hamburger-line:nth-child(1) { width: 28px; }
.hamburger-line:nth-child(2) { width: 20px; }
.hamburger-line:nth-child(3) { width: 24px; }

/* Hamburger open state */
.hamburger.is-open .hamburger-line:nth-child(1) {
  width: 24px;
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger.is-open .hamburger-line:nth-child(3) {
  width: 24px;
  transform: translateY(-6px) rotate(-45deg);
}

/* When menu is open, show white lines */
.menu-open .hamburger-line {
  background-color: var(--white);
}


/* --------------------------------------------------------------------------
   Mobile Menu Overlay
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background-color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--container-px);

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
  display: inline-block;
  transition: color var(--duration-fast) var(--ease-out);
}

.mobile-nav-link:hover {
  color: var(--accent);
}

.mobile-menu-footer {
  position: absolute;
  bottom: var(--container-px);
  left: var(--container-px);
  right: var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-footer .eyebrow {
  color: var(--gray-500);
}


/* --------------------------------------------------------------------------
   Image Treatments
   -------------------------------------------------------------------------- */

/* Parallax container */
.img-parallax {
  overflow: hidden;
  position: relative;
}

.img-parallax img {
  transform: scale(1.15);
  transform-origin: center center;
  will-change: transform;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reveal via clip-path (GSAP animates clipPath) */
.img-reveal {
  overflow: hidden;
  will-change: clip-path;
}

body.gsap-ready .img-reveal {
  clip-path: inset(100% 0 0 0);
}

.img-reveal.is-revealed {
  clip-path: inset(0% 0 0 0);
}

/* Full bleed image */
.img-full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: block;
}

.img-full-bleed img {
  width: 100%;
  height: auto;
}

/* Aspect ratio helpers */
.aspect-16-9 { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.aspect-4-3  { aspect-ratio: 4 / 3;  object-fit: cover; width: 100%; }
.aspect-3-4  { aspect-ratio: 3 / 4;  object-fit: cover; width: 100%; }
.aspect-1-1  { aspect-ratio: 1 / 1;  object-fit: cover; width: 100%; }
.aspect-2-3  { aspect-ratio: 2 / 3;  object-fit: cover; width: 100%; }

/* Cover fill for grid images */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* --------------------------------------------------------------------------
   GSAP Animation Targets
   Initial hidden states are applied only after GSAP confirms it's loaded
   (JS adds .gsap-ready to body). Without JS, everything stays visible.
   -------------------------------------------------------------------------- */
.animate-up {
  will-change: opacity, transform;
}

body.gsap-ready .animate-up {
  opacity: 0;
  transform: translateY(40px);
}

.animate-fade {
  will-change: opacity;
}

body.gsap-ready .animate-fade {
  opacity: 0;
}

/* Parent container for staggered children */
.animate-stagger > * {
  will-change: opacity, transform;
}

body.gsap-ready .animate-stagger > * {
  opacity: 0;
  transform: translateY(30px);
}

/* Split text — each line becomes a span GSAP targets */
.split-text {
  overflow: hidden;
}

.split-text .line {
  display: block;
  overflow: hidden;
}

.split-text .line-inner {
  display: block;
  transform: translateY(100%);
  will-change: transform;
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--black);
  color: var(--gray-300);
  padding: clamp(3rem, 6vw, 5rem) var(--container-px);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-brand {}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  max-height: 36px;
  filter: brightness(0) invert(1) opacity(0.6);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: none;
}

/* Footer nav columns */
.footer-nav-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  font-size: 0.9rem;
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-nav-link:hover {
  color: var(--white);
}

/* Footer bottom bar */
.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-600);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-social-link {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-social-link:hover {
  color: var(--white);
}


/* --------------------------------------------------------------------------
   Form Styles — Borderless, minimal. Just a line.
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-group {
  position: relative;
}

/* Floating label */
.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--gray-400);
  pointer-events: none;
  transition: top var(--duration-base) var(--ease-out),
              font-size var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

/* Float label up when input has value or is focused */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label,
.form-select ~ .form-label {
  top: -1.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-300);
  border-radius: 0;
  padding: 1rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--duration-base) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.form-select {
  padding-top: 1.25rem;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  cursor: pointer;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: transparent; /* Hide placeholder — label does the job */
}

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

.form-textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 1rem;
}

/* Error state */
.form-input.is-error,
.form-textarea.is-error {
  border-bottom-color: #c0392b;
}

.form-error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8rem;
  color: #c0392b;
}

/* Two column form on tablet+ */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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


/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

/* Backgrounds */
.bg-white    { background-color: var(--white); }
.bg-off-white { background-color: var(--off-white); }
.bg-cream    { background-color: var(--cream); }
.bg-black    { background-color: var(--black); }

/* Text colors */
.text-secondary { color: var(--text-secondary); }
.text-accent    { color: var(--accent); }
.text-white     { color: var(--white); }
.text-muted     { color: var(--gray-400); }

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Max-width limiter for centered text blocks */
.prose-center {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Spacing utilities */
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mt-6  { margin-top: 3rem; }
.mt-8  { margin-top: 4rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.mb-6  { margin-bottom: 3rem; }
.mb-8  { margin-bottom: 4rem; }

/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* No scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--black);
  pointer-events: none;
  opacity: 0;
}


/* --------------------------------------------------------------------------
   Section-level layout patterns
   -------------------------------------------------------------------------- */

/* Hero — typically full viewport */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 6rem);
  padding-top: 8rem; /* Header clearance */
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Background image for hero */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

/* Dark overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(26, 23, 21, 0.55) 0%, transparent 22%),
    linear-gradient(to top, rgba(26, 23, 21, 0.7) 0%, rgba(26, 23, 21, 0.1) 60%, transparent 100%);
  z-index: 1;
}

/* Pinned stat or detail in hero */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Large number/stat display */
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}


/* --------------------------------------------------------------------------
   Responsive tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .text-center-mobile { text-align: center; }
}

@media (min-width: 768px) {
  .hide-tablet-up { display: none !important; }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}

/* Service pricing row — stacks on small screens */
.service-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .service-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  border-top: 1px solid var(--gray-300);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: none;
}
.blog-card h2 {
  max-width: none;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.blog-card p {
  max-width: none;
}
.blog-card .post-link {
  margin-top: auto;
  padding-top: 16px;
}
.post-content h3 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content strong { font-weight: 600; }
.post-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.post-link:hover { color: var(--text-secondary); }

/* Post page title — constrained column needs smaller heading */
#post-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}