/* Premium ISKCON Design System - Style B: Rich Heritage */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* Colors */
    --color-bg-cream: #faf8f5;
    --color-bg-paper: #f0eadd;
    --color-text-main: #2c2926;
    --color-text-muted: #5a544d;
    --color-saffron: #e85c0d;
    --color-saffron-light: rgba(232, 92, 13, 0.1);
    --color-gold: #b8860b;
    --color-deep-blue: #0b192c;
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
    
    /* Spacing & Layout */
    --container-width: 1100px;
    --section-pad: 5rem 0;
    
    /* Effects */
    --transition-smooth: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-soft: 0 10px 40px rgba(11, 25, 44, 0.05);
    
    /* Noise Texture (Base64 transparent noise) */
    --bg-texture: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
}

/* Base Setup */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-cream);
    background-image: var(--bg-texture);
    color: var(--color-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Elements */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; color: var(--color-deep-blue); margin-bottom: 1.5rem; line-height: 1.2; }
h1 { font-size: 3.5rem; letter-spacing: -0.5px; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--color-text-muted); }
a { color: var(--color-gold); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--color-saffron); }

/* Layout & Containers */
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
section { padding: var(--section-pad); position: relative; }

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

/* Standard Header & Nav */
.site-header {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-saffron); text-decoration: none; letter-spacing: 1px; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-deep-blue); font-weight: 500; position: relative; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--color-saffron); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Buttons */
.btn {
    display: inline-block; padding: 1rem 2.5rem;
    font-family: var(--font-heading); font-style: italic; font-size: 1.1rem;
    background-color: transparent; border: 1px solid var(--color-gold);
    color: var(--color-gold); text-transform: capitalize;
    cursor: pointer; transition: var(--transition-smooth);
    border-radius: 2px;
}
.btn-primary { background-color: var(--color-gold); color: var(--color-bg-cream); }
.btn-primary:hover { background-color: var(--color-saffron); border-color: var(--color-saffron); color: var(--color-bg-cream); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(232, 92, 13, 0.15); }
.btn-secondary:hover { background-color: var(--color-gold); color: var(--color-bg-cream); }

/* Entry Page */
.entry-body { height: 100vh; display: flex; align-items: center; justify-content: center; background-color: var(--color-deep-blue); position: relative; overflow: hidden; }
.entry-body::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://picsum.photos/seed/templebg/1920/1080'); background-size: cover; background-position: center;
    opacity: 0.15; mix-blend-mode: overlay; z-index: 0;
}
.entry-card { text-align: center; background: rgba(250, 248, 245, 0.03); backdrop-filter: blur(15px); padding: 4rem 3rem; border: 1px solid rgba(255,255,255,0.05); border-radius: 4px; z-index: 1; max-width: 500px; width: 90%; }
.entry-card h1 { color: var(--color-gold); font-size: 2.5rem; margin-bottom: 0.5rem; }
.entry-card p { color: rgba(255,255,255,0.6); font-style: italic; margin-bottom: 2rem; }
.password-box { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.password-input { background: transparent; border: none; border-bottom: 1px solid rgba(184, 134, 11, 0.5); font-family: var(--font-body); font-size: 1.2rem; color: var(--color-white); text-align: center; padding: 0.8rem; width: 80%; outline: none; transition: border-color 0.3s; letter-spacing: 2px; }
.password-input:focus { border-bottom-color: var(--color-saffron); }
.error-msg { color: #e74c3c; font-size: 0.9rem; opacity: 0; transition: opacity 0.3s; margin-top: -0.5rem; }
.error-msg.show { opacity: 1; }
.page-fade-out { opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }

/* Cards & Elements */
.heritage-card { background: var(--color-bg-paper); padding: 2.5rem; border-radius: 2px; border: 1px solid rgba(184,134,11,0.1); transition: var(--transition-smooth); box-shadow: var(--shadow-soft); }
.heritage-card:hover { transform: translateY(-5px); border-color: rgba(184,134,11,0.3); }

/* Standard Section Headers */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem auto; }
.section-header h2 { font-size: 2.8rem; color: var(--color-deep-blue); margin-bottom: 1rem; }
.section-header .divider { width: 50px; height: 2px; background: var(--color-saffron); margin: 0 auto 1.5rem auto; }

/* Images */
.img-framed { width: 100%; border-radius: 2px; border: 8px solid var(--color-white); box-shadow: 0 15px 35px rgba(0,0,0,0.1); object-fit: cover; }
.img-tall { height: 600px; }
.img-wide { height: 400px; }

/* Footer */
.site-footer { background-color: var(--color-deep-blue); color: var(--color-white); padding: 4rem 0 2rem 0; text-align: center; border-top: 5px solid var(--color-saffron); }
.footer-logo { font-family: var(--font-heading); font-size: 2rem; color: var(--color-gold); margin-bottom: 1rem; display: block; }
.footer-quote { font-style: italic; color: rgba(255,255,255,0.7); margin-bottom: 3rem; }
.footer-socials { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 3rem; }
.footer-socials a { color: var(--color-gold); font-size: 1.6rem; transition: transform 0.3s ease, color 0.3s ease; text-decoration: none; }
.footer-socials a:hover { color: var(--color-white); transform: translateY(-4px); }
.footer-credits { font-size: 0.85rem; color: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-credits a { color: var(--color-saffron); transition: color 0.3s ease; text-decoration: none; }
.footer-credits a:hover { color: var(--color-white); }

@media (max-width: 900px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
    .nav-links { display: none; /* simple hidden state for mobile, could add hamburger */ }
    .section-pad { padding: 3rem 0; }
}
