:root {
  --ivory: #fbf4ed;
  --ivory-deep: #f3e5d9;
  --white: #fffdf9;
  --burgundy: #8a1739;
  --burgundy-dark: #65102a;
  --rose: #c98d9a;
  --rose-light: #e8c7cb;
  --gold: #b58b45;
  --olive: #6d6b43;
  --forest: #293029;
  --ink: #2f2729;
  --muted: #71666a;
  --line: rgba(47, 39, 41, 0.14);
  --shadow: 0 22px 70px rgba(73, 32, 43, 0.12);
  --radius: 24px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --persian: "Vazirmatn", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  line-height: 1.6;
}
html[dir="rtl"] body { font-family: var(--persian); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 9999;
  background: var(--burgundy); color: white; padding: 12px 18px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,244,237,.93); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(138,23,57,.11);
}
.navbar {
  min-height: 82px; max-width: 1500px; margin: 0 auto; padding: 0 4.5vw;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-inline-end: auto; }
.brand img { width: 47px; height: 47px; object-fit: contain; mix-blend-mode: multiply; }
.nav-menu { display: flex; align-items: center; gap: 23px; font-size: 14px; font-weight: 600; }
.nav-menu a { padding: 29px 0 25px; border-bottom: 2px solid transparent; }
.nav-menu a:hover { color: var(--burgundy); border-color: var(--burgundy); }
.language-picker select {
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  padding: 10px 34px 10px 15px; color: var(--ink);
}
html[dir="rtl"] .language-picker select { padding: 10px 15px 10px 34px; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; }
.menu-toggle span:not(.sr-only) { display: block; width: 23px; height: 2px; margin: 5px auto; background: var(--ink); }

.hero {
  min-height: calc(100vh - 82px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center; gap: 5vw; padding: 7vw 7vw 6vw;
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(201,141,154,.28), transparent 28%),
    radial-gradient(circle at 13% 80%, rgba(181,139,69,.12), transparent 24%),
    linear-gradient(135deg, #fffaf4 0%, #f8ede5 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .33;
  background-image:
    linear-gradient(30deg, transparent 47%, rgba(181,139,69,.20) 48%, rgba(181,139,69,.20) 52%, transparent 53%),
    linear-gradient(150deg, transparent 47%, rgba(181,139,69,.12) 48%, rgba(181,139,69,.12) 52%, transparent 53%);
  background-size: 84px 84px;
  mask-image: linear-gradient(to right, transparent 25%, black);
}
.hero-content, .hero-visual, .hero-logo, .hero-note { position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  font-size: 12px; letter-spacing: .19em; text-transform: uppercase;
  color: var(--burgundy); font-weight: 700;
}
.hero h1, .section h2 {
  margin: .18em 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(50px, 6.3vw, 94px); line-height: 1.01; letter-spacing: -.035em;
}
html[dir="rtl"] .hero h1, html[dir="rtl"] .section h2 { font-family: var(--persian); letter-spacing: 0; }
.hero-copy { max-width: 700px; font-size: clamp(18px, 1.45vw, 22px); color: #55494d; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  min-height: 50px; padding: 12px 21px; border-radius: 999px;
  font-weight: 700; border: 1px solid transparent; transition: .2s ease;
}
.button-primary { background: var(--burgundy); color: white; }
.button-primary:hover { background: var(--burgundy-dark); transform: translateY(-2px); }
.button-secondary { border-color: rgba(47,39,41,.25); background: rgba(255,255,255,.38); }
.button-secondary:hover { border-color: var(--burgundy); color: var(--burgundy); }
.button-light { background: var(--ivory); color: var(--burgundy); }
.hero-visual { display: flex; flex-direction: column; gap: 28px; align-items: center; }
.hero-project-card {
  width: min(470px, 100%); background: rgba(255,250,244,.86); border: 1px solid rgba(181,139,69,.18);
  border-radius: 28px; padding: 26px 28px; box-shadow: 0 20px 55px rgba(73,32,43,.08);
  backdrop-filter: blur(8px);
}
.mini-kicker { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--burgundy); font-weight: 700; }
.hero-project-card h3 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(24px, 2vw, 34px); line-height: 1.18; }
html[dir="rtl"] .hero-project-card h3 { font-family: var(--persian); }
.hero-points { margin: 0; padding-inline-start: 20px; color: var(--muted); display: grid; gap: 10px; }
html[dir="rtl"] .hero-points { padding-inline-start: 0; padding-inline-end: 20px; }
.hero-points li::marker { color: var(--gold); }
.hero-logo { display: grid; place-items: center; }
.hero-logo img {
  width: min(430px, 88%); border-radius: 0; box-shadow: none; border: 0; background: transparent;
}
.hero-note {
  position: absolute; inset-inline-start: 7vw; bottom: 26px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--olive);
}

.section { padding: 115px 7vw; }
.about { background: var(--white); }
.about-heading {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 8vw; align-items: end;
  max-width: 1400px; margin: 0 auto 60px;
}
.about-heading h2 { font-size: clamp(44px, 5vw, 72px); }
.about-heading p { color: var(--muted); font-size: 18px; max-width: 550px; }
.pillar-grid {
  max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.pillar-card {
  min-height: 330px; padding: 30px; border-top: 2px solid var(--gold);
  background: var(--ivory); position: relative;
}
.pillar-card .number { color: var(--gold); font-size: 12px; letter-spacing: .1em; }
.icon-flower { color: var(--burgundy); font-size: 38px; margin: 35px 0 10px; }
.pillar-card h3 { font-family: var(--serif); font-size: 32px; margin: 6px 0; }
html[dir="rtl"] .pillar-card h3 { font-family: var(--persian); }
.pillar-card p { color: var(--muted); }

.garden { background: var(--ivory-deep); }
.garden-heading {
  max-width: 1400px; margin: 0 auto 38px; display: flex; align-items: end; justify-content: space-between; gap: 40px;
}
.garden-heading h2 { font-size: clamp(55px, 7vw, 96px); }
.garden-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.garden-heading img { width: 130px; opacity: .95; mix-blend-mode: multiply; }
.filter-panel {
  max-width: 1400px; margin: 0 auto 22px;
  display: grid; grid-template-columns: 1.65fr repeat(4, minmax(125px, .72fr)); gap: 10px;
}
.filter-panel input, .filter-panel select {
  width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); color: var(--ink); padding: 0 14px;
}
.search-control { position: relative; }
.search-control span { position: absolute; inset-inline-start: 16px; top: 12px; font-size: 22px; color: var(--muted); }
.search-control input { padding-inline-start: 45px; }
.result-count { max-width: 1400px; margin: 0 auto 14px; color: var(--muted); font-size: 14px; }
.resource-grid {
  max-width: 1400px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.resource-card {
  min-height: 300px; background: var(--white); border: 1px solid rgba(138,23,57,.08);
  border-radius: 20px; padding: 25px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.resource-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(72,42,48,.10); }
.resource-card-header { display: flex; justify-content: space-between; gap: 12px; color: var(--olive); font-size: 12px; }
.resource-symbol { color: var(--burgundy); font-size: 36px; margin: 31px 0 14px; }
.resource-card h3 { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 0 0 10px; }
.resource-card p { color: var(--muted); }
.resource-card button {
  margin-top: auto; padding: 0; border: 0; background: none; text-align: start;
  color: var(--burgundy); font-weight: 700;
}
.empty-state { max-width: 1400px; margin: 25px auto 0; text-align: center; padding: 60px; background: var(--white); border-radius: 20px; }
.empty-state div { color: var(--burgundy); font-size: 42px; }
.text-button { border: 0; background: none; color: var(--burgundy); font-weight: 700; }

.translations {
  color: white; background:
    radial-gradient(circle at 87% 25%, rgba(232,199,203,.16), transparent 26%),
    var(--burgundy);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: center;
}
.section-kicker.light { color: #f0ccd3; }
.translations h2 { font-size: clamp(58px, 7vw, 94px); }
.translation-copy > p { font-size: 19px; max-width: 650px; color: #f6e7e9; }
.review-note { border-inline-start: 2px solid var(--gold); padding-inline-start: 18px; font-size: 14px !important; opacity: .9; }
.language-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.language-cards button {
  min-height: 145px; border: 1px solid rgba(255,255,255,.23); border-radius: 18px;
  background: rgba(255,255,255,.08); color: white; text-align: start; padding: 22px;
  transition: .2s ease;
}
.language-cards button:hover { background: var(--ivory); color: var(--burgundy); transform: translateY(-3px); }
.language-cards span {
  display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%;
  border: 1px solid currentColor; font-size: 12px; margin-bottom: 18px;
}
.language-cards strong { display: block; font-size: 20px; }
.language-cards small { opacity: .76; }

.blog { background: var(--white); }
.blog-heading {
  max-width: 1400px; margin: 0 auto 42px; display: flex; justify-content: space-between; align-items: end; gap: 30px;
}
.blog-heading h2 { font-size: clamp(50px, 6vw, 78px); }
.blog-heading p { color: var(--muted); max-width: 720px; }
.article-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px; }
.article-image { min-height: 285px; border-radius: 20px; overflow: hidden; position: relative; }
.article-image::before, .article-image::after { content: ""; position: absolute; border-radius: 52% 48% 40% 60%; transform: rotate(25deg); }
.image-one { background: linear-gradient(140deg, #f2dfe0, #c1798a); }
.image-one::before { width: 180px; height: 235px; left: 28%; top: 25px; background: var(--burgundy); }
.image-one::after { width: 120px; height: 170px; left: 47%; top: 70px; background: #dbaab2; }
.image-two { background: linear-gradient(140deg, #eee5cf, #a6a27b); }
.image-two::before { width: 190px; height: 230px; left: 23%; top: 34px; background: var(--olive); }
.image-two::after { width: 115px; height: 150px; left: 49%; top: 73px; background: var(--gold); }
.image-three { background: linear-gradient(140deg, #8a1739, #e8c7cb); }
.image-three::before { width: 180px; height: 225px; left: 26%; top: 30px; background: var(--ivory); }
.image-three::after { width: 118px; height: 160px; left: 48%; top: 72px; background: #bf7d8b; }
.article-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.article-meta span { color: var(--burgundy); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.article-card h3 { font-family: var(--serif); font-size: 29px; line-height: 1.2; margin: 13px 0 7px; }
.article-card p { color: var(--muted); font-size: 14px; }
.article-card > a { color: var(--burgundy); font-weight: 700; }

.events { background: var(--ivory); }
.event-panel {
  max-width: 1400px; margin: 0 auto; padding: 65px; border-radius: 30px;
  background: var(--forest); color: white; display: grid; grid-template-columns: 1fr 1fr; gap: 70px;
}
.event-panel h2 { font-size: clamp(42px, 4.8vw, 70px); }
.event-list article { display: grid; grid-template-columns: 75px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.event-list time { display: flex; flex-direction: column; color: #efd7b0; }
.event-list time strong { font-family: var(--serif); font-size: 44px; line-height: 1; }
.event-list h3 { margin: 0; font-size: 21px; }
.event-list p { margin: 6px 0 0; color: #c9d0c9; }

.involved {
  display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; background: var(--white);
}
.involved h2 { font-size: clamp(48px, 5.4vw, 78px); }
.involved-intro p { color: var(--muted); font-size: 18px; }
.role-list { border-top: 1px solid var(--line); }
.role-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 25px 4px; border-bottom: 1px solid var(--line); transition: .2s;
}
.role-list a:hover { color: var(--burgundy); padding-inline: 15px; }
.role-list strong, .role-list small { display: block; }
.role-list strong { font-family: var(--serif); font-size: 27px; }
.role-list small { color: var(--muted); margin-top: 4px; }
.role-list b { font-size: 25px; }

.team { background: var(--ivory-deep); text-align: center; }
.team h2 { font-size: clamp(50px, 6vw, 78px); }
.team-grid { max-width: 1050px; margin: 45px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.team-grid article { background: var(--white); border-radius: 20px; padding: 30px 22px; }
.avatar {
  width: 120px; height: 120px; margin: 0 auto 22px; display: grid; place-items: center;
  border-radius: 50%; background: linear-gradient(145deg, var(--rose-light), var(--burgundy));
  color: white; font-family: var(--serif); font-size: 34px;
}
.team-grid h3 { font-family: var(--serif); font-size: 24px; margin: 0; }
.team-grid p { color: var(--burgundy); }

.contact {
  color: white; background:
    radial-gradient(circle at 10% 90%, rgba(181,139,69,.18), transparent 30%),
    var(--burgundy);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: start;
}
.contact h2 { font-size: clamp(48px, 5.7vw, 78px); }
.contact > div > p { color: #f0dfe2; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  border: 1px solid rgba(255,255,255,.25); color: white;
  background: rgba(255,255,255,.09); border-radius: 12px; padding: 13px;
}
.contact-form option { color: var(--ink); }
.form-note { color: #edcfd5; margin: 0; }
.form-status { align-self: center; margin: 0; }

.footer {
  padding: 48px 7vw 30px; background: #211b1d; color: #ddd2d4;
  display: grid; grid-template-columns: 1.1fr 1.4fr .8fr; gap: 35px; align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 58px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { font-size: 12px; color: #aa999d; }
.footer > p { font-size: 13px; margin: 0; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.10); padding-top: 22px; color: #958589; }

.toast {
  position: fixed; z-index: 500; bottom: 25px; inset-inline-end: 25px;
  max-width: 380px; background: var(--forest); color: white; padding: 14px 18px;
  border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(18px);
  pointer-events: none; transition: .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.simple-page { min-height: 100vh; padding: 90px 7vw; background: var(--ivory); }
.simple-page article { max-width: 850px; margin: auto; background: var(--white); border-radius: 24px; padding: 55px; }
.simple-page h1 { font-family: var(--serif); font-size: 55px; }
.simple-page h2 { font-family: var(--serif); margin-top: 35px; }
.back-link { color: var(--burgundy); font-weight: 700; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; order: 3; }
  .language-picker { margin-inline-start: auto; }
  .nav-menu {
    display: none; position: absolute; top: 82px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory);
    border-bottom: 1px solid var(--line); padding: 12px 5vw 22px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 0; }
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-logo img { width: min(500px, 75%); }
  .about-heading, .translations, .event-panel, .involved, .contact { grid-template-columns: 1fr; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .search-control { grid-column: 1 / -1; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .navbar { padding: 0 18px; }
  .brand span { display: none; }
  .language-picker select { max-width: 115px; }
  .hero { min-height: auto; padding: 78px 22px 80px; }
  .hero h1 { font-size: 49px; }
  .hero-visual { gap: 18px; }
  .hero-logo img { width: 80%; }
  .hero-project-card { padding: 20px 18px; }
  .hero-note { display: none; }
  .section { padding: 82px 22px; }
  .about-heading { gap: 18px; margin-bottom: 35px; }
  .pillar-grid, .resource-grid, .article-grid, .team-grid { grid-template-columns: 1fr; }
  .garden-heading { align-items: start; }
  .garden-heading img { width: 78px; }
  .filter-panel { grid-template-columns: 1fr; }
  .search-control { grid-column: auto; }
  .language-cards { grid-template-columns: 1fr; }
  .blog-heading { align-items: start; flex-direction: column; }
  .event-panel { padding: 34px 23px; gap: 25px; }
  .event-list article { grid-template-columns: 60px 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: auto; }
  .footer { grid-template-columns: 1fr; padding: 40px 22px 25px; }
  .footer-links { justify-content: flex-start; }
  .simple-page { padding: 40px 18px; }
  .simple-page article { padding: 30px 22px; }
}
