/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --primary-blue: #1C2B22;      /* deep forest/slate */
    --secondary-blue: #D97D3D;    /* warm terracotta/amber */
    --accent-green: #5B8C5A;      /* earthy green */
    --light-bg: #E9DFC7;          /* warm sand background, deeper */
    --text-dark: #2B2B28;
    --text-light: #6B6760;
    --white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
}

/* Header */
header {
    background-color: #14140F;
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--secondary-blue);
}

.logo {
    font-size: 1.6rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-blue);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: color 0.25s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--secondary-blue);
    transition: width 0.25s ease;
}

nav a:hover, nav a.active {
    color: var(--secondary-blue);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

nav a.cta-button::after { display: none; }
nav a.cta-button { color: var(--white); }

/* Hero Section - uses --hero-img custom property set inline per page */
.hero {
    --hero-img: url('../img/IMG_9081.jpg');
    background:
        linear-gradient(135deg, rgba(28,43,34,0.88) 0%, rgba(56,40,20,0.8) 100%),
        var(--hero-img);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 130px 20px;
    text-align: center;
    position: relative;
}

.hero.subpage-hero {
    padding: 75px 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    animation: fadeUp 0.8s ease both;
}

.hero.subpage-hero h1 {
    font-size: 2.4rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0,0,0,0.25);
    animation: fadeUp 0.8s ease 0.15s both;
}

.hero .cta-button {
    animation: fadeUp 0.8s ease 0.3s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(217, 125, 61, 0.4);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 125%;
}

.cta-button:hover {
    background-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(91, 140, 90, 0.45);
    color: var(--white);
}

/* Main content */
main {
    flex: 1;
}

.section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Blurred photo background for a section. Set --section-img inline. */
.section-bg::before {
    content: '';
    position: absolute;
    inset: -30px;
    background-image: var(--section-img);
    background-size: cover;
    background-position: center;
    filter: blur(14px) saturate(1.05) brightness(0.95);
    opacity: 0.55;
    z-index: 0;
    transform: scale(1.05);
}

.section-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(233,223,199,0.45) 0%, rgba(233,223,199,0.72) 100%);
    z-index: 0;
}

.section-bg.section-dark::after {
    background: linear-gradient(180deg, rgba(28,43,34,0.55) 0%, rgba(28,43,34,0.8) 100%);
}

.section-tint {
    background-color: #E3D7B8;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--secondary-blue);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cards */
.card {
    background: #FFFDF7;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(28,43,34,0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
    border-top: 4px solid var(--secondary-blue);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(28,43,34,0.15);
}

.card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card p {
    color: var(--text-light);
}

.card ul {
    padding-left: 20px;
    color: var(--text-light);
}

.card li {
    margin-bottom: 10px;
}

/* Image card */
.image-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(20,20,15,0.25);
    border: 5px solid var(--white);
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-4px);
}

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

/* Form Styles */
.contact-form {
    background: #FFFDF7;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(28,43,34,0.15);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd5c8;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #FBF8F1;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(217,125,61,0.15);
    background: var(--white);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(28,43,34,0.16);
    background-color: #e7ded0;
    aspect-ratio: 4/3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 5px solid var(--white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(28,43,34,0.22);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(28, 43, 34, 0.92), rgba(28,43,34,0));
    color: var(--white);
    padding: 30px 15px 15px;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #14140F;
    color: var(--white);
    text-align: center;
    padding: 50px 20px 30px;
    margin-top: auto;
    border-top: 3px solid var(--secondary-blue);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: left;
}

.footer-col {
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col p, .footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--secondary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px;
        flex-wrap: nowrap;
    }

    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 28px;
        height: 22px;
        cursor: pointer;
        z-index: 101;
    }

    .nav-toggle-label span,
    .nav-toggle-label::before,
    .nav-toggle-label::after {
        content: '';
        display: block;
        height: 2px;
        width: 100%;
        background: var(--white);
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    header nav {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        width: 100%;
        margin: 0;
        padding: 22px 0;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #14140F;
        border-bottom: 3px solid var(--secondary-blue);
    }

    .nav-toggle:checked ~ nav ul {
        display: flex;
    }

    .nav-toggle:checked ~ .nav-toggle-label span {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label::before {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-label::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}
