:root {
    --blush-pink: #F4C2C2;
    --gold: #D4AF37;
    --soft-white: #E0E0E0;
    /* Adjusted for better contrast */
    --muted-green: #A4B494;
    --charcoal-gray: #2E2E2E;
    /* Adjusted for better contrast */
    /* Ensure this is the intended color */
    --overlay-bg: rgba(0, 0, 0, 0.75);
    --hero-image-url: url('../images/comprose.jpg');
    --button-max-width: 300px;
}

/* Base Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--soft-white);
    /* Chosen for contrast against the background while maintaining a soft aesthetic */
    color: var(--soft-white);
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Sets the background color to match the header and improve contrast in mobile view */
    background-color: var(--charcoal-gray);
    padding: 20px 40px;
    flex-wrap: wrap;
}

.logo {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: bold;
}

/* The .menu-icon is hidden by default and shown in responsive views */
.menu-icon {
    display: none;
    font-size: 1.8rem;
    color: var(--soft-white);
    cursor: pointer;
}

.menu-icon:hover {
    color: var(--gold);
    transform: scale(1.1);
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-toggle {
    display: none;
}

/* Styles for the navigation links container. 
   Ensures the links are displayed in a horizontal row with spacing. */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    /* Consistent spacing */
    padding: 0;
    margin: 0;
}

.nav-links a {
    /* Ensures consistency with the body background color */
    color: var(--soft-white);
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    transform: scale(1.10);
    color: var(--blush-pink);
    background-color: var(--charcoal-gray);
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

/* Style for the active navigation link */
.nav-links .active {
    color: var(--blush-pink);
    background-color: var(--charcoal-gray);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    background-image: url('../images/comprose.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px;
}

.hero-text-overlay {
    background-color: var(--overlay-bg);
    padding: 20px;
    border-radius: 5px;
    color: #fff;
    width: 90%;
    max-width: 700px;
}

.hero-text-overlay h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 1;
    transform: none;
    animation: fadeSlideUp 1s ease-out forwards;

    @media (prefers-reduced-motion: reduce) {
        animation: none;
    }

    will-change: opacity,
    transform;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Black */
.hero-btn {
    background-color: var(--gold);
    color: #000000;
    font-weight: bold;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    max-width: var(--button-max-width);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    margin-top: 20px;
    text-align: center;
    align-self: center;
}

.cta-btn {
    background-color: var(--gold);
    color: #000000;
    font-weight: bold;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    max-width: var(--button-max-width);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    margin-top: 20px;
    text-align: center;
    align-self: center;
    /* Ensures the button is centered under the text */
}

/* Adds a little space between the text and the button */
.hero-btn:hover {
    will-change: transform;
    transform: scale(1.10);
    color: var(--charcoal-gray);
    background-color: var(--blush-pink);
}

.cta-btn:hover {
    will-change: transform;
    transform: scale(1.10);
    color: var(--charcoal-gray);
    background-color: var(--blush-pink);
}

/* CTA Section */
.cta-section {
    background-color: var(--muted-green);
    padding: 60px 20px;
    text-align: center;
    color: var(--soft-white);
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    /* Consistent spacing */
}

.cta-section p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--soft-white);
    /* Improved contrast for better readability */
}

/* About Section */
.about-section {
    min-height: 85vh;
    /* Adjusted to a static percentage-based height */
    max-width: 900px;
    margin: 0 auto;
    padding: 5em 2em;
    /* Changed to relative units for better scaling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal-gray);
}

/* Responsive styles for screens with a maximum width of 768px */
@media (max-width: 768px) {
    .about-section {
        padding: 4em 1.5em;
        /* Adjusted padding for smaller screens */
    }
}


.about-heading {
    font-size: 2rem;
    font-weight: bolder;
    margin-bottom: 20px;
    color: var(--muted-green);
    text-align: center;
}

.about-section p {
    font-weight: normal;
    text-align: center;
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center-down;
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--muted-green);
    border-radius: 10px;
    opacity: 100%;

}

.contact-info a {
    color: var(--soft-white);
    text-decoration: none;
    font-weight: bold;
    opacity: 1;
    transform: translateY(0);
}


.contact-info a:hover {
    transform: scale(1.10);
    color: var(--blush-pink);
    text-decoration: underline;
    transition: transform 0.3s ease-out, color 0.3s ease-out;
}

.contact-info a:hover {
    /* Hover effect for contact links */
    text-align: center;
    font-size: 0.95rem;
}

/* Footer styles */
.footer {
    background-color: var(--charcoal-gray);
    /* Ensure this variable is correctly applied */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The .footer-contact class is used for styling specific contact information within the footer, 
   such as text or labels, and is distinct from the overall footer container (.footer). */
.footer-contact {
    color: var(--soft-white);
    font-size: 0.9rem;
    margin-right: 20px;
    text-align: center;
}

.footer a {
    color: var(--gold);
    text-decoration: none;
    margin: 0 5px;
    text-align: center;
}

.footer a:hover {
    color: var(--blush-pink);
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    /* Styles for navigation links in mobile view */
    .nav-links {
        /* Hides the navigation links in mobile view until the menu toggle is activated */
        flex-direction: column;
        display: none;
        background-color: var(--charcoal-gray);
        padding: 15px 0;
        width: 100%;
    }

    .menu-toggle:checked~.menu-icon+nav .nav-links {
        display: flex;
        flex-direction: column;
        /* Ensures proper layout for responsive view */
    }
}

.hero-text-overlay h1 {
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Removed redundant padding adjustment for .cta-section */

.about-section {
    padding: 40px 20px;
    font-size: 1rem;
}

.about-heading {
    font-size: 2rem;
}

/* Removed redundant padding adjustment for .contact-section */

/* Adjusts the footer layout for smaller screens to stack elements vertically */
.footer {
    flex-direction: column;
    gap: 10px;
}
