:root {
  --ink: #0b1f33;
  --ink-2: #16324f;
  --slate: #3d4f63;
  --muted: #6b7c8f;
  --line: #d8e0ea;
  --paper: #f5f7fa;
  --white: #ffffff;
  --brass: #b8893b;
  --brass-2: #d7ad63;
  --signal: #1f6f5b;
  --danger: #8f2f2f;
  --shadow: 0 24px 60px rgba(11, 31, 51, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Fraunces", "Vazirmatn", Georgia, serif;
  --font-body: "Vazirmatn", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 250, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand span {
  color: var(--brass);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--slate);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink-2);
}

.btn-brass {
  background: linear-gradient(135deg, var(--brass), var(--brass-2));
  color: #1a1408;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 880px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(184, 137, 59, 0.22), transparent 45%),
    radial-gradient(ellipse at 20% 80%, rgba(31, 111, 91, 0.18), transparent 40%),
    linear-gradient(145deg, #071525 0%, #0f2740 42%, #132f4a 70%, #0a1b2d 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, 0.2) 0%, rgba(8, 18, 30, 0.55) 45%, rgba(8, 18, 30, 0.9) 100%),
    radial-gradient(circle at 80% 20%, rgba(184, 137, 59, 0.2), transparent 42%);
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4.5rem;
  max-width: 720px;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.hero-brand span {
  color: var(--brass-2);
}

.hero-lead {
  margin: 0 0 1.6rem;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 34ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--slate);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--brass);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

/* Service rows — interaction containers, not decorative cards */
.service-board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}

.service-item {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 180px;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover,
.service-item:focus-within {
  border-color: rgba(184, 137, 59, 0.55);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-item.wide {
  grid-column: span 6;
}

.service-item h3 {
  margin: 0;
  font-size: 1.12rem;
}

.service-item p {
  margin: 0;
  color: var(--slate);
  flex: 1;
}

.service-item .link {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.service-item .link::after {
  content: " ←";
}

/* Split feature */
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.feature-panel {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
}

.feature-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 31, 51, 0.15), rgba(11, 31, 51, 0.75));
}

.feature-copy h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.03em;
}

.feature-copy p {
  color: var(--slate);
  margin: 0 0 1.2rem;
}

.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding-inline-start: 1.5rem;
  color: var(--ink-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brass);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  padding: 1.3rem 1.1rem;
  border-top: 2px solid var(--brass);
}

.step::before {
  counter-increment: step;
  content: "۰" counter(step);
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brass);
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* Topics */
.topic-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.topic {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.topic:hover {
  border-color: var(--brass);
  background: #fffaf0;
}

/* Trust strip */
.trust {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1.25rem;
  align-items: end;
}

.trust h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #fff;
  letter-spacing: -0.03em;
}

.trust-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brass-2);
  margin-bottom: 0.25rem;
}

.trust-metric span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(circle at 15% 20%, rgba(184, 137, 59, 0.18), transparent 35%),
    linear-gradient(135deg, #10263d, #0b1f33 55%, #16324f);
  color: #fff;
}

.cta-band .section-head h2,
.cta-band .section-head p {
  color: #fff;
}

.cta-band .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

/* Forms */
.form-panel {
  display: grid;
  gap: 0.85rem;
  max-width: 560px;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.form-panel label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.form-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.form-panel input::placeholder,
.form-panel textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Pricing */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 0.95rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.price-table th {
  background: #eef3f8;
  font-size: 0.92rem;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table td:last-child {
  font-weight: 700;
  white-space: nowrap;
}

/* Page hero small */
.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    linear-gradient(180deg, #e8eef5, var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 56ch;
  color: var(--slate);
}

/* Lawyer list */
.lawyer-list {
  display: grid;
  gap: 0.9rem;
}

.lawyer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.lawyer-row h3 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
}

.lawyer-row p {
  margin: 0;
  color: var(--slate);
  font-size: 0.94rem;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.meta-tags span {
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: #eef3f8;
  color: var(--ink-2);
}

/* Footer */
.site-footer {
  background: #081421;
  color: rgba(255, 255, 255, 0.72);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer-brand span {
  color: var(--brass-2);
}

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .service-item,
  .service-item.wide {
    grid-column: span 6;
  }

  .feature-split,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .feature-panel {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-actions .btn-outline {
    display: none;
  }

  .site-header.is-open .nav-links {
    display: flex;
    position: absolute;
    inset-inline: 1rem;
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav-links a {
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
  }

  .site-header.is-open .nav-links a:hover {
    background: var(--paper);
  }

  .hero {
    min-height: 92vh;
    align-items: center;
  }

  .hero-inner {
    margin-bottom: 0;
    padding-block: 5rem 3rem;
  }

  .service-item,
  .service-item.wide,
  .trust-grid,
  .footer-grid,
  .feature-split,
  .steps {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item.wide {
    grid-column: span 12;
  }

  .lawyer-row {
    grid-template-columns: 1fr;
  }

  .price-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
