/* ==========================================================================
   Greenwich Pilates redesign
   Loaded after assets/css/style.css. Removing this file's enqueue line in
   functions.php switches the whole site back to the old look.
   ========================================================================== */

:root {
  --gp-ink: #1C2421;
  --gp-muted: #46524D;
  --gp-green: #2F5D50;
  --gp-green-dark: #244A40;
  --gp-wave: #93CC9A;
  --gp-stone: #F3F4F1;
  --gp-line: #E1E4DE;
  --gp-dark: #29322E;
  --gp-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
body { font-family: var(--gp-font); color: var(--gp-muted); }
h1, h2, h3, h4, h5, h6 { font-family: var(--gp-font); color: var(--gp-ink); }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; }
a { color: var(--gp-green); }
a:hover { color: var(--gp-green-dark); }

.btn-primary,
.btn-primary:focus,
.btn-check:focus + .btn-primary { background: var(--gp-green); border-color: var(--gp-green); color: #fff; border-radius: 999px; }
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active { background: var(--gp-green-dark); border-color: var(--gp-green-dark); color: #fff; }
.btn-outline-primary { border-color: var(--gp-green); color: var(--gp-green); border-radius: 999px; }
.btn-outline-primary:hover { background: var(--gp-green); border-color: var(--gp-green); color: #fff; }
.current { background-color: var(--gp-green) !important; }

/* ---------- Header (all pages) ---------- */
.header { background: #fff; box-shadow: none; border-bottom: 1px solid var(--gp-line); transition: background-color .25s ease, border-color .25s ease; }
.mainNavbar .nav-link { color: var(--gp-ink); font-weight: 500; }
#navbarSupportedContent .navbar-nav > li .nav-link { font-size: 15px; }
.mainNavbar .nav-link:hover,
.mainNavbar .nav-link:focus { color: var(--gp-green); }
.header .btn-primary { border-radius: 999px; padding: 9px 20px; text-transform: none; font-weight: 500; }
.header .dropdown-menu { border: 1px solid var(--gp-line); border-radius: 12px; padding: 8px; font-size: 15px; box-shadow: 0 12px 30px rgba(28, 36, 33, .08); }
.header .dropdown-item { border-radius: 8px; color: var(--gp-ink); }
.header .dropdown-item:hover,
.header .dropdown-item:focus { background: var(--gp-stone); color: var(--gp-ink); }
.header .dropdown-item.active,
.header .dropdown-item:active { background: var(--gp-green); color: #fff; }
.gp-logo--light { display: none; }
/* Keep the header exactly as tall as the space the page leaves for it. */
.mainNavbar { min-height: 90px; }
@media (max-width: 768px) { .mainNavbar { min-height: 75px; } }
@media (max-width: 480px) { .mainNavbar { min-height: 65px; } }

/* On every page the header sits in the page flow, below the promotion bar when that is shown,
   and sticks to the top of the screen once you scroll. */
body.gp-home, body.gp-inner { padding-top: 0; }
.header.fixed-top { position: -webkit-sticky; position: sticky; top: 0; }

/* Homepage on a wide screen: the header sits over the photo until the page is scrolled. */
@media (min-width: 1200px) {
  /* The photo is pulled up behind the see-through header. */
  .gp-home .gp-hero { margin-top: -91px; }
  .gp-home .header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; }
  .gp-home .header:not(.is-scrolled) .gp-logo--main { display: none; }
  .gp-home .header:not(.is-scrolled) .gp-logo--light { display: block; }
  .gp-home .header:not(.is-scrolled) .navbar-nav > li > .nav-link { color: #fff; }
  .gp-home .header:not(.is-scrolled) .navbar-nav > li > .nav-link:hover { color: var(--gp-wave); }
  .gp-home .header:not(.is-scrolled) .btn-primary { background: #fff; border-color: #fff; color: var(--gp-ink); }
  .gp-home .header:not(.is-scrolled) .btn-search img { filter: brightness(0) invert(1); }
}

/* When you are logged in, keep the header below the WordPress admin bar. */
body:has(#wpadminbar) .header { top: 32px; }
@media (max-width: 782px) { body:has(#wpadminbar) .header { top: 46px; } }
@media (max-width: 600px) { body:has(#wpadminbar) .header { top: 0; } }

/* ---------- Page title strip (replaces the photo banner on inner pages) ---------- */
.secBanner { background-image: none !important; background-color: var(--gp-stone); height: auto; padding: 56px 0 48px; justify-content: flex-start; text-align: left; }
.secBanner h1 { color: var(--gp-ink); text-transform: none; letter-spacing: -0.02em; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; margin: 0; }
.secBanner p { color: var(--gp-muted); font-weight: 400; font-size: 18px; margin-top: 12px; }
.secBanner p:empty { display: none; }

/* ---------- Filter buttons on the navigation pages ---------- */
.list-filters { justify-content: flex-start; margin: 0 -5px 24px; }
.list-filters li { background: #fff !important; color: var(--gp-ink); border: 1px solid #C9CFC8; border-radius: 999px; padding: 10px 20px; font-size: 15px; font-weight: 500; line-height: 1.4; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.list-filters li:hover { border-color: var(--gp-green); }
.list-filters li.active { background: var(--gp-green) !important; border-color: var(--gp-green); color: #fff; }
.list-filters li:empty { display: none; }

/* ---------- Photo cards on the navigation pages ---------- */
.grid-item { width: 25%; max-width: none; padding: 10px; }
.tabs-res .rows.grid { margin-left: -10px; margin-right: -10px; }
.cardWellness,
.cardPilates { display: block; position: relative; aspect-ratio: 4 / 5; border: none; border-radius: 18px; overflow: hidden; background: #D9DDD6; box-shadow: none; color: var(--gp-ink); }
.cardWellness:hover,
.cardPilates:hover { transform: none; box-shadow: none; color: var(--gp-ink); }
.cardWellness > img,
.cardPilates > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; transition: transform .5s ease; }
.cardWellness:hover > img,
.cardPilates:hover > img { transform: scale(1.03); }
.cardWellness .card-body,
.cardPilates .card-body { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border-radius: 12px; padding: 12px 16px; flex: none; }
.cardWellness .card-body h4,
.cardPilates .card-body h4 { font-size: 17px; font-weight: 500; line-height: 1.3; margin: 0; text-align: left !important; color: var(--gp-ink); }
.cardWellness .card-body h6,
.cardPilates .card-body h6 { font-size: 14px; font-weight: 400; line-height: 1.4; margin: 4px 0 0; text-align: left !important; color: var(--gp-muted); }
.cardPilates .card-body .card-text { font-size: 14px; margin: 4px 0 0; }
.gp-card-tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-green); margin-bottom: 2px; }
@media (max-width: 1199px) { .grid-item { width: 33.333%; } }
@media (max-width: 768px) { .grid-item { width: 50%; max-width: none; } }
@media (max-width: 480px) { .grid-item { width: 100%; max-width: none; } }

/* ---------- Footer (all pages) ---------- */
.footer { background: var(--gp-ink); }
.footer .leftSide { width: 100%; background: transparent; padding: 64px 24px 40px 0; }
.footer .rightSide { display: none !important; }
.footer .footCaption { padding-left: 12px; }
.gp-foot-logo { display: block; width: 240px; max-width: 70%; height: auto; margin-bottom: 28px; }
.footer p,
.footer .text-white { color: #D5DBD8 !important; font-size: 15px; }
.footer .footCaption > p:first-of-type { color: #fff !important; font-weight: 500; }
.footer a { color: #fff; }
.footer a:hover { color: var(--gp-wave); }
.foot-sm a { padding: 10px 14px 10px 0; }
.foot-links { margin-top: 20px; font-size: 14px; }
.foot-links .list-inline-item { margin-right: 20px; }
.footBtm { background: var(--gp-ink); border-top: 1px solid #3A4540; padding: 18px 0; }
.footBtm p { color: #B7C0BB; font-size: 14px; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.gp-h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; font-weight: 400; letter-spacing: -0.02em; margin: 0; color: var(--gp-ink); }
.gp-section { padding: 96px 0; }
.gp-section__head { margin-bottom: 48px; }
.gp-section__head p { margin: 14px 0 0; }
.gp-section__head--center { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }
.gp-section__head--split { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.gp-section__foot { text-align: center; margin-top: 48px; }
.gp-link { color: var(--gp-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; }

.gp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 16px; line-height: 1.3; text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.gp-btn--white { background: #fff; color: var(--gp-ink); }
.gp-btn--white:hover { background: var(--gp-stone); color: var(--gp-ink); }
.gp-btn--ghost { border-color: #fff; color: #fff; }
.gp-btn--ghost:hover { background: #fff; color: var(--gp-ink); }
.gp-btn--green { background: var(--gp-green); color: #fff; }
.gp-btn--green:hover { background: var(--gp-green-dark); color: #fff; }

/* Hero */
.gp-hero { position: relative; background-color: var(--gp-dark); background-size: cover; background-position: center; color: #fff; }
.gp-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 26, 23, .78) 0%, rgba(20, 26, 23, .5) 45%, rgba(20, 26, 23, .15) 100%); }
.gp-hero__inner { position: relative; min-height: 760px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-top: 190px; padding-bottom: 44px; }
.gp-hero__text { max-width: 620px; display: flex; flex-direction: column; gap: 22px; }
.gp-hero__title { color: #fff; font-size: clamp(38px, 5vw, 60px); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; margin: 0; }
.gp-hero__lead { color: #E3E8E5; font-size: 18px; line-height: 1.55; margin: 0; max-width: 520px; }
.gp-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.gp-hero__studios { display: flex; flex-wrap: wrap; gap: 20px 64px; }
.gp-hero__studio-name { font-size: 22px; font-weight: 500; color: #fff; }
.gp-hero__studio-address { font-size: 15px; color: #E3E8E5; }

/* Intro */
.gp-intro { background: var(--gp-stone); }
.gp-intro__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 96px; align-items: start; }
.gp-intro__head .gp-h2 { position: -webkit-sticky; position: sticky; top: 130px; }
.gp-intro__side { max-width: 680px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.gp-intro__text { font-size: 17px; line-height: 1.7; }
.gp-intro__text p { margin: 0 0 1em; }
.gp-intro__text p:first-child { font-size: 21px; line-height: 1.5; color: var(--gp-ink); }
.gp-intro__text p:last-child { margin-bottom: 0; }
@media (max-width: 991px) {
  .gp-intro__head { grid-template-columns: minmax(0, 1fr); }
  .gp-intro__head .gp-h2 { position: static; }
  .gp-intro__text p:first-child { font-size: 19px; }
}
.gp-intro__photos { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 64px; align-items: center; }
.gp-intro__photo { border-radius: 18px; object-fit: cover; min-width: 0; }
.gp-intro__photo--tall { flex: 1 1 280px; height: 440px; }
.gp-intro__photo--wide { flex: 2 1 420px; height: 380px; }

/* Class cards */
.gp-classes { background: #fff; }
.gp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.gp-card { position: relative; display: block; height: 400px; border-radius: 18px; overflow: hidden; background: #C9D0C8; color: var(--gp-ink); }
.gp-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gp-card:hover .gp-card__img { transform: scale(1.03); }
.gp-card__label { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border-radius: 12px; padding: 14px 16px; display: block; }
.gp-card__title { display: block; font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--gp-ink); }
.gp-card__text { display: block; font-size: 14px; line-height: 1.45; color: var(--gp-muted); margin-top: 2px; }

/* News */
.gp-news { background: var(--gp-stone); }
.gp-news__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.gp-news__item { background: #fff; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; color: var(--gp-ink); transition: transform .2s ease; }
.gp-news__item:hover { color: var(--gp-ink); transform: translateY(-3px); }
.gp-news__date { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gp-green); }
.gp-news__title { font-size: 21px; font-weight: 500; line-height: 1.25; }
.gp-news__text { font-size: 15px; color: var(--gp-muted); flex-grow: 1; }
.gp-news__more { font-size: 15px; font-weight: 500; }

/* Closing band */
.gp-cta { position: relative; background-color: var(--gp-dark); background-size: cover; background-position: center; color: #fff; }
.gp-cta::before { content: ""; position: absolute; inset: 0; background: rgba(20, 26, 23, .62); }
.gp-cta__inner { position: relative; padding-top: 96px; padding-bottom: 64px; }
.gp-cta__text { max-width: 560px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.gp-cta__text .gp-h2 { color: #fff; }
.gp-cta__text p { color: #E3E8E5; font-size: 17px; margin: 0; }
.gp-cta__boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 72px; }
.gp-cta__box { background: #fff; color: var(--gp-ink); border-radius: 14px; padding: 26px; display: block; transition: transform .2s ease; }
.gp-cta__box:hover { color: var(--gp-ink); transform: translateY(-3px); }
.gp-cta__box-title { display: block; font-size: 21px; font-weight: 500; margin-bottom: 6px; }
.gp-cta__box-text { display: block; font-size: 15px; color: var(--gp-muted); }

@media (max-width: 1199px) {
  .gp-hero__inner { min-height: 560px; padding-top: 72px; }
}
@media (max-width: 768px) {
  .gp-section { padding: 64px 0; }
  .gp-hero::before { background: rgba(20, 26, 23, .62); }
  .gp-hero__inner { min-height: 0; padding-top: 56px; padding-bottom: 36px; }
  .gp-intro__photos { margin-top: 40px; gap: 16px; }
  .gp-intro__photo--tall,
  .gp-intro__photo--wide { height: 300px; flex-basis: 100%; }
  .gp-card { height: 320px; }
  .gp-cta__inner { padding-top: 64px; padding-bottom: 48px; }
  .gp-cta__boxes { margin-top: 48px; }
  .secBanner { padding: 36px 0 30px; background-size: auto; }
  .footer .leftSide { padding: 48px 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .gp-card__img, .cardWellness > img, .cardPilates > img, .gp-news__item, .gp-cta__box, .header { transition: none; }
}
