/* Base styles */
:root {
    --color-cedar: #2A1810;
    --color-walnut: #3D2B1F;
    --color-maple: #E6C9A2;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(42, 24, 16, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 600;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu-button {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(42, 24, 16, 0.8), rgba(61, 43, 31, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    display: block;
    color: var(--color-maple);
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

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

.button {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.button.primary {
    background-color: var(--color-cedar);
    color: white;
}

.button.primary:hover {
    background-color: rgba(42, 24, 16, 0.9);
}

.button.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.scroll-arrow {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    cursor: pointer;
    animation: bounce 3s infinite;
}

.scroll-arrow svg {
    width: 2rem;
    height: 2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-hours h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

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

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

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Introduction Section */
.introduction {
    padding: 5rem 0;
    background-color: white;
}

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

.introduction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.introduction-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--color-walnut);
    margin-bottom: 1.5rem;
}

.introduction-content h2 span {
    display: block;
    color: var(--color-cedar);
}

.introduction-content p {
    font-size: 1.125rem;
    color: #4B5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--color-cedar);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4B5563;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gallery-img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

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

.gallery-img.tall {
    height: 500px;
    object-fit: cover;
}

.gallery-img.offset {
    margin-top: -2rem;
}

/* Animation Classes */
.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .introduction-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-img.tall {
        height: 400px;
    }

    .gallery-img.offset {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .stats {
        justify-content: center;
        gap: 3rem;
    }

    .stat-item {
        flex: 0 0 auto;
        width: calc(33.33% - 2rem);
    }

    .gallery-grid {
        gap: 0.5rem;
    }

    .gallery-img.tall {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .stat-item {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .mobile-menu-button span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: white;
        margin: 5px 0;
        transition: 0.3s;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-cedar);
        padding: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    background-color: #FAF6F1;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.portfolio-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--color-walnut);
    margin-bottom: 1rem;
}

.portfolio-header p {
    font-size: 1.25rem;
    color: #4B5563;
    max-width: 48rem;
    margin: 0 auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-button {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    color: #1F2937;
}

.filter-button:hover {
    background-color: var(--color-cedar);
    color: white;
}

.filter-button.active {
    background-color: var(--color-cedar);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-walnut);
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: #4B5563;
    font-size: 1rem;
}

.portfolio-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Portfolio Filtering Animation */
.portfolio-item {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

@media (max-width: 768px) {
    .portfolio-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }

    .filter-button {
        width: 100%;
        text-align: center;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: white;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--color-walnut);
    margin-bottom: 1rem;
}

.services-header p {
    font-size: 1.25rem;
    color: #4B5563;
    max-width: 48rem;
    margin: 0 auto;
}

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

.service-card {
    background-color: #FAF6F1;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-cedar);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-walnut);
    margin-bottom: 1rem;
}

.service-card p {
    color: #4B5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    color: #4B5563;
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: "";
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--color-cedar);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #FAF6F1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.rounded-image {
    width: 100%;
    height: 600px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    object-fit: cover;
    object-position: center;
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--color-walnut);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.125rem;
    color: #4B5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.values-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
}

.values-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-walnut);
    margin-bottom: 1rem;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-cedar);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-content h4 {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.25rem;
}

.value-content p {
    color: #4B5563;
    font-size: 1rem;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .rounded-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .values-card {
        padding: 1rem;
    }

    .value-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .value-icon {
        margin-bottom: 0.5rem;
    }

    .rounded-image {
        height: 400px;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: white;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--color-walnut);
    margin-bottom: 1rem;
}

.testimonials-header p {
    font-size: 1.25rem;
    color: #4B5563;
    max-width: 48rem;
    margin: 0 auto;
}

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

.testimonial-card {
    background-color: #FAF6F1;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    position: relative;
}

.quote-icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-cedar);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.quote-icon svg {
    width: 100%;
    height: 100%;
}

.testimonial-content > p {
    font-size: 1.125rem;
    color: #1F2937;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-weight: 600;
    color: var(--color-walnut);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #4B5563;
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: #FAF6F1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--color-walnut);
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.25rem;
    color: #4B5563;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-cedar);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-text h4 {
    font-weight: 600;
    color: var(--color-walnut);
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: #4B5563;
    line-height: 1.6;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #1F2937;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cedar);
    box-shadow: 0 0 0 2px rgba(42, 24, 16, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .button {
    width: 100%;
}

.captcha-group {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-container input {
    width: 100px !important;
}

#captcha-question {
    font-size: 1.125rem;
    color: var(--color-walnut);
    font-weight: 500;
}

#form-messages {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.375rem;
    display: none;
}

#form-messages.error {
    display: block;
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
}

#form-messages.success {
    display: block;
    background-color: #dcfce7;
    border: 1px solid #22c55e;
    color: #15803d;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info > p {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

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

.portfolio-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portfolio-loading p {
    color: #666;
    font-size: 1.1rem;
} 