/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@1,400&display=swap');

:root {
    /* Modern Traditional Palette */
    --color-maroon: #6D0707;
    /* A refined, deep maroon */
    --color-gold: #D4AF37;
    /* Elegant metallic gold */
    --color-gold-light: #F4E4BC;
    /* Soft gold background */
    --color-text-dark: #1A1A1A;
    /* Near black for contrast */
    --color-text-light: #555555;
    /* Soft grey for body */
    --color-bg-body: #FAFAFA;
    /* Clean off-white */
    --color-bg-card: #FFFFFF;
    /* Pure white for cards */
    --color-border: #E5E5E5;
    /* Subtle borders */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;

    /* Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-dark);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', serif;
    color: var(--color-maroon);
    margin-top: 0;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-maroon);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

a:hover {
    color: var(--color-gold);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold);
}

.text-maroon {
    color: var(--color-maroon);
}

/* Components */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-maroon);
    color: #fff;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(109, 7, 7, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 7, 7, 0.4);
    color: #fff;
}

.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-gold-light);
}

/* Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-maroon);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--color-text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: var(--spacing-lg) 0;
    font-family: 'Inter', sans-serif;
}

footer h3 {
    color: #fff;
}

footer p {
    color: #888;
    font-size: 0.95rem;
}

/* Hero */
.hero-modern {
    height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    color: white;
}

.hero-content-modern h1 {
    color: white;
    font-size: 4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-content-modern p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    margin-bottom: 2.5rem;
}

/* Image Grids */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.img-modern {
    width: 100%;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

/* Section Title Decoration */
.section-title-wrapper {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-icon {
    width: 40px;
    height: auto;
    opacity: 0.6;
    margin-bottom: 10px;
}

/* Responsive Grid Utilities */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-1-2-col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.grid-2-1-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Mobile Media Queries */
@media (max-width: 768px) {

    :root {
        /* Reduce spacing for mobile */
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
    }

    /* Global Typography Adjustments */
    h1 {
        font-size: 2.2rem;
        /* Slightly smaller for better fit */
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Layout Adjustments */
    .container {
        padding: 0 var(--spacing-sm);
    }

    .grid-2-col,
    .grid-1-2-col,
    .grid-2-1-col {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        /* Center text for stacked grids */
    }

    /* Center images in piled content */
    .grid-2-col img,
    .grid-1-2-col img,
    .grid-2-1-col img {
        margin: 0 auto;
        display: block;
        max-height: 300px;
        /* Prevent massive images */
        width: auto;
        max-width: 100%;
        height: auto;
    }

    /* Ensure specific fixed height images reset */
    .img-modern {
        height: auto !important;
    }

    /* Navigation */
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }

    .logo-text {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px;
        background: rgba(0, 0, 0, 0.03);
        /* Subtle button feel */
        border-radius: 4px;
    }

    /* Hero Section */
    .hero-modern {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content-modern h1 {
        font-size: 2.2rem;
    }

    .hero-content-modern p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    /* Footer */
    footer .container>div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    footer .container>div>div {
        text-align: center !important;
        justify-content: center !important;
    }

    /* Target specific flex containers in footer to center them */
    footer div[style*="display: flex"] {
        justify-content: center !important;
    }
}