/*
Theme Name: Yoggilo
Theme URI: https://www.yoggilo.online
Author: Yoggilo
Author URI: https://www.yoggilo.online
Description: One-page WordPress theme for yoga studios. Home, Classes, About, Services, and Contact. Language: English.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yoggilo
Tags: one-page, custom-menu, featured-images, translation-ready
*/

:root {
  --forest: #14352e;
  --forest-deep: #0d241f;
  --leaf: #3d6b4f;
  --sage: #9bb396;
  --mist: #e7efe4;
  --cream: #f6f1e8;
  --sand: #ece4d4;
  --ink: #1b221e;
  --ink-soft: #3d4a43;
  --muted: #6d7a72;
  --gold: #c4a15a;
  --line: rgba(20, 53, 46, 0.12);
  --header-h: 88px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.is-broken {
  min-height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--mist), var(--sand));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--leaf);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: var(--sage);
}

h1,
h2,
h3,
.serif {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero,
.section {
  scroll-margin-top: var(--header-h);
}

.section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  margin: 12px 0 0;
}

.section-head p {
  max-width: 36ch;
  color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  background: var(--gold);
  color: var(--forest-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  background: #d4b56d;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--forest);
}

.btn-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--leaf);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header — floating pill */
.site-header {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header-shell {
  pointer-events: auto;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled .header-shell,
body:not(.home):not(.front-page) .header-shell {
  background: rgba(246, 241, 232, 0.96);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(20, 53, 46, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
  white-space: nowrap;
  font-weight: 600;
}

.site-header.is-scrolled .logo,
body:not(.home):not(.front-page) .logo {
  color: var(--forest);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 62%, var(--gold) 0 5px, transparent 6px),
    conic-gradient(from 210deg, var(--sage), var(--leaf), var(--forest), var(--sage));
  flex-shrink: 0;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 60;
  border-radius: 50%;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle span {
  top: 50%;
}

.nav-toggle::before {
  top: 15px;
}

.nav-toggle::after {
  bottom: 15px;
}

.nav-toggle.is-open span {
  opacity: 0;
}

.nav-toggle.is-open::before {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle.is-open::after {
  bottom: 21px;
  transform: rotate(-45deg);
}

.primary-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.site-header.is-scrolled .primary-nav a,
body:not(.home):not(.front-page) .primary-nav a {
  color: var(--ink-soft);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--gold);
}

.site-header.is-scrolled .primary-nav a:hover,
.site-header.is-scrolled .primary-nav a.is-active,
body:not(.home):not(.front-page) .primary-nav a:hover,
body:not(.home):not(.front-page) .primary-nav a.is-active {
  color: var(--leaf);
}

/* Hero — full-bleed photo, copy in a glass panel */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 36, 31, 0.18) 0%, rgba(13, 36, 31, 0.28) 38%, rgba(13, 36, 31, 0.82) 100%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 36px;
  max-width: 640px;
  align-self: flex-start;
  margin-left: max(20px, calc((100% - 1120px) / 2));
  animation: fadeUp 1s var(--ease) both;
}

.hero-content h1 {
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.94;
  margin: 16px 0 18px;
  font-weight: 600;
}

.hero-content > p {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(13, 36, 31, 0.72);
  backdrop-filter: blur(12px);
}

.hero-facts li {
  padding: 22px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-facts li:last-child {
  border-right: 0;
}

.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 4px;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Classes — sticky intro + stacked rows */
.classes {
  background: var(--cream);
}

.classes-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 56px;
  align-items: start;
}

.classes-intro {
  position: sticky;
  top: 110px;
}

.classes-intro h2 {
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.08;
  margin: 12px 0 16px;
}

.classes-intro p {
  color: var(--muted);
  margin: 0;
}

.class-list {
  display: grid;
  gap: 14px;
}

.class-row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 20px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(20, 53, 46, 0.05);
}

.class-row img {
  width: 168px;
  height: 132px;
  object-fit: cover;
  border-radius: 16px;
}

.class-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.class-row h3 {
  margin: 0;
  font-size: 26px;
}

.class-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--leaf);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.class-row p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* About — full-bleed banner, 3 columns, quote feature */
.about {
  background: var(--forest);
  color: #fff;
  padding-top: 0;
}

.about-banner {
  position: relative;
  min-height: 420px;
  margin-bottom: 64px;
}

.about-banner img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-banner-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 24px 40px;
  background: linear-gradient(180deg, transparent, rgba(13, 36, 31, 0.88));
}

.about-banner-copy h2 {
  width: min(1120px, calc(100% - 40px));
  margin: 10px auto 0;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.08;
}

.about-banner-copy .eyebrow {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.about-columns h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.about-columns p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.about-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 56px;
}

.about-feature img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 24px;
}

.about-feature blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.about-feature p {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  font-style: italic;
  margin: 0 0 16px;
}

.about-feature cite {
  color: var(--sage);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-bar div {
  padding: 28px 12px 8px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-bar div:last-child {
  border-right: 0;
}

.stat-bar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-bar span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Services — photo bento */
.services {
  background: var(--sand);
}

.service-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 16px;
}

.service-tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 220px;
}

.service-tile.featured {
  grid-row: 1 / span 2;
}

.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.service-tile-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, transparent, rgba(13, 36, 31, 0.88));
  color: #fff;
}

.service-tile-copy span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 700;
}

.service-tile-copy h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.service-tile-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

/* Contact — forest panel + cream form + inset map */
.contact {
  background: var(--forest-deep);
  color: #fff;
  padding-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 72px;
}

.contact-panel h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  margin: 12px 0 16px;
}

.contact-panel > p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
  max-width: 42ch;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin: 0;
}

.contact-details dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-details dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.45;
}

.contact-details a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--cream);
  color: var(--ink);
  border-radius: 28px;
  padding: 36px 32px;
}

.contact-form h3 {
  font-size: 32px;
  margin: 0 0 6px;
}

.form-lead {
  color: var(--muted);
  margin: 0 0 22px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--leaf);
}

.form-note {
  margin: 14px 0 0;
  min-height: 24px;
  color: var(--leaf);
  font-size: 14px;
}

.contact-map {
  margin: 0 20px;
  padding-bottom: 20px;
}

.contact-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  border-radius: 24px;
  filter: saturate(0.85) contrast(1.04);
}

/* Footer — centered stack */
.site-footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.62);
  padding: 64px 0 28px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  color: #fff;
  margin-bottom: 10px;
}

.footer-tagline {
  margin: 0 0 24px;
  max-width: 36ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 28px;
  font-size: 14px;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--forest);
  color: #fff;
  padding: 14px 20px;
  z-index: 50;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  transform: translateY(120%);
  transition: transform 0.35s var(--ease);
}

.toast.is-visible {
  transform: translateY(0);
}

.inner-page {
  padding-top: calc(var(--header-h) + 56px);
}

.inner-title {
  font-size: clamp(40px, 6vw, 72px);
  margin: 12px 0 16px;
}

.inner-lead,
.entry-content p {
  color: var(--ink-soft);
  max-width: 620px;
}

.entry-content {
  max-width: 720px;
}

@media (min-width: 981px) {
  .header-cta {
    display: inline-flex;
    min-height: 48px;
    padding: 0 20px;
  }
}

@media (max-width: 980px) {
  .classes-layout,
  .about-columns,
  .about-feature,
  .contact-layout,
  .contact-details,
  .service-bento {
    grid-template-columns: 1fr;
  }

  .classes-intro {
    position: static;
  }

  .service-bento {
    grid-template-rows: none;
  }

  .service-tile,
  .service-tile.featured {
    min-height: 280px;
    grid-row: auto;
  }

  .service-tile img {
    position: absolute;
  }

  .nav-toggle {
    display: block;
    color: #fff;
    margin-right: 6px;
  }

  .site-header.is-scrolled .nav-toggle,
  body:not(.home):not(.front-page) .nav-toggle {
    color: var(--forest);
  }

  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--forest);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: 0;
  }

  .primary-nav.is-open {
    display: flex;
  }

  body.nav-open .logo,
  body.nav-open .nav-toggle {
    color: #fff;
    position: relative;
    z-index: 60;
  }

  body.nav-open .header-cta {
    display: inline-flex;
    position: fixed;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    z-index: 60;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .primary-nav a,
  .site-header.is-scrolled .primary-nav a {
    color: #fff;
    font-size: 22px;
    letter-spacing: 0.08em;
  }

  .hero-content {
    margin-left: 20px;
    max-width: calc(100% - 40px);
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts li {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .about-banner img {
    height: 420px;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 72px 0;
  }

  .class-row {
    grid-template-columns: 1fr;
    padding: 10px 10px 18px;
  }

  .class-row img {
    width: 100%;
    height: 190px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content h1 {
    font-size: 46px;
  }

  .about-banner {
    min-height: 320px;
  }

  .about-banner img {
    height: 340px;
  }

  .about-feature img {
    height: 240px;
  }

  .stat-bar,
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .stat-bar div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .contact-map {
    margin: 0 12px;
  }

  .contact-map iframe {
    height: 260px;
  }

  .header-shell {
    width: calc(100% - 20px);
    padding-left: 14px;
  }

  .logo {
    font-size: 20px;
  }
}
