/* Villantigua Remastered Styles */

:root {
    /* Color Palette */
    --color-forest: #1B3B28;
    --color-gold: #D4AF37;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F7;
    --color-text-dark: #2C2C2C;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-forest);
    font-weight: 700;
}

/* Navbar */
.navbar-custom {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-dark) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-gold) !important;
}

.btn-resident {
    border: 2px solid var(--color-forest);
    color: var(--color-forest);
    font-weight: 700;
    border-radius: 2px;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-resident:hover {
    background-color: var(--color-forest);
    color: var(--color-white);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 300;
}

.btn-hero {
    background-color: var(--color-gold);
    color: var(--color-white);
    padding: 1rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.btn-hero:hover {
    background-color: #bfa033;
    color: var(--color-white);
}

/* Sections */
section {
    padding: 5rem 0;
}

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 1rem auto 0;
}

/* Cards / Features */
.feature-card {
    text-align: center;
    padding: 2rem;
    border: none;
    background: transparent;
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Gallery Hover */
.gallery-item {
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact / Footer */
.footer-custom {
    background-color: var(--color-forest);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    /* Make logo white if PNG allows, else verify */
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .navbar-collapse {
        background-color: var(--color-white);
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .btn-resident {
        display: block;
        text-align: center;
        margin-top: 1rem;
        margin-left: 0 !important;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 70vh;
        min-height: 450px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    section {
        padding: 2rem 0;
    }

    .feature-card {
        padding: 1rem;
    }
}

/* =====================================================
   ACCESSIBILITY ENHANCEMENTS (WCAG 2.1)
   ===================================================== */

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-forest);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.btn:focus {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

/* SVG Icon Styles */
.icon {
    width: 48px;
    height: 48px;
    stroke: var(--color-gold);
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

.icon-sm {
    width: 20px;
    height: 20px;
}

.icon-md {
    width: 32px;
    height: 32px;
}

.icon-lg {
    width: 64px;
    height: 64px;
}

.feature-icon .icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

/* High Contrast Link Styles */
.text-link {
    color: var(--color-forest);
    text-decoration: underline;
    font-weight: 600;
}

.text-link:hover,
.text-link:focus {
    color: var(--color-gold);
}

/* Improved Button Contrast */
.btn-outline-dark {
    border: 2px solid var(--color-forest);
    color: var(--color-forest);
    font-weight: 600;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: var(--color-forest);
    color: var(--color-white);
}

/* Utility: Visually Hidden (Screen Reader Only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Text Utilities for Branding */
.text-forest {
    color: var(--color-forest);
}

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

/* Lazy Loading Placeholder */
img[loading="lazy"] {
    background-color: var(--color-gray-light);
}