/* ============================================
   PHRAMONGKOLTHEPMUNI — Main Stylesheet
   A Digital Meditation Sanctuary
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --white: #FEFEFE;
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --gold-dark: #9B7A2F;
  --saffron: #F4A460;
  --saffron-light: #FBE4CC;
  --beige: #F5F0E8;
  --beige-dark: #E8DFD0;
  --earth: #8B7355;
  --earth-light: #A89279;
  --charcoal: #2C2C2C;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #7A7A7A;
  --overlay-dark: rgba(20, 15, 10, 0.6);
  --overlay-light: rgba(255, 250, 240, 0.85);
  --gradient-gold: linear-gradient(135deg, #C9A84C 0%, #E8D48B 50%, #C9A84C 100%);
  --gradient-warm: linear-gradient(180deg, #F5F0E8 0%, #FEFEFE 100%);
  --gradient-sacred: linear-gradient(180deg, rgba(201,168,76,0.05) 0%, rgba(244,164,96,0.08) 50%, rgba(245,240,232,0.1) 100%);
  --shadow-soft: 0 4px 30px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 60px rgba(201,168,76,0.15);
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --spacing-2xl: 12rem;
  --transition-slow: 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-medium: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--beige);
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-medium);
  max-width: 65ch;
}

.text-gold {
  color: var(--gold);
}

.text-saffron {
  color: var(--saffron);
}

/* --- Cursor Glow Effect --- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* --- Page Transition Overlay --- */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-transition .curtain {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--beige);
  transform: scaleY(0);
  transform-origin: bottom;
}

.page-transition .transition-symbol {
  opacity: 0;
  font-size: 3rem;
  color: var(--gold);
  z-index: 1;
}

/* --- Navigation --- */
.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-medium);
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}

.nav-main.scrolled {
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  box-shadow: var(--shadow-soft);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo .logo-symbol {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-logo .logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--transition-medium);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.nav-main.scrolled .logo-text {
  color: var(--text-dark);
  text-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 0.25rem 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.nav-main.scrolled .nav-links a {
  color: var(--text-medium);
  text-shadow: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width var(--transition-fast);
}

.nav-main.scrolled .nav-links a::after {
  background: var(--gold);
}

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

.nav-main.scrolled .nav-links a:hover {
  color: var(--gold-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold-light);
}

.nav-main.scrolled .nav-links a.active {
  color: var(--gold-dark);
}

.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
  display: block;
}

.nav-main.scrolled .nav-toggle span {
  background: var(--text-dark);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 240, 232, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.nav-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-overlay a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-dark);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-fast);
}

.nav-mobile-overlay.open a {
  opacity: 1;
  transform: translateY(0);
}

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

/* --- Password Gateway --- */
.gateway {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1a1510 0%, #2c2418 40%, #1a1510 100%);
  overflow: hidden;
}

.gateway-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.gateway-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.gateway-bg .orb-1 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.gateway-bg .orb-2 {
  width: 300px;
  height: 300px;
  background: var(--saffron);
  top: 50%;
  right: 20%;
  animation-delay: -3s;
}

.gateway-bg .orb-3 {
  width: 200px;
  height: 200px;
  background: var(--gold-light);
  bottom: 20%;
  left: 40%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.gateway-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 500px;
  padding: 2rem;
}

.gateway-symbol {
  font-size: 4rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

.gateway-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  font-weight: 300;
}

.gateway-subtitle {
  font-size: 0.9rem;
  color: rgba(232, 212, 139, 0.5);
  margin-bottom: 3rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gateway-input-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.gateway-input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-align: center;
  outline: none;
  transition: all var(--transition-fast);
}

.gateway-input::placeholder {
  color: rgba(232, 212, 139, 0.3);
  letter-spacing: 0.2em;
}

.gateway-input:focus {
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.1);
}

.gateway-input.error {
  border-color: rgba(200, 100, 80, 0.5);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.gateway-btn {
  padding: 1rem 3rem;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.gateway-btn:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

.gateway-error {
  color: rgba(200, 130, 100, 0.8);
  font-size: 0.85rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
  letter-spacing: 0.05em;
}

.gateway-error.visible {
  opacity: 1;
}

.gateway-hint {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: rgba(232, 212, 139, 0.2);
  letter-spacing: 0.1em;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(26, 21, 16, 0.3) 0%,
    rgba(26, 21, 16, 0.1) 40%,
    rgba(26, 21, 16, 0.5) 80%,
    rgba(26, 21, 16, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-content .hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 300;
  opacity: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-content .hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(201, 168, 76, 0.5);
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  opacity: 0;
  border-radius: 2px;
}

.hero-cta:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(201, 168, 76, 0.2);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 2s forwards;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, rgba(201,168,76,0.6) 0%, transparent 100%);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --- Section Styles --- */
.section {
  padding: var(--spacing-xl) var(--spacing-lg);
  position: relative;
}

.section-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1400px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gradient-gold);
  margin: 0 auto var(--spacing-md);
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  margin-bottom: var(--spacing-md);
}

.section-text {
  margin-bottom: var(--spacing-md);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Image Sections --- */
.fullscreen-image-section {
  position: relative;
  height: 70vh;
  min-height: 450px;
  overflow: hidden;
}

.fullscreen-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 8s ease;
}

.fullscreen-image-section:hover img {
  transform: scale(1.03);
}

.fullscreen-image-section .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-image-section .image-overlay blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
  text-align: center;
  max-width: 700px;
  padding: 2rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
}

/* --- Quote Section --- */
.quote-section {
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  position: relative;
  background: var(--gradient-sacred);
}

.quote-section::before {
  content: '\201C';
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 8rem;
  color: rgba(201, 168, 76, 0.1);
  line-height: 1;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 300;
  font-style: italic;
}

.quote-attribution {
  margin-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Highlight Cards --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.highlight-card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.highlight-card:hover::before {
  transform: scaleX(1);
}

.highlight-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.highlight-card h4 {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.highlight-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: var(--spacing-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 10%, var(--gold) 90%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.35rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.timeline-item .timeline-year {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.timeline-item h4 {
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.95rem;
}

/* --- Image Grid / Gallery --- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  margin-top: var(--spacing-lg);
}

.gallery-grid.masonry {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item.span-2 {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 15000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  align-self: flex-start;
  padding: 1rem 3rem;
  background: var(--gradient-gold);
  border: none;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--beige-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.social-icons a:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer h4 {
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: var(--gold);
}

.footer .social-icons a {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
}

.footer .social-icons a:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.1);
}

/* --- Breathing Meditation Animation --- */
.breathing-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: meditationBreathe 8s ease-in-out infinite;
  position: relative;
}

.breathing-circle::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.15);
  animation: meditationBreathe 8s ease-in-out infinite reverse;
}

.breathing-circle .breath-text {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  animation: breathTextFade 8s ease-in-out infinite;
}

@keyframes meditationBreathe {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes breathTextFade {
  0%, 40% { content: 'Breathe In'; }
  50%, 90% { content: 'Breathe Out'; }
}

/* --- Page Header --- */
.page-header {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(26, 21, 16, 0.5) 0%,
    rgba(26, 21, 16, 0.7) 100%
  );
}

.page-header-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.page-header-content .section-tag {
  color: var(--gold-light);
}

.page-header-content h1 {
  color: var(--white);
  font-weight: 300;
}

.page-header-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 1rem auto 0;
}

/* --- Split Layout --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.split-image {
  position: relative;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-lg);
}

/* --- Meditation Steps --- */
.meditation-steps {
  counter-reset: step;
  margin-top: var(--spacing-lg);
}

.meditation-step {
  counter-increment: step;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.meditation-step .step-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(201, 168, 76, 0.2);
  line-height: 1;
  min-width: 60px;
}

.meditation-step h4 {
  margin-bottom: 0.5rem;
}

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-item .info-icon {
  font-size: 1.2rem;
  color: var(--gold);
  min-width: 30px;
  padding-top: 0.2rem;
}

/* --- Hidden Quotes (Easter Egg) --- */
.hidden-quote {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: 300px;
  padding: 1.5rem;
  background: rgba(245, 240, 232, 0.98);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 8000;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-medium);
  pointer-events: none;
}

.hidden-quote.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hidden-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.hidden-quote .quote-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.2rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-image {
    height: 50vh;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .gallery-grid.masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item {
    padding-left: 1rem;
  }

  .timeline-item::before {
    left: -2.35rem;
  }

  .gallery-grid.masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 350px;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  .page-header {
    height: 50vh;
    min-height: 350px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .meditation-step {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-main {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .gateway-title {
    font-size: 1.2rem;
  }

  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
}

/* --- Gallery Filter Buttons --- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
  justify-content: center;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 1px solid var(--beige-dark);
  color: var(--text-medium);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(201, 168, 76, 0.05);
}

/* --- Teaching Card --- */
.teaching-card {
  padding: 3rem;
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  border-left: 3px solid var(--gold);
  margin-bottom: 2rem;
  transition: all var(--transition-fast);
}

.teaching-card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateX(5px);
}

.teaching-card h4 {
  margin-bottom: 1rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
