/*
Theme Name: Yogaberries
Theme URI: https://yogaberries.online/
Author: Yogaberries
Description: Custom block theme for Yogaberries with dark and light style variations.
Version: 0.2.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: yogaberries
*/

:root {
  --bg: var(--wp--preset--color--canvas, #121512);
  --bg-soft: var(--wp--preset--color--surface, #1c211c);
  --surface: color-mix(in srgb, var(--wp--preset--color--surface, #1c211c) 88%, transparent);
  --surface-strong: var(--wp--preset--color--surface-strong, #252b24);
  --header-bg: color-mix(in srgb, var(--wp--preset--color--surface, #1c211c) 86%, transparent);
  --ink: var(--wp--preset--color--ink, #f3ecdf);
  --brand-ink: var(--wp--preset--color--ink, #f3ecdf);
  --heading: var(--wp--preset--color--heading, #d9c9a5);
  --card-heading: var(--wp--preset--color--card-heading, #f7ead3);
  --muted: var(--wp--preset--color--muted, #c1b7a6);
  --sage: var(--wp--preset--color--sage, #30382f);
  --sage-deep: var(--wp--preset--color--sage-deep, #c5b68f);
  --berry: var(--wp--preset--color--accent, #d4a86d);
  --berry-dark: var(--wp--preset--color--accent-deep, #e1bd82);
  --accent-soft: color-mix(in srgb, var(--berry) 18%, transparent);
  --clay: #d4ae79;
  --sky: #242a25;
  --wood: #f0dfbf;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --image-filter: saturate(0.82) brightness(0.74);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Avenir Next", Avenir, "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition:
    background-color 260ms ease,
    color 260ms ease;
}

.wp-site-blocks {
  padding: 0;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.wp-site-blocks main {
  margin-block-start: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 18px auto 0;
  padding: 12px 14px;
  background: var(--header-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(84, 80, 66, 0.05);
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header .wp-block-site-title {
  margin: 0;
}

.site-header .wp-block-site-title a,
.site-header .wp-block-navigation-item__content {
  text-decoration: none;
}

.site-header.compact {
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  justify-self: start;
  color: var(--brand-ink);
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 18px;
  color: var(--sage-deep);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--berry-dark);
}

.section,
.section-band {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

[id] {
  scroll-margin-top: 132px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 52px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--berry);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1.04;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 400;
}

h3 {
  color: var(--card-heading);
  font-size: 20px;
  font-weight: 650;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--berry-dark);
  color: #fffaf1;
}

.button.primary .wp-block-button__link {
  background: var(--berry-dark);
  color: var(--bg);
}

.button.primary:hover {
  background: #755637;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary .wp-block-button__link {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.button.text-link {
  background: transparent;
  border-color: var(--line);
}

.hero-media {
  justify-self: end;
  width: min(100%, 500px);
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img,
.teacher-image img {
  width: 100%;
  height: 100%;
  filter: var(--image-filter);
  object-fit: cover;
}

.temporal-focus {
  display: grid;
  gap: 7px;
  max-width: 560px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--berry);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(84, 80, 66, 0.06);
}

.temporal-focus span {
  color: var(--berry);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.temporal-focus strong {
  color: var(--card-heading);
  font-size: 18px;
  line-height: 1.25;
}

.temporal-focus p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 84px 0;
}

.states-section {
  position: relative;
  width: min(100% - 32px, var(--max));
  margin-top: 28px;
  padding: 52px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--bg-soft) 96%, transparent),
      color-mix(in srgb, var(--bg-soft) 84%, transparent)
    ),
    url("assets/photos/white-flowers-bg.jpeg") right center / cover no-repeat;
  box-shadow: 0 20px 55px rgba(84, 80, 66, 0.06);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.state-grid,
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.state-card,
.format-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.state-card.accent {
  background: var(--surface-strong);
}

.state-card.is-featured,
.format-card.is-featured,
.schedule-item.is-featured {
  border-color: var(--berry);
  background: linear-gradient(180deg, var(--surface), var(--accent-soft));
  box-shadow: 0 18px 48px rgba(84, 80, 66, 0.1);
}

.state-card.is-featured,
.format-card.is-featured {
  transform: translateY(-2px);
}

.state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--sage-deep);
  font-size: 21px;
  font-weight: 800;
}

.state-card p,
.format-card p,
.schedule-item p,
.teacher-copy p,
.contact-section p,
.legal-content p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.schedule-item p {
  margin: 8px 0 0;
}

.venue-link {
  display: inline-flex;
  width: max-content;
  margin-top: 12px;
  color: var(--berry-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.venue-link:hover {
  color: var(--berry);
}

.schedule-item time,
.schedule-item .time {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--sage);
  color: var(--ink);
  font-weight: 700;
}

.mini-link {
  justify-self: end;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--sage);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.mini-link a,
.venue-link a {
  color: inherit;
  text-decoration: none;
}

.day {
  color: var(--berry);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.format-card img {
  margin-bottom: 22px;
}

.teacher-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

.teacher-image {
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--berry-dark);
  content: "•";
  font-size: 24px;
  line-height: 1;
}

.certificates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.certificates a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  box-shadow: 0 12px 34px rgba(72, 50, 38, 0.08);
}

.certificates img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.certificates a:hover img {
  transform: scale(1.02);
}

.video-section {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 38px;
  align-items: center;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.video-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: #fffaf1;
  text-decoration: none;
}

.video-link::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 40, 34, 0.1), rgba(35, 40, 34, 0.58));
  content: "";
}

.video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.92);
  transform: translate(-50%, -50%);
}

.play-button::before {
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid var(--berry-dark);
  content: "";
  transform: translate(-50%, -50%);
}

.video-link-text {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--card-heading);
  font-weight: 650;
}

details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.contact-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(360px, 1fr);
  align-items: center;
  gap: 36px;
  min-height: 315px;
  margin-bottom: 40px;
  padding: 42px 52px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(67, 74, 62, 0.42), rgba(67, 74, 62, 0.2), rgba(67, 74, 62, 0.58)),
    url("assets/photos/coral-flowers-bg.jpeg") center / cover no-repeat;
  color: #fffaf1;
}

.contact-brand {
  display: grid;
  justify-items: center;
  max-width: 360px;
  text-align: center;
}

.contact-logo {
  color: #fffaf1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 400;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.36);
}

.contact-logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.88);
  padding: 6px;
}

.contact-brand p {
  max-width: 320px;
  margin: 14px 0 0;
  color: rgba(255, 250, 241, 0.88);
  font-size: 18px;
  line-height: 1.45;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

.contact-panel {
  display: grid;
  justify-items: center;
  gap: 38px;
}

.contact-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 250, 241, 0.44);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.12);
  color: #fffaf1;
  backdrop-filter: blur(8px);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.contact-icons .wp-block-button.icon-link {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.contact-icons .wp-block-button.icon-link .wp-block-button__link {
  min-width: 112px;
  border: 1px solid rgba(255, 250, 241, 0.44);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.12);
  color: #fffaf1;
}

.contact-icons .wp-block-button.icon-link .wp-block-button__link:hover {
  border-color: rgba(255, 250, 241, 0.72);
  background: rgba(255, 250, 241, 0.2);
}

.icon-link:hover {
  background: rgba(255, 250, 241, 0.2);
  border-color: rgba(255, 250, 241, 0.72);
  transform: translateY(-1px);
}

.icon-link svg {
  width: 34px;
  height: 34px;
}

.icon-link svg * {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-link:first-child svg path,
.icon-link:nth-child(3) svg path:first-child {
  fill: currentColor;
  stroke: none;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffaf1;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.36);
  transition: color 160ms ease;
}

.contact-phone:hover {
  color: #f0d4c7;
}

.contact-phone a {
  color: inherit;
  text-decoration: none;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 10px 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.legal-footer p {
  margin: 0;
}

.legal-footer a {
  color: var(--sage-deep);
  font-weight: 700;
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--berry-dark);
}

.temporal-debug {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(300px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--header-bg);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.debug-header span,
.temporal-debug label {
  color: var(--berry);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.debug-header button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.debug-header button:hover {
  border-color: var(--berry);
}

.temporal-debug input[type="range"] {
  width: 100%;
  accent-color: var(--berry-dark);
}

.debug-mode {
  color: var(--card-heading);
  font-weight: 800;
}

.legal-page {
  min-height: 70svh;
}

.legal-content {
  max-width: 820px;
  padding-top: 46px;
}

.legal-content h1 {
  font-size: clamp(38px, 7vw, 68px);
}

.legal-content h2 {
  margin-top: 38px;
  font-size: 26px;
}

.legal-content a {
  color: var(--berry-dark);
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nav {
    width: auto;
    justify-content: flex-end;
    overflow-x: auto;
    padding: 4px 0;
  }

  .hero,
  .split-section,
  .teacher-section,
  .video-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-media {
    justify-self: stretch;
    width: 100%;
  }

  .state-grid,
  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 36px;
  }

  .contact-brand {
    max-width: 420px;
  }

}

@media (max-width: 620px) {
  .site-header,
  .section,
  .section-band,
  .legal-footer {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .brand,
  .nav {
    justify-self: center;
  }

  .brand span {
    font-size: 15px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .section {
    padding: 54px 0;
  }

  .states-section {
    width: min(100% - 32px, var(--max));
    padding: 38px 18px;
  }

  .states-section .section-heading {
    padding: 0 8px;
  }

  .state-grid,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .state-grid {
    gap: 20px;
    padding: 0 8px;
  }

  .state-card,
  .format-card {
    min-height: 0;
    padding: 30px 26px;
  }

  .schedule-item {
    grid-template-columns: 1fr;
  }

  .schedule-item time {
    justify-self: start;
  }

  .mini-link {
    justify-self: start;
  }

  .contact-section {
    min-height: 320px;
    padding: 28px;
  }

  .contact-panel {
    width: 100%;
  }

  .icon-link {
    width: 60px;
    height: 60px;
  }

  .icon-link svg {
    width: 28px;
    height: 28px;
  }

  .contact-phone {
    width: 100%;
  }

  .certificates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .temporal-debug {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}
