/* style.css – modern professional palette: deep green, sand, off-white */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
    background-color: #fcfaf7;
    color: #1e2a21;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
main { flex: 1; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Selection styling */
::selection {
    background: #8f6b4c;
    color: white;
}

/* navbar */
.navbar {
    background: #ffffffdd;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,40,10,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #1e3a2f;
}
.logo span {
    color: #8f6b4c;
    font-weight: 300;
    margin-left: 0.2rem;
}
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-link {
    text-decoration: none;
    color: #2d3e35;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.nav-link:hover, .nav-link.active {
    border-bottom-color: #8f6b4c;
    color: #1e3a2f;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.bar {
    width: 25px;
    height: 3px;
    background: #1e3a2f;
    border-radius: 2px;
    transition: 0.3s;
}

/* hero */
.hero {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 4rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    position: relative;
}
.hero-content { 
    flex: 1 1 400px;
    z-index: 2;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1e3a2f;
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.2rem;
    color: #4a5d52;
    margin-bottom: 2.5rem;
    font-weight: 400;
}
.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.highlight {
    background: linear-gradient(135deg, #b5d3b5 0%, #8fbc8f 100%);
    padding: 0.2rem 0.8rem;
    border-radius: 8px;
    display: inline-block;
    color: #1e3a2f;
    font-weight: 600;
}
.hero-image {
    flex: 1 1 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(45, 77, 58, 0.3);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}
.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}
.hero-image img { 
    width: 100%; 
    height: auto; 
    display: block;
    transition: transform 0.3s ease;
}
.hero-image:hover img {
    transform: scale(1.05);
}

/* cards */
.cards-section {
    max-width: 1300px;
    margin: 6rem auto;
    padding: 0 2rem;
}
.cards-section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #1e3a2f;
    margin-bottom: 1rem;
    font-weight: 600;
}
.cards-section > p {
    text-align: center;
    font-size: 1.1rem;
    color: #5a6b62;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}
.card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px rgba(30,58,47,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid #f5f0e7;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8f6b4c, #b5d3b5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.card:hover::before {
    transform: scaleX(1);
}
.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(30,58,47,0.15);
}
.card i {
    font-size: 3rem;
    color: #8f6b4c;
    margin-bottom: 1.5rem;
    display: block;
}
.card h3 { 
    margin-bottom: 1rem; 
    color: #1e3a2f;
    font-size: 1.3rem;
    font-weight: 600;
}
.card p {
    color: #5a6b62;
    line-height: 1.6;
}

/* cta banner */
.cta-banner {
    background: #1e3a2f;
    color: #f5efe7;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 48px 48px 0 0;
    margin-top: 4rem;
}
.cta-banner h3 { font-size: 2rem; margin-bottom: 1.5rem; }

/* buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before {
    left: 100%;
}
.primary {
    background: linear-gradient(135deg, #8f6b4c 0%, #7b5b40 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(143, 107, 76, 0.3);
}
.primary:hover {
    background: linear-gradient(135deg, #7b5b40 0%, #6b4d36 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(143, 107, 76, 0.4);
}
.secondary {
    background: transparent;
    border: 2px solid #8f6b4c;
    color: #8f6b4c;
}
.secondary:hover {
    background: #8f6b4c;
    color: white;
    transform: translateY(-2px);
}
.block { width: 100%; }

/* footer */
footer {
    background: #1e2a21;
    color: #ddcebe;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}
.footer-content {
    max-width: 1300px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-section h4 {
    color: #b5d3b5;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}
.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 0.8rem;
}
.footer-section a {
    color: #ddcebe;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section a:hover {
    color: #b5d3b5;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2d3e35;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: #8f6b4c;
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid #2d3e35;
    padding-top: 2rem;
    text-align: center;
    color: #a8b5a8;
}

/* forms */
.page-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}
.form-card {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: 0 30px 50px -20px #1e3a2f40;
}
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}
.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
    color: #1e3a2f;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid #dad3ca;
    border-radius: 24px;
    font-size: 1rem;
    transition: 0.15s;
    background: #fefcf9;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #8f6b4c;
    outline: none;
    box-shadow: 0 0 0 4px #8f6b4c20;
}
.password-wrapper {
    position: relative;
}
.toggle-pw {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #5f6b64;
}
.error {
    color: #b13e3e;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}
.success {
    color: #1e7e4a;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
}
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e3a2f;
    color: white;
    padding: 1rem 2rem;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 999;
}
.toast.hidden { opacity: 0; pointer-events: none; }

/* Page-specific styles */
.page-hero {
    background: linear-gradient(135deg, #f5f0e7 0%, #e8ddd0 100%);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.page-hero h1 {
    font-size: 3rem;
    color: #1e3a2f;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.2rem;
    color: #5a6b62;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats section */
.stats-section {
    background: #1e3a2f;
    color: white;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: #b5d3b5;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Gallery section */
.gallery-section {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 2rem;
}

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

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(30,58,47,0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1.5rem;
    background: white;
}

.gallery-caption h4 {
    color: #1e3a2f;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    color: #5a6b62;
    font-size: 0.9rem;
}
.team-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(30,58,47,0.08);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #f5f0e7;
}

.team-member h4 {
    color: #1e3a2f;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: #8f6b4c;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-member p {
    color: #5a6b62;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        box-shadow: 0 20px 30px rgba(0,0,0,0.1);
        transition: 0.4s;
        gap: 1rem;
    }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    .hero { 
        flex-direction: column; 
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-image {
        transform: none;
    }
    .cards-section h2 { font-size: 2.2rem; }
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .page-hero h1 { font-size: 2.2rem; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
    }
}