/* Agricultural visual language, built entirely from local assets and CSS. */
:root {
    --color-bg: #f7f8f2;
    --color-surface: #fff;
    --color-ink: #213b30;
    --color-ink-muted: #63756a;
    --color-primary: #216349;
    --color-primary-dark: #173e32;
    --color-water: #4a9fa2;
    --color-sediment: #efb666;
    --color-alert: #ad5a3d;
    --color-border: #e1e9dc;
    --color-border-strong: #c4d5c6;
    --content-max-width: 1180px;
    --radius: 16px;
    --font-body: IRANSans, "IRANYekanX VF", Tahoma, sans-serif;
    --font-display: IRANSans, "IRANYekanX VF", Tahoma, sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--color-bg); color: var(--color-ink); line-height: 1.85; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.45; }
a { color: var(--color-primary); }
button, input, select, textarea { font: inherit; }
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); }
.site-header__bar { max-width: 1220px; min-height: 86px; padding: .8rem 1.5rem; }
.site-header__brand { color: var(--color-primary-dark); font-size: 1.38rem; gap: .75rem; line-height: 1.2; }
.site-header__brand:hover { color: var(--color-primary); }
.site-header__brand small { display: block; font-size: .65rem; color: var(--color-ink-muted); margin-top: .28rem; font-weight: 500; }
.brand-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #e9f4e5; }
.brand-icon svg { width: 34px; }
.site-nav { align-items: center; gap: .4rem; }
.site-nav a, .nav-logout button { color: var(--color-ink); font-size: .93rem; text-transform: none; padding: .55rem .9rem; border-radius: 10px; text-decoration: none; background: none; border: 0; cursor: pointer; }
.site-nav a:hover, .nav-logout button:hover { color: var(--color-primary); background: #eef5e9; text-decoration: none; }
.site-nav a.site-nav__cta { color: #fff; background: var(--color-primary); padding-inline: 1.3rem; }
.site-nav a.site-nav__cta:hover { color: #fff; background: var(--color-primary-dark); }
.nav-logout { margin: 0; }
.site-main { max-width: 1220px; padding: 2.3rem 1.5rem 5rem; min-height: calc(100vh - 200px); }
.site-footer { background: var(--color-primary-dark); border: 0; color: #d9e9db; text-align: right; padding: 2rem 1.5rem; }
.site-footer__inner { max-width: 1180px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer strong { color: #fff; font-size: 1.15rem; }
.site-footer p { margin: .15rem 0 0; }
.site-footer span { font-size: .85rem; }
.btn { border-radius: 12px; padding: .74rem 1.5rem; font-size: .94rem; display: inline-flex; align-items: center; justify-content: center; gap: .85rem; text-transform: none; line-height: 1.6; box-shadow: none; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }
.btn--secondary, .btn--light { border: 1px solid var(--color-border-strong); background: #fff; color: var(--color-primary-dark); }
.btn--secondary:hover, .btn--light:hover { background: #edf5e9; color: var(--color-primary-dark); }
.btn--cream { background: #fff8dc; color: var(--color-primary-dark); }
.btn--cream:hover { background: #fff; color: var(--color-primary-dark); }
.hero { min-height: 550px; border-radius: 30px; background: linear-gradient(120deg, #eff6e6 0%, #eaf4e6 45%, #dcebd3 100%); display: grid; grid-template-columns: 1fr .92fr; overflow: hidden; position: relative; isolation: isolate; }
.hero__copy { padding: clamp(2.1rem, 5vw, 5.3rem); align-self: center; position: relative; z-index: 2; }
.eyebrow, .section-kicker { color: #3e8260; font-weight: 700; font-size: .88rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: #fff9; border: 1px solid #d6e9d4; padding: .4rem .8rem; border-radius: 30px; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: #65a86c; }
.hero h1 { font-size: clamp(2.3rem, 4.1vw, 4.3rem); font-weight: 800; color: #1e4838; margin: 1.4rem 0 1rem; line-height: 1.45; }
.hero h1 em { font-style: normal; color: #6a9b43; }
.hero__copy > p { max-width: 490px; color: #53695c; font-size: 1.06rem; }
.hero__actions { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__note { color: #537665; font-size: .83rem; margin-top: 1.3rem; }
.hero__note span { color: #3c9067; margin-left: .25rem; }
.hero__scene { position: relative; min-height: 500px; overflow: hidden; }
.scene__sun { position: absolute; width: 140px; height: 140px; left: 19%; top: 13%; border-radius: 50%; background: #ffdc91; box-shadow: 0 0 0 22px #fff3c566; }
.scene__hill { position: absolute; width: 130%; height: 250px; bottom: 16%; left: -15%; border-radius: 50% 50% 0 0; transform: rotate(-8deg); }
.scene__hill--back { background: #99c69b; bottom: 13%; left: 12%; }
.scene__hill--front { background: #5c9c74; bottom: -2%; left: -28%; transform: rotate(9deg); }
.scene__field { position: absolute; bottom: -25%; left: -20%; width: 140%; height: 57%; border-radius: 50%; background: repeating-linear-gradient(173deg, #377e5d 0 15px, #49916b 15px 27px, #76a971 27px 34px); opacity: .95; }
.scene__well { position: absolute; bottom: 16%; left: 40%; width: 90px; height: 180px; filter: drop-shadow(0 16px 15px #19483555); }
.scene__well-top { position: absolute; width: 110px; height: 35px; left: -10px; top: 0; background: #f4eee0; border-radius: 50%; border: 8px solid #386a5d; z-index: 2; }
.scene__well-shaft { position: absolute; inset: 16px 0 0; background: linear-gradient(90deg, #2b6258, #548b80 50%, #285c52); border-radius: 0 0 15px 15px; }
.scene__well-water { position: absolute; left: 4px; right: 4px; bottom: 14px; height: 55px; background: #84cbcc; border-radius: 50% 50% 10px 10px; opacity: .85; }
.scene__card { position: absolute; top: 14%; right: 2%; width: 180px; padding: 1.1rem; background: #fff; border-radius: 18px; box-shadow: 0 18px 40px #24493230; transform: rotate(-5deg); line-height: 1.6; }
.scene__card span { color: #86978b; font-size: .75rem; }
.scene__card strong { display: block; color: #1e5c43; font-size: .98rem; }
.scene__lines { display: flex; align-items: end; gap: 8px; height: 52px; margin-top: .6rem; }
.scene__lines i { display: block; width: 21px; height: 30px; border-radius: 6px 6px 0 0; background: #91c9a6; }
.scene__lines i:nth-child(2) { height: 48px; background: #4f9b75; }
.scene__lines i:nth-child(3) { height: 39px; background: #e4bb79; }
.trust-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.5rem 0 5rem; }
.trust-strip > div { background: #fff; border: 1px solid var(--color-border); border-radius: 18px; padding: 1.2rem; display: grid; grid-template-columns: 48px 1fr; column-gap: .9rem; align-items: center; }
.trust-strip__icon { grid-row: span 2; background: #eaf5e8; color: #41895a; border-radius: 13px; width: 48px; height: 48px; display: grid; place-items: center; font-weight: 700; }
.trust-strip strong { font-size: .95rem; }
.trust-strip small { color: var(--color-ink-muted); }
.section-intro { max-width: 620px; margin: 0 auto 2rem; text-align: center; }
.section-intro h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .5rem 0; }
.section-intro p { color: var(--color-ink-muted); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step-card { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 1.7rem; min-height: 218px; }
.step-card__number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e9f4e7; color: #39815d; font-weight: 800; }
.step-card h3 { font-size: 1.12rem; margin: 1rem 0 .5rem; }
.step-card p { color: var(--color-ink-muted); font-size: .9rem; margin: 0; }
.home-banner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: #205b46; color: #fff; padding: 2.6rem 3rem; border-radius: 24px; margin-top: 5rem; }
.home-banner h2 { color: #fff; font-size: 1.7rem; margin: .4rem 0; }
.home-banner p { color: #d4e7d7; margin: 0; }
.home-banner .section-kicker { color: #b8ddab; }
.panel { border: 1px solid var(--color-border); box-shadow: 0 14px 50px #24462d0b; border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.8rem); }
.panel__title { font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
.panel__lede { margin-top: .2rem; color: var(--color-ink-muted); }
.panel--narrow { max-width: 520px; margin: 2.5rem auto; }
.panel--narrow .btn { width: 100%; }
.form-row__label { font-size: .87rem; }
input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="file"], select, textarea {
    border: 1px solid var(--color-border-strong); border-radius: 11px; min-height: 46px; padding: .55rem .8rem;
    background: #fff; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 100px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #49966e; box-shadow: 0 0 0 3px #cfe9d6; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-primary); vertical-align: middle; }
.form-alert { border-radius: 12px; }
.diagnosis-index a { background: #edf5eb; color: #2b6249; border: 1px solid #d7e9d5; }
.diagnosis-index a:hover { background: #d9efda; }
.diagnosis-sections .box { background: #fff; border: 1px solid var(--color-border); border-top: 4px solid #7ab687; border-radius: 16px; box-shadow: 0 8px 24px #294d2c0b; }
.diagnosis-sections .form-section__title { color: #245c44; font-size: 1.2rem; }
.diagnosis-actions { border-top: 1px solid var(--color-border); padding-top: 1.5rem; }
.map { border-radius: 12px; background: #edf5eb; }
.result-block { border: 1px solid var(--color-border); background: #fff; padding: 1.3rem 1.5rem; border-radius: 16px; margin-bottom: 1rem; }
.result-block__title { text-transform: none; letter-spacing: 0; border-bottom-color: var(--color-border); color: #2b6249; }
.result-block--flag { border-right: 4px solid var(--color-alert); border-left: 1px solid var(--color-border); background: #fff8f2; }
.meter { height: 13px; border: 0; background: #ebf0e8; border-radius: 10px; }
.meter__fill { border-radius: 10px; }
.data-table { min-width: 580px; }
.data-table th, .data-table td { text-align: right; }
.data-table th { text-transform: none; letter-spacing: 0; background: #f0f6ec; }
.table-scroll { overflow-x: auto; border: 1px solid var(--color-border); border-radius: 12px; }
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero__scene { min-height: 320px; }
    .hero__copy { padding: 2rem; }
    .scene__well { bottom: 5%; }
    .trust-strip, .step-grid { grid-template-columns: 1fr; }
    .trust-strip { margin-bottom: 3rem; }
}
@media (max-width: 680px) {
    .site-header__bar { align-items: flex-start; }
    .site-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem; }
    .site-nav a, .nav-logout button { white-space: nowrap; padding: .4rem .6rem; }
    .site-main { padding: 1.25rem .9rem 3rem; }
    .hero { border-radius: 20px; }
    .hero__scene { min-height: 260px; }
    .hero h1 { font-size: 2.35rem; }
    .home-banner { padding: 1.5rem; flex-direction: column; align-items: flex-start; margin-top: 3rem; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
    .meter-list__item { grid-template-columns: 1fr 3.7rem; }
    .meter-list__label { grid-column: 1 / -1; }
}
@media print {
    .site-header, .site-footer, .no-print, .diagnosis-index { display: none !important; }
    .panel, .result-block { box-shadow: none; break-inside: avoid; }
}
