/* ============================================================
   ملک‌ وکیل | محمدمهدی اکبری — styles
   Aesthetic: ceremonial legal / editorial — deep ink, ivory,
   brass & muted gold. Serif (Amiri) for display, Vazirmatn for body.
   ============================================================ */

:root {
  --ink: #10121a;          /* deep ink */
  --ink-soft: #232a3a;
  --ivory: #f4f0e6;        /* warm ivory paper */
  --paper: #fbf9f2;
  --brass: #b08a3e;        /* muted brass */
  --brass-light: #cbb072;
  --brass-dark: #8a6a2c;
  --line: rgba(16, 18, 26, 0.14);
  --line-light: rgba(244, 240, 230, 0.18);
  --serif: "Amiri", "Times New Roman", serif;
  --sans: "Vazirmatn", "Segoe UI", sans-serif;
  --shadow: 0 30px 60px -30px rgba(16, 18, 26, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.9;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- selection ---------- */
::selection { background: var(--brass); color: #fff; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--brass-dark); border-radius: 6px; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.82rem;
  letter-spacing: 0.2px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 40px;
  flex-wrap: wrap;
  padding-block: 6px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 6px; opacity: 0.9; }
.topbar a { border-bottom: 1px dotted var(--brass); }
.topbar a:hover { color: var(--brass-light); }
.topbar__sep { opacity: 0.35; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 230, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.header--scrolled { box-shadow: 0 12px 30px -18px rgba(16,18,26,0.5); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

/* brand */
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__seal { width: 52px; height: 52px; color: var(--brass-dark); flex: none; }
.brand__seal svg { width: 100%; height: 100%; }
.brand__logo {
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: contain;
}
.brand__logo--footer { width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.28rem); font-weight: 700; }
.brand__text small { font-size: clamp(0.62rem, 1.6vw, 0.72rem); letter-spacing: 0.2px; color: var(--ink-soft); opacity: 0.85; line-height: 1.35; max-width: 16rem; }
.brand--footer .brand__text strong { font-family: var(--serif); }

/* nav */
.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  padding: 10px 16px;
  font-size: 0.95rem;
  border-radius: 8px;
  color: var(--ink);
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: 5px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--brass-dark); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--cta {
  background: var(--ink);
  color: var(--ivory);
  border-radius: 999px;
  padding: 11px 22px;
  margin-right: 8px;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--brass-dark); color: #fff; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 11px;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--ivory) 0%, #ece6d4 55%, #e3d9bf 100%);
  overflow: hidden;
  padding: clamp(70px, 11vh, 130px) 0 clamp(60px, 9vh, 110px);
}
.hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(176, 138, 62, 0.10), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(16, 18, 26, 0.07), transparent 46%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/></svg>");
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--brass-dark);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--brass); }
.eyebrow--light { color: var(--brass-light); }

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.9rem, 7vw, 5.2rem);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero__title em {
  font-style: italic;
  color: var(--brass-dark);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  right: 2px; left: 2px; bottom: 2px;
  height: 10px;
  background: rgba(176, 138, 62, 0.28);
  z-index: -1;
  border-radius: 3px;
}
.hero__lead {
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn--solid { background: var(--ink); color: var(--ivory); box-shadow: 0 14px 30px -14px rgba(16,18,26,0.6); }
.btn--solid:hover { background: var(--brass-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brass-dark); color: var(--brass-dark); transform: translateY(-2px); }
.btn--arrow span { transition: transform 0.3s var(--ease); }
.btn--arrow:hover span { transform: translateX(-5px); }
.btn--full { width: 100%; }

/* hero portrait */
.hero__emblem { display: flex; justify-content: center; align-items: center; }
.hero__portrait {
  width: min(300px, 72vw);
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: min(380px, 88vw);
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  border: 3px solid rgba(176, 138, 62, 0.55);
  box-shadow:
    0 0 0 1px rgba(16, 18, 26, 0.06),
    0 24px 48px -16px rgba(16, 18, 26, 0.35),
    inset 0 0 0 1px rgba(255, 252, 245, 0.12);
  filter: drop-shadow(0 20px 32px rgba(16, 18, 26, 0.18));
  animation: float 7s ease-in-out infinite;
}
.seal--hero {
  width: min(300px, 80vw);
  height: auto;
  color: var(--brass-dark);
  filter: drop-shadow(0 30px 40px rgba(16, 18, 26, 0.25));
  animation: float 7s ease-in-out infinite;
}
.seal__arc { fill: var(--brass-dark); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 1px;
  height: 52px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 40%;
  background: var(--brass-dark);
  animation: scrollDot 2.1s var(--ease) infinite;
}
@keyframes scrollDot { 0% { top: -40%; } 100% { top: 110%; } }

/* ============================================================
   Stats
   ============================================================ */
.stats {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  padding-block: 46px;
  margin-top: -1px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--brass-light);
  line-height: 1.1;
}
.stat span { font-size: 0.9rem; opacity: 0.8; }

/* ============================================================
   Sections common
   ============================================================ */
.section { padding-block: clamp(70px, 9vw, 110px); }
.section--dark { background: var(--ink); color: var(--ivory); }
.section--tint { background: var(--paper); }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.2;
  margin-bottom: 40px;
}
.section--dark .section-title { color: var(--ivory); }
.section--dark .eyebrow::before { background: var(--brass-light); }
.section-lead { color: var(--ink-soft); max-width: 40rem; margin: -24px 0 46px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about__text p { color: var(--ink-soft); margin-bottom: 18px; }
.about__text .btn { margin-top: 18px; }
.about__points { margin: 26px 0 8px; display: grid; gap: 12px; }
.about__points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
}
.about__points li::before {
  content: "❖";
  color: var(--brass-dark);
  font-size: 0.9rem;
  margin-top: 3px;
}
.about__points strong { color: var(--ink); }

.about__visual { display: flex; justify-content: center; }
.about__frame {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 44px 38px 38px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  transition: transform 0.6s var(--ease);
}
.about__frame:hover { transform: rotate(0deg); }
.about__plate {
  width: 74px; height: 74px;
  margin: 0 auto 26px;
  color: var(--brass-light);
}
.about__plate svg { width: 100%; height: 100%; }
.about__quote {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}
.about__frame figcaption {
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ============================================================
   Services
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: rgba(244, 240, 230, 0.04);
  border: 1px solid var(--line-light);
  border-radius: 18px;
  padding: 34px 30px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.4s, border-color 0.4s;
}
.card:hover { transform: translateY(-6px); background: rgba(244, 240, 230, 0.08); border-color: var(--brass); }
.card__num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--brass-light);
  opacity: 0.9;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 14px 0 10px;
  color: #fff;
}
.card p { color: rgba(244, 240, 230, 0.7); font-size: 0.95rem; }
.card::after {
  content: "";
  position: absolute;
  left: -60px; bottom: -60px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 138, 62, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::after { opacity: 1; }

.services__note {
  margin-top: 40px;
  text-align: center;
  color: rgba(244, 240, 230, 0.7);
}
.services__note a { color: var(--brass-light); border-bottom: 1px dotted var(--brass-light); }

.cta-band {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(176, 138, 62, 0.14), rgba(176, 138, 62, 0.05));
  border: 1px solid rgba(176, 138, 62, 0.4);
  border-radius: 18px;
  padding: 34px 36px;
}
.cta-band h3 { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 4px; }
.cta-band p { color: rgba(244, 240, 230, 0.78); font-size: 0.98rem; }
.cta-band .btn--solid { background: #fff; color: var(--ink); }
.cta-band .btn--solid:hover { background: var(--brass-light); }

/* ============================================================
   Team
   ============================================================ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.member {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member__avatar {
  width: 92px; height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: #fff;
  border: 3px solid var(--brass);
}
.member__avatar--1 { background: linear-gradient(135deg, #2c354a, #141824); }
.member__avatar--2 { background: linear-gradient(135deg, #7d5a27, #4a3512); }
.member__avatar--3 { background: linear-gradient(135deg, #43506b, #232a3a); }
.member h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 4px; }
.member__role { display: block; font-size: 0.82rem; color: var(--brass-dark); margin-bottom: 14px; font-weight: 600; }
.member p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   Process
   ============================================================ */
.process__list { display: grid; gap: 18px; }
.process__step {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.process__step:hover { transform: translateX(-6px); box-shadow: 0 16px 34px -22px rgba(16,18,26,0.4); }
.process__step-num {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}
.process__step h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 2px; }
.process__step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--ivory);
  position: relative;
}
.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(176, 138, 62, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(16, 18, 26, 0.04), transparent 50%);
  pointer-events: none;
}
.faq__inner { position: relative; z-index: 1; }
.faq__header {
  max-width: 42rem;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__intro .section-title,
.faq__intro .section-lead {
  display: block;
  margin: 0;
  max-width: none;
}
.faq__list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
  max-width: 52rem;
}
.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px -24px rgba(16, 18, 26, 0.35);
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.faq__item:hover { border-color: rgba(176, 138, 62, 0.35); }
.faq__item--open {
  border-color: rgba(176, 138, 62, 0.55);
  box-shadow: 0 20px 40px -28px rgba(16, 18, 26, 0.45);
}
.faq__heading { margin: 0; font: inherit; }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: right;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}
.faq__question-text { flex: 1; }
.faq__chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(176, 138, 62, 0.12);
  color: var(--brass-dark);
  transition: transform 0.45s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.faq__item--open .faq__chevron {
  transform: rotate(180deg);
  background: var(--brass);
  color: #fff;
}
.faq__question:hover .faq__chevron { background: rgba(176, 138, 62, 0.22); }
.faq__item--open .faq__question:hover .faq__chevron { background: var(--brass-dark); }
.faq__question:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 12px;
}
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq__item--open .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner {
  overflow: hidden;
  padding-inline: 20px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.85;
}
.faq__answer-inner p { padding-bottom: 18px; }
.faq__answer-inner a {
  color: var(--brass-dark);
  border-bottom: 1px solid rgba(176, 138, 62, 0.45);
  font-weight: 600;
}
.faq__answer-inner a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.faq__answer-inner strong { color: var(--ink); font-weight: 700; }
.faq__foot {
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 52rem;
}
.faq__foot a {
  color: var(--brass-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(176, 138, 62, 0.4);
}
.faq__foot a:hover { color: var(--brass); }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: linear-gradient(170deg, var(--ivory), #efe8d6); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: start;
}
.contact__info p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 26px; max-width: 32rem; }
.contact__details { display: grid; gap: 10px; }
.contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-soft);
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.contact__row:hover { background: rgba(176, 138, 62, 0.1); transform: translateX(-4px); }
.contact__row--office { align-items: flex-start; }
.contact__office-block { display: grid; gap: 4px; text-align: right; }
.contact__office-label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.contact__office-line { line-height: 1.55; }
.contact__icon {
  width: 42px; height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--brass-light);
  border-radius: 10px;
  font-size: 1rem;
}

.contact__form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.contact__form label { display: grid; gap: 8px; }
.contact__form label span { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.contact__form textarea { resize: vertical; min-height: 90px; }
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.15);
}
select::-ms-expand { display: none; }

.contact__upload-wrap { display: grid; gap: 8px; }
.contact__upload-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.contact__upload-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.85;
  margin-top: -4px;
}
.contact__upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  background: var(--ivory);
  border: 2px dashed rgba(176, 138, 62, 0.45);
  border-radius: 14px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.contact__upload:hover,
.contact__upload:focus-visible {
  outline: none;
  border-color: var(--brass);
  background: rgba(255, 252, 245, 0.95);
  box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.12);
}
.contact__upload--dragover {
  border-color: var(--brass);
  background: rgba(176, 138, 62, 0.08);
  box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.18);
}
.contact__upload--invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}
.contact__upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact__upload-empty {
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 22rem;
}
.contact__upload-icon {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.85;
}
.contact__upload-prompt {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.contact__upload-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  direction: rtl;
}
.contact__upload-name {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
.contact__upload-clear {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.contact__upload-clear:hover,
.contact__upload-clear:focus-visible {
  outline: none;
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.06);
}
.contact__upload-error {
  font-size: 0.82rem;
  color: #b42318;
  margin: 0;
  text-align: right;
}

.contact__note { font-size: 0.8rem; text-align: center; color: var(--ink-soft); opacity: 0.85; margin-top: 2px; }
.form-success { border-color: #2e7d46 !important; }
.form-success input, .form-success textarea, .form-success select { border-color: #57a06e; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: var(--ivory); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 64px 40px;
}
.brand--footer .brand__seal { width: 46px; height: 46px; }
.brand--footer strong { color: var(--ivory); font-size: 1.25rem; }
.footer__about { font-size: 0.85rem; opacity: 0.7; margin-top: 16px; max-width: 26rem; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h4 { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--brass-light); margin-bottom: 8px; }
.footer__col a, .footer__col span { color: rgba(244,240,230,0.75); font-size: 0.95rem; }
.footer__col a:hover { color: var(--brass-light); }
.footer__addresses { display: grid; gap: 14px; margin-top: 4px; }
.footer__address { display: grid; gap: 4px; }
.footer__address-label { font-size: 0.8rem; font-weight: 700; color: var(--brass-light); }
.footer__col--contact { min-width: 0; }
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(196, 168, 98, 0.4);
  color: var(--brass-light);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer__social-link:hover {
  color: var(--ink);
  background: var(--brass-light);
  border-color: var(--brass-light);
}
.footer__social-link:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
}
.footer__social-icon {
  width: 22px;
  height: 22px;
}
.footer__bottom {
  border-top: 1px solid var(--line-light);
  padding-block: 22px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__emblem { order: -1; }
  .seal--hero { width: 200px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; text-align: center; }
  .about__points { text-align: right; max-width: 480px; margin-inline: auto; }
  .about__text .btn { margin-top: 18px; }
  .services__grid, .team__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .topbar__inner { justify-content: center; }
  .topbar__sep { display: none; }
  .nav {
    position: fixed;
    inset: 90px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 16px; border-radius: 10px; }
  .nav__link--cta { margin-right: 0; margin-top: 8px; justify-content: center; }
  .nav-toggle { display: flex; }
  .services__grid, .team__grid { grid-template-columns: 1fr; }
  .process__step { flex-direction: column; text-align: center; }
  .process__step-num { margin-inline: auto; }
  .contact__form { padding: 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer__col, .brand--footer { align-items: center; }
  .footer__social { justify-content: center; }
  .hero { padding-top: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}