/* Kavichandra Swami Design System */

:root {
  --color-saffron: #f47920;
  --color-saffron-dark: #c15a11;
  --color-burgundy: #6b1424;
  --color-burgundy-light: #94253a;
  --color-ivory: #faf8f5;
  --color-text-charcoal: #2b2b2b;
  --color-text-light: #6a6a6a;
  --color-gold: #c6a87c;
  --color-bg-light: #ffffff;
  --color-bg-dark: #121212;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-script: 'Great Vibes', cursive;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(107, 20, 36, 0.15);
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
}

/* Reset & BaseStyles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text-charcoal);
  background-color: var(--color-ivory);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-burgundy);
  line-height: 1.2;
  margin-bottom: 0.5em;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-saffron);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-burgundy);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Images must not cut, so we'll use object-fit strategies locally */
}

/* Reusable Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.text-center { text-align: center; }
.script-accent { 
  font-family: var(--font-script); 
  color: var(--color-gold); 
  font-size: 2.5rem; 
  display: block; 
  margin-bottom: -10px;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(107, 20, 36, 0.2);
  border-radius: var(--border-radius-md);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-saffron);
  box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--color-burgundy);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-saffron);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-burgundy);
  border: 2px solid var(--color-burgundy);
}

.btn-outline:hover {
  background-color: var(--color-burgundy);
  color: white;
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-burgundy);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-charcoal);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-saffron);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    gap: 40px;
  }
  
  .nav-links.active {
    left: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-burgundy);
    margin: 5px 0;
    transition: 0.3s;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

/* Footer Requirements */
.site-footer {
  background-color: var(--color-burgundy);
  color: var(--color-ivory);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h4 {
  color: var(--color-gold);
  margin-bottom: 20px;
}

.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.8);
}

.footer-contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

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

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Gate Overlay */
#access-gate {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.gate-content {
  background: rgba(255,255,255,0.9);
  padding: 50px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.gate-error {
  color: #d32f2f;
  margin-top: 10px;
  font-size: 0.9rem;
  display: none;
}
