﻿/* =========================
   General settings
========================= */

:root {
    --green: rgb(0, 55, 23);
    --green-light: #eaf1eb;
    --text: #303630;
    --muted: #68716a;
    --background: #ffffff;
    --soft-background: #f6f8f5;
    --border: #e1e7e1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: "Vazirmatn", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 2;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 90%);
    margin-inline: auto;
}

.narrow-container {
    max-width: 820px;
}

h1, h2, h3, p {
    margin-top: 0;
}

h2 {
    color: var(--green);
    font-size: 1.8rem;
    margin-bottom: 24px;
    text-align: center;
}

h3 {
    color: var(--green);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 0;
}


/* =========================
   Header and navigation
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--green);
    font-weight: 700;
    white-space: nowrap;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--text);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--green);
}

.menu-toggle,
.menu-button {
    display: none;
}

.menu-button svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}


/* =========================
   Hero section
========================= */

.hero {
    min-height: 460px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;

    background:
        linear-gradient(
            rgba(0, 55, 23, 0.83),
            rgba(0, 55, 23, 0.83)
        ),
        url("../img/garden.jpg") center / cover no-repeat;

    padding: 80px 0;
}

.hero-content {
    max-width: 850px;
}

.hero-intro {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.8;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #e5eee7;
}

.primary-link {
    display: inline-block;
    background: white;
    color: var(--green);
    padding: 9px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.primary-link:hover {
    background: var(--green-light);
}


/* =========================
   Content sections
========================= */

.content-section {
    padding: 75px 0;
}

.content-section p {
    text-align: justify;
    font-size: 1rem;
}

.concept-section {
    background: var(--soft-background);
}

.section-intro {
    color: var(--muted);
    text-align: center !important;
    margin-bottom: 35px;
}


/* =========================
   Cooperation cards
========================= */

.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.cooperation-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cooperation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 55, 23, 0.08);
}

.cooperation-card p {
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}


/* SVG icons */

.principle-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    background: var(--green-light);
    border-radius: 50%;
}

.principle-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   Contact section
========================= */

.contact-section {
    background: var(--soft-background);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 550px;
    margin: 30px auto 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.contact-item:hover {
    border-color: var(--green);
    color: var(--green);
}

.contact-item svg {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   Footer
========================= */

.site-footer {
    background: var(--green);
    color: white;
    padding: 22px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-separator {
    margin: 0 8px;
    opacity: 0.6;
}


/* =========================
   Tablet
========================= */

@media (max-width: 900px) {

    .cooperation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        gap: 18px;
    }

}


/* =========================
   Mobile
========================= */

@media (max-width: 650px) {

    .header-inner {
        min-height: 68px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--green);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 5%;
        background: white;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
    }

    .main-nav a {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }

    .hero {
        min-height: 390px;
        padding: 65px 0;
    }

    .content-section {
        padding: 55px 0;
    }

    .content-section p {
        font-size: 0.95rem;
    }

    .cooperation-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cooperation-card {
        padding: 25px 22px;
    }

    .footer-separator {
        display: none;
    }

}


/* =========================
   Small mobile landscape
========================= */

@media (max-width: 900px) and (orientation: landscape) {

    .hero {
        min-height: 300px;
        padding: 35px 0;
    }

    .content-section {
        padding: 40px 0;
    }

}


/* =========================
   Accessibility
========================= */

.menu-toggle:focus-visible + .menu-button {
    outline: 2px solid var(--green);
    outline-offset: 5px;
}

a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

}