/* Powell Pilates — site styles */
:root {
  --ivory: #f6f2ec;
  --sand: #e9e1d6;
  --stone: #b9ab99;
  --clay: #9a7b62;
  --ink: #1f1c19;
  --ink-soft: #57504a;
  --white: #fffdfa;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 300 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--sand); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(48px, 8vw, 112px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
p { margin: 0 0 1.2em; max-width: 62ch; }
em { font-family: var(--serif); font-style: italic; font-size: 1.12em; }

.eyebrow {
  display: block;
  font: 400 12px/1 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 22px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--ink .eyebrow { color: var(--stone); }
.lede { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; color: var(--ink); max-width: 30ch; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border: 1px solid currentColor;
  font: 400 12px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.link {
  font: 400 12px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--stone);
}
.link:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.site-header--overlay { color: var(--white); }
.site-header.is-solid { background: rgba(246, 242, 236, .96); color: var(--ink); box-shadow: 0 1px 0 rgba(31, 28, 25, .08); backdrop-filter: blur(8px); }
.brand { font: 400 26px/1 var(--serif); letter-spacing: .04em; text-decoration: none; }
.brand small { display: block; margin-top: 6px; font: 400 9.5px/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; opacity: .75; }
.nav { display: flex; gap: 38px; align-items: center; }
.nav a { font: 400 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: currentColor; }
.nav .btn { padding: 13px 22px; border-bottom: 1px solid currentColor; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px 0; transition: transform .3s var(--ease); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--ivory); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a { font-size: 14px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--ink); }
  .nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 32% 40%; transform: scale(1.04); animation: settle 2.4s var(--ease) forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,14,.5) 0%, rgba(20,17,14,0) 30%, rgba(20,17,14,0) 45%, rgba(20,17,14,.68) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(56px, 9vw, 120px); display: flex; flex-direction: column; align-items: flex-end; text-align: right; text-shadow: 0 1px 18px rgba(20,17,14,.5), 0 0 2px rgba(20,17,14,.35); }
.hero .wrap p { max-width: none; }
.hero h1 { margin-bottom: .25em; }
.hero .eyebrow { color: rgba(255, 253, 250, .85); }
.hero p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); margin: 0 0 36px; }
@keyframes settle { to { transform: scale(1); } }

.page-hero { position: relative; height: 72vh; min-height: 460px; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,14,.5), rgba(20,17,14,0) 30%, rgba(20,17,14,0) 50%, rgba(20,17,14,.6)); }
.page-hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(44px, 7vw, 88px); }
.page-hero .eyebrow { color: rgba(255, 253, 250, .85); }
.page-hero h1 { margin: 0; font-size: clamp(44px, 7vw, 96px); }

/* Layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.split--wide-img { grid-template-columns: 1.15fr 1fr; }
.split__img { position: relative; }
.split__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__img--offset::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--stone); z-index: -1; }
.reverse .split__img { order: 2; }
@media (max-width: 860px) {
  .split, .split--wide-img { grid-template-columns: 1fr; }
  .reverse .split__img { order: 0; }
  .split__img--offset::before { display: none; }
}

.intro { text-align: center; }
.intro .lede, .intro p { margin-left: auto; margin-right: auto; }
.intro .lede { max-width: 26ch; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(31,28,25,.12); border-top: 1px solid rgba(31,28,25,.12); border-bottom: 1px solid rgba(31,28,25,.12); margin-top: 72px; }
.pillars div { background: var(--ivory); padding: 44px 28px; }
.section--sand .pillars div { background: var(--sand); }
.pillars span { font: 400 italic 44px/1 var(--serif); color: var(--clay); display: block; margin-bottom: 18px; }
.pillars h3 { font-size: 24px; margin-bottom: 8px; }
.pillars p { font-size: 15px; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

.facts { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid rgba(31,28,25,.15); }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(31,28,25,.15); font-size: 15.5px; }
.facts b { font: 400 italic 22px/1.2 var(--serif); color: var(--clay); }

/* Quote */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 30ch; font: 400 clamp(28px, 3.6vw, 46px)/1.3 var(--serif); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 1.8em; line-height: .6; color: var(--clay); margin-bottom: 20px; }
.quote cite { display: block; margin-top: 36px; font: 400 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; font-style: normal; color: var(--stone); }
.quote--long blockquote { max-width: 40ch; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.55; }

/* Gallery */
.gallery { columns: 3 320px; column-gap: 18px; }
.gallery figure { margin: 0 0 18px; break-inside: avoid; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery a { display: block; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(20,17,14,.94); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--ivory); font: 300 36px/1 var(--sans); padding: 16px; cursor: pointer; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.credit { margin-top: 28px; font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); }

.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.strip img { width: 100%; height: clamp(260px, 38vw, 560px); object-fit: cover; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; } .strip img:first-child { grid-column: 1 / -1; } }

/* CTA band */
.cta { position: relative; color: var(--white); text-align: center; overflow: hidden; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(20,17,14,.62); }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 28px; }
.cta p { margin: 0 auto 40px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 112px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 26px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 10px; font: 400 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.form input, .form textarea, .form select {
  font: 300 17px/1.5 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(31,28,25,.3);
  padding: 10px 0; border-radius: 0; outline: none; width: 100%;
  transition: border-color .3s var(--ease);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); }
.form button { justify-self: start; background: none; color: var(--ink); cursor: pointer; }
.form-msg { font: 400 italic 24px/1.4 var(--serif); color: var(--clay); }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid rgba(31,28,25,.15); font-size: 15.5px; }
.contact-list span { display: block; font: 400 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--clay); margin-bottom: 8px; }
.contact-list a { text-decoration: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--stone); padding: 96px 0 40px; font-size: 14px; }
.site-footer .brand { color: var(--ivory); font-size: 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 72px; border-bottom: 1px solid rgba(185,171,153,.2); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 18px; font: 400 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ivory); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.site-footer p { margin: 18px 0 0; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 12.5px; letter-spacing: .04em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* Testimonials list */
.tlist { max-width: 860px; }
.testimonial { margin: 0; padding: 64px 0; border-top: 1px solid rgba(31,28,25,.15); display: grid; grid-template-columns: 72px 1fr; gap: 0 32px; }
.testimonial:first-child { border-top: 0; padding-top: 0; }
.testimonial__n { font: 400 italic 30px/1 var(--serif); color: var(--clay); padding-top: 6px; }
.testimonial blockquote { margin: 0; font: 400 clamp(20px, 2vw, 25px)/1.6 var(--serif); }
.testimonial blockquote p { max-width: none; }
.testimonial figcaption { grid-column: 2; margin-top: 8px; font: 400 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 600px) { .testimonial { grid-template-columns: 1fr; } .testimonial figcaption { grid-column: 1; } .testimonial__n { margin-bottom: 18px; } }
.split__img--wide img { aspect-ratio: 3 / 2; }

/* Split hero: text panel beside the photo, so the image never sits under the title */
.hero--split { display: grid; grid-template-columns: minmax(380px, 2fr) 3fr; align-items: stretch; padding-top: 88px; background: var(--ivory); color: var(--ink); }
.hero--split::after { display: none; }
.hero--split .hero__text { display: flex; align-items: center; padding: 56px clamp(32px, 4vw, 72px) 72px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero--split .eyebrow { color: var(--clay); }
.hero--split h1 { font-size: clamp(52px, 6.4vw, 104px); }
.hero--split p { color: var(--ink-soft); line-height: 1.35; }
.hero--split .hero__media { position: relative; overflow: hidden; }
.hero--split .hero__img { object-position: 40% center; }
@media (max-width: 860px) {
  .hero--split { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .hero--split .hero__media { order: -1; height: 58svh; min-height: 320px; }
  .hero--split .hero__text { padding: 44px var(--gutter) 64px; }
}
