/* Page-specific layout, organized by page */

/* ================= HERO (index.html) ================= */
.hero {
  min-height: calc(80vh - var(--header-offset));
  display: flex;
  align-items: center;
  padding-block: var(--space-6);
}

.hero__grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  width: 100%;
}

.hero__content p {
  font-size: var(--fs-md);
  margin-top: var(--space-2);
  max-width: 46ch;
}

.hero__image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* ================= HOME — teasers, testimonial, social ================= */
.teaser-card {
  border-top: 4px solid var(--accent);
  min-height: 100%;
}

.teaser-card .btn {
  margin-top: auto;
}

.testimonial-highlight {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.quote-band {
  background: var(--color-sage-light);
  padding-block: var(--space-7);
}

.testimonial-highlight blockquote,
.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
  color: var(--color-ink);
}

.testimonial-highlight blockquote {
  font-size: var(--fs-xl);
}

.testimonial-highlight cite {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  color: var(--color-ink-muted);
  font-size: var(--fs-sm);
}

.social-strip {
  text-align: center;
}

.cta-banner {
  background: var(--color-sage);
  color: #fff;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
}

.cta-banner h2,
.cta-banner p {
  color: #fff;
}

.cta-banner .btn--primary {
  background: #fff;
  color: var(--color-ink);
}

/* ================= ABOUT ================= */
.about-hero {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.about-hero__image {
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-hero__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 840 / 1050;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr 1.3fr;
  }
}

.cert-list {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cert-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cert-list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.cert-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--space-2) + 0.825em - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sage);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ================= SERVICES ================= */
.service-section {
  padding-block: var(--space-5);
}

.service-section.section--yoga {
  background: var(--color-sage-light);
}

.service-section.section--training {
  background: var(--color-ember-light);
}

/* ================= PRICING ================= */
.pricing-card {
  text-align: center;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 2px var(--color-sage);
}

@media (max-width: 599px) {
  .pricing-card--featured {
    margin-top: 0.85rem;
  }
}

.pricing-card__label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #5E4A56;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, var(--fs-2xl));
  line-height: 1.2;
  color: var(--color-ink);
  overflow-wrap: anywhere;
}

.pricing-card__price--text {
  font-size: var(--fs-xl);
}

.pricing-card__price span {
  font-size: var(--fs-sm);
  color: var(--color-ink-muted);
  font-family: var(--font-body);
}

.pricing-group-title {
  font-size: var(--fs-lg);
  font-weight: 500;
  margin-block: var(--space-3) var(--space-2);
}

.pricing-note,
.booking-note {
  background: var(--color-gold-light);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.pricing-note a,
.booking-note a {
  color: var(--color-gold-deep);
  font-weight: 600;
}

.booking-note {
  margin-bottom: var(--space-4);
}

.booking-note h3 {
  margin-bottom: var(--space-1);
  font-size: var(--fs-lg);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-2);
}

/* ================= SCHEDULE ================= */
.schedule-scroll {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.schedule-table th {
  font-family: var(--font-heading);
  color: var(--color-ink-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.schedule-table td a {
  color: var(--color-sage);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 900px) {
  .schedule-scroll {
    overflow: visible;
  }

  .schedule-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table tr {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
  }

  .schedule-table td {
    border: none;
    padding: 0.15rem 0;
  }

  .schedule-table td:first-child {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--color-ink);
  }
}

.schedule-note {
  background: var(--color-sage-light);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

/* ================= TESTIMONIALS ================= */
.testimonial-card blockquote {
  font-size: var(--fs-md);
}

.testimonial-card cite {
  font-style: normal;
  color: var(--color-ink-muted);
  font-size: var(--fs-sm);
}

/* ================= GALLERY ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-2);
}

.gallery-grid button {
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-grid img,
.gallery-grid .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.gallery-grid .frame-studio {
  object-position: center 42%;
}

.gallery-grid .frame-tea {
  object-position: center 48%;
}

.gallery-grid .frame-supplies {
  object-position: center 62%;
}

.gallery-grid .frame-lotus {
  object-position: center 36%;
}

.gallery-grid .frame-bowl {
  object-position: center 58%;
}

.gallery-grid .frame-room {
  object-position: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(34, 38, 43, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__content {
  max-width: 800px;
  max-height: calc(100vh - var(--space-6));
  width: 100%;
}

.lightbox__content img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - var(--space-6));
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  color: #fff;
  font-size: var(--fs-xl);
  width: 44px;
  height: 44px;
}

/* ================= BLOG ================= */
.blog-card time {
  font-size: var(--fs-xs);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.post-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-4);
}

.post-body {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.post-body p {
  color: var(--color-ink);
  line-height: 1.7;
}

/* ================= CONTACT ================= */
.contact-grid {
  display: grid;
  gap: var(--space-5);
}

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

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-style: normal;
}

.contact-info-list strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-border);
}

.map-embed__link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.map-embed__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.map-embed__label {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.map-embed__link:hover .map-embed__label,
.map-embed__link:focus-visible .map-embed__label {
  background: var(--accent);
  color: var(--color-surface);
}

.map-embed:has(.map-embed__link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.map-embed__link:focus-visible {
  outline: none;
}

.map-embed__credit {
  position: absolute;
  z-index: 1;
  top: var(--space-2);
  left: var(--space-2);
  background: rgba(255, 251, 250, 0.9);
  color: var(--color-ink-muted);
  font-size: 0.7rem;
  line-height: 1.2;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.map-embed__credit:hover {
  color: var(--color-ink);
}

/* ================= 404 ================= */
.error-page {
  text-align: center;
  padding-block: var(--space-7);
}

.error-page h1 {
  font-size: var(--fs-3xl);
  color: var(--accent);
}
