/* Variables & Reset */
:root {
    /* Balanced Theme Palette */
    --bg-body: #eff2f5;
    /* Slightly darker off-white to reduce glare */
    --bg-light: #e2e8f0;
    /* Darker shade for contrast sections */
    --bg-dark: #334155;
    /* Slate Gray */

    --text-main: #334155;
    /* Slate Gray */
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    /* For dark sections */
    --white: #ffffff;

    --gold: #C5A059;
    /* Muted Gold */
    --gold-light: #e2c078;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease-in-out;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-muted);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-center {
    text-align: center;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--text-main);
    border-color: var(--text-main);
    color: var(--white);
    /* White text for better visibility */
}

.btn-primary:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--text-main);
}

.btn-outline {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--white);
}

/* Hero Button Overrides (for Dark Background) */
.hero .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--text-main);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

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

.btn-block {
    display: block;
    width: 100%;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--gold);
    margin: 0 auto 1.5rem;
}

/* Navbar - Dark Theme */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 65, 85, 0.95);
    /* Slate Gray with opacity */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    /* White logo on dark navbar */
    letter-spacing: 1px;
}

.logo .accent {
    color: var(--gold);
}

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

.nav-links a {
    color: var(--white);
    /* White links on dark navbar */
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Specificity Fix for Navbar Button */
.nav-links .btn-primary {
    background-color: var(--gold);
    /* Gold button on dark navbar for visibility */
    border-color: var(--gold);
    color: var(--white);
}

.nav-links .btn-primary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    /* White hamburger on dark navbar */
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section - Dark Theme */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* Dark gradient overlay for Slate Gray look */
    background: linear-gradient(rgba(51, 65, 85, 0.9), rgba(51, 65, 85, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    /* White text on dark hero */
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    /* Light text on dark hero */
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    border: 1px solid var(--gold);
    /* Gold border for elegance */
    padding: 2rem;
    border-radius: 4px;
    background-color: var(--bg-body);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Services Section */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-body);
    padding: 2.5rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Membership Section */
.membership-section {
    background-color: var(--text-main);
    /* Dark background for contrast */
    color: var(--text-light);
    text-align: center;
}

.membership-content {
    max-width: 800px;
    margin: 0 auto;
}

.membership-section h2 {
    color: var(--white);
}

.membership-content p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--bg-body);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-light);
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--bg-body);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-body);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero {
        background-position: 70% center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}