:root {
    --cream: #FDFDED; /* Slightly lighter for backgrounds */
    --mustard: #E2B248;
    --brick-red: #A34A2F;
    --teal: #367588;
    --dark-brown: #4A4A4A;
    --light-grey: #D5D5D5;
    --background-dark: #2C2C2C; /* Darker for certain sections/text */
    --text-light: #FDFDED;
    --text-dark: #333333; /* For better contrast on light backgrounds */
    --border-soft: 1px solid rgba(0, 0, 0, 0.1);
    --shadow-vintage: 0 4px 15px rgba(0, 0, 0, 0.1);
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 4rem;
    --header-height: 80px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lora', serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    background-color: var(--cream);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Abril Fatface', serif;
    color: var(--brick-red);
    margin-top: 0;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 3.8rem; text-align: center; color: var(--mustard); text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
h2 { font-size: 2.8rem; text-align: center; color: var(--teal); margin-bottom: var(--spacing-medium); }
h3 { font-size: 2.2rem; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--mustard);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brick-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: sepia(0.2) saturate(1.2) contrast(1.1); /* Vintage photo tone */
}

/* Utility Classes */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

.section-padding {
    padding: var(--spacing-large) 0;
}

.section-title {
    margin-bottom: var(--spacing-medium);
    padding-top: var(--spacing-medium);
    position: relative;
    z-index: 2;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: -1.5rem auto var(--spacing-large);
    font-size: 1.1rem;
    color: var(--dark-brown);
}

.button {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    background-color: var(--mustard);
    color: var(--text-light);
    font-family: 'Pacifico', cursive;
    font-size: 1.3rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-shadow: var(--shadow-vintage);
}

.button:hover {
    background-color: var(--brick-red);
    transform: translateY(-2px);
    color: var(--text-light);
}

/* Header & Navigation */
.main-header {
    background-color: rgba(44, 44, 44, 0.8); /* Semi-transparent dark background */
    backdrop-filter: blur(5px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
    height: var(--header-height);
}

.logo a {
    font-family: 'Lobster', cursive;
    font-size: 2.5rem;
    color: var(--mustard);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
    white-space: nowrap; /* Prevent wrapping */
}

.logo a:hover {
    color: var(--cream);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-medium);
}

.nav-links a {
    color: var(--text-light);
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--mustard);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--mustard);
}


/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding: var(--header-height) 0 0; /* Adjust for fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/image_11.jpg') no-repeat center center/cover;
    filter: brightness(0.7) contrast(1.1) saturate(1.1) sepia(0.1); /* Subtle vintage tint */
    z-index: -1;
    transform: scale(1.02); /* Slight scale for vignette effect */
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.7) 100%); /* Vignette effect */
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: var(--spacing-medium);
    background-color: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
    border-radius: 10px;
    backdrop-filter: blur(3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-small);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
    line-height: 1.1;
    color: var(--mustard);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-large);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.5;
}

/* About Section */
.about-section {
    background-color: var(--cream);
    color: var(--text-dark);
}

.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-large);
    padding: var(--spacing-medium) 0;
}

.about-text {
    flex: 1;
    text-align: left;
    font-size: 1.1rem;
}

.about-text p:first-of-type {
    margin-top: 0;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-vintage);
    border: 3px solid var(--light-grey);
    filter: sepia(0.3) saturate(1.3) contrast(1.1) brightness(0.95);
}

/* Features Section (Icon with Text - adapted for no icons) */
.features-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/image_12.png'); /* Subtle fabric texture */
    opacity: 1;.1;
    z-index: 0;
}

.features-section .section-title,
.features-section .section-description {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-medium);
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--dark-brown);
    padding: var(--spacing-medium);
    border-radius: 8px;
    box-shadow: var(--shadow-vintage);
    text-align: center;
    border: var(--border-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: saturate(0.9);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    filter: saturate(1.1);
}

.feature-card h3 {
    color: var(--mustard);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-small);
}

.feature-card p {
    color: var(--light-grey);
    font-size: 1rem;
    line-height: 1.5;
}

/* Services Section (Feature Highlights) */
.services-section {
    background-color: var(--cream);
    color: var(--text-dark);
}

.feature-block {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-large);
    background-color: var(--text-light); /* Light background for the block */
    border-radius: 8px;
    box-shadow: var(--shadow-vintage);
    padding: var(--spacing-medium);
    border: var(--border-soft);
}

.feature-block:last-of-type {
    margin-bottom: 0;
}

.feature-block .feature-image {
    flex: 1;
    min-width: 300px;
    padding: var(--spacing-small);
}

.feature-block .feature-image img {
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-block .feature-text {
    flex: 2;
    padding: var(--spacing-medium);
}

.feature-block.alternating-layout:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-block h3.feature-heading {
    color: var(--brick-red);
    font-size: 2.2rem;
    margin-bottom: var(--spacing-small);
}

.feature-block p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-block ul {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-small);
}

.feature-block ul li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
    position: relative;
    padding-left: 1.5em;
}

.feature-block ul li::before {
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 8px;
    height: 8px;
    background-color: var(--mustard);
    border-radius: 50%;
}


/* Gallery Section (Interactive Showcase - adapted for no JS) */
.gallery-section {
    background-color: var(--light-grey);
    color: var(--text-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-medium);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-vintage);
    border: 2px solid var(--cream);
    background-color: var(--text-light);
}

.gallery-item img {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: sepia(0.3) saturate(1.2) contrast(1.1) brightness(0.9);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: sepia(0.1) saturate(1.4) contrast(1.2) brightness(1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: var(--text-light);
    padding: var(--spacing-small) var(--spacing-medium);
    opacity: 1;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: left;
    box-sizing: border-box;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-overlay h3 {
    color: var(--mustard);
    margin-bottom: 0.3em;
    font-size: 1.5rem;
}

.item-overlay p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--light-grey);
}

/* Team Section */
.team-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/image_13.png'); /* Subtle texture */
    opacity: 1;.05;
    z-index: 0;
}

.team-section .section-title,
.team-section .section-description {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-medium);
    position: relative;
    z-index: 1;
}

.team-card {
    background-color: var(--dark-brown);
    border-radius: 8px;
    box-shadow: var(--shadow-vintage);
    text-align: center;
    padding: var(--spacing-medium);
    border: var(--border-soft);
    filter: saturate(0.9);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-small);
    border: 4px solid var(--mustard);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
    filter: grayscale(0.2) contrast(1.1) brightness(0.9);
}

.team-card h3.team-name {
    color: var(--mustard);
    font-size: 1.8rem;
    margin-bottom: 0.5em;
}

.team-card .team-role {
    color: var(--teal);
    font-family: 'Pacifico', cursive;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-small);
    font-style: italic;
}

.team-card .team-bio {
    color: var(--light-grey);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Connect Section (Centered Form - adapted to no form) */
.connect-section {
    background-color: var(--cream);
    color: var(--text-dark);
}

.connect-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-medium);
    background-color: var(--text-light);
    border-radius: 8px;
    box-shadow: var(--shadow-vintage);
    border: var(--border-soft);
}

.connect-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.connect-content .general-info {
    font-style: italic;
    color: var(--teal);
    font-size: 1rem;
    margin-top: var(--spacing-medium);
}

/* Footer */
.main-footer {
    background-color: var(--background-dark);
    color: var(--light-grey);
    text-align: center;
    padding: var(--spacing-medium);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto; /* Pushes footer to the bottom */
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }

    .nav-links {
        gap: var(--spacing-small);
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .about-content,
    .feature-block {
        flex-direction: column;
        text-align: center;
    }
    .about-content.reverse {
        flex-direction: column-reverse;
    }
    .feature-block.alternating-layout:nth-child(even) {
        flex-direction: column; /* Stacks normally on small screens */
    }

    .feature-block .feature-text {
        padding: var(--spacing-small);
    }
    .feature-block .feature-image {
        padding: var(--spacing-small) 0;
    }
    .feature-block ul {
        text-align: left; /* Align list items to the left */
        padding-left: var(--spacing-medium);
    }
    .feature-block ul li::before {
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        height: auto;
        padding: var(--spacing-small);
    }
    .logo {
        margin-bottom: var(--spacing-small);
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .nav-links li {
        margin: 0.5rem 0.8rem;
    }
    .nav-links a {
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding-top: calc(var(--header-height) + 60px); /* Adjust for collapsed header */
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .section-padding {
        padding: var(--spacing-medium) 0;
    }
    .content-wrapper {
        padding: 0 var(--spacing-small);
    }

    .about-text, .feature-text {
        font-size: 1rem;
    }
    .feature-card p, .team-card .team-bio, .item-overlay p {
        font-size: 0.9rem;
    }
    
    .feature-block h3.feature-heading {
        font-size: 1.8rem;
    }
    .item-overlay h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .logo a {
        font-size: 2rem;
    }
    .nav-links {
        gap: 0.5rem;
    }
    .nav-links li {
        margin: 0.2rem 0.4rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .button {
        padding: 0.6rem 1.5rem;
        font-size: 1.1rem;
    }

    .about-image img {
        height: 250px;
    }

    .gallery-item img {
        height: 250px;
    }
    .item-overlay h3 {
        font-size: 1.1rem;
    }
    .item-overlay p {
        font-size: 0.8rem;
    }

    .team-card img {
        width: 120px;
        height: 120px;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Team grid stabilization */
+ .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
+ @media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
