/* ==========================================================================
   Dabhoda Hanuman Mandir Trust - Premium Luxury Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600&family=Noto+Sans+Gujarati:wght@400;500;600&display=swap');

:root {
    --color-ivory-bg: #FAF7F2;
    --color-white: #FFFFFF;
    --color-maroon-primary: #651B17;
    --color-maroon-dark: #45100D;
    --color-maroon-glow: #8B2520;
    --color-gold-antique: #B8893D;
    --color-gold-soft: #D6B36A;
    --color-gold-bright: #F4D068;
    --color-text-primary: #241C19;
    --color-text-secondary: #5A524C;
    --color-border: #E8DFD5;
    --color-border-gold: #D6B36A;
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-gu: 'Noto Sans Gujarati', sans-serif;
    --font-hi: 'Noto Sans Devanagari', sans-serif;
    
    --container-max-width: 1280px;
    --section-spacing: 96px;
    --card-radius: 20px;
    --button-radius: 12px;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px rgba(69, 16, 13, 0.06);
    --shadow-hover: 0 20px 40px rgba(69, 16, 13, 0.14);
    --shadow-gold: 0 10px 25px rgba(184, 137, 61, 0.25);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--color-ivory-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-maroon-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.65rem, 2.75vw, 2.35rem); }
h4 { font-size: 1.45rem; }
h5 { font-size: 1.2rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

p:last-child {
    margin-bottom: 0;
}

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

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

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.section {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
    position: relative;
}

.section-light {
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px auto;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold-antique);
    margin-bottom: 14px;
    background: rgba(184, 137, 61, 0.08);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(184, 137, 61, 0.2);
}

.section-title {
    margin-bottom: 18px;
    color: var(--color-maroon-dark);
}

/* Grid System */
.grid {
    display: grid;
    gap: 32px;
}

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

/* Luxury Cards */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 36px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-maroon-primary), var(--color-gold-antique));
    opacity: 0;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(184, 137, 61, 0.4);
}

.card:hover::before {
    opacity: 1;
}

/* Premium Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 52px;
    padding: 0 32px;
    font-family: var(--font-body);
    font-size: 0.975rem;
    font-weight: 600;
    border-radius: var(--button-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-maroon-primary) 0%, var(--color-maroon-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(101, 27, 23, 0.25);
    border: 1px solid rgba(214, 179, 106, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-maroon-glow) 0%, var(--color-maroon-primary) 100%);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(101, 27, 23, 0.38);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-maroon-dark);
    border: 1.5px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background-color: var(--color-ivory-bg);
    border-color: var(--color-maroon-primary);
    color: var(--color-maroon-primary);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-gold-antique) 0%, #A2752F 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-gold);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--color-gold-soft) 0%, var(--color-gold-antique) 100%);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--card-radius);
}

/* Alert Boxes */
.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 28px;
    font-size: 0.975rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.alert-success {
    background-color: #EBF9F1;
    color: #0F5B31;
    border: 1px solid #B8EAD0;
}

.alert-error {
    background-color: #FDF2F2;
    color: #9B1C1C;
    border: 1px solid #F8B4B4;
}
