/* =========================================================
   Temiskaming Yoga — light, bright, calming
   Palette pulled from logo: navy + sky blue + waves
   ========================================================= */

:root {
  --navy: #1e3a5f;
  --navy-deep: #15294a;
  --sky: #6fb1cf;
  --sky-soft: #b8dde8;
  --sky-mist: #eaf4f8;
  --sky-text: #2e6f8e;  /* darker sky for text on light backgrounds (passes WCAG AA) */
  --sage: #8aa899;
  --cream: #faf6ee;
  --cream-warm: #f3ead9;
  --paper: #ffffff;
  --ink: #2a3a4a;
  --ink-soft: #5d6b78;
  --line: #e4ecf0;

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 12px 32px rgba(30, 58, 95, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--sky); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p  { margin: 0 0 1em; }

.container {
  width: 92%;
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-text);
  margin: 0 0 0.7em;
}

/* Buttons ---------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--navy);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--paper);
}
.btn-lg {
  font-size: 1.05rem;
  padding: 1em 2em;
}

/* Header ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-tag { font-size: 0.78rem; color: var(--ink-soft); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  margin-left: auto;
  border-radius: 8px;
}
.nav-toggle:hover { background: rgba(30,58,95,0.06); }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.nav {
  margin-left: auto;
  display: flex;
  gap: 1.6rem;
}
.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { flex: 0 0 auto; }

/* Hero ------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, var(--sky-soft) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, var(--sky-mist) 0%, transparent 55%),
    var(--cream);
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-copy h1 br { display: block; }
.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 36ch;
}
.hero-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 1.4rem;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-bullets li {
  position: relative;
  padding-left: 1.4rem;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
}

.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: -22px -22px auto auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--sky-soft);
  z-index: -1;
}

/* Sections --------------------------------------------------- */
.section {
  padding: 5.5rem 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* About ------------------------------------------------------ */
.section-about {
  background: var(--paper);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.about-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.credentials {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.credentials li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
}
.credentials li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--sky-text);
  font-weight: 700;
}

/* Classes ---------------------------------------------------- */
.section-classes {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--sky-mist) 100%);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.cards-therapeutic {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.4rem;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 0.4em; }
.card-meta {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sky-text);
  letter-spacing: 0.02em;
  margin: 0 0 0.9em;
}
.card p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; }
.card-feature {
  background: linear-gradient(160deg, var(--paper) 0%, var(--sky-mist) 100%);
  border-color: var(--sky-soft);
}
.card-private {
  background: linear-gradient(160deg, var(--paper) 0%, var(--cream-warm) 100%);
  border-color: var(--cream-warm);
}
.card-therapy {
  background: var(--paper);
  border-left: 4px solid var(--sky);
}
.badge {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
}

/* Schedule --------------------------------------------------- */
.section-schedule {
  background: var(--paper);
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.day {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
}
.day h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sky-soft);
}
.slot {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
}
.slot:last-child { border-bottom: 0; padding-bottom: 0; }
.slot:first-of-type { padding-top: 0; }
.time {
  font-size: 0.85rem;
  color: var(--sky-text);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.class {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
}
.pill {
  font-family: var(--sans);
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--paper);
  padding: 0.2em 0.6em;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.schedule-foot {
  text-align: center;
  margin-top: 2rem;
  color: var(--ink-soft);
}
.schedule-foot a { font-weight: 600; }

/* Events ----------------------------------------------------- */
.section-events {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream-warm) 100%);
}
.events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--sky-mist);
  border-radius: var(--radius);
  padding: 0.9rem 0.9rem;
  min-width: 88px;
  text-align: center;
}
.event-month {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sky-text);
}
.event-day {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin: 0.15rem 0 0.2rem;
}
.event-year {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.event-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.event-body h3 { margin-bottom: 0.4em; }
.event-meta {
  font-size: 0.88rem;
  color: var(--sky-text);
  font-weight: 500;
  margin: 0 0 0.9em;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.event-meta .event-where {
  color: var(--ink-soft);
  font-weight: 400;
}
.event-body p:not(.event-meta) {
  color: var(--ink-soft);
  font-size: 0.97rem;
  flex: 1;
  margin-bottom: 1em;
}
.event-cta {
  align-self: flex-start;
  margin-top: auto;
}

/* Gallery ---------------------------------------------------- */
.section-gallery { padding: 1rem 0 4rem; background: var(--paper); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
/* Per-photo crop tuning so faces and key content stay in frame */
.gallery .g-studio   img { object-position: 28% center; } /* keep close foreground student visible */
.gallery .g-pyramid  img { object-position: center 42%; } /* keep all three figures + heads in frame */
.gallery .g-headstand img { object-position: 44% center; } /* keep the full inversion centered */
.gallery .g-drum     img { object-position: center 12%; } /* keep both faces in frame */

/* Booking ---------------------------------------------------- */
.section-book {
  background:
    linear-gradient(180deg, var(--sky-mist) 0%, var(--cream) 100%);
}
.book-inner {
  display: grid;
  grid-template-columns: 1fr;
}
.book-copy { max-width: 620px; }
.book-copy h2 { max-width: 14ch; }
.book-note {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.book-art img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* Visit ------------------------------------------------------ */
.section-visit {
  background: var(--paper);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.visit-line {
  margin-bottom: 1.2rem;
  color: var(--ink);
  line-height: 1.55;
}
.visit-line strong { color: var(--navy); font-weight: 600; }
.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--sky-mist);
}
.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer ----------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--sky-soft);
  padding: 2.4rem 0;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.footer-brand img {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  padding: 2px;
}
.footer-copy { margin: 0; font-size: 0.9rem; }
.footer-links { margin: 0; font-size: 0.9rem; }
.footer-links a { color: var(--sky-soft); }
.footer-links a:hover { color: var(--paper); }

/* Responsive ------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner { position: relative; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    padding: 0.6rem 5% 1rem;
    border-top: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(30,58,95,0.10);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .header-cta { margin-left: 0.6rem; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero-inner,
  .about-grid,
  .book-inner,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-art img { height: 380px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-therapeutic { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .events { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4rem 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-cta { padding: 0.55em 1.05em; font-size: 0.85rem; }
  .brand-tag { display: none; }
  .cards { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-art img { height: 300px; }
  .hero-art::after { display: none; }
  .event-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .event-date {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    min-width: 0;
    align-self: flex-start;
  }
  .event-day {
    font-size: 1.6rem;
    margin: 0;
  }
  .event-year { display: none; }
}
