/* ========================================
   Ayyappa Seva Trust - Premium Golden Theme
   Ref: Rich Gold, Radiant Amber, Divine Light
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Golden Palette */
    --color-gold-light: #FFD700;
    --color-gold: #C5960C;
    --color-gold-deep: #B8860B;
    --color-gold-dark: #8B6914;
    --color-amber: #F5C518;
    --color-cream: #FFF8E1;
    --color-cream-dark: #F5E6C8;
    --color-dark: #1a0f00;
    --color-dark-brown: #2a1a05;
    --color-dark-mid: #3d2b10;
    --color-text: #2a1a05;
    --color-text-light: #6b5a40;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #C5960C 50%, #B8860B 100%);
    --gradient-gold-h: linear-gradient(90deg, #FFD700 0%, #C5960C 50%, #B8860B 100%);
    --gradient-dark-gold: linear-gradient(135deg, #2a1a05 0%, #3d2b10 50%, #1a0f00 100%);
    --gradient-hero: linear-gradient(180deg, rgba(197, 150, 12, 0.15) 0%, rgba(255, 248, 225, 0.6) 50%, rgba(245, 197, 24, 0.1) 100%);
    --gradient-text: linear-gradient(135deg, #FFD700, #C5960C, #B8860B);
    --gradient-primary: linear-gradient(135deg, #2a1a05 0%, #3d2b10 100%);

    /* Typography */
    --font-heading: 'Cinzel Decorative', serif;
    --font-subheading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    /* Shadows */
    --shadow-gold: 0 4px 20px rgba(197, 150, 12, 0.3);
    --shadow-gold-lg: 0 8px 40px rgba(197, 150, 12, 0.4);
    --shadow-dark: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 20px 60px rgba(0, 0, 0, 0.3);

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-base: 0.3s ease;

    /* Z-Index */
    --z-sticky: 1000;

    /* Typography Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;

    /* Colors for compatibility */
    --color-primary: #C5960C;
    --color-bg-light: #F5E6C8;
    --color-bg-lighter: #FFF8E1;
    --color-paper: #FFF8E1;
    --color-paper-dark: #F5E6C8;
    --color-brown-dark: #2a1a05;
    --color-brown-light: #6b5a40;
    --color-saffron: #C5960C;
    --color-gold-compat: #FFD700;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-dark-brown);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    font-family: var(--font-subheading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Components
   ======================================== */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-gold);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.btn:hover {
    background: var(--color-dark);
    color: var(--color-gold-light);
    border-color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-lg);
}

.btn-primary {
    background: var(--color-dark);
    border-color: var(--color-gold);
    color: var(--color-gold-light);
}

.btn-primary:hover {
    background: var(--gradient-gold);
    color: var(--color-dark);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-secondary:hover {
    background: var(--gradient-gold);
    color: var(--color-dark);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

/* Page Header */
.page-header {
    padding-top: 140px;
    padding-bottom: var(--spacing-xl);
    background: linear-gradient(180deg, rgba(197, 150, 12, 0.08) 0%, transparent 100%);
}

/* ========================================
   Golden Effects
   ======================================== */

/* Golden Shimmer Border */
.golden-border {
    border: 2px solid var(--color-gold);
    position: relative;
}

.golden-border::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: inherit;
    pointer-events: none;
}

/* Torn Paper Edge - Top (Golden version) */
.torn-top {
    position: relative;
}

.torn-top::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: inherit;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 L0,25 C200,0 400,50 600,25 C800,0 1000,50 1200,25 L1200,50 Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 L0,25 C200,0 400,50 600,25 C800,0 1000,50 1200,25 L1200,50 Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    z-index: 2;
}

/* Torn Paper Edge - Bottom */
.torn-bottom {
    position: relative;
}

.torn-bottom::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: inherit;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L0,25 C200,50 400,0 600,25 C800,50 1000,0 1200,25 L1200,0 Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L0,25 C200,50 400,0 600,25 C800,50 1000,0 1200,25 L1200,0 Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    z-index: 2;
}

/* Background Sections - Dark Gold */
.bg-brown {
    background-color: var(--color-dark-brown);
    color: var(--color-cream);
}

.bg-brown h1,
.bg-brown h2,
.bg-brown h3 {
    color: var(--color-gold-light);
}

/* Polaroid Card Effect - Golden */
.polaroid {
    background: white;
    padding: 15px 15px 40px 15px;
    box-shadow: 0 4px 15px rgba(197, 150, 12, 0.15);
    transform: rotate(-2deg);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid rgba(197, 150, 12, 0.2);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 10;
    box-shadow: var(--shadow-gold);
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid.tape::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

/* Accordion (for FAQ) */
.accordion-item {
    border-bottom: 2px solid rgba(197, 150, 12, 0.2);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    color: var(--color-cream);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.accordion-content.active {
    padding-bottom: 20px;
}

.accordion-icon::after {
    content: '+';
    color: var(--color-gold-light);
}

.accordion-header.active .accordion-icon::after {
    content: '-';
}

/* Header & Nav */
.site-header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-dark-brown);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-gold);
}

/* Footer - Golden */
.site-footer {
    background: var(--gradient-dark-gold);
    color: var(--color-cream);
    text-align: center;
    padding: 60px 0 30px;
    position: relative;
}

.footer-logo {
    font-size: 3rem;
    color: var(--color-gold-light);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-shadow: 0 2px 10px rgba(197, 150, 12, 0.4);
}

/* Text Utility Classes */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-light {
    color: var(--color-text-light);
}

.max-width-600 {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.w-100 {
    width: 100%;
}

/* Utility */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-lg {
    margin-bottom: 2rem;
}

/* Golden Glow Keyframes */
@keyframes golden-shimmer {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    }
}

@keyframes golden-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Animate classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Background pattern */
.bg-pattern {
    background-image: radial-gradient(circle at 20% 30%, rgba(197, 150, 12, 0.05) 2px, transparent 2px);
    background-size: 40px 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
    }

    .page-header {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }
}