/* =====================================================
   Wadi Duhok Co. — Twin-leaf identity
   Green = fresh produce division
   Walnut = furniture division
   ===================================================== */

:root {
    --green-deep:   #1C5236;
    --green-leaf:   #3E9B63;
    --green-pale:   #E7F2EA;
    --walnut:       #7A5230;
    --walnut-pale:  #F3ECE3;
    --paper:        #FBFAF6;
    --ink:          #17251C;
    --ink-soft:     #4B5A50;
    --line:         #E2E5DE;
    --white:        #FFFFFF;
    --radius:       18px;
    --shadow:       0 12px 34px rgba(23, 37, 28, .10);
    --font-ar-display: 'Cairo', sans-serif;
    --font-ar-body:    'Tajawal', sans-serif;
    --font-en-display: 'Archivo', sans-serif;
    --font-en-body:    'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

body {
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
}
body.lang-ar { font-family: var(--font-ar-body); }
body.lang-en { font-family: var(--font-en-body); }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4,
body.lang-ar .btn, body.lang-ar .kicker { font-family: var(--font-ar-display); }
body.lang-en h1, body.lang-en h2, body.lang-en h3, body.lang-en h4,
body.lang-en .btn, body.lang-en .kicker { font-family: var(--font-en-display); }

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding: 84px 0; }

.kicker {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-leaf);
    margin-bottom: 10px;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 900; line-height: 1.25; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 800; line-height: 1.3; }
.lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 60ch; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .98rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--green-deep); color: #fff; box-shadow: 0 8px 22px rgba(28, 82, 54, .32); }
.btn-solid:hover { background: #17422b; }
.btn-ghost { border: 2px solid var(--green-deep); color: var(--green-deep); }
.btn-ghost:hover { background: var(--green-pale); }
.btn-wa { background: #1FA855; color: #fff; box-shadow: 0 8px 22px rgba(31,168,85,.3); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(251, 250, 246, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-leaves { flex: none; display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; color: var(--green-deep); }
.brand-text small { font-size: .72rem; color: var(--ink-soft); letter-spacing: .04em; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); position: relative; padding: 4px 0; }
.main-nav a::after {
    content: ""; position: absolute; inset-inline-start: 0; bottom: -2px;
    width: 0; height: 2px; background: var(--green-leaf); transition: width .25s ease;
}
.main-nav a:hover { color: var(--green-deep); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
    border: 1.5px solid var(--green-deep);
    color: var(--green-deep);
    padding: 7px 18px; border-radius: 999px;
    font-weight: 700; font-size: .88rem;
    transition: background .2s, color .2s;
}
.lang-switch:hover { background: var(--green-deep); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 0; }
.hero-leaf-bg {
    position: absolute; inset-inline-end: -140px; top: -120px;
    width: 520px; color: var(--green-pale); opacity: .8; z-index: 0;
    transform: rotate(18deg);
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr .9fr;
    gap: 48px; align-items: center; padding-bottom: 64px;
}
.hero-copy h1 { margin: 6px 0 18px; color: var(--green-deep); }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Twin-leaf image frames — the signature element */
.hero-visual { display: flex; gap: 18px; justify-content: center; align-items: flex-end; }
.leaf-frame {
    width: 46%; aspect-ratio: 3 / 4.2; overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.leaf-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.leaf-frame:hover img { transform: scale(1.06); }
.leaf-green {
    border-radius: 76% 24% 70% 30% / 68% 30% 70% 32%;
    border: 4px solid var(--green-leaf);
    transform: rotate(-4deg);
}
.leaf-walnut {
    border-radius: 24% 76% 30% 70% / 30% 68% 32% 70%;
    border: 4px solid var(--walnut);
    transform: rotate(4deg) translateY(26px);
}

/* Marquee strip */
.marquee {
    border-block: 1px solid var(--line);
    background: var(--white);
    overflow: hidden; padding: 12px 0;
}
.marquee-track {
    display: flex; gap: 34px; width: max-content;
    animation: marquee 30s linear infinite;
    font-weight: 700; font-size: .9rem; color: var(--ink-soft);
    letter-spacing: .06em; white-space: nowrap;
}
.marquee .dot { color: var(--green-leaf); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.about-text p { margin-bottom: 16px; color: var(--ink-soft); font-size: 1.03rem; }
.stats { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.stat {
    flex: 1; min-width: 140px;
    background: var(--green-pale);
    border-radius: var(--radius);
    padding: 20px 18px; text-align: center;
}
.stat strong { display: block; font-size: 1.7rem; font-weight: 900; color: var(--green-deep); }
.stat span { font-size: .86rem; color: var(--ink-soft); }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.about-photo img { width: 100%; height: 420px; object-fit: cover; }
.about-photo figcaption { padding: 12px 16px; font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* ---------- Divisions ---------- */
.divisions-intro { padding-bottom: 20px; }

.division { padding-top: 56px; }
.division-head { max-width: 720px; margin-bottom: 36px; }
.division-badge {
    display: inline-block; padding: 6px 16px; border-radius: 999px;
    font-size: .8rem; font-weight: 800; letter-spacing: .1em;
    margin-bottom: 14px;
}
.division h2 { margin-bottom: 12px; }
.feature-list { margin-top: 18px; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-inline-start: 28px; color: var(--ink-soft); font-weight: 500; }
.feature-list li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 7px;
    width: 14px; height: 14px;
    border-radius: 70% 30% 70% 30% / 60% 40% 60% 40%;
}

.division-fruits { background: linear-gradient(180deg, var(--paper), var(--green-pale) 130%); }
.division-fruits .division-badge { background: var(--green-deep); color: #fff; }
.division-fruits h2 { color: var(--green-deep); }
.division-fruits .feature-list li::before { background: var(--green-leaf); }

.division-furniture { background: linear-gradient(180deg, var(--paper), var(--walnut-pale) 130%); }
.division-furniture .division-badge { background: var(--walnut); color: #fff; }
.division-furniture h2 { color: var(--walnut); }
.division-furniture .feature-list li::before { background: var(--walnut); border-radius: 30% 70% 30% 70% / 40% 60% 40% 60%; }
.division-furniture .kicker { color: var(--walnut); }

.gallery-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; color: var(--ink); }
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.gallery-wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.gallery-item {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 6px 18px rgba(23,37,28,.08);
    background: var(--white);
}
.gallery-item img {
    width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
    transition: transform .5s ease;
}
.gallery-wide .gallery-item img { aspect-ratio: 4 / 3; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Why us ---------- */
.why { background: var(--green-deep); color: #fff; }
.why .kicker { color: #9FD7B5; }
.why h2 { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: transform .25s ease, background .25s ease;
}
.why-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.1); }
.why-icon {
    display: grid; place-items: center;
    width: 46px; height: 46px; margin-bottom: 14px;
    border-radius: 70% 30% 70% 30% / 60% 40% 60% 40%;
    background: var(--green-leaf); color: #fff;
}
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { font-size: .92rem; color: #D6E7DC; }

/* ---------- Contact ---------- */
.contact-card {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) * 1.4);
    box-shadow: var(--shadow);
    padding: 48px;
}
.contact-copy h2 { color: var(--green-deep); margin-bottom: 12px; }
.contact-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.contact-list { display: grid; gap: 18px; align-content: center; }
.contact-list li {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 18px;
    background: var(--paper);
    border-radius: 14px;
    border-inline-start: 4px solid var(--green-leaf);
}
.c-label { font-size: .8rem; font-weight: 700; color: var(--green-deep); letter-spacing: .05em; }
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--green-leaf); }

/* ---------- Footer ---------- */
.site-footer { background: #122A1D; color: #C9DACF; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px; padding: 54px 0 36px;
}
.footer-brand { margin-bottom: 14px; align-items: flex-start; }
.footer-brand strong { color: #fff; font-size: .98rem; line-height: 1.5; }
.site-footer p { font-size: .92rem; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer a, .site-footer span { display: block; margin-bottom: 9px; font-size: .93rem; }
.site-footer a:hover { color: #8FCBA6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-inner, .about-grid, .contact-card { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 8px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-photo img { height: 340px; }
}
@media (max-width: 680px) {
    .section { padding: 60px 0; }
    .main-nav {
        position: fixed; inset-inline: 0; top: 62px;
        background: var(--white);
        flex-direction: column; gap: 0;
        border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .main-nav.open { max-height: 320px; }
    .main-nav a { padding: 14px 6%; border-top: 1px solid var(--line); }
    .nav-toggle { display: block; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 30px 22px; }
    .leaf-walnut { transform: rotate(4deg) translateY(12px); }
}
