/* ============================================================
   Cocoa Beach Yoga — v2
   Changes: mobile hero framing, tighter section gaps,
   more air between image / title / text, social icon.
   ============================================================ */

:root {
  --cream:  #FAF8F2;
  --beige:  #F0E7DE;
  --green:  #3A5240;
  --text:   #2E2E2E;
  --muted:  #4A4A4A;
  --wrap:   1120px;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Questrial", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--green); }

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

h1, h2, h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400;
  color: var(--green);
  margin: 0;
  line-height: 1.15;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.spacer { margin-top: 1.75rem; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Hero (sticky reveal) ----------
   The whole hero — photo and title together — pins to the top,
   and the rest of the page scrolls up over it. Same behaviour as
   the Wix original. Pure CSS, no JS.
   NOTE: .hero itself must be the sticky element. Making the image
   sticky instead does nothing, because it fills its parent and
   has no room to stick. */

.hero {
  position: relative;
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero {
    position: sticky;
    top: 0;
    z-index: 0;
  }
  /* Opaque so it hides the hero as it passes over. */
  .content {
    position: relative;
    z-index: 1;
    background: var(--cream);
  }
}

.hero-img {
  width: 100%;
  height: clamp(420px, 92vh, 900px);
  object-fit: cover;
  object-position: 58% 40%;   /* shifts frame right, away from the title */
}

.hero-title {
  position: absolute;
  left: clamp(1.5rem, 5vw, 5.5rem);
  bottom: clamp(1.5rem, 6vw, 5rem);
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.02;
  color: var(--green);
}

/* Phone framing — keeps Netta and the boys inside the crop.
   Tune object-position X between 55% and 75% if needed. */
@media (max-width: 700px) {
  .hero-img {
    height: 82vh;
    object-position: 62% 35%;
  }
  /* bigger gap between the hero and the About photo — phones only */
  .about { padding-top: 5.5rem; }
  /* she asked for tighter gaps above the headings on phones */
  .classes  { padding-top: 1.25rem; }
  .teaching { padding-top: 1rem; }
  .find     { padding-top: 1rem; }
  .hero-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
    left: 1.25rem;
    bottom: 1.5rem;
  }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: clamp(2rem, 5vw, 4.5rem);   /* cream gap under the hero */
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.about-copy {
  padding: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  align-self: center;
  max-width: 44rem;
}

.about-copy h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-bottom: 1.75rem;
}

.about-copy p { font-size: 1.1rem; }

@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about-media img { height: 100%; min-height: 620px; }
}

/* ---------- Sections ---------- */

.classes  { padding: clamp(1.75rem, 3.5vw, 3rem) 0 clamp(2rem, 4vw, 3rem); }
.teaching { padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem); }
.find     { padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(3rem, 6vw, 4.5rem); }

.classes h2,
.teaching h2,
.find h2,
.write h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* ---------- 3-column grids ---------- */

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

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

.item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1.9rem;     /* was 1.4 — more air under the photo */
}

.item h3 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;    /* was 1 — more air under the title */
}

.item p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
}

.seeyou {
  margin-top: 1.25rem;
  color: var(--muted);
}

/* ---------- Find me ---------- */

.find-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .find-grid { grid-template-columns: 1fr 1fr; }
}

.find-map iframe {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 0;
}

.find-copy h2 { margin-bottom: 1.5rem; }
.find-copy p { font-size: 1.05rem; }

/* ---------- Write to me ---------- */

.write {
  background: var(--beige);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

/* Copy on the left, logo on the right. One column on phones, with the
   logo dropping below the text. */
.write-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .write-grid { grid-template-columns: 1fr auto; }
}

/* Transparent PNG — no clipping, no background, nothing drawn behind it.
   Held to the far right of the section with breathing room off the edge. */
.write-logo {
  display: flex;
  justify-content: center;
}

.write-logo img {
  width: 150px;
  height: auto;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  align-self: center;
  background: none;
  border: 0;
}

@media (min-width: 900px) {
  .write-logo {
    justify-content: flex-end;
    padding-right: clamp(1rem, 4vw, 3rem);
  }
}

@media (max-width: 480px) {
  .write-logo img { width: 130px; max-width: 130px; }
}

.write h2 { margin-bottom: 1.5rem; }
.write p { font-size: 1.05rem; margin-bottom: 0.35rem; }
.write .plain { text-decoration: none; }

.social {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}
.social a {
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  transition: opacity 150ms ease;
}
.social a:hover { opacity: 0.65; }

/* ---------- Footer ---------- */

.foot {
  background: var(--cream);
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem clamp(2rem, 4vw, 3rem);
}

.foot-name {
  font-family: "EB Garamond", Georgia, serif;
  color: var(--green);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot-line a {
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
}
.foot-line a:hover { opacity: 0.65; }

.foot-fine {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: #7A7A7A;
}
