/* ============================================================
   VAIKUNTH PEACE GARDEN — Component Styles
   Styles for blocks and layout matching the reference design system
   ============================================================ */

/* ---- Site Header & Navigation ---- */
.vpg-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.vpg-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  align-items: center;
}

.vpg-brand {
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.vpg-lotus svg {
  color: var(--gold);
  display: block;
}

.vpg-wordmark {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.vpg-wordmark a {
  color: inherit;
}

.vpg-wordmark strong {
  font-weight: 600;
}

.vpg-nav ul {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  gap: 2rem;
}

.vpg-nav a:hover {
  color: var(--gold);
}

/* ---- Buttons ---- */
.vpg-btn-primary .wp-block-button__link {
  background: var(--gold) !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(184, 152, 85, 0.28);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vpg-btn-primary .wp-block-button__link:hover {
  background: var(--gold-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 152, 85, 0.4);
}

.vpg-btn-ghost-light .wp-block-button__link {
  background: transparent !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.vpg-btn-ghost-light .wp-block-button__link:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.15) !important;
}

.vpg-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--ink) !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--gold);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.vpg-btn-outline .wp-block-button__link:hover {
  background: var(--gold) !important;
  color: #ffffff !important;
}

.vpg-text-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-gold);
  margin-top: 1.25rem;
}

.vpg-text-link a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.vpg-text-link a:hover {
  color: var(--gold-light);
}

/* ---- Section Defaults ---- */
.vpg-section {
  padding: 5rem 1.5rem;
}

.vpg-section-header {
  margin-bottom: 3rem;
}

/* ---- Hero Section ---- */
.vpg-hero {
  position: relative;
  overflow: hidden;
}

.vpg-hero .wp-block-cover__inner-container {
  width: 100%;
  max-width: 1200px;
  padding: 4rem 1.5rem;
  z-index: 2;
}

.vpg-hero-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.vpg-hero-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.vpg-hero-heading em {
  font-style: italic;
  font-weight: 400;
}

.vpg-hero-body {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 54ch;
  margin-bottom: 2.5rem;
}

.vpg-hero-actions {
  gap: 1rem;
}

/* ---- About Section ---- */
.vpg-about {
  background: var(--cream);
}

.vpg-about-cols {
  gap: 3.5rem;
  align-items: center;
}

.vpg-about-visual {
  position: relative;
}

.vpg-about-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(26, 36, 33, 0.1);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.vpg-stat {
  position: absolute;
  bottom: 2rem;
  right: -1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px var(--glass-shadow);
}

.vpg-stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin: 0;
}

.vpg-stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}

.vpg-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}

.vpg-pillar-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.35rem 0;
}

.vpg-pillar p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Programs Section ---- */
.vpg-programs {
  background: var(--cream-warm);
}

.vpg-program {
  margin-bottom: 3.5rem;
  gap: 3rem;
}

.vpg-program-media {
  position: relative;
}

.vpg-program-image img {
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 8px 24px rgba(26, 36, 33, 0.08);
}

.vpg-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin: 0;
}

.vpg-program-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 0.5rem;
}

.vpg-program-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Reverse alternating program items */
.vpg-program--reverse {
  flex-direction: row-reverse;
}

/* ---- Garden Bento Grid ---- */
.vpg-garden {
  background: var(--cream);
}

.vpg-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.vpg-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 36, 33, 0.05);
  background: var(--cream-deep);
}

.vpg-tile figure,
.vpg-tile-image {
  margin: 0;
  width: 100%;
  height: 100%;
}

.vpg-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.vpg-tile:hover img {
  transform: scale(1.04);
}

.vpg-tile--large {
  grid-column: span 8;
  height: 380px;
}

.vpg-tile--tall {
  grid-column: span 4;
  grid-row: span 2;
  height: 100%;
  min-height: 480px;
}

.vpg-tile--square {
  grid-column: span 4;
  height: 320px;
}

.vpg-tile--wide {
  grid-column: span 12;
  height: 340px;
}

.vpg-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.vpg-caption-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.25rem 0;
}

.vpg-caption p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.vpg-facilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--glass-border);
  padding-top: 2.5rem;
}

.vpg-facilities li {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vpg-facilities li::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.85rem;
}

/* ---- Square Image Grid Pattern ---- */
.vpg-square-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vpg-square-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cream-deep);
  box-shadow: 0 4px 16px rgba(26, 36, 33, 0.05);
}

.vpg-square-card figure,
.vpg-square-image {
  margin: 0;
  width: 100%;
  height: 100%;
}

.vpg-square-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.vpg-square-card:hover img {
  transform: scale(1.05);
}

/* ---- Accordion / FAQ ---- */
.vpg-faq {
  background: var(--cream-warm);
}

.vpg-accordion {
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: all 0.3s var(--ease-spring);
}

.vpg-accordion:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(26, 36, 33, 0.06);
}

.vpg-accordion summary {
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  list-style: none;
  user-select: none;
}

.vpg-accordion summary::-webkit-details-marker {
  display: none;
}

.vpg-accordion summary::after {
  content: "▾";
  position: absolute;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.vpg-accordion[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.vpg-accordion > :not(summary) {
  padding: 0 1.75rem 1.5rem 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---- Contact Section ---- */
.vpg-contact {
  background: var(--ink);
  color: var(--cream);
}

.vpg-contact .section-heading,
.vpg-contact .vpg-pillar-title {
  color: var(--cream);
}

.vpg-contact .body-lg,
.vpg-contact p {
  color: rgba(252, 250, 248, 0.8);
}

.vpg-contact-cols {
  gap: 4rem;
}

/* ---- Footer ---- */
.vpg-footer {
  background: var(--ink-soft);
  color: var(--cream);
  padding: 4.5rem 1.5rem 2rem 1.5rem;
}

.vpg-footer-cols {
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.vpg-footer .vpg-wordmark a {
  color: var(--cream);
}

.vpg-footer-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  color: rgba(252, 250, 248, 0.7);
  line-height: 1.6;
  margin-top: 0.75rem;
}

.vpg-footer-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.vpg-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vpg-footer-links a {
  color: rgba(252, 250, 248, 0.8);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.vpg-footer-links a:hover {
  color: var(--gold-light);
}

.vpg-footer-bottom {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: rgba(252, 250, 248, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 900px) {
  .vpg-tile--large,
  .vpg-tile--tall,
  .vpg-tile--square,
  .vpg-tile--wide {
    grid-column: span 12;
    height: 300px;
  }
  .vpg-about-cols,
  .vpg-contact-cols {
    gap: 2rem;
  }
}
