/*
Theme Name: Pilates By NU-Media
Theme URI: https://www.nu-webandmedia.co.uk
Author: NU-Media
Author URI: https://www.nu-webandmedia.co.uk
Description: Custom WordPress theme for I'm at Pilates, built by NU-Media.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: pilates-by-nu-media
*/

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Playfair+Display:ital,wght@0,400;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --color-cream:        #F5F0EB;
  --color-brown-dark:   #4A2E1A;
  --color-brown-mid:    #7B4F2E;
  --color-text-heading: #2C1A0E;
  --color-text-body:    #6B5B4E;
  --color-star:         #C9A97A;
  --color-divider:      #D4C4B0;
  --color-white:        #FFFFFF;
  --color-footer:       #2C1A0E;
  --ease-soft:          cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-cream);
  color: var(--color-text-body);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s var(--ease-soft), box-shadow 0.28s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background-color: var(--color-brown-dark);
  color: var(--color-white);
  border-color: var(--color-brown-dark);
  box-shadow: 0 10px 24px rgba(74,46,26,0.08);
}
.btn-primary:hover {
  background-color: var(--color-brown-mid);
  border-color: var(--color-brown-mid);
  box-shadow: 0 14px 30px rgba(74,46,26,0.14);
}
.btn-outline {
  background-color: transparent;
  color: var(--color-brown-dark);
  border-color: var(--color-brown-dark);
}
.btn-outline:hover {
  background-color: var(--color-brown-dark);
  color: var(--color-white);
}
.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.75);
}
.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-brown-dark);
  border-color: var(--color-white);
}
.btn-full {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
}

/* ─── SHARED TYPOGRAPHY ─── */
.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-brown-mid);
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  line-height: 1.22;
  color: var(--color-text-heading);
}
.divider-rule {
  width: 40px;
  height: 2px;
  background-color: var(--color-brown-mid);
  border: none;
}

/* ─── NAVIGATION ─── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#site-header.scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: 0 2px 24px rgba(74,46,26,0.08);
}
nav {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--color-brown-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.nav-logo img {
  display: block;
  height: 52px;
  width: auto;
}
@media (max-width: 768px) {
  .nav-logo img { height: 42px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-heading);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-brown-dark);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { flex-shrink: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  appearance: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-brown-dark);
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu { display: none; }

/* ─── MOTION ─── */
.motion-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s var(--ease-soft), transform 0.72s var(--ease-soft);
  will-change: opacity, transform;
}
.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.motion-delay-1 { transition-delay: 0.08s; }
.motion-delay-2 { transition-delay: 0.16s; }
.motion-delay-3 { transition-delay: 0.24s; }

.hero-image img {
  transform: scale(1.03);
  transition: transform 1.6s var(--ease-soft);
}
body.is-ready .hero-image img {
  transform: scale(1);
}

/* ─── HERO ─── */
#hero {
  display: flex;
  height: calc(100vh - 74px);
  min-height: 620px;
}
.hero-image {
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  width: 47%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 68px;
  background-color: var(--color-cream);
}
.hero-inner { max-width: 420px; }
.hero-logo {
  width: calc(100% + 18px);
  max-width: none;
  display: block;
  margin: 0 -9px 26px;
}
.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  line-height: 1.13;
  color: var(--color-text-heading);
  margin-bottom: 26px;
}
.hero-heading em { font-style: italic; }
.hero-body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.85;
  margin-bottom: 38px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── ABOUT ─── */
#about {
  max-width: 1300px;
  margin: 0 auto;
  padding: 110px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.about-content .eyebrow { margin-bottom: 22px; }
.about-content .section-heading { margin-bottom: 26px; }
.about-content .divider-rule { margin-bottom: 26px; }
.about-body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.9;
  margin-bottom: 36px;
}
.about-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(74,46,26,0.1);
  aspect-ratio: 3/2;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── CLASSES ─── */
#classes {
  padding: 110px 48px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
}
.card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); }
.card-light {
  background-color: var(--color-white);
  box-shadow: 0 4px 28px rgba(74,46,26,0.07);
}
.card-light:hover {
  box-shadow: 0 14px 48px rgba(74,46,26,0.14);
}
.card-dark {
  background-color: var(--color-brown-dark);
}
.card-dark:hover {
  box-shadow: 0 14px 48px rgba(74,46,26,0.35);
}
.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body { padding: 30px 28px; }
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem;
  color: var(--color-text-heading);
  margin-bottom: 10px;
}
.card-dark .card-title { color: var(--color-white); }
.card-caption {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.84rem;
  color: var(--color-text-body);
  line-height: 1.72;
  margin-bottom: 22px;
}
.card-dark .card-caption { color: rgba(255,255,255,0.72); }
.card-link {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-brown-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}
.card-dark .card-link { color: var(--color-star); }
.card-link:hover { color: var(--color-brown-dark); }
.card-dark .card-link:hover { color: var(--color-white); }

/* ─── WHY MEMBERS ─── */
#why {
  padding: 100px 48px;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px;
  max-width: 1300px;
  margin: 56px auto 0;
}
.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.why-icon {
  width: 48px;
  height: 48px;
  color: var(--color-brown-mid);
}
.why-label {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-heading);
}
.why-desc {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--color-text-body);
  line-height: 1.65;
}

/* ─── TESTIMONIAL ─── */
#testimonial {
  position: relative;
  padding: 120px 48px;
  background-color: var(--color-brown-dark);
  text-align: center;
  overflow: hidden;
}
.testimonial-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/reformerPilatesStudioWithLight.png');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  filter: blur(6px);
  transform: scale(1.05);
}
.testimonial-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.3rem;
  color: var(--color-white);
  line-height: 1.38;
  margin-bottom: 34px;
}
.stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 1.35rem;
  color: var(--color-star);
  line-height: 1;
}

/* ─── MEMBERSHIPS ─── */
#memberships {
  padding: 110px 48px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1020px;
  margin: 60px auto 0;
}
.pricing-card {
  border-radius: 16px;
  padding: 44px 38px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card-light {
  background-color: var(--color-white);
  box-shadow: 0 4px 28px rgba(74,46,26,0.07);
}
.pricing-card-light:hover {
  box-shadow: 0 14px 48px rgba(74,46,26,0.14);
}
.pricing-card-dark {
  background-color: var(--color-brown-dark);
}
.pricing-card-dark:hover {
  box-shadow: 0 14px 48px rgba(74,46,26,0.4);
}
.popular-badge {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background-color: var(--color-star);
  color: var(--color-brown-dark);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.pricing-title {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-brown-mid);
  margin-bottom: 14px;
}
.pricing-card-dark .pricing-title { color: rgba(255,255,255,0.55); }
.pricing-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  line-height: 1.2;
  color: var(--color-text-heading);
  margin-bottom: 8px;
}
.pricing-card-dark .pricing-amount { color: var(--color-white); }
.pricing-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--color-text-body);
  margin-bottom: 36px;
}
.pricing-card-dark .pricing-sub { color: rgba(255,255,255,0.6); }

/* ─── BOOK / MOMENCE SCHEDULE ─── */
#book {
  padding: 40px 48px 72px;
  scroll-margin-top: 90px;
}
#book .section-header {
  margin-bottom: 16px;
}
#book .section-heading {
  font-size: 2rem;
}
#about,
#classes,
#why,
#memberships,
#footer {
  scroll-margin-top: 90px;
}
#momence-plugin-host-schedule {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* ─── FOOTER ─── */
footer {
  background-color: var(--color-footer);
  padding: 86px 48px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr 1fr;
  gap: 64px;
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--color-white);
  display: block;
  margin-bottom: 12px;
  text-decoration: none;
}
.footer-logo img {
  display: block;
  height: 72px;
  width: auto;
}
.footer-tagline {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.footer-col-title {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 22px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.22s ease;
}
.footer-links a:hover { color: var(--color-white); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact span {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding: 26px 0;
  text-align: center;
}
.footer-bottom p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

/* ─── WHY ICONS (PNG, tinted to mid-brown on cream bg) ─── */
.why-icon-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  /* Convert cream icon → mid-brown (#7B4F2E) */
  filter: brightness(0) saturate(100%) invert(33%) sepia(41%) saturate(714%) hue-rotate(347deg) brightness(97%) contrast(96%);
}

/* ─── FOOTER CONTACT WITH ICONS ─── */
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-item--top {
  align-items: flex-start;
}
.contact-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.55;
}

/* ─── FOOTER SOCIAL PNG ICONS ─── */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.22s ease;
  text-decoration: none;
}
.social-link:hover { opacity: 1; }
.social-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  nav { padding: 0 24px; }
  body.menu-open { overflow: hidden; }

  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0 24px;
    background-color: var(--color-cream);
    border-top: 1px solid transparent;
    transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.32s ease, border-color 0.22s ease;
  }
  .mobile-menu.is-open {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;
    padding: 12px 24px 24px;
    border-top-color: var(--color-divider);
  }
  .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 10px 0 22px;
  }
  .mobile-nav-links a {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-heading);
    text-decoration: none;
  }
  .mobile-nav-cta {
    display: block;
    width: 100%;
    text-align: center;
  }

  #hero { flex-direction: column; height: auto; min-height: unset; }
  .hero-image {
    width: 100%;
    height: clamp(220px, 52vw, 320px);
    min-height: unset;
  }
  .hero-content { width: 100%; padding: 56px 28px; }
  .hero-logo {
    width: 100%;
    margin: 0 0 24px;
  }
  .hero-heading { font-size: 2.35rem; }

  #about {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 28px;
  }
  .about-image { order: -1; }

  #classes { padding: 80px 24px; }
  .cards-grid { grid-template-columns: 1fr; }

  #why { padding: 80px 24px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }

  #testimonial { padding: 80px 28px; }
  .testimonial-quote { font-size: 1.65rem; }

  #memberships { padding: 80px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }

  #book { padding: 32px 24px 56px; }

  footer { padding: 60px 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  .section-heading { font-size: 1.85rem; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  #about { padding: 64px 20px; }
  #classes { padding: 64px 20px; }
  .hero-content { padding: 48px 22px; }
  .mobile-menu { padding: 0 20px; }
  .mobile-menu.is-open { padding: 12px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .card,
  .pricing-card,
  .mobile-menu,
  .hamburger span,
  .hero-image img,
  .motion-reveal {
    transition: none !important;
  }
  .motion-reveal {
    opacity: 1;
    transform: none;
  }
  .btn:hover,
  .card:hover,
  .pricing-card:hover {
    transform: none;
  }
}

/* WordPress admin bar: keep sticky header below it */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}

/* Prevent WP core from fighting the reset */
#wpadminbar { z-index: 99999; }
