/* ===================================
   DBAVC Website - Common Styles
   ================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Jaldi:wght@400;700&family=Inter:wght@400;500&display=swap');

/* ===================================
   CSS Variables & Root Styles
   ================================ */
:root {
    --primary: #2C4B64;
    --primary-light: #4A6D8C;
    --secondary: #81C784;
    --accent: #FFB74D;
    --bg-main: #FFFFFF;
    --bg-alt: #F4F4F8;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
}

/* ===================================
   Typography
   ================================ */
.font-lora {
    font-family: 'Lora', serif;
}

.font-jaldi {
    font-family: 'Jaldi', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   Layout Components
   ================================ */

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Content Section */
.content-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .content-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ===================================
   Hero Section
   ================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #2C4B64 0%, #1a3347 100%);
    padding: 4rem 0;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 6rem 0;
    }
}

.hero-overlay {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Legacy hero style */
.hero-traditional {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
}

/* ===================================
   Section Title
   ================================ */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-title h2 {
        font-size: 2.25rem;
    }
}

.section-title p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ===================================
   Card Component
   ================================ */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Legacy card style */
.card-traditional {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-traditional:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ===================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-light);
}

.btn-secondary {
    background-color: var(--bg-alt);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #E5E7EB;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* ===================================
   Navigation
   ================================ */
.nav-link {
    position: relative;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

/* Glass Navigation Effect */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--bg-alt);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ===================================
   Footer
   ================================ */
.footer {
    background-color: #1F2937;
    color: #D1D5DB;
    padding: 2.5rem 0;
}

.footer a {
    color: #D1D5DB;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* ===================================
   Utilities
   ================================ */

/* Smooth Transitions */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text Utilities */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--text-muted);
}

/* Background Utilities */
.bg-primary {
    background-color: var(--primary);
}

.bg-alt {
    background-color: var(--bg-alt);
}

.bg-grid {
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Spacing Utilities */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* ===================================
   Engagement: WhatsApp Floating Button
   ================================ */
#wa-fab {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 0.75rem 1.2rem 0.75rem 1rem;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

#wa-fab:hover {
    background: #1ebe5c;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 640px) {
    #wa-fab {
        padding: 0.8rem;
        border-radius: 50%;
    }
    #wa-fab-label {
        display: none;
    }
}

/* ===================================
   Engagement: Daily Quote Bar
   ================================ */
#daily-quote-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* must be above Leaflet controls (z-index 800) and popups (700) */
    background: #1e3a52;
    color: #fff;
    padding: 0.75rem 1.25rem;
    transition: opacity 0.35s ease, transform 0.35s ease;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.28);
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Add bottom clearance so the quote bar doesn't overlap footer content */
body.dq-visible {
    padding-bottom: 56px;
}

/* When both quote bar and WhatsApp FAB are active, lift FAB above bar */
body.dq-visible #wa-fab {
    bottom: calc(56px + 1.25rem);
}

@media (max-width: 640px) {
    body.dq-visible {
        padding-bottom: 52px;
    }
    body.dq-visible #wa-fab {
        bottom: calc(52px + 1rem);
    }
}

.dq-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

/* Opening quotation mark — pure CSS, no emoji */
.dq-icon {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.4rem;
    line-height: 1;
    color: #FFB74D;
    flex-shrink: 0;
    margin-top: -4px;
    user-select: none;
}

.dq-text {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.5rem;
    font-style: normal;
    margin: 0;
}

.dq-quote {
    font-size: 0.97rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Lora', serif;
    font-style: italic;
    letter-spacing: 0.01em;
}

.dq-author {
    font-size: 0.8rem;
    color: #FFB74D;
    font-weight: 600;
    font-style: normal;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.dq-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.dq-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.dq-source {
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: underline;
    text-underline-offset: 2px;
    flex-shrink: 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.dq-source:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 640px) {
    .dq-quote { font-size: 0.88rem; }
    .dq-icon  { font-size: 2rem; }
    .dq-source { display: none; }
}

/* ===================================
   Engagement: Event Notification Signup
   ================================ */
.notify-form-wrapper {
    background: linear-gradient(135deg, #2C4B64 0%, #4A6D8C 100%);
    border-radius: 1rem;
    padding: 2rem 2rem 1.75rem;
    color: #fff;
    box-shadow: 0 8px 30px rgba(44, 75, 100, 0.18);
}

.notify-form-wrapper h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.notify-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    color: #333;
}

.notify-input:focus {
    border-color: #FFB74D;
}

.notify-submit {
    background: #FFB74D;
    color: #2C4B64;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.notify-submit:hover {
    background: #ffa726;
    transform: translateY(-1px);
}

.notify-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}