/* ===== VARIABLES & GLOBAL SETUP ===== */
:root {
    --color-burgundy: #4A0D29;
    --color-beige: #F3E8E2;
    --color-blush: #E4B7B2;
    --color-charcoal: #2C2C2C;
    --color-white: #FFFFFF;
}

/* Global reset and box model setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full-height page structure */
html,
body {
    height: 100%;
}

/* Flex-based page layout */
body {
    display: flex;
    flex-direction: column;
    font-family: 'Lato', sans-serif;
    background: var(--color-beige);
    color: var(--color-charcoal);
    line-height: 1.6;
}

/* Main content area expansion */
main {
    flex: 1;
    padding-top: 5rem;
}


/* ===== TYPOGRAPHY ===== */
h1,
h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-burgundy);
    text-align: center;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-family: 'Playfair Display', serif;
    color: var(--color-burgundy);
    text-align: center;
    margin-bottom: 1rem;

}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    background: var(--color-burgundy);
    border-radius: 2rem;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-white);
    text-decoration: none;
}

.logo-img {
    height: 2rem;
    width: auto;
}

nav.nav-links {
    display: flex;
    gap: 1rem;
}

nav.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* Link hover effects */
nav.nav-links a:hover {
    background: var(--color-blush);
    color: var(--color-burgundy);
}

/* Special CTA button style */
nav.nav-links .cta {
    background: var(--color-blush);
    color: var(--color-burgundy);
    font-weight: bold;
}

nav.nav-links .cta:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.gallery h2 a {
    color: inherit;
    font-size: 1.9rem;
    text-decoration: none;
}

.gallery h2 a:hover {
    /* text-decoration: none; */
    padding: .6rem;
    border-radius: 20px;
    color: white;
    background-color: var(--color-burgundy);
}

/* Mobile menu toggle button */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Hamburger icon bars */
.mobile-menu .bar {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    margin: 4px 0;
    display: block;
    transition: all 0.3s ease;
}

/* Hamburger X when open */
.mobile-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ===== HERO SECTION ===== */
.hero {
    padding: 2rem 1rem;
    text-align: center;
}

/* Framed image */
.hero-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 24px solid rgba(241, 241, 239, 0.6);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: block; }


/* ===== HIGHLIGHTS/CARDS SECTION ===== */
.highlights {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
}

/* Card styling */
.card {
    position: relative;
    width: 400px;
    height: 440px;
    background: #eee;
    border-radius: 0.75rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient overlay for cards */
.card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--color-beige) 0%, transparent 100%);
}


/* ===== STATS SECTION ===== */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1.95rem;
}


/* ===== GALLERY SECTION ===== */
.gallery {
    padding: 2rem 1rem;
    text-align: center;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

/* Gallery thumbnail styling */
.thumb {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumb img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Hover zoom effect */
.thumb img:hover {
    transform: scale(1.05);
}

/* Gradient overlay for thumbs */
.thumb::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--color-beige) 0%, transparent 100%);
}


/* ===== CALL TO ACTION BUTTON ===== */
.cta-button {
    text-align: center;
    margin: 2rem 0;
}

.cta-button button {
    background: var(--color-blush);
    color: var(--color-charcoal);
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button button:hover {
    background: var(--color-burgundy);
    color: var(--color-white);
}


/* ===== FILTER BAR ===== */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Filter toggle buttons */
.filters button {
    background: var(--color-white);
    color: var(--color-charcoal);
    border: 2px solid var(--color-charcoal);
    padding: 0.5rem 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters button:hover {
    background: var(--color-blush);
    color: var(--color-burgundy);
    border-color: var(--color-blush);
}

/* Active filter state */
.filters button.active {
    background: var(--color-charcoal);
    color: var(--color-white);
    border-color: var(--color-charcoal);
}


/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    flex-direction: column;
    padding: 1rem;
}

.lightbox.active {
    display: flex;
}

.lightbox__img {
    max-width: 95%;
    max-height: 90%;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.lightbox__caption {
    color: var(--color-white);
    font-size: 1rem;
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--color-white);
    cursor: pointer;
}


/* ===== CONTACT FORM ===== */
.contact {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}

form#contact-form {
    display: grid;
    gap: 1rem;
}

/* Form field groups */
.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Input styling */
.form-group input,
.form-group textarea {
    padding: 0.5rem;
    border: 2px solid var(--color-charcoal);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

/* Focus state */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-burgundy);
}

/* Submit button */
button.form-submit {
    background: var(--color-blush);
    color: var(--color-charcoal);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

button.form-submit:hover {
    background: var(--color-burgundy);
    color: var(--color-white);
}


/* ===== TOGGLE SWITCHES ===== */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 30px;
}

.toggle-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* hide the real checkbox */
.toggle-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* the switch track */
.toggle-switch {
    position: relative;
    width: 2.5rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    background: var(--color-blush-transparent, #f4e3e3);
    border: 1px solid var(--color-blush);
    border-radius: 1.25rem;
    transition: background 0.2s, border-color 0.2s;
}

/* the knob */
.toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(1.25rem - 4px);
    height: calc(1.25rem - 4px);
    background: var(--color-blush);
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-label input:checked+.toggle-switch {
    background: var(--color-burgundy);
    border-color: var(--color-burgundy);
}

.toggle-label input:checked+.toggle-switch::after {
    transform: translateX(1.25rem);
}

/* ===== DATE PICKER ===== */
input[type="date"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-blush);
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* Validation styling */
.contact .required {
    color: rgb(141, 2, 2);
}

input.error,
textarea.error {
    border: 5px solid rgb(164, 2, 2);
    border-radius: 10px;
}

input[type="date"].error {
    border: 5px solid rgb(164, 2, 2);
    border-radius: 10px;
}

.toggle-group.invalid {
    border: 5px solid rgb(164, 2, 2);
    border-radius: 10px;
    padding: 0.5rem 30px;
}

/* ===== REVIEW PAGE ===== */
.review-container {
    background: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
}

/* ===== REVIEW PAGE ENHANCEMENTS ===== */
.review-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-burgundy);
}

.review-container .intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-charcoal);
}

.review-container .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.review-container .form-group label {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--color-burgundy);
}

.review-container .form-group .value {
    background: var(--color-beige);
    padding: 0.75rem;
    border: 1px solid var(--color-blush);
    border-radius: 0.5rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

.review-container .return-home a {
    display: inline-block;
    margin-top: 1.5rem;
    background: var(--color-blush);
    color: var(--color-charcoal);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease;
}

.review-container .return-home a:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.contact button.form-submit {
    background: var(--color-burgundy);
    color: var(--color-white);
    border: none;
}


/* ===== FOOTER ===== */
footer {
    background: var(--color-burgundy);
    color: var(--color-white);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
}

.socials a:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
}

/* Social icon sizing */
.socials .social-icon {
    width: 25px;
    height: auto;
    margin-right: 0.79rem;
    margin-left: 1rem;
    vertical-align: middle;
}

.socials .social-icon:last-child {
    margin-right: 0;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {

    nav.nav-links {
        display: none;
        flex-direction: column;
        background: var(--color-burgundy);
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 1rem;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    }

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

    .mobile-menu {
        display: block;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {

    .mobile-menu {
        display: none;
    }
}

/* ===== ABOUT PAGE ===== */
.about-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2.5rem 1.5rem;
    background: var(--color-white);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--color-charcoal);
}

.about-container h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--color-burgundy);
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-family: 'Playfair Display', serif;
    text-align: center;
}


.about-container p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Service cards */
.about-container .services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    list-style: none;
    padding: 0;
}

.about-container .services li {
    background: var(--color-burgundy);
    color: var(--color-white);
    padding: 1rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.about-container .services li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}



/* Team grid tweaks */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding: 0 1rem;
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 6px solid var(--color-beige);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.circle-image {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem;
}

.team-member img:hover {
    transform: scale(1.03);
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.team-member p {
    font-size: 1rem;
    opacity: 0.85;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

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

.team-member img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--color-burgundy);
}

.team-member p {
    font-size: 1rem;
    color: var(--color-charcoal);
}

.footer-link {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* =====REFERENCES PAGE===== */
.references-page main {
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
    padding: 0 1rem;
}