/*
Theme Name: PraanaYoga
Theme URI: https://www.praanayoga.online
Author: PraanaYoga
Author URI: https://www.praanayoga.online
Description: One-page WordPress theme for yoga studios. Home, Classes, About, Services, and Contact. Language: English.
Version: 3.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: praanayoga
Tags: one-page, custom-menu, featured-images, translation-ready
*/

:root {
  --bg: #f4ece3;
  --bg-alt: #e8d9c8;
  --bg-panel: #faf6f0;
  --ink: #1c1410;
  --ink-soft: #4a3c34;
  --muted: #8a7468;
  --accent: #c45c32;
  --accent-deep: #9a3f1e;
  --accent-glow: rgba(196, 92, 50, 0.12);
  --line: rgba(28, 20, 16, 0.12);
  --header-h: 80px;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

h1,
h2,
h3,
.serif {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero,
.section {
  scroll-margin-top: var(--header-h);
}

.section {
  padding: 110px 0;
}

.section-head {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin: 14px 0 12px;
}

.section-head.split h2 {
  margin-bottom: 0;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-full {
  width: 100%;
}

.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 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
body:not(.home):not(.front-page) .site-header {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 600;
}

.logo span {
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  margin-left: 0.18em;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  border-radius: var(--radius);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
}

.nav-toggle span {
  top: 50%;
}

.nav-toggle::before {
  top: 14px;
}

.nav-toggle::after {
  bottom: 14px;
}

.primary-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

/* Hero — split */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 48px 64px 8vw;
  animation: fadeUp 1s var(--ease) both;
}

.hero-copy h1 {
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 0.96;
  margin: 18px 0 22px;
  font-weight: 600;
}

.hero-copy > p {
  margin: 0 0 36px;
  max-width: 40ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  min-height: 100vh;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: -36px;
  bottom: 64px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 18px 40px rgba(28, 20, 16, 0.18);
}

.hero-badge strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.hero-badge span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.85;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Classes — card grid */
.classes {
  background: var(--bg-panel);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.class-card {
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.class-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(28, 20, 16, 0.1);
}

.class-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.class-card-body {
  padding: 22px 22px 26px;
}

.class-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.class-card-meta span:last-child {
  color: var(--muted);
  font-weight: 500;
}

.class-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.class-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* About — copy left, overlapping photos */
.about {
  background: var(--bg);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.08;
  margin: 14px 0 22px;
}

.about-copy p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.about-visual {
  position: relative;
  min-height: 520px;
}

.about-img-main {
  width: 78%;
  height: 460px;
  object-fit: cover;
  margin-left: auto;
  border: 1px solid var(--line);
}

.about-img-offset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  height: 280px;
  object-fit: cover;
  border: 8px solid var(--bg);
  box-shadow: 0 18px 40px rgba(28, 20, 16, 0.12);
}

.stat-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
  justify-items: center;
}

.stat-circle {
  width: 168px;
  height: 168px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-panel);
}

.stat-circle strong {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-circle span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 12ch;
}

/* Services — 2x2 cards + strip */
.services {
  background: var(--ink);
  color: #fff;
  padding-bottom: 0;
}

.services .eyebrow {
  color: #e8b39a;
}

.services .section-head p {
  color: rgba(255, 255, 255, 0.62);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 36px 32px 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  min-height: 220px;
}

.service-bg-num {
  position: absolute;
  right: 16px;
  top: 8px;
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.service-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 30px;
}

.service-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  max-width: 42ch;
}

.service-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 72px;
}

.service-strip img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Contact — form + cards, then map */
.contact {
  background: var(--bg-alt);
  padding-bottom: 0;
}

.contact-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.contact-form {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 40px;
}

.contact-form h3 {
  font-size: 34px;
  margin: 0 0 6px;
}

.form-lead {
  color: var(--muted);
  margin: 0 0 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.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: 600;
}

.field input,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.form-note {
  margin: 14px 0 0;
  min-height: 24px;
  color: var(--accent);
  font-size: 14px;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 22px 24px;
}

.contact-card span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-card strong,
.contact-card a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.contact-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-map {
  margin-top: 56px;
  position: relative;
  min-height: 340px;
}

.contact-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
  filter: saturate(0.7) contrast(1.05);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.58);
  padding: 72px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 28px;
  margin-bottom: 12px;
}

.footer-brand span {
  font-style: italic;
  color: #e8b39a;
  margin-left: 0.18em;
}

.footer-brand-col p {
  margin: 0;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8b39a;
  margin: 8px 0 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  z-index: 50;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transform: translateY(120%);
  transition: transform 0.35s var(--ease);
}

.toast.is-visible {
  transform: translateY(0);
}

body:not(.home):not(.front-page) main.section {
  padding-top: calc(var(--header-h) + 48px);
}

.entry-content {
  max-width: 720px;
}

.entry-content p {
  color: var(--ink-soft);
}

@media (min-width: 981px) {
  .header-cta {
    display: inline-flex;
    min-height: 44px;
    padding: 0 20px;
    font-size: 10px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .logo {
    justify-self: start;
  }

  .primary-nav {
    justify-self: center;
  }

  .header-cta {
    justify-self: end;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: calc(var(--header-h) + 40px) 24px 48px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-badge {
    left: 24px;
    bottom: 24px;
  }

  .section-head.split,
  .about-layout,
  .service-grid,
  .contact-top,
  .form-row,
  .footer-grid,
  .class-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head.split,
  .about-layout,
  .contact-top,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 440px;
  }

  .about-img-main {
    height: 380px;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .service-strip img {
    height: 220px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    padding: 18px 24px 28px;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .logo {
    font-size: 22px;
  }

  .section {
    padding: 80px 0;
  }

  .class-grid,
  .stat-circles,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stat-circle {
    width: 100%;
    height: 120px;
    border-radius: var(--radius);
  }

  .about-visual {
    min-height: 360px;
  }

  .about-img-main {
    width: 100%;
    height: 280px;
  }

  .about-img-offset {
    width: 52%;
    height: 180px;
    border-width: 6px;
  }

  .contact-form {
    padding: 24px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-badge {
    width: 108px;
    height: 108px;
  }
}
