@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --teal: #ea580c;
  --sea: #f97316;
  --foam: #fdba74;
  --paper: #f6f4f1;
  --surface: #ffffff;
  --mist: #737373;
  --line: rgba(17, 17, 17, 0.08);
  --shadow: 0 14px 40px rgba(17, 17, 17, 0.08);
  --font: "Vazirmatn", Tahoma, sans-serif;
  --sat-top: env(safe-area-inset-top, 0px);
}

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

html { scroll-behavior: smooth; }

body.seo-page {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(234, 88, 12, 0.08), transparent 55%),
    var(--paper);
  line-height: 1.9;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.seo-wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.seo-nav-bar {
  position: sticky;
  top: calc(0.55rem + var(--sat-top));
  z-index: 40;
  margin: 0.55rem auto 0;
  width: min(1120px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.05rem;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.25rem;
  box-shadow: 0 10px 32px rgba(17, 17, 17, 0.07);
}

.seo-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
  flex-shrink: 0;
}
.seo-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #fff;
}

.seo-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.seo-nav-links a {
  color: #3f3f3f;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.seo-nav-links a:hover { color: var(--teal); border-bottom-color: var(--foam); }
.seo-nav-cta {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.45rem 0.9rem !important;
  border-bottom: 0 !important;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.22);
}
.seo-nav-cta:hover { filter: brightness(1.06); color: #fff !important; }

.seo-hero-art {
  position: relative;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 1.25rem auto 0;
  min-height: 340px;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1a1a;
}
.seo-hero-art img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: saturate(1.05);
  background: linear-gradient(150deg, #4a382a 0%, #241c15 55%, #171310 100%);
  color: transparent;
}
.seo-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.72) 100%);
}
/* Extra bottom padding keeps the lead text clear of the panel that
   overlaps the hero (.seo-panel has a negative top margin). */
.seo-hero-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 2rem 2.1rem 4.4rem;
  color: #fff;
}
.seo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.seo-hero-copy h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.4;
  font-weight: 800;
  max-width: 18ch;
  margin-bottom: 0.55rem;
}
.seo-hero-copy .lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  max-width: 46ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-crumb {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 1.1rem auto 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mist);
}
.seo-crumb a { color: var(--teal); }
.seo-crumb a:hover { text-decoration: underline; }

.seo-panel {
  width: min(800px, calc(100% - 2.5rem));
  margin: -2.6rem auto 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  padding: 2rem 2rem 2.2rem;
}
.seo-panel-wide {
  width: min(1120px, calc(100% - 2.5rem));
}

.seo-body-text p { margin: 0 0 1.05rem; color: #2a2a2a; font-size: 1.02rem; }
.seo-body-text h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 1.8rem 0 0.7rem;
}
.seo-body-text ul { padding-right: 1.15rem; margin: 0 0 1rem; }
.seo-body-text li { margin-bottom: 0.35rem; }

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}
.seo-links a {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.seo-links a:hover { background: #ffedd5; }

.seo-cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff !important;
  padding: 0.85rem 1.35rem;
  border-radius: 1rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.22);
  margin-top: 0.4rem;
}
.seo-cta:hover { filter: brightness(1.06); }

.seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 1.2rem 0 1.6rem;
}
.seo-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.seo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.1);
}
.seo-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #ece7df;
  color: transparent;
}

/* Bare gallery images (stay pages) placed directly inside .seo-cards */
.seo-cards > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: #ece7df;
  color: transparent;
}
.seo-card > div { padding: 0.9rem 1rem 1.05rem; }
.seo-card strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.seo-card span { color: var(--mist); font-size: 0.8rem; font-weight: 700; }

.seo-faq { margin-top: 1.6rem; }
.seo-faq h2 { margin-bottom: 0.8rem; }
.seo-faq details {
  background: #fffaf5;
  border: 1px solid #ffedd5;
  border-radius: 1rem;
  padding: 0.9rem 1.05rem;
  margin: 0 0 0.65rem;
}
.seo-faq summary { font-weight: 800; cursor: pointer; }
.seo-faq summary::marker { color: var(--teal); }
.seo-faq p { margin: 0.55rem 0 0; color: #444; }

.seo-foot {
  margin-top: 3.5rem;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.48);
  padding: 3.2rem 0 1.6rem;
}
.seo-foot .cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}
.seo-foot h2 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.seo-foot a { color: rgba(255, 255, 255, 0.62); }
.seo-foot a:hover { color: var(--foam); }
.seo-foot .brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.seo-foot .brand-row img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.8rem;
  background: #fff;
}
.seo-copy {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
}

@media (max-width: 800px) {
  .seo-nav-bar { flex-wrap: wrap; }
  .seo-nav-links { width: 100%; justify-content: flex-start; }
  .seo-hero-art img { height: 320px; }
  .seo-hero-copy { padding: 1.3rem 1.2rem 3rem; }
  .seo-hero-copy h1 { max-width: none; }
  .seo-panel { padding: 1.35rem 1.2rem 1.5rem; margin-top: -1.6rem; }
  .seo-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .seo-foot .cols { grid-template-columns: 1fr; }
}
