/* Core CSS - Shared across all pages */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #4A0E1E;
    --primary-dark: #4A0E1E;
    --secondary: #fffdfb;
    --accent: #1F4E5F ;
    --text-primary: #2B2B2B;
    --text-secondary: #3A3F44;
    --text-light: #999999;
    --background: #fffdfb ;
    --background-light: #fffdfb ;
    --border: #3A3F44;
    --shadow: #2B2B2B;
    --gradient: #333333;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --section-padding-mobile: 3rem 0;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Basic Elements */
html {
    scroll-behavior: smooth;
    /* Disable aggressive scroll snapping to prevent mid-page starts */
    scroll-snap-type: none;
    scroll-padding-top: 80px; /* Account for fixed header height */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Utilities */
.font-sans {
    font-family: var(--font-family);
}

.font-serif {
    font-family: var(--font-family-serif);
}

.italic {
    font-style: italic;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    color: var(--text-primary);
    border: 1px solid var(--primary);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateY(0);
    opacity: 1;
}

.header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
}

/* Remove underline from header logo link */
.header-home-link,
.header-home-link:hover,
.header-home-link:visited,
.header-home-link:active,
.header-home-link:focus {
    text-decoration: none !important;
}

.logo a,
.logo a:hover,
.logo a:visited,
.logo a:active,
.logo a:focus {
    text-decoration: none !important;
}

/* Style the X in header logo */
.header-x-gradient {
    background: #4A0E1E;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-family: inherit;
    padding: 0.5rem 0;
}

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

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.dropdown-item:last-child {
    border-bottom: none;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: var(--transition);
}

/* Footer */
.footer {
    background: var(--background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.footer-brand h4 {
    font-size: var(--font-size-xl);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h5 {
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    text-shadow:0 20px 40px rgba(0, 0, 0, 0.15);
}

.section-header h3 {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
    text-shadow:0 20px 40px rgba(0, 0, 0, 0.15);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    text-align: center;
    scroll-snap-align: start;
}

.cta-content {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    max-width: 800px;
    margin: 0 auto;
}

.cta-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.35);
}

/* Reusable Glass Container */
.glass-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.glass-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.35);
}

.cta-content h3 {
    font-size: var(--font-size-4xl);
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow:0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-content p {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.cta-actions {
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    html {
        scroll-padding-top: 70px; /* Slightly reduced for mobile */
    }

    .container {
        padding: 0 1rem;
    }

    /* Header */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        border-top: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        padding: 1rem 0;
    }

    .nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: left;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }

    .dropdown-item {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header .btn.btn-primary {
        display: none;
    }

    /* Mobile menu toggle animation */
    .mobile-menu-toggle.menu-open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.menu-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.menu-open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .cta-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        display: none;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-column:nth-child(1),
    .footer-column:nth-child(2) {
        display: none;
    }

    .footer-column:nth-child(3) h5 {
        display: none;
    }

    .footer-column:nth-child(3) a[href*="contact"] {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Fine-tune scroll snap for very small screens */
@media (max-width: 480px) {
    html {
        scroll-padding-top: 60px; /* Further reduced for small mobile screens */
    }
}