/* =========================================================
   Ariana Ministries — New Style (Iran 4 Christ layout language)
   Brand teal preserved; sectioned storytelling homepage.
   ========================================================= */

:root {
  --am-teal: #007F7B;
  --am-teal-dark: #005f5c;
  --am-teal-soft: #e6f4f3;
  --am-ink: #1a2428;
  --am-muted: #5a676c;
  --am-line: #dfe5e7;
  --am-sand: #f3f1ec;
  --am-cream: #faf9f6;
  --am-white: #ffffff;
  --am-hero-scrim: linear-gradient(105deg, rgba(10, 28, 30, 0.82) 0%, rgba(10, 28, 30, 0.55) 55%, rgba(10, 28, 30, 0.35) 100%);
  --am-font-ui: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  --am-font-display: "Cormorant Garamond", "Literata", Georgia, serif;
  --am-font-reading: "Literata", Georgia, serif;
  --am-font-fa-ui: "Vazirmatn", Tahoma, sans-serif;
  --am-font-fa-reading: "Noto Naskh Arabic", "Vazirmatn", Tahoma, serif;
  --am-radius: 2px;
  --am-max: 1120px;
  --am-narrow: 720px;
  --am-header-h: 0px;
  --am-gutter: 1.25rem;
  --am-section-y: clamp(2.75rem, 6vw, 5rem);
  --am-touch: 44px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--am-font-ui);
  font-size: 17px;
  line-height: 1.7;
  color: var(--am-ink);
  background: var(--am-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--am-teal); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--am-teal-dark); }
ul.checks { padding-left: 1.2em; }
ul.checks li { margin-bottom: 0.55em; }
ul.checks li::marker { color: var(--am-teal); }

.body { min-height: 100vh; display: flex; flex-direction: column; }
.body > main,
.body > .am-home,
.body > .am-page,
.body > .am-testimony-page,
.body > .content,
.body > .main { flex: 1; }

/* Space between page body and footer */
.content.main-container,
#site-content,
.am-overview,
.am-page,
.am-testimony-page,
.main,
.content.full {
  padding-bottom: clamp(3rem, 6vw, 4.75rem);
}
.am-home {
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
}
.site-footer {
  margin-top: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6,
.am-hero__brand,
.am-hero__title,
.page-header h1 {
  font-family: var(--am-font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--am-ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.55em;
}

.am-section h2 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); max-width: 28ch; }
.am-section p,
.am-section__lead,
.lead,
.am-pillar p,
.am-testimony-card p,
.am-split__content p {
  font-family: var(--am-font-reading);
  color: var(--am-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 68ch;
}

.am-section__lead { margin-bottom: 2rem; font-size: 1.12rem; }

.am-eyebrow {
  font-family: var(--am-font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--am-teal);
  margin: 0 0 0.85rem;
}

.am-eyebrow--light { color: rgba(255, 255, 255, 0.85); }

/* ---------- Layout ---------- */
/* Edge inset is always --am-gutter (Elam-style ~10vw on tablet/phone). */
.am-container {
  width: min(100% - (var(--am-gutter) * 2), var(--am-max));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

.am-container--narrow {
  width: min(100% - (var(--am-gutter) * 2), var(--am-narrow));
  max-width: none;
}
.am-center { text-align: center; }
.am-center .am-section__lead,
.am-center p,
.am-center h2 { margin-inline: auto; }
.am-center-actions { justify-content: center; }
.am-section__cta { margin-top: 2rem; }

.container {
  width: min(100% - (var(--am-gutter) * 2), var(--am-max));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
}

.row > [class*="col-"] {
  flex: 1 1 280px;
  min-width: 0;
  padding: 0;
  max-width: 100%;
}

.col-md-4, .col-lg-4 { flex: 1 1 280px; }
.col-md-5 { flex: 1 1 320px; }
.col-md-6, .col-lg-6 { flex: 1 1 320px; }
.col-md-7, .col-lg-8 { flex: 2 1 420px; }
.col-lg-4.sidebar { flex: 1 1 260px; }

/* ---------- Buttons — clean brand CTAs ---------- */
.am-btn,
.btn {
  --am-btn-bg: var(--am-teal);
  --am-btn-bg-hover: var(--am-teal-dark);
  --am-btn-text: #ffffff;
  --am-btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1.55rem;
  border: 1.5px solid var(--am-btn-border);
  border-radius: 6px;
  background: var(--am-btn-bg);
  color: var(--am-btn-text) !important;
  font-family: var(--am-font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.am-btn:hover,
.btn:hover {
  background: var(--am-btn-bg-hover);
  color: var(--am-btn-text) !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 127, 123, 0.18);
}

.am-btn:focus-visible,
.btn:focus-visible,
.am-btn-give:focus-visible {
  outline: 3px solid rgba(0, 127, 123, 0.35);
  outline-offset: 2px;
}

.am-btn:active,
.btn:active,
.am-btn-give:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Primary */
.am-btn--primary,
.btn-primary {
  --am-btn-bg: var(--am-teal);
  --am-btn-bg-hover: var(--am-teal-dark);
  --am-btn-text: #ffffff;
  --am-btn-border: var(--am-teal);
}

/* Light — for dark hero / teal bands */
.am-btn--light {
  --am-btn-bg: #ffffff;
  --am-btn-bg-hover: #f3f7f7;
  --am-btn-text: var(--am-teal-dark);
  --am-btn-border: #ffffff;
}
.am-btn--light:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

/* Outline on dark backgrounds */
.am-btn--outline-light {
  --am-btn-bg: transparent;
  --am-btn-bg-hover: rgba(255, 255, 255, 0.12);
  --am-btn-text: #ffffff;
  --am-btn-border: rgba(255, 255, 255, 0.85);
}
.am-btn--outline-light:hover {
  box-shadow: none;
}

/* Ghost / secondary */
.am-btn--ghost,
.btn-default {
  --am-btn-bg: transparent;
  --am-btn-bg-hover: var(--am-teal-soft);
  --am-btn-text: var(--am-teal);
  --am-btn-border: var(--am-teal);
}
.am-btn--ghost:hover,
.btn-default:hover {
  --am-btn-text: var(--am-teal-dark);
  box-shadow: none;
}

/* Download links — same primary look, small icon */
a.btn[download]::after,
a.am-btn[download]::after,
.btn-primary[download]::after {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12'/%3E%3Cpath d='M7 12l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12'/%3E%3Cpath d='M7 12l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Give Now — compact header CTA, hover-only feedback */
.am-btn-give {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  border: 1.5px solid var(--am-teal);
  border-radius: 6px;
  background: var(--am-teal);
  color: #fff !important;
  font-family: var(--am-font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.am-btn-give::before,
.am-btn-give::after {
  content: none !important;
  display: none !important;
}
.am-btn-give:hover {
  background: var(--am-teal-dark);
  border-color: var(--am-teal-dark);
  color: #fff !important;
  text-decoration: none;
  transform: none;
  box-shadow: none;
  filter: none;
}

html[dir="rtl"] .am-btn,
html[dir="rtl"] .btn,
html[lang="fa"] .am-btn,
html[lang="fa"] .btn {
  letter-spacing: 0;
}

.am-text-link {
  font-family: var(--am-font-ui);
  font-weight: 600;
  color: var(--am-teal);
  display: inline-block;
  margin-top: 0.75rem;
}
.am-text-link:hover { color: var(--am-teal-dark); }

/* ---------- Header navbar (single sticky bar) ---------- */
.site-header.am-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--am-line);
  box-shadow: 0 1px 0 rgba(26, 36, 40, 0.03);
}

.am-navbar__bar { width: 100%; }

/* Wider header than page content — balanced inset from screen edges */
.am-navbar__inner.container,
.container.am-navbar__inner {
  width: min(100% - (var(--am-gutter) * 2), 1320px);
  max-width: none;
  margin-inline: auto;
  box-sizing: border-box;
  padding-inline: 0;
}

.am-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.1rem, 2.2vw, 2rem);
  min-height: 104px;
  padding-block: 0.9rem;
}

/* Brand is static by default (inner pages) */
.am-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 1;
  transform: none;
  z-index: 2;
  margin-inline-end: 0.35rem;
}
.am-brand-name,
.am-brand-slogan {
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}

/* Non-home pages: never animate logo / name / slogan */
body:not(.am-home-anim) .am-brand,
body:not(.am-home-anim) .am-brand-name,
body:not(.am-home-anim) .am-brand-slogan,
body:not(.am-home-anim) .am-brand-mark,
body:not(.am-home-anim) .am-brand-mark img {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
}

/* Header entrance — Home only, and only after JS arms motion */
html.am-motion-on body.am-home-anim .am-brand {
  opacity: 0;
  transform: translateX(-26px);
  transition:
    opacity 1.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.7s cubic-bezier(0.16, 1, 0.3, 1);
}
html.am-motion-on body.am-home-anim .am-brand.is-in {
  opacity: 1;
  transform: none;
}
html[dir="rtl"].am-motion-on body.am-home-anim .am-brand,
html[lang="fa"].am-motion-on body.am-home-anim .am-brand {
  transform: translateX(-26px);
}

.am-brand-mark img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 50%;
}

.am-brand-copy { display: flex; flex-direction: column; line-height: 1.2; gap: 0.2rem; }
.am-brand-name {
  font-family: var(--am-font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--am-ink);
}
.am-brand-slogan {
  font-size: 0.92rem;
  color: var(--am-muted);
  font-weight: 500;
  max-width: 22rem;
  line-height: 1.35;
}

.am-navbar__end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 1.8vw, 1.75rem);
  flex: 1;
  min-width: 0;
}

.am-navbar__nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding-inline: 0.35rem;
}

.am-navbar__tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-inline-start: 0.25rem;
}

.am-navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-inline-start: 0.25rem;
}

.language-switcher {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  overflow: hidden;
  background: #fff;
}
.language-switcher a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--am-muted);
}
.language-switcher .active a,
.language-switcher a.active {
  background: var(--am-ink);
  color: #fff;
}

.am-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--am-line);
  background: #fff;
  border-radius: var(--am-radius);
  cursor: pointer;
  color: var(--am-ink);
  padding: 0;
  flex-shrink: 0;
  z-index: 2;
}
.am-menu-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.am-menu-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--am-ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.am-menu-toggle.is-open .am-menu-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.am-menu-toggle.is-open .am-menu-toggle__bars span:nth-child(2) { opacity: 0; }
.am-menu-toggle.is-open .am-menu-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navigation > ul,
.am-menu,
.sf-menu {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  position: relative;
}

.navigation > ul > li > a,
.am-menu > li > a,
.sf-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--am-ink);
  white-space: nowrap;
  border-radius: 8px;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
}

.navigation > ul > li > a:hover,
.am-menu > li > a:hover,
.am-menu > li:hover > a {
  color: var(--am-teal);
  background: var(--am-teal-soft);
}

.sf-menu > li.is-nav-active > a,
.am-menu > li.is-nav-active > a,
.am-menu > li.current-menu-item > a,
.am-menu > li.current-menu-ancestor > a {
  color: var(--am-teal);
  background: var(--am-teal-soft);
}

.am-has-sub > a::after,
.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
}
html[dir="rtl"] .am-has-sub > a::after,
html[dir="rtl"] .menu-item-has-children > a::after {
  margin-left: 0;
  margin-right: 0.2rem;
}

/* Keep dropdowns unclipped */
.site-header.am-navbar,
.am-navbar__bar,
.am-navbar__inner,
.am-navbar__end,
.am-navbar__nav,
.am-navbar__tools,
.navigation,
.am-menu,
.sf-menu {
  overflow: visible;
}

.am-has-sub,
.menu-item-has-children,
.sf-menu > li {
  position: relative;
}

.am-menu .dropdown,
.am-menu .sub-menu,
.sf-menu ul {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid var(--am-line);
  box-shadow: 0 16px 36px rgba(26, 36, 40, 0.12);
  list-style: none;
  z-index: 1200;
  border-radius: 14px;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.am-menu .dropdown::before,
.am-menu .sub-menu::before,
.sf-menu ul::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

html[dir="rtl"] .am-menu .dropdown,
html[dir="rtl"] .am-menu .sub-menu,
html[dir="rtl"] .sf-menu ul { left: auto; right: 0; }

.am-menu > li:hover > .dropdown,
.am-menu > li:hover > .sub-menu,
.am-menu > li.am-open > .dropdown,
.am-menu > li.am-open > .sub-menu,
.am-menu > li.focus > .sub-menu,
.sf-menu > li:hover > ul,
.sf-menu > li.am-open > ul {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.am-menu .dropdown a,
.am-menu .sub-menu a,
.sf-menu ul a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0.1rem 0;
  padding: 0.6rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--am-ink);
  white-space: normal;
  border-radius: 10px;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, padding 0.18s ease;
}

/* Neutralize WP marking every hash sibling as current-menu-item */
.am-menu .dropdown .current-menu-item > a,
.am-menu .sub-menu .current-menu-item > a,
.sf-menu ul .current-menu-item > a {
  background: transparent;
  color: var(--am-ink);
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.am-menu .dropdown a:hover,
.am-menu .dropdown a:focus-visible,
.am-menu .sub-menu a:hover,
.am-menu .sub-menu a:focus-visible,
.am-menu .dropdown li.is-sub-active > a,
.am-menu .sub-menu li.is-sub-active > a,
.sf-menu ul a:hover,
.sf-menu ul li.is-sub-active > a {
  background: var(--am-teal-soft);
  color: var(--am-teal-dark);
  padding-left: 1.1rem;
}
html[dir="rtl"] .am-menu .dropdown a:hover,
html[dir="rtl"] .am-menu .dropdown a:focus-visible,
html[dir="rtl"] .am-menu .sub-menu a:hover,
html[dir="rtl"] .am-menu .sub-menu a:focus-visible,
html[dir="rtl"] .am-menu .dropdown li.is-sub-active > a,
html[dir="rtl"] .am-menu .sub-menu li.is-sub-active > a,
html[lang="fa"] .am-menu .dropdown a:hover,
html[lang="fa"] .am-menu .sub-menu a:hover,
html[lang="fa"] .am-menu .dropdown li.is-sub-active > a,
html[lang="fa"] .am-menu .sub-menu li.is-sub-active > a {
  padding-left: 0.95rem;
  padding-right: 1.1rem;
}

.am-menu .dropdown a::before,
.am-menu .sub-menu a::before,
.sf-menu ul a::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: 0;
  border-radius: 999px;
  background: var(--am-teal);
  transition: width 0.18s ease, margin 0.18s ease;
  flex-shrink: 0;
}
.am-menu .dropdown a:hover::before,
.am-menu .dropdown a:focus-visible::before,
.am-menu .sub-menu a:hover::before,
.am-menu .sub-menu a:focus-visible::before,
.am-menu .dropdown li.is-sub-active > a::before,
.am-menu .sub-menu li.is-sub-active > a::before,
.sf-menu ul a:hover::before,
.sf-menu ul li.is-sub-active > a::before {
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.55rem;
}
html[dir="rtl"] .am-menu .dropdown a::before,
html[dir="rtl"] .am-menu .sub-menu a::before,
html[lang="fa"] .am-menu .dropdown a::before,
html[lang="fa"] .am-menu .sub-menu a::before {
  margin-right: 0;
}
html[dir="rtl"] .am-menu .dropdown a:hover::before,
html[dir="rtl"] .am-menu .sub-menu a:hover::before,
html[dir="rtl"] .am-menu .dropdown li.is-sub-active > a::before,
html[lang="fa"] .am-menu .dropdown a:hover::before,
html[lang="fa"] .am-menu .sub-menu a:hover::before,
html[lang="fa"] .am-menu .dropdown li.is-sub-active > a::before {
  margin-right: 0;
  margin-left: 0.55rem;
}

.am-nav-indicator {
  position: absolute;
  bottom: 2px;
  height: 2px;
  background: var(--am-teal);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: left 0.28s ease, width 0.28s ease, opacity 0.2s ease;
}
.am-nav-indicator.is-visible { opacity: 1; }

/* (legacy class names removed — navbar uses .am-navbar) */

/* ---------- Hero ---------- */
.am-hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: flex;
  align-items: flex-end;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.am-hero--slider {
  background-image: none;
  background-color: #0a1c1e;
  --am-hero-grade: saturate(0.78) contrast(1.05) brightness(0.72);
}

/* Soft brand veil on load / refresh — JS arms .is-booting, then lifts with .is-ready */
.am-hero--slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 28% 36%, rgba(0, 127, 123, 0.42) 0%, transparent 55%),
    linear-gradient(160deg, #0a2426 0%, #071617 55%, #0a1c1e 100%);
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-hero--slider.is-booting::before {
  opacity: 1;
  transition: none;
}

.am-hero--slider.is-ready::before {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.am-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
}

.am-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.am-hero__slide.is-leaving {
  visibility: visible;
  z-index: 3;
  pointer-events: none;
  animation: amHeroSlideLeave 1.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.am-hero__slide.is-entering {
  visibility: visible;
  z-index: 4;
  pointer-events: none;
  animation: amHeroSlideEnter 1.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.am-hero__slide-media {
  position: absolute;
  inset: -6%;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  /* Elam-like: darker photo so pure white type stays crisp */
  filter: var(--am-hero-grade);
  will-change: transform, filter, opacity;
}

/* Dark veil behind text (not over it) */
.am-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.35) 100%);
}

.am-hero__slide.is-active .am-hero__slide-media {
  animation: amHeroKenBurns 7.5s linear both;
}

.am-hero__slide.is-leaving .am-hero__slide-media {
  animation: amHeroBlurOut 1.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.am-hero__slide.is-entering .am-hero__slide-media {
  animation: amHeroBlurIn 1.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes amHeroSlideLeave {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(-3.5%, 0, 0) scale(1.02);
  }
}

@keyframes amHeroSlideEnter {
  from {
    opacity: 0;
    transform: translate3d(4.5%, 0, 0) scale(1.03);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes amHeroKenBurns {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}

@keyframes amHeroBlurOut {
  0% {
    opacity: 1;
    filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(0);
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  40% {
    filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(12px);
  }
  100% {
    opacity: 0.55;
    filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(22px);
    transform: scale(1.16) translate3d(-5%, 0, 0);
  }
}

@keyframes amHeroBlurIn {
  0% {
    opacity: 0.45;
    filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(20px);
    transform: scale(1.18) translate3d(7%, 0, 0);
  }
  50% {
    filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(8px);
  }
  100% {
    opacity: 1;
    filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(0);
    transform: scale(1.04) translate3d(0, 0, 0);
  }
}

html[dir="rtl"] .am-hero__slide.is-leaving {
  animation-name: amHeroSlideLeaveRtl;
}
html[dir="rtl"] .am-hero__slide.is-entering {
  animation-name: amHeroSlideEnterRtl;
}
html[dir="rtl"] .am-hero__slide.is-leaving .am-hero__slide-media {
  animation-name: amHeroBlurOutRtl;
}
html[dir="rtl"] .am-hero__slide.is-entering .am-hero__slide-media {
  animation-name: amHeroBlurInRtl;
}

@keyframes amHeroSlideLeaveRtl {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(3.5%, 0, 0) scale(1.02);
  }
}

@keyframes amHeroSlideEnterRtl {
  from {
    opacity: 0;
    transform: translate3d(-4.5%, 0, 0) scale(1.03);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes amHeroBlurOutRtl {
  0% {
    opacity: 1;
    filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(0);
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  40% { filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(12px); }
  100% {
    opacity: 0.55;
    filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(22px);
    transform: scale(1.16) translate3d(5%, 0, 0);
  }
}

@keyframes amHeroBlurInRtl {
  0% {
    opacity: 0.45;
    filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(20px);
    transform: scale(1.18) translate3d(-7%, 0, 0);
  }
  50% { filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(8px); }
  100% {
    opacity: 1;
    filter: saturate(0.78) contrast(1.05) brightness(0.72) blur(0);
    transform: scale(1.04) translate3d(0, 0, 0);
  }
}

.am-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.35) 100%);
}

/* Slider: keep the global overlay from covering captions */
.am-hero--slider > .am-hero__overlay {
  display: none;
}

.am-hero__inner,
.am-hero__caption {
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  padding:
    clamp(4.5rem, 8vw, 6.5rem)
    var(--am-gutter)
    clamp(5.5rem, 9vw, 7rem);
  max-width: 760px;
  margin-left: max(var(--am-gutter), calc((100% - var(--am-max)) / 2));
  margin-right: auto;
  width: min(100% - (var(--am-gutter) * 2), 760px);
}

.am-hero__slide .am-hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 5; /* above media + dark veil */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Higher in the viewport for stronger first glance */
  padding-top: clamp(7.5rem, 18vh, 11.5rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  pointer-events: none;
}

.am-hero__slide.is-active .am-hero__caption,
.am-hero__slide.is-entering .am-hero__caption {
  pointer-events: auto;
}

/* Staggered text entrance — same clean look as before */
.am-hero__caption > * {
  opacity: 0;
  transform: translate3d(-22px, 10px, 0);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-hero__slide.is-active .am-hero__caption > *,
.am-hero__slide.is-entering .am-hero__caption > * {
  opacity: 1;
  transform: none;
}

.am-hero__slide.is-active .am-hero__caption > *:nth-child(1),
.am-hero__slide.is-entering .am-hero__caption > *:nth-child(1) { transition-delay: 0.3s; }
.am-hero__slide.is-active .am-hero__caption > *:nth-child(2),
.am-hero__slide.is-entering .am-hero__caption > *:nth-child(2) { transition-delay: 0.45s; }
.am-hero__slide.is-active .am-hero__caption > *:nth-child(3),
.am-hero__slide.is-entering .am-hero__caption > *:nth-child(3) { transition-delay: 0.58s; }
.am-hero__slide.is-active .am-hero__caption > *:nth-child(4),
.am-hero__slide.is-entering .am-hero__caption > *:nth-child(4) { transition-delay: 0.72s; }
.am-hero__slide.is-active .am-hero__caption > *:nth-child(5),
.am-hero__slide.is-entering .am-hero__caption > *:nth-child(5) { transition-delay: 0.86s; }

.am-hero__slide.is-leaving .am-hero__caption > * {
  opacity: 0;
  transform: translate3d(14px, 0, 0);
  transition-delay: 0s;
  transition-duration: 0.4s;
}

html[dir="rtl"] .am-hero__inner,
html[dir="rtl"] .am-hero__caption {
  margin-left: auto;
  margin-right: max(var(--am-gutter), calc((100% - var(--am-max)) / 2));
}

html[dir="rtl"] .am-hero__caption > * {
  transform: translate3d(22px, 10px, 0);
}

html[dir="rtl"] .am-hero__slide.is-active .am-hero__caption > *,
html[dir="rtl"] .am-hero__slide.is-entering .am-hero__caption > * {
  transform: none;
}

html[dir="rtl"] .am-hero__slide.is-leaving .am-hero__caption > * {
  transform: translate3d(-14px, 0, 0);
}

/* Fonts restored to pre-slideshow theme (display + reading) */
.am-hero .am-eyebrow--light {
  font-family: var(--am-font-ui);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: none;
}

.am-hero__brand {
  font-family: var(--am-font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: none;
}

.am-hero__headline {
  font-family: var(--am-font-display);
  font-size: clamp(2.15rem, 5.6vw, 3.7rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 16ch;
  text-shadow: none;
}

.am-hero__title {
  font-family: var(--am-font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 500;
  color: #ffffff;
  max-width: 24ch;
  margin: 0 0 1rem;
  line-height: 1.25;
  text-shadow: none;
}

.am-hero__lead {
  font-family: var(--am-font-reading);
  font-size: 1.08rem;
  line-height: 1.75;
  font-weight: 400;
  color: #ffffff;
  max-width: 48ch;
  margin: 0 0 1.75rem;
  text-shadow: none;
}

.am-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  max-width: 100%;
}

.am-hero__actions .am-btn {
  min-height: 48px;
  padding-inline: 1.35rem;
  font-family: var(--am-font-ui);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: none;
}

.am-hero__actions .am-btn--light {
  background: #ffffff;
  color: var(--am-teal-dark);
  border-color: #ffffff;
}

.am-hero__actions .am-btn--light:hover {
  background: #f3f7f7;
  color: var(--am-teal-dark);
  box-shadow: none;
}

.am-hero__actions .am-btn--outline-light {
  background: rgba(8, 20, 22, 0.28);
  border-color: rgba(255, 255, 255, 0.92);
  color: #ffffff;
}

.am-hero__actions .am-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

html[dir="rtl"] .am-hero__brand,
html[lang="fa"] .am-hero__brand,
html[dir="rtl"] .am-hero__headline,
html[lang="fa"] .am-hero__headline,
html[dir="rtl"] .am-hero__title,
html[lang="fa"] .am-hero__title {
  font-family: var(--am-font-fa-display, var(--am-font-display));
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
}

html[dir="rtl"] .am-hero__lead,
html[lang="fa"] .am-hero__lead {
  font-family: var(--am-font-fa-reading);
  letter-spacing: 0;
  line-height: 1.9;
}

html[dir="rtl"] .am-hero__headline,
html[lang="fa"] .am-hero__headline {
  max-width: 18ch;
}

html[dir="rtl"] .am-hero .am-eyebrow--light,
html[lang="fa"] .am-hero .am-eyebrow--light {
  letter-spacing: 0;
  font-family: var(--am-font-fa-ui);
}

html[dir="rtl"] .am-hero__actions .am-btn,
html[lang="fa"] .am-hero__actions .am-btn {
  font-family: var(--am-font-fa-ui);
}

/* Side arrows inset from edges + pager clear of buttons */
.am-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 7;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  min-width: var(--am-touch);
  min-height: var(--am-touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(8, 20, 22, 0.42);
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.am-hero__arrow--prev { left: clamp(1.25rem, 3vw, 2.25rem); }
.am-hero__arrow--next { right: clamp(1.25rem, 3vw, 2.25rem); }

html[dir="rtl"] .am-hero__arrow--prev { left: auto; right: clamp(1.25rem, 3vw, 2.25rem); }
html[dir="rtl"] .am-hero__arrow--next { right: auto; left: clamp(1.25rem, 3vw, 2.25rem); }

.am-hero__arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.am-hero__pager {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: clamp(1.1rem, 2.5vw, 1.65rem);
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.am-hero__dot {
  width: 2.4rem;
  height: 3px;
  min-height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s ease, width 0.35s ease;
}

.am-hero__dot.is-active {
  width: 3.1rem;
  background: #fff;
}

.am-hero__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .am-hero--slider::before,
  .am-hero--slider.is-booting::before {
    opacity: 0 !important;
    transition: none !important;
  }
  .am-hero__slide.is-active .am-hero__slide-media,
  .am-hero__slide.is-leaving .am-hero__slide-media,
  .am-hero__slide.is-entering .am-hero__slide-media,
  .am-hero__slide.is-leaving,
  .am-hero__slide.is-entering,
  .am-hero__caption > * {
    animation: none !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
  .am-hero__slide-media {
    filter: saturate(0.78) contrast(1.05) brightness(0.72);
  }
  .am-hero__slide.is-leaving {
    opacity: 0 !important;
  }
}

/* ---------- Sections ---------- */
.am-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.am-section--sand { background: var(--am-sand); }

.am-section--teal {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.12), transparent 50%),
    linear-gradient(145deg, #006663 0%, #007F7B 45%, #0a4f4d 100%);
  color: #fff;
}
.am-section--teal h2,
.am-section--teal p { color: #fff; }
.am-section--teal p { opacity: 0.92; }

.am-verse {
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--am-line);
  font-family: var(--am-font-reading);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--am-ink);
  max-width: 58ch;
}
.am-verse cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--am-font-ui);
  color: var(--am-teal);
}

/* Shared Iran 4 Christ gift-card look */
.am-gift-card,
.am-pillar,
.am-testimony-card,
.team-card {
  background: #ffffff;
  border: none;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(26, 36, 40, 0.08);
  padding: 1.75rem 1.5rem 1.65rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.am-gift-card:hover,
.am-pillar:hover,
.am-testimony-card:hover,
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 36, 40, 0.12);
}

.am-gift-card__icon,
.am-pillar__icon,
.am-testimony-card__icon {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 1rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 2rem;
  line-height: 1;
  color: inherit;
  letter-spacing: 0;
}

.am-gift-card__title,
.am-pillar h3,
.am-testimony-card .am-quote {
  font-family: var(--am-font-ui) !important;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f2a44;
  margin: 0 0 0.7rem;
  line-height: 1.35;
}
html[dir="rtl"] .am-gift-card__title,
html[dir="rtl"] .am-pillar h3,
html[dir="rtl"] .am-testimony-card .am-quote,
html[lang="fa"] .am-gift-card__title,
html[lang="fa"] .am-pillar h3,
html[lang="fa"] .am-testimony-card .am-quote {
  font-family: var(--am-font-fa-ui) !important;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.05rem;
}

.am-gift-card p,
.am-pillar p,
.am-testimony-card p {
  margin: 0;
  font-family: var(--am-font-ui) !important;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #5c6578;
  max-width: none;
}
html[dir="rtl"] .am-gift-card p,
html[dir="rtl"] .am-pillar p,
html[dir="rtl"] .am-testimony-card p,
html[lang="fa"] .am-gift-card p,
html[lang="fa"] .am-pillar p,
html[lang="fa"] .am-testimony-card p {
  font-family: var(--am-font-fa-reading) !important;
  line-height: 1.85;
}

.am-section#what-we-do {
  background: #f4f5f7;
}

.am-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 2rem;
}

.am-pillar {
  padding: 1.75rem 1.5rem 1.65rem;
}
.am-pillar__icon {
  display: block;
  margin-bottom: 1rem;
  font-size: 2rem;
  width: auto;
  height: auto;
  color: inherit;
}
.am-pillar h3 {
  font-family: var(--am-font-ui);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.am-pillar p { margin: 0; font-size: 0.95rem; color: #5c6578; }

.am-section--split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  padding: 0;
  min-height: 520px;
}
.am-split__media {
  background-size: cover;
  background-position: center;
  min-height: 320px;
}
.am-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--am-white);
}

.am-testimony-home,
.am-testimony-section {
  background: #f4f5f7;
}
.am-testimony-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
  margin-top: 1.75rem;
}

.am-testimony-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: none;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(26, 36, 40, 0.08);
  padding: 1.75rem 1.5rem 1.65rem;
}
.am-testimony-home .am-testimony-card { background: #fff; }
.am-testimony-card__icon {
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1;
}
.am-quote {
  display: block;
  font-family: var(--am-font-ui);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1f2a44;
  margin-bottom: 0.7rem;
  line-height: 1.35;
}
.am-story-btn,
.am-testimony-card .am-text-link {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--am-font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--am-teal);
  cursor: pointer;
  margin-top: auto;
  padding-top: 1rem;
  display: inline-block;
}
.am-story-btn:hover,
.am-testimony-card .am-text-link:hover { color: var(--am-teal-dark); }

/* ---------- Inner pages ---------- */
.nav-backed-header {
  background-size: cover;
  background-position: center;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.nav-backed-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 28, 30, 0.35), rgba(10, 28, 30, 0.7));
}
.nav-backed-header .container { position: relative; z-index: 1; padding-bottom: 1.25rem; }
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}
.breadcrumb a { color: #fff; }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  opacity: 0.6;
}
html[dir="rtl"] .breadcrumb li:not(:last-child)::after { margin-left: 0; margin-right: 0.4rem; }

.page-header {
  padding: 2.5rem 0 1rem;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}
.am-page-lead {
  margin: 0;
  max-width: 48ch;
  font-family: var(--am-font-ui);
  font-size: 1.08rem;
  line-height: 1.7;
  color: #5c6578;
}

/* What We Do overview — balanced image + readable text column */
.am-overview {
  background: #ffffff;
  padding-bottom: 4rem;
}
.am-overview-block {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border: 0;
}
.am-overview-block:nth-child(even) {
  background: #f7f8fa;
}
.am-overview-inner {
  width: min(100% - (var(--am-gutter) * 2), 1100px);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
  display: grid;
  /* Image ~42%, text ~58% — text gets more room to breathe */
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
}

/* Always: media left, copy right */
.am-overview-media { order: 1; }
.am-overview-copy { order: 2; }
.am-overview-block--reverse .am-overview-media { order: 1; }
.am-overview-block--reverse .am-overview-copy { order: 2; }
.am-overview-block--reverse .am-overview-inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
}

html[dir="rtl"] .am-overview-inner {
  direction: ltr;
}
html[dir="rtl"] .am-overview-copy {
  direction: rtl;
  text-align: right;
}

.am-overview-media {
  min-width: 0;
}
.am-overview-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(26, 36, 40, 0.1);
  border: 0;
}

.am-overview-copy {
  min-width: 0;
  max-width: 36rem;
}

.am-overview-label {
  margin: 0 0 0.75rem;
  font-family: var(--am-font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-teal);
}
html[dir="rtl"] .am-overview-label,
html[lang="fa"] .am-overview-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.92rem;
  font-family: var(--am-font-fa-ui);
}

.am-overview-copy h2 {
  margin: 0 0 1.1rem;
  font-family: var(--am-font-ui) !important;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.28;
  color: #1a1f2e;
  max-width: none;
}
html[dir="rtl"] .am-overview-copy h2,
html[lang="fa"] .am-overview-copy h2 {
  font-family: var(--am-font-fa-ui) !important;
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.5;
}

.am-overview-copy p {
  margin: 0 0 1.05rem;
  font-family: var(--am-font-reading) !important;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4f5868;
  max-width: none;
}
.am-overview-copy p:last-child { margin-bottom: 0; }
html[dir="rtl"] .am-overview-copy p,
html[lang="fa"] .am-overview-copy p {
  font-family: var(--am-font-fa-reading) !important;
  line-height: 1.95;
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .am-overview {
    padding-bottom: 2.5rem;
  }
  .am-overview-block {
    padding: 2.25rem 0;
  }
  .am-overview-inner {
    width: min(100% - (var(--am-gutter) * 2), 1100px);
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .am-overview-media { order: 1 !important; }
  .am-overview-copy { order: 2 !important; max-width: none; }
  .am-overview-media img {
    aspect-ratio: 16 / 10;
    max-height: 300px;
    width: 100%;
    border-radius: 18px;
  }
  .am-overview-copy h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  }
  .am-overview-copy p {
    font-size: 1.02rem;
    line-height: 1.75;
  }
}

/* Legacy ministry section (kept for safety) */
.ministry-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--am-line);
}
.ministry-section:last-child { border-bottom: 0; }
.ministry-section h2 {
  font-family: var(--am-font-display);
  font-size: 1.75rem;
}
.ministry-section img.img-thumbnail {
  border: 0;
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 14px 32px rgba(26, 36, 40, 0.1);
}

.belief-list {
  padding-left: 1.2em;
  max-width: 70ch;
}
.belief-list li {
  font-family: var(--am-font-reading);
  margin-bottom: 1rem;
  color: var(--am-muted);
}

/* ---------- Our Beliefs page ---------- */
.am-beliefs-page {
  background:
    linear-gradient(180deg, rgba(230, 244, 243, 0.45) 0%, #faf9f6 28%, #faf9f6 100%);
}
.am-beliefs-panel {
  background: #fff;
  border: 1px solid rgba(0, 127, 123, 0.1);
  border-radius: 18px;
  padding: clamp(1.5rem, 3.2vw, 2.4rem);
  box-shadow: 0 10px 28px rgba(26, 36, 40, 0.05);
}
.am-beliefs-intro {
  max-width: 46rem;
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 127, 123, 0.1);
}
.am-beliefs-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--am-font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--am-teal);
}
html[dir="rtl"] .am-beliefs-kicker,
html[lang="fa"] .am-beliefs-kicker {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.98rem;
  font-family: var(--am-font-fa-ui);
}
.am-beliefs-intro h2 {
  margin: 0 0 0.85rem;
  font-family: var(--am-font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}
.am-beliefs-intro p {
  margin: 0;
  font-family: var(--am-font-reading);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--am-muted);
  max-width: 52ch;
}
html[dir="rtl"] .am-beliefs-intro p,
html[lang="fa"] .am-beliefs-intro p {
  font-family: var(--am-font-fa-reading);
  max-width: none;
  line-height: 1.95;
}

.am-beliefs-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.am-belief-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  margin: 0;
  padding: 1.15rem 0.15rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 127, 123, 0.08);
  border-radius: 0;
  box-shadow: none;
}
.am-belief-card:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}
.am-belief-card:first-child {
  padding-top: 0.25rem;
}
.am-belief-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--am-teal-soft);
  color: var(--am-teal-dark);
  font-family: var(--am-font-ui);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.am-belief-card p {
  margin: 0.15rem 0 0;
  font-family: var(--am-font-reading);
  font-size: 1.02rem;
  line-height: 1.75;
  color: #3f4854;
}
html[dir="rtl"] .am-belief-card p,
html[lang="fa"] .am-belief-card p {
  font-family: var(--am-font-fa-reading);
  line-height: 1.95;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .am-beliefs-panel {
    padding: 1.25rem 1.1rem;
  }
  .am-belief-card {
    padding: 1rem 0;
    gap: 0.85rem 0.95rem;
  }
}

/* ---------- Ariana & Afghanistan article ---------- */
.am-article-page {
  background: #faf9f6;
}
.am-article {
  max-width: var(--am-max);
  width: 100%;
}
.am-article-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--am-line);
  color: var(--am-muted);
  font-family: var(--am-font-ui);
  font-size: 0.9rem;
  font-weight: 600;
}
.am-article-meta i { color: var(--am-teal); }

.am-article-panel {
  background: #fff;
  border: 1px solid rgba(0, 127, 123, 0.1);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 2.25rem;
  box-shadow: 0 10px 28px rgba(26, 36, 40, 0.05);
}
.am-article-panel h2,
.am-article-section-head h2 {
  margin: 0.35rem 0 0.9rem;
  font-family: var(--am-font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
}
.am-article-panel p,
.am-article-section-head > p:last-child,
.am-timeline-item p {
  font-family: var(--am-font-reading);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #44505c;
}
html[dir="rtl"] .am-article-panel p,
html[dir="rtl"] .am-article-section-head > p:last-child,
html[dir="rtl"] .am-timeline-item p,
html[lang="fa"] .am-article-panel p,
html[lang="fa"] .am-article-section-head > p:last-child,
html[lang="fa"] .am-timeline-item p {
  font-family: var(--am-font-fa-reading);
  line-height: 1.95;
}

.am-article-section-head {
  margin: 0 0 1.5rem;
  max-width: none;
}
.am-article-section-head > p:last-child {
  margin: 0;
}

.am-timeline {
  --am-line-duration: 2.6s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 2.25rem;
  padding: 0;
  border: 0;
}
/* Green line draws top → bottom with the content stagger */
.am-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: rgba(0, 127, 123, 0.22);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform var(--am-line-duration) cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
html[dir="rtl"] .am-timeline::before,
html[lang="fa"] .am-timeline::before {
  left: auto;
  right: 0;
}
.am-timeline.is-drawing::before {
  transform: scaleY(1);
}

.am-timeline-item {
  position: relative;
  margin: 0;
  margin-left: 1.15rem;
  padding: 1.35rem 1.4rem 1.4rem;
  background: #fff;
  border: 1px solid rgba(0, 127, 123, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(26, 36, 40, 0.04);
}
html[dir="rtl"] .am-timeline-item,
html[lang="fa"] .am-timeline-item {
  margin-left: 0;
  margin-right: 1.15rem;
}
.am-timeline-item::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: -1.28rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--am-teal);
  box-shadow: 0 0 0 4px rgba(230, 244, 243, 0.95);
  transform: scale(0);
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.am-timeline-item.is-in::before {
  transform: scale(1);
}
html[dir="rtl"] .am-timeline-item::before,
html[lang="fa"] .am-timeline-item::before {
  left: auto;
  right: -1.28rem;
}
.am-timeline-item h3 {
  margin: 0 0 0.7rem;
  font-family: var(--am-font-ui);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--am-ink);
}
html[dir="rtl"] .am-timeline-item h3,
html[lang="fa"] .am-timeline-item h3 {
  font-family: var(--am-font-fa-ui);
}
.am-timeline-item p { margin: 0 0 0.85rem; }
.am-timeline-item p:last-child { margin-bottom: 0; }

.am-callout-note {
  margin: 0.85rem 0 !important;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--am-teal-soft);
  border-left: 3px solid var(--am-teal);
  color: var(--am-teal-dark) !important;
  font-family: var(--am-font-ui) !important;
  font-size: 0.98rem !important;
  font-weight: 600;
  line-height: 1.55 !important;
}
html[dir="rtl"] .am-callout-note,
html[lang="fa"] .am-callout-note {
  border-left: 0;
  border-right: 3px solid var(--am-teal);
  font-family: var(--am-font-fa-ui) !important;
}

.am-article-closing {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--am-teal) 0%, var(--am-teal-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 127, 123, 0.22);
}
.am-article-closing p {
  margin: 0;
  font-family: var(--am-font-reading);
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.96);
}
html[dir="rtl"] .am-article-closing p,
html[lang="fa"] .am-article-closing p {
  font-family: var(--am-font-fa-reading);
  line-height: 1.95;
}

@media (max-width: 640px) {
  .am-timeline-item {
    margin-left: 0.95rem;
    padding: 1.2rem 1.15rem;
  }
  html[dir="rtl"] .am-timeline-item,
  html[lang="fa"] .am-timeline-item {
    margin-right: 0.95rem;
  }
  .am-timeline-item::before {
    left: -1.08rem;
  }
  html[dir="rtl"] .am-timeline-item::before,
  html[lang="fa"] .am-timeline-item::before {
    right: -1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-timeline::before {
    transform: scaleY(1) !important;
    transition: none !important;
  }
  .am-timeline-item::before {
    transform: scale(1) !important;
    transition: none !important;
  }
}

.grid-item {
  background: var(--am-sand);
  padding: 1.75rem;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(0, 127, 123, 0.06);
  box-shadow: 0 8px 22px rgba(26, 36, 40, 0.05);
}
.grid-content h2 { font-size: 1.4rem; }
.text-center { text-align: center; }
.alert-warning {
  background: #fff8e8;
  border: 1px solid #ecd9a8;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 14px;
}
.alert-warning h3 { margin-top: 0; color: #8a5a00; }

.img-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(26, 36, 40, 0.1);
  object-fit: cover;
  background: transparent;
  padding: 0;
}

.widget {
  background: #fff;
  padding: 1.75rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 127, 123, 0.1);
  box-shadow: 0 10px 28px rgba(26, 36, 40, 0.06);
}
.sidebar-widget-title h3 {
  font-family: var(--am-font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--am-ink);
}

/* Give / donate page polish */
#site-content .img-thumbnail {
  border-radius: 18px;
  margin-bottom: 0.35rem;
}
#site-content form input[type="image"] {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}
#site-content .sidebar .widget {
  background: linear-gradient(165deg, #ffffff 0%, #f4f8f8 100%);
  border-color: rgba(0, 127, 123, 0.12);
}
#site-content .sidebar .widget p:last-child {
  margin-bottom: 0;
}

/* ---------- Give page — professional partner layout ---------- */
.am-give-page {
  background:
    linear-gradient(180deg, rgba(230, 244, 243, 0.4) 0%, #faf9f6 22%, #faf9f6 100%);
}
.am-give-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: var(--am-max);
}

.am-give-intro {
  background: #fff;
  border: 1px solid rgba(0, 127, 123, 0.1);
  border-radius: 20px;
  padding: clamp(1.5rem, 3.2vw, 2.4rem);
  box-shadow: 0 10px 28px rgba(26, 36, 40, 0.05);
}
.am-give-intro h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--am-font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  max-width: 28ch;
}
html[dir="rtl"] .am-give-intro h2,
html[lang="fa"] .am-give-intro h2 {
  max-width: none;
}
.am-give-lead {
  margin: 0 0 1.5rem;
  font-family: var(--am-font-reading);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--am-muted);
}
html[dir="rtl"] .am-give-lead,
html[lang="fa"] .am-give-lead {
  font-family: var(--am-font-fa-reading);
  line-height: 1.95;
}

.am-give-impacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.15rem;
}
.am-give-impacts li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.95rem 1rem;
  background: #f7faf9;
  border: 1px solid rgba(0, 127, 123, 0.08);
  border-radius: 14px;
  font-family: var(--am-font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--am-ink);
}
html[dir="rtl"] .am-give-impacts li,
html[lang="fa"] .am-give-impacts li {
  font-family: var(--am-font-fa-ui);
  line-height: 1.7;
}
.am-give-impact-mark {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--am-teal);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px rgba(0, 127, 123, 0.2);
  position: relative;
}
.am-give-impact-mark::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 0.28rem;
  height: 0.5rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}

.am-give-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.15rem, 2.5vw, 1.75rem);
  align-items: stretch;
}
.am-give-visual {
  margin: 0;
  min-height: 100%;
  height: 100%;
  display: flex;
}
.am-give-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 0;
  box-shadow: 0 12px 32px rgba(26, 36, 40, 0.1);
  flex: 1 1 auto;
}

.am-give-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.am-give-card {
  background: #fff;
  border: 1px solid rgba(0, 127, 123, 0.1);
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.45rem;
  box-shadow: 0 8px 22px rgba(26, 36, 40, 0.045);
  flex: 1;
}
.am-give-card h3 {
  margin: 0.25rem 0 0.85rem;
  font-family: var(--am-font-ui);
  font-size: 1.2rem;
  font-weight: 800;
}
html[dir="rtl"] .am-give-card h3,
html[lang="fa"] .am-give-card h3 {
  font-family: var(--am-font-fa-ui);
}
.am-give-mail address {
  font-style: normal;
  font-family: var(--am-font-reading);
  font-size: 1.02rem;
  line-height: 1.7;
  color: #44505c;
  margin: 0 0 1rem;
}
html[dir="rtl"] .am-give-mail address,
html[lang="fa"] .am-give-mail address {
  font-family: var(--am-font-fa-reading);
  line-height: 1.9;
}
.am-give-mail-note {
  margin: 0;
  font-family: var(--am-font-ui);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--am-muted);
}
html[dir="rtl"] .am-give-mail-note,
html[lang="fa"] .am-give-mail-note {
  font-family: var(--am-font-fa-ui);
}
.am-give-mail-note a {
  color: var(--am-teal);
  font-weight: 700;
}
.am-give-mail-note a:hover { color: var(--am-teal-dark); }

.am-give-tax {
  background: linear-gradient(145deg, var(--am-teal) 0%, var(--am-teal-dark) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 127, 123, 0.22);
}
.am-give-tax .am-overview-label {
  color: rgba(255, 255, 255, 0.85);
}
.am-give-tax p {
  margin: 0.35rem 0 0;
  font-family: var(--am-font-reading);
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.96);
}
html[dir="rtl"] .am-give-tax p,
html[lang="fa"] .am-give-tax p {
  font-family: var(--am-font-fa-reading);
  line-height: 1.9;
}

.am-give-online {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0, 127, 123, 0.1);
  border-radius: 22px;
  padding: clamp(1.75rem, 3.5vw, 2.6rem) clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 14px 36px rgba(26, 36, 40, 0.07);
}
.am-give-online-head {
  max-width: 40rem;
  margin: 0 auto 1.35rem;
}
.am-give-online-head h3 {
  margin: 0.3rem 0 0.65rem;
  font-family: var(--am-font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}
.am-give-online-head p:last-child {
  margin: 0;
  font-family: var(--am-font-reading);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--am-muted);
}
html[dir="rtl"] .am-give-online-head p:last-child,
html[lang="fa"] .am-give-online-head p:last-child {
  font-family: var(--am-font-fa-reading);
  line-height: 1.9;
}

.am-give-paypal {
  margin: 0 0 1.5rem;
}
.am-give-paypal input[type="image"] {
  border-radius: 8px;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.am-give-paypal input[type="image"]:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.am-give-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(0, 127, 123, 0.12);
}
.am-give-qr-label {
  margin: 0 0 1.15rem;
  font-family: var(--am-font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--am-teal-dark);
}
html[dir="rtl"] .am-give-qr-label,
html[lang="fa"] .am-give-qr-label {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--am-font-fa-ui);
  font-size: 1.05rem;
}
.am-give-qr-frame {
  display: block;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 560px);
}
.am-give-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 560px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(0, 127, 123, 0.1);
  box-shadow: 0 12px 30px rgba(26, 36, 40, 0.08);
  background: #fff;
}

@media (max-width: 991.98px) {
  .am-give-split {
    grid-template-columns: 1fr;
  }
  .am-give-photo {
    min-height: 240px;
    max-height: 340px;
  }
  .am-give-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .am-give-card {
    flex: 1 1 240px;
  }
}

@media (max-width: 640px) {
  .am-give-impacts {
    grid-template-columns: 1fr;
  }
  .am-give-aside {
    flex-direction: column;
  }
  .am-give-qr-frame,
  .am-give-qr-frame img {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  /* Stretch photo to full aside height (flush with Tax Info bottom) */
  .am-give-photo {
    max-height: none;
    min-height: 100%;
  }
  .am-give-qr-frame {
    width: min(100%, 600px);
  }
  .am-give-qr-frame img {
    max-width: 600px;
  }
}

@media (hover: none) {
  .am-give-paypal input[type="image"]:hover {
    transform: none;
  }
}

.form-group { margin-bottom: 1rem; }
.form-control,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  font-family: var(--am-font-ui);
  font-size: 1rem;
  background: #fff;
}
.form-control:focus {
  outline: 2px solid var(--am-teal-soft);
  border-color: var(--am-teal);
}
.checkbox { margin: 0.65rem 0; }
.am-form-notice {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--am-radius);
}
.am-form-notice--ok { background: var(--am-teal-soft); color: var(--am-teal-dark); }
.am-form-notice--err { background: #fdecea; color: #8a1f11; }

/* Team / about — spacious 2-up premium cards */
.am-team {
  margin: 0.75rem 0 3.5rem;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background:
    linear-gradient(180deg, rgba(230, 244, 243, 0.55) 0%, rgba(244, 245, 247, 0.9) 42%, #f4f5f7 100%);
  border-radius: 0;
}
.am-team-header {
  margin: 0 auto 3rem;
  max-width: 42rem;
  text-align: center;
}
.am-team-eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--am-font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--am-teal);
}
html[dir="rtl"] .am-team-eyebrow,
html[lang="fa"] .am-team-eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  font-family: var(--am-font-fa-ui);
}
.am-team-header h2 {
  margin: 0 0 0.9rem;
  font-family: var(--am-font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--am-ink);
  line-height: 1.15;
}
.am-team-intro {
  margin: 0 auto;
  font-family: var(--am-font-reading);
  font-size: 1.15rem;
  color: var(--am-muted);
  line-height: 1.8;
  max-width: 48ch;
}

.am-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
  max-width: 1080px;
  margin-inline: auto;
}

.am-team-member {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.5rem 1.65rem;
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.35rem);
  min-height: 100%;
  background:
    linear-gradient(165deg, #ffffff 0%, #ffffff 62%, #f7fbfb 100%);
  border: 1px solid rgba(0, 127, 123, 0.08);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(26, 36, 40, 0.07);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.am-team-member::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--am-teal) 0%, #4aa8a4 100%);
  opacity: 0.9;
}
html[dir="rtl"] .am-team-member::before {
  inset: 0 0 0 auto;
}
.am-team-member.is-in:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 127, 123, 0.18);
  box-shadow: 0 22px 48px rgba(26, 36, 40, 0.12);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.am-team-avatar {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #ffffff 0%, #e6f4f3 45%, #cfe9e7 100%);
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(0, 127, 123, 0.12),
    0 10px 24px rgba(0, 127, 123, 0.16);
  color: var(--am-teal-dark);
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.am-team-avatar span {
  font-style: normal;
  line-height: 1;
}
.am-team-member:hover .am-team-avatar {
  transform: scale(1.04);
  box-shadow:
    0 0 0 1px rgba(0, 127, 123, 0.18),
    0 14px 28px rgba(0, 127, 123, 0.22);
}
html[dir="rtl"] .am-team-avatar,
html[lang="fa"] .am-team-avatar {
  font-family: inherit;
  letter-spacing: 0;
}

.am-team-body {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.am-team-body h3 {
  margin: 0;
  font-family: var(--am-font-display) !important;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.2;
  color: var(--am-ink);
}
html[dir="rtl"] .am-team-body h3,
html[lang="fa"] .am-team-body h3 {
  font-family: var(--am-font-fa-reading) !important;
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
}
.am-team-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.am-team-roles li {
  margin: 0;
  padding: 0;
  font-family: var(--am-font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--am-teal);
  line-height: 1.45;
}
html[dir="rtl"] .am-team-roles li,
html[lang="fa"] .am-team-roles li {
  font-family: var(--am-font-fa-ui);
  font-size: 1.05rem;
}
.am-team-role-label {
  margin: 0;
  font-family: var(--am-font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--am-teal);
  line-height: 1.45;
}
html[dir="rtl"] .am-team-role-label,
html[lang="fa"] .am-team-role-label {
  font-family: var(--am-font-fa-ui);
  font-size: 1.05rem;
}
.am-team-body > p:last-child {
  margin: 0.35rem 0 0;
  font-family: var(--am-font-reading) !important;
  color: #4e5868;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 42ch;
}
html[dir="rtl"] .am-team-body > p:last-child,
html[lang="fa"] .am-team-body > p:last-child {
  font-family: var(--am-font-fa-reading) !important;
  line-height: 1.95;
  font-size: 1.08rem;
  max-width: none;
}

@media (max-width: 900px) {
  .am-team-grid {
    gap: 1.35rem;
  }
  .am-team-member {
    gap: 1.25rem;
    padding: 1.65rem 1.45rem;
  }
  .am-team-avatar {
    width: 4.75rem;
    height: 4.75rem;
    font-size: 1.9rem;
  }
}

@media (max-width: 720px) {
  .am-team {
    padding: 2.25rem 0 3rem;
  }
  .am-team-header {
    margin-bottom: 2rem;
    text-align: center;
  }
  .am-team-intro {
    margin: 0 auto;
  }
  .am-team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .am-team-member {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1.5rem 1.35rem;
  }
  .am-team-body {
    align-items: center;
  }
  .am-team-roles {
    align-items: center;
  }
  .am-team-avatar {
    width: 4.25rem;
    height: 4.25rem;
    font-size: 1.75rem;
  }
  .am-team-body h3 {
    font-size: 1.35rem;
  }
  .am-team-body > p:last-child {
    font-size: 1rem;
    max-width: none;
  }
}

/* References on about page */
#site-content blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--am-sand);
  border: 0;
  border-left: 3px solid var(--am-teal);
  border-radius: 12px;
  font-family: var(--am-font-reading);
  font-style: italic;
  color: var(--am-ink);
  max-width: none;
}
html[dir="rtl"] #site-content blockquote {
  border-left: 0;
  border-right: 3px solid var(--am-teal);
}
#site-content blockquote cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-family: var(--am-font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--am-teal);
}

/* Testimony page */
.am-testimony-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #f4f5f7;
}
.am-testimony-inner {
  width: min(100% - (var(--am-gutter) * 2), var(--am-max));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}
.am-testimony-intro { font-family: var(--am-font-reading); color: var(--am-muted); max-width: 65ch; }

.am-story-modal {
  --am-story-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --am-story-content-ease: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(12, 24, 26, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease,
    background 0.45s ease,
    backdrop-filter 0.45s ease,
    -webkit-backdrop-filter 0.45s ease;
}
.am-story-modal[hidden]:not(.is-open):not(.is-closing) {
  display: none !important;
}
.am-story-modal.is-open,
.am-story-modal.is-closing {
  display: flex !important;
}
.am-story-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(12, 24, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Keep backdrop while the Lollipop circle collapses */
.am-story-modal.is-closing {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  background: rgba(12, 24, 26, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.am-story-modal-content {
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  max-height: min(88vh, 840px);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 22px;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    transform 0.5s ease,
    visibility 0.5s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

/* Expanding circle fill — same Lollipop transition as newsletter */
.am-story-modal-content::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 1px;
  height: 1px;
  top: 95%;
  left: 50%;
  bottom: 10px;
  background: linear-gradient(180deg, #f7faf9 0%, #ffffff 42%, #ffffff 100%);
  border-radius: 50%;
  pointer-events: none;
  transition: all 600ms var(--am-story-ease);
}

.am-story-modal.is-open .am-story-modal-content {
  visibility: visible;
  transform: translateY(0);
  border-color: rgba(0, 127, 123, 0.1);
  box-shadow:
    0 28px 64px rgba(16, 28, 32, 0.28),
    0 8px 20px rgba(16, 28, 32, 0.12);
}

.am-story-modal.is-open .am-story-modal-content::before {
  width: 2000px;
  height: 2000px;
  top: 50%;
  left: 50%;
  bottom: auto;
  margin-left: -1000px;
  margin-top: -1000px;
}

.am-story-modal.is-closing .am-story-modal-content {
  visibility: visible;
  transform: translateY(20px);
  border-color: transparent;
  box-shadow: none;
}

.am-story-modal.is-closing .am-story-modal-content::before {
  width: 1px;
  height: 1px;
  top: 95%;
  left: 50%;
  bottom: 10px;
  margin-left: 0;
  margin-top: 0;
}

.am-story-modal-head,
.am-story-modal-body,
.am-story-modal-close {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 600ms var(--am-story-content-ease);
}

.am-story-modal.is-open .am-story-modal-head,
.am-story-modal.is-open .am-story-modal-body,
.am-story-modal.is-open .am-story-modal-close {
  opacity: 1;
}

.am-story-modal.is-closing .am-story-modal-head,
.am-story-modal.is-closing .am-story-modal-body,
.am-story-modal.is-closing .am-story-modal-close {
  opacity: 0;
  transition: opacity 280ms ease;
}

.am-story-modal-head {
  flex-shrink: 0;
  padding: 1.35rem 3.5rem 1.15rem 1.6rem;
  background: linear-gradient(180deg, rgba(247, 250, 249, 0.92) 0%, rgba(255, 255, 255, 0.55) 100%);
  border-bottom: 1px solid rgba(0, 127, 123, 0.1);
}
html[dir="rtl"] .am-story-modal-head,
html[lang="fa"] .am-story-modal-head {
  padding: 1.35rem 1.6rem 1.15rem 3.5rem;
}
.am-story-modal-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--am-font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--am-teal);
}
html[dir="rtl"] .am-story-modal-kicker,
html[lang="fa"] .am-story-modal-kicker {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--am-font-fa-ui);
  font-size: 0.92rem;
}
.am-story-modal-head h2 {
  margin: 0;
  font-family: var(--am-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  padding-right: 0.25rem;
}
html[dir="rtl"] .am-story-modal-head h2,
html[lang="fa"] .am-story-modal-head h2 {
  font-family: var(--am-font-fa-display, var(--am-font-display));
  padding-right: 0;
  padding-left: 0.25rem;
}
.am-story-modal-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1.5rem 1.7rem 1.85rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 127, 123, 0.35) transparent;
}
.am-story-modal-body::-webkit-scrollbar {
  width: 8px;
}
.am-story-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 127, 123, 0.28);
  border-radius: 999px;
}
.am-story-modal-body p {
  font-family: var(--am-font-reading);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3f4854;
  margin: 0 0 1.1rem;
}
.am-story-modal-body p:last-child { margin-bottom: 0; }
html[dir="rtl"] .am-story-modal-body p,
html[lang="fa"] .am-story-modal-body p {
  font-family: var(--am-font-fa-reading);
  line-height: 1.95;
}
.am-story-modal-body cite {
  display: block;
  font-family: var(--am-font-ui);
  font-style: normal;
  font-weight: 600;
  color: var(--am-teal-dark);
  margin-top: 0.35rem;
}
.am-story-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(0, 127, 123, 0.14);
  border-radius: 999px;
  background: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  color: var(--am-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 600ms var(--am-story-content-ease);
}
.am-story-modal-close:hover {
  background: var(--am-teal-soft);
  color: var(--am-teal-dark);
  border-color: rgba(0, 127, 123, 0.28);
}
html[dir="rtl"] .am-story-modal-close { right: auto; left: 1rem; }
body.am-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .am-story-modal {
    padding: 0.75rem;
    align-items: flex-end;
  }
  .am-story-modal-content {
    border-radius: 20px 20px 16px 16px;
    max-height: min(92vh, 900px);
    width: 100%;
  }
  .am-story-modal-head {
    padding: 1.15rem 3.25rem 1rem 1.25rem;
  }
  html[dir="rtl"] .am-story-modal-head,
  html[lang="fa"] .am-story-modal-head {
    padding: 1.15rem 1.25rem 1rem 3.25rem;
  }
  .am-story-modal-body {
    padding: 1.2rem 1.25rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-story-modal,
  .am-story-modal-content,
  .am-story-modal-content::before,
  .am-story-modal-head,
  .am-story-modal-body,
  .am-story-modal-close {
    transition-duration: 0.01ms !important;
  }
  .am-story-modal.is-open .am-story-modal-content::before {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    border-radius: 22px;
  }
}

/* ---------- Newsletter signup modal (Lollipop circle expand) ---------- */
.am-newsletter-modal {
  --am-nl-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --am-nl-content-ease: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(12, 24, 26, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease,
    background 0.45s ease,
    backdrop-filter 0.45s ease,
    -webkit-backdrop-filter 0.45s ease;
}

.am-newsletter-modal[hidden]:not(.is-open):not(.is-closing) {
  display: none !important;
}

.am-newsletter-modal.is-open,
.am-newsletter-modal.is-closing {
  display: flex !important;
}

.am-newsletter-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(12, 24, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Keep backdrop while the circle collapses */
.am-newsletter-modal.is-closing {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  background: rgba(12, 24, 26, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.am-newsletter-modal__dialog {
  position: relative;
  width: min(100%, 30rem);
  max-height: min(88vh, 40rem);
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 22px;
  box-shadow: none;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    transform 0.5s ease,
    visibility 0.5s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

/* Expanding circle fill — Android Lollipop style */
.am-newsletter-modal__dialog::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 1px;
  height: 1px;
  top: 95%;
  left: 50%;
  bottom: 10px;
  background: linear-gradient(180deg, #f7faf9 0%, #ffffff 42%, #ffffff 100%);
  border-radius: 50%;
  pointer-events: none;
  transition: all 600ms var(--am-nl-ease);
}

.am-newsletter-modal.is-open .am-newsletter-modal__dialog {
  visibility: visible;
  transform: translateY(0);
  border-color: rgba(0, 127, 123, 0.1);
  box-shadow:
    0 28px 64px rgba(16, 28, 32, 0.28),
    0 8px 20px rgba(16, 28, 32, 0.12);
}

.am-newsletter-modal.is-open .am-newsletter-modal__dialog::before {
  width: 2000px;
  height: 2000px;
  top: 50%;
  left: 50%;
  bottom: auto;
  margin-left: -1000px;
  margin-top: -1000px;
}

.am-newsletter-modal.is-closing .am-newsletter-modal__dialog {
  visibility: visible;
  transform: translateY(20px);
  border-color: transparent;
  box-shadow: none;
}

.am-newsletter-modal.is-closing .am-newsletter-modal__dialog::before {
  width: 1px;
  height: 1px;
  top: 95%;
  left: 50%;
  bottom: 10px;
  margin-left: 0;
  margin-top: 0;
}

.am-newsletter-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 127, 123, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--am-muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 600ms var(--am-nl-content-ease);
}

.am-newsletter-modal.is-open .am-newsletter-modal__close {
  opacity: 1;
}

.am-newsletter-modal.is-closing .am-newsletter-modal__close {
  opacity: 0;
}

.am-newsletter-modal__close:hover {
  background: var(--am-teal-soft);
  color: var(--am-teal-dark);
  border-color: rgba(0, 127, 123, 0.28);
}

html[dir="rtl"] .am-newsletter-modal__close,
.am-newsletter-modal[dir="rtl"] .am-newsletter-modal__close {
  right: auto;
  left: 1rem;
}

.am-newsletter-modal__panel {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 2.35rem) clamp(1.4rem, 4vw, 2rem) 1.65rem;
  max-height: min(88vh, 40rem);
  overflow: auto;
  opacity: 0;
  transition: opacity 600ms var(--am-nl-content-ease);
}

.am-newsletter-modal.is-open .am-newsletter-modal__panel {
  opacity: 1;
}

.am-newsletter-modal.is-closing .am-newsletter-modal__panel {
  opacity: 0;
  transition: opacity 280ms ease;
}

.am-newsletter-modal__panel h2 {
  font-family: var(--am-font-display);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 700;
  color: var(--am-ink);
  line-height: 1.18;
  margin: 0 2rem 1rem 0;
  letter-spacing: 0.01em;
}

html[dir="rtl"] .am-newsletter-modal__panel h2,
.am-newsletter-modal[dir="rtl"] .am-newsletter-modal__panel h2 {
  font-family: var(--am-font-fa-display, var(--am-font-display));
  margin: 0 0 1rem 2rem;
}

.am-newsletter-modal__steps-title {
  font-family: var(--am-font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--am-teal-dark);
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[dir="rtl"] .am-newsletter-modal__steps-title,
.am-newsletter-modal[dir="rtl"] .am-newsletter-modal__steps-title {
  letter-spacing: 0;
  text-transform: none;
}

.am-newsletter-modal__steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.am-newsletter-modal__steps li {
  position: relative;
  font-family: var(--am-font-ui);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--am-muted);
  padding-inline-start: 1.85rem;
}

.am-newsletter-modal__steps li::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  inset-inline-start: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23007F7B'/%3E%3Cpath d='M5.8 10.2l2.6 2.6 5.8-5.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

html[dir="rtl"] .am-newsletter-modal__steps li,
.am-newsletter-modal[dir="rtl"] .am-newsletter-modal__steps li {
  font-family: var(--am-font-fa-ui, var(--am-font-ui));
}

.am-newsletter-modal__copy {
  font-family: var(--am-font-reading);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--am-muted);
  margin: 0 0 1.4rem;
}

.am-newsletter-modal__copy a {
  color: var(--am-teal);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.am-newsletter-modal__copy a:hover {
  color: var(--am-teal-dark);
}

html[dir="rtl"] .am-newsletter-modal__copy,
.am-newsletter-modal[dir="rtl"] .am-newsletter-modal__copy {
  font-family: var(--am-font-fa-reading, var(--am-font-reading));
}

.am-newsletter-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.am-newsletter-form__label {
  display: block;
  font-family: var(--am-font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--am-ink);
  margin-bottom: 0.4rem;
}

.am-newsletter-form__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.9rem;
  border: 1px solid rgba(0, 127, 123, 0.16);
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem 0.9rem;
  font-family: var(--am-font-ui);
  font-size: 16px; /* avoid iOS zoom */
  color: var(--am-ink);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(16, 28, 32, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.am-newsletter-form__input:focus {
  border-color: rgba(0, 127, 123, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 127, 123, 0.12);
}

.am-newsletter-form__input::placeholder {
  color: #9aa6a8;
}

.am-newsletter-form__error {
  margin: 0.55rem 0 0;
  font-family: var(--am-font-ui);
  font-size: 0.88rem;
  color: #b42318;
}

.am-newsletter-form__submit,
.am-newsletter-modal__done {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--am-touch, 44px);
  margin-top: 1.35rem;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 6px;
  background: var(--am-teal);
  color: #fff;
  font-family: var(--am-font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.am-newsletter-form__submit:hover,
.am-newsletter-modal__done:hover {
  background: var(--am-teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 127, 123, 0.18);
}

html[dir="rtl"] .am-newsletter-form__submit,
.am-newsletter-modal[dir="rtl"] .am-newsletter-form__submit,
html[dir="rtl"] .am-newsletter-modal__done,
.am-newsletter-modal[dir="rtl"] .am-newsletter-modal__done {
  font-family: var(--am-font-fa-ui, var(--am-font-ui));
  letter-spacing: 0;
  text-transform: none;
}

.am-newsletter-modal__fineprint {
  margin: 1.15rem 0 0;
  font-family: var(--am-font-ui);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--am-muted);
  opacity: 0.85;
}

.am-newsletter-modal__fineprint a {
  color: var(--am-teal);
  text-decoration: underline;
}

/* Form exits when sending stage takes over */
.am-newsletter-modal__form-view {
  transition:
    opacity 0.45s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),
    filter 0.45s ease;
}

.am-newsletter-modal.is-sending .am-newsletter-modal__form-view {
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  filter: blur(4px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.am-newsletter-modal__sending {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 22rem;
  padding: 1.5rem 0.5rem 1rem;
}

.am-newsletter-modal.is-sending .am-newsletter-modal__sending {
  display: flex;
}

.am-newsletter-modal__sending[hidden] {
  display: none !important;
}

.am-newsletter-modal.is-sending .am-newsletter-modal__sending[hidden] {
  display: flex !important;
}

.am-nl-send {
  position: relative;
  width: 11.5rem;
  height: 11.5rem;
  margin: 0 auto 1.35rem;
}

.am-nl-send__bloom {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), transparent 42%),
    radial-gradient(circle at 50% 55%, #0aa39d 0%, #007F7B 55%, #065f5c 100%);
  box-shadow:
    0 18px 40px rgba(0, 127, 123, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  animation: amNlBloom 1.8s ease-in-out infinite;
}

.am-nl-send__ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid rgba(0, 127, 123, 0.35);
  opacity: 0;
  animation: amNlRing 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.am-nl-send__ring--2 {
  inset: 0;
  animation-delay: 0.35s;
  border-color: rgba(0, 127, 123, 0.22);
}

.am-nl-send__ring--3 {
  inset: -12%;
  animation-delay: 0.7s;
  border-color: rgba(0, 127, 123, 0.14);
}

.am-nl-send__spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.42rem;
  height: 0.42rem;
  margin: -0.21rem;
  border-radius: 50%;
  background: #007F7B;
  opacity: 0;
  animation: amNlSpark 2s ease-in-out infinite;
}

.am-nl-send__spark--1 { --am-spark-x: 0; --am-spark-y: -58px; animation-delay: 0s; }
.am-nl-send__spark--2 { --am-spark-x: 50px; --am-spark-y: -28px; animation-delay: 0.15s; background: #0aa39d; }
.am-nl-send__spark--3 { --am-spark-x: 46px; --am-spark-y: 30px; animation-delay: 0.3s; }
.am-nl-send__spark--4 { --am-spark-x: 0; --am-spark-y: 56px; animation-delay: 0.45s; background: #065f5c; }
.am-nl-send__spark--5 { --am-spark-x: -48px; --am-spark-y: 28px; animation-delay: 0.6s; background: #0aa39d; }
.am-nl-send__spark--6 { --am-spark-x: -52px; --am-spark-y: -26px; animation-delay: 0.75s; }

.am-nl-send__craft {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: amNlCraftFloat 1.6s ease-in-out infinite;
}

.am-nl-send__plane {
  width: 4.25rem;
  height: 4.25rem;
  overflow: visible;
  filter: drop-shadow(0 10px 14px rgba(6, 40, 42, 0.28));
  transform-origin: 55% 45%;
  animation: amNlPlaneBob 1.15s ease-in-out infinite;
}

.am-nl-send__plane-body,
.am-nl-send__plane-fold,
.am-nl-send__plane-trail {
  fill: #ffffff;
  stroke: none;
}

.am-nl-send__plane-fold {
  fill: rgba(230, 255, 253, 0.92);
}

.am-nl-send__plane-trail {
  fill: rgba(255, 255, 255, 0.55);
}

.am-nl-send__status {
  margin: 0;
  font-family: var(--am-font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 700;
  color: var(--am-ink);
  letter-spacing: 0.01em;
}

.am-nl-send__status::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  text-align: left;
  animation: amNlDots 1.2s steps(4, end) infinite;
}

.am-nl-send__hint {
  margin: 0.45rem 0 0;
  font-family: var(--am-font-ui);
  font-size: 0.92rem;
  color: var(--am-muted);
}

html[dir="rtl"] .am-nl-send__status,
.am-newsletter-modal[dir="rtl"] .am-nl-send__status {
  font-family: var(--am-font-fa-display, var(--am-font-display));
}

html[dir="rtl"] .am-nl-send__hint,
.am-newsletter-modal[dir="rtl"] .am-nl-send__hint {
  font-family: var(--am-font-fa-ui, var(--am-font-ui));
}

html[dir="rtl"] .am-nl-send__status::after,
.am-newsletter-modal[dir="rtl"] .am-nl-send__status::after {
  text-align: right;
}

/* Launch on success before thank-you */
.am-newsletter-modal.is-launching .am-nl-send__craft {
  animation: amNlPlaneLaunch 0.75s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.am-newsletter-modal.is-launching .am-nl-send__bloom,
.am-newsletter-modal.is-launching .am-nl-send__ring,
.am-newsletter-modal.is-launching .am-nl-send__spark {
  animation: amNlFadeOut 0.45s ease forwards;
}

.am-newsletter-modal.is-launching .am-nl-send__status,
.am-newsletter-modal.is-launching .am-nl-send__hint {
  animation: amNlFadeOut 0.35s ease forwards;
}

@keyframes amNlBloom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes amNlRing {
  0% {
    opacity: 0.7;
    transform: scale(0.55);
  }
  80%, 100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes amNlSpark {
  0%, 100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  35% {
    opacity: 1;
    transform: translate(calc(var(--am-spark-x) * 0.55), calc(var(--am-spark-y) * 0.55)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--am-spark-x), var(--am-spark-y)) scale(0.2);
  }
}

@keyframes amNlCraftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes amNlPlaneBob {
  0%, 100% { transform: rotate(-8deg) translateX(0); }
  50% { transform: rotate(4deg) translateX(4px); }
}

@keyframes amNlPlaneLaunch {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(-8deg);
  }
  100% {
    opacity: 0;
    transform: translate(140%, -110%) scale(0.35) rotate(18deg);
  }
}

@keyframes amNlDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

@keyframes amNlFadeOut {
  to { opacity: 0; }
}

.am-newsletter-modal__success {
  text-align: center;
  position: relative;
}

.am-newsletter-modal__success h2 {
  margin-bottom: 0.85rem;
}

.am-newsletter-modal__success p {
  font-family: var(--am-font-reading);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--am-muted);
  margin: 0;
}

html[dir="rtl"] .am-newsletter-modal__success p,
.am-newsletter-modal[dir="rtl"] .am-newsletter-modal__success p {
  font-family: var(--am-font-fa-reading, var(--am-font-reading));
}

.am-newsletter-modal__burst {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.am-newsletter-modal__burst span {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #007F7B;
  opacity: 0;
}

.am-newsletter-modal__success.is-shown .am-newsletter-modal__burst span {
  animation: amNlBurst 0.85s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.am-newsletter-modal__burst span:nth-child(1) { --bx: 0; --by: -42px; background: #007F7B; }
.am-newsletter-modal__burst span:nth-child(2) { --bx: 34px; --by: -28px; background: #0aa39d; animation-delay: 0.04s; }
.am-newsletter-modal__burst span:nth-child(3) { --bx: 42px; --by: 8px; background: #065f5c; animation-delay: 0.08s; }
.am-newsletter-modal__burst span:nth-child(4) { --bx: 22px; --by: 36px; background: #007F7B; animation-delay: 0.12s; }
.am-newsletter-modal__burst span:nth-child(5) { --bx: -22px; --by: 36px; background: #0aa39d; animation-delay: 0.16s; }
.am-newsletter-modal__burst span:nth-child(6) { --bx: -42px; --by: 8px; background: #065f5c; animation-delay: 0.2s; }
.am-newsletter-modal__burst span:nth-child(7) { --bx: -34px; --by: -28px; background: #007F7B; animation-delay: 0.24s; }
.am-newsletter-modal__burst span:nth-child(8) { --bx: 0; --by: -18px; width: 0.28rem; height: 0.28rem; background: #0aa39d; animation-delay: 0.1s; }

.am-newsletter-modal__check {
  width: 4rem;
  height: 4rem;
  margin: 0.4rem auto 1.15rem;
  border-radius: 50%;
  background: var(--am-teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-newsletter-modal__check-svg {
  width: 3.1rem;
  height: 3.1rem;
  display: block;
}

.am-newsletter-modal__check-circle {
  stroke: var(--am-teal);
  stroke-width: 2.5;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
}

.am-newsletter-modal__check-mark {
  stroke: var(--am-teal);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.am-newsletter-modal__success.is-shown .am-newsletter-modal__check {
  animation: amNlSuccessPop 0.55s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.am-newsletter-modal__success.is-shown .am-newsletter-modal__check-circle {
  animation: amNewsletterCheckCircle 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.am-newsletter-modal__success.is-shown .am-newsletter-modal__check-mark {
  animation: amNewsletterCheckMark 0.45s cubic-bezier(0.215, 0.61, 0.355, 1) 0.35s forwards;
}

.am-newsletter-modal__success.is-shown h2,
.am-newsletter-modal__success.is-shown p,
.am-newsletter-modal__success.is-shown .am-newsletter-modal__done {
  animation: amNewsletterSuccessIn 0.55s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.am-newsletter-modal__success.is-shown h2 { animation-delay: 0.45s; }
.am-newsletter-modal__success.is-shown p { animation-delay: 0.58s; }
.am-newsletter-modal__success.is-shown .am-newsletter-modal__done { animation-delay: 0.72s; }

@keyframes amNlBurst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  35% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(var(--bx), var(--by)) scale(1);
  }
}

@keyframes amNlSuccessPop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes amNewsletterCheckCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes amNewsletterCheckMark {
  to { stroke-dashoffset: 0; }
}

@keyframes amNewsletterSuccessIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .am-newsletter-modal {
    padding: 0.75rem;
    align-items: flex-end;
  }
  .am-newsletter-modal__dialog {
    width: 100%;
    max-height: min(92vh, 42rem);
    border-radius: 20px 20px 16px 16px;
  }
  .am-newsletter-modal__panel {
    padding: 1.5rem 1.25rem 1.4rem;
  }
  .am-newsletter-modal__panel h2 {
    font-size: clamp(1.5rem, 6.5vw, 1.85rem);
    margin-right: 2.25rem;
  }
  html[dir="rtl"] .am-newsletter-modal__panel h2,
  .am-newsletter-modal[dir="rtl"] .am-newsletter-modal__panel h2 {
    margin-right: 0;
    margin-left: 2.25rem;
  }
  .am-newsletter-modal__sending {
    min-height: 18rem;
  }
  .am-nl-send {
    width: 9.5rem;
    height: 9.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-newsletter-modal,
  .am-newsletter-modal__dialog,
  .am-newsletter-modal__dialog::before,
  .am-newsletter-modal__panel,
  .am-newsletter-modal__close,
  .am-newsletter-modal__form-view,
  .am-newsletter-form__submit {
    transition-duration: 0.01ms !important;
  }
  .am-newsletter-modal.is-open .am-newsletter-modal__dialog::before {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    border-radius: 22px;
  }
  .am-nl-send__bloom,
  .am-nl-send__ring,
  .am-nl-send__spark,
  .am-nl-send__craft,
  .am-nl-send__plane,
  .am-nl-send__status::after,
  .am-newsletter-modal__burst span,
  .am-newsletter-modal__success.is-shown .am-newsletter-modal__check,
  .am-newsletter-modal__success.is-shown .am-newsletter-modal__check-circle,
  .am-newsletter-modal__success.is-shown .am-newsletter-modal__check-mark,
  .am-newsletter-modal__success.is-shown h2,
  .am-newsletter-modal__success.is-shown p,
  .am-newsletter-modal__success.is-shown .am-newsletter-modal__done {
    animation: none !important;
  }
  .am-newsletter-modal.is-sending .am-newsletter-modal__form-view {
    filter: none;
    transform: none;
  }
  .am-newsletter-modal__check-circle,
  .am-newsletter-modal__check-mark {
    stroke-dashoffset: 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #132022;
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2.5rem;
  margin-top: clamp(0.5rem, 2vw, 1rem);
}
.site-footer a { color: rgba(255, 255, 255, 0.88); }
.site-footer a:hover { color: #fff; }
.footer-widget-title {
  font-family: var(--am-font-display);
  color: #fff;
  font-size: 1.25rem;
  margin-top: 0;
}
.am-footer-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0.5rem 0 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .row { gap: 2rem; }

.site-footer-bottom {
  background: #0c1618;
  color: rgba(255, 255, 255, 0.65);
  padding: 1rem 0;
  font-size: 0.9rem;
}
.site-footer-bottom .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
}
.social-icons a:hover { background: var(--am-teal); border-color: var(--am-teal); }

#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--am-teal);
  color: #fff !important;
  border-radius: 50%;
  opacity: 0.9;
  z-index: 900;
}
html[dir="rtl"] #back-to-top { right: auto; left: 1.25rem; }

.spacer-20 { height: 1.25rem; }
.spacer-30 { height: 1.85rem; }
hr { border: 0; border-top: 1px solid var(--am-line); margin: 2rem 0; }

/* ---------- Motion system (progressive enhancement) ----------
   Content stays visible by default. JS adds html.am-motion-on only after
   targets are marked — so nothing can remain stuck hidden. */
:root {
  --am-motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --am-motion-duration: 1.7s;
  --am-motion-x: -32px;
  --am-motion-y: 16px;
}

html.am-motion-on .am-motion {
  opacity: 0;
  transform: translate3d(var(--am-motion-x), 0, 0);
  transition: none;
  will-change: opacity, transform;
}
html.am-motion-on .am-motion--card {
  transform: translate3d(var(--am-motion-x), 8px, 0);
}
html.am-motion-on .am-motion--soft {
  transform: translate3d(-26px, 0, 0);
}
html.am-motion-on .am-motion--lift {
  /* Still enter from the left for a consistent L→R feel */
  transform: translate3d(var(--am-motion-x), var(--am-motion-y), 0);
}
html.am-motion-on .am-motion.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--am-motion-duration) var(--am-motion-ease),
    transform var(--am-motion-duration) var(--am-motion-ease);
  transition-delay: var(--am-delay, 0ms);
  will-change: auto;
}
html.am-motion-on .am-team-member.am-motion:not(.is-in) {
  pointer-events: none;
}
html.am-motion-on .am-team-member.am-motion.is-in {
  pointer-events: auto;
}

/* Soft page content settle on every page load */
html.am-motion-on .am-page-motion {
  opacity: 0;
  transform: translate3d(-24px, 12px, 0);
  transition: none;
}
html.am-motion-on .am-page-motion.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 1.75s var(--am-motion-ease),
    transform 1.75s var(--am-motion-ease);
  transition-delay: var(--am-delay, 0ms);
}

/* Chrome never animates (banner, header, footer, modals) */
.nav-backed-header,
.nav-backed-header *,
.page-header,
.page-header *,
.site-header.am-motion,
.am-navbar.am-motion,
.site-footer.am-motion,
.site-footer-bottom.am-motion,
.site-header .am-motion,
.site-footer .am-motion,
.site-footer-bottom .am-motion,
.am-story-modal.am-motion,
.am-story-modal .am-motion {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
  pointer-events: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html.am-motion-on .am-motion,
  html.am-motion-on .am-page-motion,
  html.am-motion-on body.am-home-anim .am-brand,
  html.am-motion-on .am-hero__caption > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    pointer-events: auto !important;
  }
}
/* ---------- Persian typography ---------- */
html[dir="rtl"],
html[lang="fa"],
html[dir="rtl"] body,
html[lang="fa"] body {
  font-family: var(--am-font-fa-ui);
  line-height: 1.9;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .am-hero__brand,
html[dir="rtl"] .am-hero__title,
html[dir="rtl"] .am-quote,
html[dir="rtl"] .am-brand-name,
html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3 {
  font-family: var(--am-font-fa-reading);
}
html[dir="rtl"] p,
html[dir="rtl"] .am-section__lead,
html[dir="rtl"] .am-pillar p,
html[dir="rtl"] .am-verse,
html[lang="fa"] p {
  font-family: var(--am-font-fa-reading);
}

/* ---------- Responsive system ----------
   Breakpoints:
   - ≤1100px  compact desktop / large tablet nav
   - ≤991px   tablet (stacked nav, 2-col cards)
   - ≤768px   large phone / small tablet
   - ≤640px   phone
   - ≤420px   small phone
   Each tier is layout-optimized — not a scaled desktop.
   ---------------------------------------- */

@media (max-width: 1100px) {
  :root { --am-gutter: clamp(1.15rem, 4vw, 2rem); }
  .am-brand-slogan { display: none; }
  .navigation > ul > li > a,
  .am-menu > li > a {
    padding: 0.55rem 0.6rem;
    font-size: 0.98rem;
  }
  .am-brand-name { font-size: 1.4rem; }
  .am-brand-mark img { width: 64px; height: 64px; }
  .am-navbar__inner { min-height: 90px; gap: 0.9rem; }
  .am-navbar__inner.container,
  .container.am-navbar__inner {
    width: min(100% - (var(--am-gutter) * 2), 1200px);
  }
  .am-brand { margin-inline-end: 0.2rem; }
  .am-navbar__end { gap: 0.75rem 1.15rem; }
}

@media (max-width: 991.98px) {
  /* Elam-style side spacing (~10vw each side) — every page on tablet / phone */
  :root {
    --am-gutter: clamp(1.35rem, 10vw, 6.5rem);
    --am-section-y: clamp(2.25rem, 5vw, 3.5rem);
  }

  /* Lock all page shells to the same edge inset */
  .container,
  .am-container,
  .am-overview-inner,
  .am-testimony-inner,
  .am-navbar__inner.container,
  .container.am-navbar__inner {
    width: min(100% - (var(--am-gutter) * 2), 100%);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
  }
  .am-container {
    width: min(100% - (var(--am-gutter) * 2), var(--am-max));
  }
  .am-container--narrow {
    width: min(100% - (var(--am-gutter) * 2), var(--am-narrow));
  }
  .am-overview-inner {
    width: min(100% - (var(--am-gutter) * 2), 1100px);
  }
  .am-testimony-inner {
    width: min(100% - (var(--am-gutter) * 2), var(--am-max));
  }
  .am-navbar__inner.container,
  .container.am-navbar__inner {
    width: min(100% - (var(--am-gutter) * 2), 1200px);
  }
  .am-team-grid {
    width: 100%;
    max-width: none;
  }
  .am-split__content {
    padding-inline: var(--am-gutter);
  }

  body { font-size: 16.5px; }

  .am-navbar__inner {
    flex-wrap: wrap;
    min-height: 72px;
    padding-block: 0.55rem;
    position: relative;
    gap: 0.65rem 0.85rem;
  }

  .am-brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-inline-end: 0;
  }

  .am-navbar__tools {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-inline-start: auto;
    order: 2;
  }

  .am-menu-toggle {
    display: inline-flex;
    margin: 0;
    width: var(--am-touch);
    height: var(--am-touch);
  }

  .am-navbar__end {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex-basis: 100%;
    order: 3;
    gap: 0.85rem;
    padding: 0.85rem 0 1.1rem;
    border-top: 1px solid var(--am-line);
    margin-top: 0.15rem;
  }
  .am-navbar__end.is-open { display: flex; }

  .am-navbar__nav { justify-content: flex-start; width: 100%; }
  .am-navbar__actions {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.35rem;
    margin-inline-start: 0;
  }
  .am-btn-give {
    min-height: 40px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    width: auto;
    white-space: nowrap;
  }
  .language-switcher a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
  }

  .navigation > ul,
  .am-menu,
  .sf-menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .navigation > ul > li > a,
  .am-menu > li > a {
    width: 100%;
    padding: 0.8rem 0.85rem;
    font-size: 1.05rem;
    white-space: normal;
    min-height: var(--am-touch);
    display: flex;
    align-items: center;
    border-radius: 10px;
  }

  .am-menu .dropdown,
  .am-menu .sub-menu,
  .sf-menu ul {
    position: static;
    display: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
    box-shadow: none;
    border: 0;
    background: var(--am-sand);
    padding: 0.35rem;
    min-width: 0;
    border-radius: 12px;
    margin: 0.2rem 0 0.4rem;
  }
  html[dir="rtl"] .am-menu .dropdown,
  html[dir="rtl"] .am-menu .sub-menu {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .am-menu .dropdown::before,
  .am-menu .sub-menu::before { display: none; }

  .am-menu > li.am-open > .dropdown,
  .am-menu > li.am-open > .sub-menu { display: block; }

  .am-menu .dropdown a,
  .am-menu .sub-menu a {
    padding: 0.7rem 0.85rem;
    font-size: 0.98rem;
    min-height: 44px;
    background: transparent;
  }

  .am-btn,
  .btn {
    min-height: var(--am-touch);
    padding: 0.75rem 1.35rem;
  }

  .am-nav-indicator { display: none; }

  /* Home sections */
  .am-section { padding-block: var(--am-section-y); }
  .am-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
  .am-pillar,
  .am-testimony-card {
    padding: 1.5rem 1.35rem;
  }
  .am-testimony-scroll {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .am-section--split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .am-split__media { min-height: 260px; }
  .am-split__content { padding: 2rem var(--am-gutter) 2.5rem; } /* edges match page gutter */

  .am-hero {
    min-height: min(84vh, 640px);
    align-items: center;
  }
  .am-hero__caption {
    padding: 4.5rem var(--am-gutter) 6.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 36rem;
    width: min(100% - (var(--am-gutter) * 2), 36rem);
  }
  .am-hero__slide .am-hero__caption {
    padding-top: clamp(5.25rem, 12vh, 7.5rem);
    padding-bottom: clamp(5.5rem, 11vh, 7.25rem);
    justify-content: center;
    gap: 0;
  }
  .am-hero__lead { margin-bottom: 1.35rem; }
  .am-hero__actions { margin-top: 0.35rem; }
  html[dir="rtl"] .am-hero__caption { margin-left: auto; margin-right: auto; }
  .am-hero__actions {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .am-hero__actions .am-btn {
    min-height: var(--am-touch);
    flex: 1 1 auto;
  }
  .am-hero__arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .am-hero__pager {
    bottom: clamp(1.25rem, 3vw, 1.75rem);
  }

  .page-header { padding: 2rem 0 0.85rem; }
  .page-header h1 { font-size: clamp(1.75rem, 5vw, 2.35rem); }
  .nav-backed-header { min-height: 130px; }

  .am-team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 640px;
  }
  .am-team-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  .am-team-intro { margin: 0 auto; }
  .am-team-member {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.1rem;
  }
  .am-team-body {
    align-items: center;
  }
  .am-team-roles {
    align-items: center;
  }
  .am-team-body > p:last-child {
    max-width: none;
  }
  .am-team-member::before {
    inset: 0 0 auto 0;
    width: 100%;
    height: 4px;
  }
  html[dir="rtl"] .am-team-member::before {
    inset: 0 0 auto 0;
  }

  /* Forms & content */
  .form-control,
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    font-size: 16px; /* prevent iOS zoom */
    min-height: var(--am-touch);
    padding: 0.75rem 0.9rem;
  }
  .contact-form textarea { min-height: 140px; }
  .am-btn,
  .btn {
    min-height: var(--am-touch);
    padding: 0.8rem 1.25rem;
  }

  .site-footer { padding: 2.75rem 0 2rem; }
  .site-footer .row { gap: 1.75rem; }
  .site-footer-bottom .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .social-icons a {
    width: var(--am-touch);
    height: var(--am-touch);
  }

  #back-to-top {
    width: var(--am-touch);
    height: var(--am-touch);
    right: 1rem;
    bottom: 1rem;
  }
  html[dir="rtl"] #back-to-top { left: 1rem; }

  /* Slightly lighter motion on tablet */
  :root {
    --am-motion-duration: 1.45s;
    --am-motion-x: -26px;
    --am-motion-y: 14px;
  }
}

@media (max-width: 768px) {
  /* Keep Elam ~10vw edges; slightly lower max on smaller tablets */
  :root { --am-gutter: clamp(1.35rem, 10vw, 5rem); }

  .am-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .am-section h2 {
    font-size: clamp(1.65rem, 6vw, 2.15rem);
    max-width: none;
  }
  .am-section__lead,
  .lead {
    font-size: 1.05rem;
  }
  .am-hero {
    min-height: min(80vh, 580px);
  }
  .am-hero__brand {
    font-size: clamp(2rem, 9vw, 2.65rem);
    margin-bottom: 0.25rem;
  }
  .am-hero__title {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
    margin-bottom: 0.85rem;
  }
  .am-hero__lead {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: none;
  }
  .am-hero__caption {
    padding: 4rem var(--am-gutter) 6.75rem;
    width: min(100% - (var(--am-gutter) * 2), 40rem);
    margin-inline: auto;
  }
  .am-hero__slide .am-hero__caption {
    padding-top: clamp(4.75rem, 11vh, 7rem);
    padding-bottom: clamp(5.75rem, 12vh, 7.5rem);
  }
  .am-hero__headline {
    font-size: clamp(1.75rem, 5vw, 2.45rem);
    max-width: none;
    margin-bottom: 0.85rem;
  }
  .am-hero__arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.6rem;
  }
  .am-hero__arrow--prev { left: max(0.65rem, calc(var(--am-gutter) * 0.35)); }
  .am-hero__arrow--next { right: max(0.65rem, calc(var(--am-gutter) * 0.35)); }
  html[dir="rtl"] .am-hero__arrow--prev { right: max(0.65rem, calc(var(--am-gutter) * 0.35)); left: auto; }
  html[dir="rtl"] .am-hero__arrow--next { left: max(0.65rem, calc(var(--am-gutter) * 0.35)); right: auto; }
  .am-overview-media img {
    max-height: 240px;
    border-radius: 16px;
  }
  .row { gap: 1.25rem; }
  .row > [class*="col-"] {
    flex: 1 1 100%;
  }
  #site-content blockquote {
    padding: 1.1rem 1.15rem;
    margin: 1.25rem 0;
  }
  .grid-item {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --am-gutter: clamp(1.25rem, 10vw, 3.25rem);
    --am-section-y: 2.15rem;
  }

  body { font-size: 16px; }

  .am-brand-mark img { width: 48px; height: 48px; }
  .am-brand-name { font-size: 1.15rem; }
  .am-navbar__inner { min-height: 64px; gap: 0.55rem; }
  .am-navbar__tools { gap: 0.45rem; }
  .am-btn-give {
    min-height: 38px;
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
  }

  .am-navbar__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .language-switcher {
    width: 100%;
  }
  .language-switcher { display: flex; }
  .language-switcher a { flex: 1; justify-content: center; }

  .am-hero {
    min-height: min(78vh, 540px);
  }
  .am-hero__caption {
    padding: 3.75rem var(--am-gutter) 6.5rem;
    width: min(100% - (var(--am-gutter) * 2), 40rem);
  }
  .am-hero__slide .am-hero__caption {
    padding-top: clamp(4.25rem, 10vh, 6.25rem);
    padding-bottom: clamp(5.5rem, 12vh, 7rem);
  }
  .am-hero .am-eyebrow--light {
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
  }
  .am-hero__brand {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }
  .am-hero__title {
    font-size: clamp(1.15rem, 4.6vw, 1.45rem);
    margin-bottom: 0.75rem;
  }
  .am-hero__lead {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.35rem;
  }
  .am-hero__actions {
    gap: 0.75rem;
  }
  .am-hero__actions .am-btn {
    width: 100%;
  }
  .am-hero__arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
  .am-hero__arrow--prev { left: max(0.65rem, calc(var(--am-gutter) * 0.35)); }
  .am-hero__arrow--next { right: max(0.65rem, calc(var(--am-gutter) * 0.35)); }
  html[dir="rtl"] .am-hero__arrow--prev { right: max(0.65rem, calc(var(--am-gutter) * 0.35)); left: auto; }
  html[dir="rtl"] .am-hero__arrow--next { left: max(0.65rem, calc(var(--am-gutter) * 0.35)); right: auto; }
  .am-hero__pager {
    bottom: 1.25rem;
  }

  .am-team {
    padding: 2rem 0 2.5rem;
  }
  .am-team-member {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.35rem 1.2rem;
  }
  .am-team-body {
    align-items: center;
  }
  .am-team-roles {
    align-items: center;
  }
  .am-team-avatar {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.8rem;
  }
  .am-team-body h3 { font-size: 1.3rem; }
  .am-team-roles li,
  .am-team-role-label { font-size: 0.98rem; }
  .am-team-body > p:last-child { font-size: 0.98rem; max-width: none; }

  .nav-backed-header { min-height: 112px; }
  .breadcrumb { font-size: 0.82rem; }
  .page-header { padding: 1.65rem 0 0.65rem; }
  .am-page-lead { font-size: 1rem; max-width: none; }

  .am-footer-logo { width: 80px; height: 80px; }
  .footer-widget-title { font-size: 1.15rem; }

  hr { margin: 1.5rem 0; }

  /* Shorter travel on phones, still unhurried */
  :root {
    --am-motion-duration: 1.3s;
    --am-motion-x: -22px;
    --am-motion-y: 12px;
  }
  .am-gift-card:hover,
  .am-pillar:hover,
  .am-testimony-card:hover,
  .am-team-member.is-in:hover {
    transform: none;
  }
}

@media (max-width: 420px) {
  :root { --am-gutter: clamp(1.2rem, 10vw, 2.75rem); }

  .am-brand-name { font-size: 1.05rem; }
  .am-brand-mark img { width: 44px; height: 44px; }
  .am-btn-give {
    min-height: 36px;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }
  .am-hero__brand { font-size: clamp(1.75rem, 9.5vw, 2.2rem); }
  .am-hero__slide .am-hero__caption {
    padding-top: clamp(3.85rem, 9vh, 5.5rem);
    padding-bottom: clamp(5.25rem, 11vh, 6.5rem);
  }
  .am-overview-block { padding: 1.85rem 0; }
  .am-overview-copy h2 { font-size: 1.25rem; }
  .am-overview-copy p { font-size: 0.98rem; }
}

/* Touch devices: prefer tap-friendly interactions over hover lifts */
@media (hover: none) and (pointer: coarse) {
  .am-btn:hover,
  .btn:hover {
    transform: none;
  }
  .am-gift-card:hover,
  .am-pillar:hover,
  .am-testimony-card:hover,
  .am-team-member.is-in:hover {
    transform: none;
  }
  .am-team-member:hover .am-team-avatar {
    transform: none;
  }
}
