@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400;500&display=swap');
:root {
  --color-bg-base: #050508;
  --color-bg-surface: rgba(25, 22, 35, 0.4);
  --color-bg-elevated: rgba(25, 22, 35, 0.8);

  --color-text-title: #E3BA6F;
  --color-text-body: #F4EBE1;

  --color-gold-solid: #D8AF50;
  --color-gold-muted: rgba(216, 175, 80, 0.6);
  --color-gold-faint: rgba(216, 175, 80, 0.15);

  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;

  --site-max-width: 1200px;
}

/* Mobile Contrast Overrides */
@media screen and (max-width: 900px) {
  :root {
    --color-bg-surface: rgba(25, 22, 35, 0.65);
    --color-gold-faint: rgba(216, 175, 80, 0.3);
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-base);
  color: var(--color-text-body);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--color-text-title);
  font-weight: 400;
  margin: 0 0 1rem;
}

h1 {
  font-size: 54px;
  font-style: italic;
  line-height: 1.15;
}

h2 {
  font-size: 36px;
  font-style: italic;
  line-height: 1.2;
}

h3 {
  font-size: 26px;
  line-height: 1.3;
}

h4 {
  font-size: 20px;
  line-height: 1.4;
}

p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 1.5rem;
  font-weight: 300;
}

a {
  color: var(--color-text-title);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-gold-solid);
}

/* Cosmic Background Elements */
.cosmic-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.cosmic-layer-stars {
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: blur(2px) contrast(1.1);
}

.cosmic-layer-vignette {
  background: radial-gradient(circle at center, transparent 0%, #050508 85%);
}

/* Structural Layout wrappers */
.site-wrapper {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 5%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Common Components */
.section {
  padding: 5rem 0;
  border-bottom: 0.5px solid var(--color-gold-faint);
}

.section.no-border {
  border-bottom: none;
}

.section.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  display: block;
}

.label-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-body);
  margin-bottom: 0.75rem;
  display: block;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--color-gold-faint);
}

.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--color-text-title);
  font-weight: 400;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links li a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-body);
  font-weight: 400;
}

.navbar-links li a.active,
.navbar-links li a:hover {
  color: var(--color-text-title);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.8rem;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: normal;
}

.btn-solid {
  background: var(--color-gold-solid);
  color: var(--color-bg-base) !important;
  border: none;
  font-weight: 500;
}

.btn-solid:hover {
  background: #ecc261;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-title) !important;
  border: 0.5px solid var(--color-gold-muted);
}

.btn-outline:hover {
  border-color: var(--color-text-title);
}

/* Standard Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  min-height: 0;
  min-width: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  min-height: 0;
  min-width: 0;
}

.card {
  background: rgba(25, 22, 35, 0.6) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 175, 80, 0.3) !important;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-bg-base);
  border: 0.5px solid var(--color-gold-faint);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 1rem;
}

.card-arrow-link {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-title);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stretched Link Logic for Clickable Cards */
.card-arrow-link::after,
.card a::after,
div[style*="background: var(--color-bg-base)"] a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.card:has(a),
div[style*="background: var(--color-bg-base)"]:has(a) {
  cursor: pointer;
}

/* Standard Footer */
.site-footer {
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0.5px solid var(--color-gold-faint);
}

.footer-brand p {
  font-size: 13px;
  margin-top: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--color-text-body);
}

.footer-social a:hover {
  border-color: var(--color-text-title);
  color: var(--color-text-title);
}

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

.footer-nav li a {
  font-size: 13px;
  color: var(--color-text-body);
}

.footer-nav li a:hover {
  color: var(--color-text-title);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* Subscribe Strip */
.subscribe-strip {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-gold-faint);
  border-radius: var(--border-radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  margin: 3rem 0;
}

.subscribe-intro p {
  margin: 0;
  max-width: 400px;
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.subscribe-form input {
  background: transparent;
  border: 0.5px solid var(--color-gold-muted);
  border-radius: 24px;
  padding: 0.75rem 1.25rem;
  color: var(--color-text-title);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  min-width: 250px;
}

/* Collapsibles / Accordions */
.accordion {
  margin-top: 2rem;
}

.accordion-item {
  border-bottom: 0.5px solid var(--color-gold-faint);
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-title);
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content-inner {
  padding-bottom: 1.5rem;
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
}

/* Responsive Updates & Hamburger Menu */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  z-index: 100;
}

.hamburger div {
  width: 28px;
  height: 2px;
  background: var(--color-text-title);
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media screen and (max-width: 900px) {
  .site-wrapper {
    padding: 0 1rem;
  }

  /* Mobile Typography */
  h1 {
    font-size: 44px !important;
  }

  h2 {
    font-size: 26px !important;
  }

  p {
    font-size: 15px;
  }

  .journey-image,
  .believe-portrait,
  .closing-image {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* Nav Dropdown */
  .hamburger {
    display: flex;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--color-gold-solid);
    padding: 1rem 0;
    z-index: 99;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  }

  .navbar-links.show {
    display: flex;
  }

  .navbar-links li {
    width: 100%;
  }

  .navbar-links li a {
    display: block;
    padding: 1.25rem 2rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-bg-base) !important;
  }

  .navbar-links li a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-bg-base) !important;
  }

  /* Make the active page stand out with a dark indicator line instead of turning gold */
  .navbar-links li a.active {
    color: var(--color-bg-base) !important;
    background: rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-bg-base);
    padding-left: calc(2rem - 4px);
    font-weight: 700;
  }

  .navbar-links li:last-child a {
    border-bottom: none;
  }

  .navbar-links.show {
    display: flex;
  }

  .navbar>.btn-outline {
    display: none;
  }

  /* Hide any standalone nav button that is a direct child of .navbar on mobile */

  /* Structural stacking */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .subscribe-strip {
    flex-direction: column;
    text-align: left;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscribe-form input {
    width: 100%;
    box-sizing: border-box;
  }

  .subscribe-form .btn {
    width: 100%;
    text-align: center;
  }

  /* Make buttons massive for tapping */
  .btn {
    padding: 1rem 2rem;
  }

  /* Fix hardcoded inline grids globally */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* Frosted Glass Effect for Form */
.glass-panel {
  background: rgba(25, 22, 35, 0.6) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 175, 80, 0.3) !important;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

div[style*="background: var(--color-bg-base)"] {
  background: rgba(25, 22, 35, 0.6) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 175, 80, 0.3) !important;
  position: relative;
}

/* Photo Gallery Grid */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 photos per row on desktop */
  gap: 1.5rem;
  margin-top: 3rem;
}

.photo-item {
  aspect-ratio: 1/1;
  /* Keeps workshop/retreat photos square and tidy */
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-gold-faint);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

@media screen and (max-width: 900px) {
  .photo-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stacks for mobile */
}

/* Fix Browser Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--color-bg-base) inset !important;
  -webkit-text-fill-color: var(--color-text-body) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Micro-interactions */
.btn-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 175, 80, 0.4);
}

.btn-solid:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(216, 175, 80, 0.2);
}

.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 175, 80, 0.2);
}

.btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(216, 175, 80, 0.1);
}

.card,
.glass-panel,
div[style*="background: var(--color-bg-base)"] {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover,
.glass-panel:hover,
div[style*="background: var(--color-bg-base)"]:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold-solid) !important;
}

.card:active {
  box-shadow: inset 0 0 0 1px var(--color-gold-faint);
}

/* Fix for unified grid blocks (gap: 1px) to prevent double borders and broken hover clipping */
div[style*="gap: 1px"] > div[style*="background: var(--color-bg-base)"] {
  border: none !important;
  background: var(--color-bg-base) !important; /* Keep it solid to hide parent bg */
  backdrop-filter: none !important;
  transform: none !important;
  box-shadow: none !important;
}

div[style*="gap: 1px"] > div[style*="background: var(--color-bg-base)"]:hover {
  background: #0d0b12 !important; /* Subtle lighter solid color on hover instead of sliding up */
  border: none !important;
  transform: none !important;
}

.accordion-header {
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-header {
  color: var(--color-gold-solid);
  border-left: 2px solid var(--color-gold-muted);
  padding-left: 0.75rem;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.btn-outline .ripple {
  background-color: rgba(216, 175, 80, 0.3);
}

/* Fix for footer social SVG icons */
.footer-social a {
  overflow: hidden;
}

.footer-social a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1.8);
}

/* Performance-Safe Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Journal Link Hover Animation */
.journal-link {
  transition: transform 0.3s ease, color 0.3s ease;
}

.journal-link:hover {
  transform: translateX(4px);
  color: var(--color-gold-solid);
}

/* Testimonial Carousel Styles */
.carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.testimonial-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 1rem 0; /* extra padding for hover transforms */
}

.testimonial-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.testi-card {
  flex: 0 0 350px;
  scroll-snap-align: center;
  background: rgba(25, 22, 35, 0.6) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 175, 80, 0.3) !important;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testi-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold-solid) !important;
}

@media (max-width: 900px) {
  .testi-card {
    flex: 0 0 85%;
  }
}

.carousel-btn {
  background: var(--color-bg-base);
  border: 1px solid var(--color-gold-muted);
  color: var(--color-gold-solid);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  z-index: 2;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--color-gold-muted);
  color: var(--color-bg-base);
  transform: scale(1.1);
}

.prev-btn {
  left: -20px;
}

.next-btn {
  right: -20px;
}

@media (max-width: 900px) {
  .prev-btn {
    left: -10px;
  }
  .next-btn {
    right: -10px;
  }
}