/* ==========================================================================
   FWH Fitness — base styles
   ========================================================================== */

:root {
  --teal: #01454c;
  --teal-soft: #0c5158;
  --gold: #b9863a;
  --gold-deep: #96692a;
  --gold-light: #f5d06a;
  --ivory: #faf7f2;
  --white: #ffffff;
  --champagne: #efe6d6;
  --charcoal: #242220;
  --charcoal-soft: #514e49;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1180px;
  --radius: 2px;
  --shadow: 0 18px 40px -22px rgba(36, 34, 32, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal);
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9em;
  font-weight: 600;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-head p {
  color: var(--charcoal-soft);
  font-size: 1.05rem;
}

section {
  padding: 5.5rem 0;
  scroll-margin-top: 90px;
}

section:not([class]):nth-of-type(even) {
  background: var(--white);
}

.divider {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 1.1rem auto 0;
}

.section-head .divider {
  margin: 1.1rem auto 0;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 2em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

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

.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline-dark:hover {
  background: var(--teal);
  color: var(--white);
}

/* Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.0);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 22px 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.98);
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.4);
  padding: 12px 0;
}

.site-header.nav-open {
  transform: none;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  height: 66px;
  width: 66px;
  transition: height 0.3s ease, width 0.3s ease;
}

.brand-mark img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  transition: opacity 0.3s ease;
}

/* Default header sits over a dark background (subpage hero bands) */
.brand-mark .logo-dark {
  opacity: 0;
}

.brand-mark .logo-light {
  opacity: 1;
}

/* Homepage header sits over the light cream hero, so it needs dark branding by default */
.site-header.on-light .brand-mark .logo-dark {
  opacity: 1;
}

.site-header.on-light .brand-mark .logo-light {
  opacity: 0;
}

.site-header.is-scrolled .brand-mark {
  height: 56px;
  width: 56px;
}

.site-header.is-scrolled .brand-mark .logo-dark {
  opacity: 1;
}

.site-header.is-scrolled .brand-mark .logo-light {
  opacity: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.site-header.on-light .brand-text {
  color: var(--teal);
}

.site-header.is-scrolled .brand-text {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--white);
  transition: color 0.3s ease;
  position: relative;
}

.site-header.on-light .nav-links a {
  color: var(--charcoal);
}

.site-header.is-scrolled .nav-links a {
  color: var(--charcoal);
}

.nav-links a:hover {
  color: var(--gold-light);
}

.site-header.on-light .nav-links a:hover {
  color: var(--gold);
}

.site-header.is-scrolled .nav-links a:hover {
  color: var(--gold);
}

.nav-links .nav-cta {
  border: 1px solid currentColor;
  padding: 0.55em 1.3em;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.site-header.on-light .nav-toggle span {
  background: var(--charcoal);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--charcoal);
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--charcoal);
  padding-top: 90px;
  background: var(--ivory);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(245, 236, 221, 0.88), rgba(245, 236, 221, 0.74));
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(1, 69, 76, 0.35);
  background: rgba(255, 255, 255, 0.5);
  color: var(--teal);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-nav:hover {
  background: var(--white);
  border-color: var(--gold);
}

.hero-nav-prev {
  left: 24px;
}

.hero-nav-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(1, 69, 76, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dot.is-active {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: scale(1.2);
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero .eyebrow {
  color: var(--gold-deep);
}

.hero h1 {
  color: var(--teal);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 0.4em;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--charcoal-soft);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: rgba(1, 69, 76, 0.4);
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy .eyebrow {
  color: var(--gold-deep);
}

.about-copy h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.about-copy p {
  color: var(--charcoal-soft);
}

.about-copy .signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--teal);
  margin-top: 1.5rem;
}

/* Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--ivory);
  border: 1px solid rgba(1, 69, 76, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.service-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--champagne);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 2rem 1.7rem 2.2rem;
}

.service-card .num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.8em;
  display: block;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.service-card p {
  color: var(--charcoal-soft);
  font-size: 0.96rem;
  margin-bottom: 1.4em;
}

.service-card .card-link {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

/* Testimonials
   ========================================================================== */

.testimonials {
  background: var(--teal);
  color: var(--white);
  position: relative;
}

.testimonials .section-head h2 {
  color: var(--white);
}

.testimonials .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.testimonials .divider {
  background: var(--gold-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
}

.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-light);
  line-height: 1;
  display: block;
  margin-bottom: 0.2em;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.2em;
}

.testimonial-card .name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
}

.testimonial-card .name {
  margin-bottom: 0.9em;
}

.testimonial-link {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  border-bottom: 1px solid rgba(245, 208, 106, 0.6);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* Newsletter
   ========================================================================== */

.newsletter {
  background: var(--champagne);
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.newsletter p {
  color: var(--charcoal-soft);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.form-row {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.form-row input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.95em 1.2em;
  border: 1px solid rgba(1, 69, 76, 0.25);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}

/* Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info .eyebrow {
  color: var(--gold-deep);
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.contact-info p {
  color: var(--charcoal-soft);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 1.4em 0;
  font-size: 0.98rem;
}

.contact-detail .label {
  font-weight: 600;
  color: var(--teal);
  min-width: 70px;
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 2rem;
}

.social-row a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: all 0.25s ease;
}

.social-row a:hover {
  background: var(--gold);
  color: var(--white);
}

.social-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-form {
  background: var(--white);
  padding: 2.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.3rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 0.5em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid rgba(1, 69, 76, 0.2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--ivory);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.2rem 0 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.6rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 34px;
  width: 34px;
}

.footer-brand span {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* Subpages (recipes / articles / resources)
   ========================================================================== */

.subpage-hero {
  padding: 160px 0 60px;
  text-align: center;
  background: var(--teal);
  color: var(--white);
}

.subpage-hero h1 {
  color: var(--white);
}

.subpage-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto;
}

.subpage-body {
  padding: 5rem 0;
  text-align: center;
}

.subpage-body .placeholder-note {
  max-width: 560px;
  margin: 0 auto;
  color: var(--charcoal-soft);
}

/* Post index grids (recipes / articles)
   ========================================================================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.post-card {
  background: var(--white);
  border: 1px solid rgba(1, 69, 76, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.post-card .post-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--champagne);
}

.post-card .post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 1.5rem 1.6rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

.post-card-meta {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.8em;
}

.post-card-body .card-link {
  margin-top: auto;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  align-self: flex-start;
}

/* Single post page
   ========================================================================== */

.post-hero-banner {
  height: 46vh;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.post-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 69, 76, 0.55), rgba(1, 69, 76, 0.35));
}

.post-hero-banner .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
  padding-top: 130px;
}

.post-hero-banner .post-category {
  color: var(--gold-light);
}

.post-hero-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 800px;
}

.post-hero-banner .post-meta-row {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.6em;
}

.post-body {
  padding: 4.5rem 0;
}

.post-body-inner {
  max-width: 720px;
  margin: 0 auto;
}

.post-body-inner p {
  color: var(--charcoal-soft);
  font-size: 1.03rem;
  margin-bottom: 1.2em;
}

.post-body-inner h2,
.post-body-inner h3,
.post-body-inner h4 {
  margin-top: 1.6em;
}

.post-body-inner ul,
.post-body-inner ol {
  color: var(--charcoal-soft);
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.post-body-inner ul {
  list-style: none;
  padding-left: 0;
}

.post-body-inner ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.6em;
}

.post-body-inner ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.post-body-inner ol {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}

.post-body-inner ol li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4em;
  margin-bottom: 0.9em;
}

.post-body-inner ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1em;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

/* Paid resources
   ========================================================================== */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: left;
}

.resource-card {
  background: var(--white);
  border: 1px solid rgba(1, 69, 76, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.resource-card .resource-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--champagne);
}

.resource-card .resource-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-card-body {
  padding: 1.5rem 1.5rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}

.resource-card-body p {
  color: var(--charcoal-soft);
  font-size: 0.88rem;
  margin-bottom: 1.3em;
  flex: 1;
}

.resource-card-body .btn {
  align-self: flex-start;
}

.resources-intro {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--charcoal-soft);
}

.free-resource-grid {
  margin-bottom: 1rem;
}

.free-resource-grid .resource-card .resource-cover {
  aspect-ratio: 4 / 3;
}

.free-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  text-align: center;
}

.resource-card .resource-cover.free-cover--teal {
  background: var(--teal);
}

.resource-card .resource-cover.free-cover--gold {
  background: linear-gradient(155deg, var(--gold-light), var(--gold));
}

.resource-card .resource-cover.free-cover--ivory {
  background: var(--champagne);
  border-bottom: 3px solid var(--gold);
}

.free-cover-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.free-cover--teal .free-cover-title,
.free-cover--gold .free-cover-title {
  color: var(--white);
}

.free-cover--ivory .free-cover-title {
  color: var(--teal);
}

/* Free guide modal
   ========================================================================== */

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.guide-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.guide-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 34, 32, 0.55);
}

.guide-modal-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow);
  transform: translateY(28px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-modal.is-open .guide-modal-panel {
  transform: translateY(0) scale(1);
}

.guide-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--charcoal-soft);
}

.guide-modal-panel h3 {
  margin-bottom: 0.3em;
}

.guide-modal-panel > p {
  color: var(--charcoal-soft);
  font-size: 0.92rem;
  margin-bottom: 1.3em;
}

.guide-modal-success {
  color: var(--teal);
  font-weight: 600;
}

/* Success stories archive
   ========================================================================== */

.story-grid {
  columns: 3;
  column-gap: 24px;
}

.story-card {
  break-inside: avoid;
  margin-bottom: 24px;
  scroll-margin-top: 110px;
  background: var(--white);
  border: 1px solid rgba(1, 69, 76, 0.08);
  border-left: 3px solid var(--gold);
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius);
}

.story-card p {
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  margin-bottom: 0.9em;
}

.story-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--teal);
}

/* Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo {
    max-width: 420px;
    margin: 0 auto;
  }

  .services-grid,
  .testimonial-grid,
  .post-grid,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid {
    columns: 2;
  }
}

@media (max-width: 760px) {
  section {
    padding: 3.8rem 0;
  }

  .hero-nav {
    display: none;
  }

  .site-header {
    transform: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--teal);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform 0.28s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-links a {
    color: var(--white);
    font-size: 1.15rem;
  }

  .site-header.nav-open {
    transition: none;
  }

  .site-header.nav-open .brand {
    position: relative;
    z-index: 105;
  }

  .site-header.nav-open .brand-mark .logo-dark {
    opacity: 0 !important;
  }

  .site-header.nav-open .brand-mark .logo-light {
    opacity: 1 !important;
  }

  .site-header.nav-open .brand-text {
    color: var(--white) !important;
  }

  .site-header.nav-open .nav-toggle span {
    background: var(--white) !important;
  }

  .site-header.nav-open .nav-links a {
    color: var(--white) !important;
  }

  .services-grid,
  .testimonial-grid,
  .post-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form {
    padding: 1.8rem;
  }

  .story-grid {
    columns: 1;
  }
}
