:root {
  --ink: #1a2744;
  --ink-soft: #2c3d5c;
  --paper: #f7f4ef;
  --paper-deep: #ebe6dc;
  --gold: #b08d57;
  --gold-soft: #c9a66b;
  --line: rgba(26, 39, 68, 0.12);
  --text: #1a2744;
  --text-muted: #5a6578;
  --white: #ffffff;
  --radius: 2px;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(176, 141, 87, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 30%, rgba(26, 39, 68, 0.06), transparent 50%),
    linear-gradient(165deg, #faf8f4 0%, #f3efe6 45%, #ebe6dc 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 239, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand-mark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

/* Hero — full-bleed composition */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100svh - var(--header-h));
  max-width: 100%;
}

.hero-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: transparent;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.04);
  animation: heroImageIn 1.4s var(--ease) both;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(247, 244, 239, 0.55) 0%,
    rgba(247, 244, 239, 0) 28%
  );
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  max-width: 36rem;
}

.hero-role {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.hero-name {
  margin: 0 0 0.55rem;
  font-size: clamp(2.6rem, 5.5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-tagline {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 28rem;
}

.license {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  width: fit-content;
}

.license-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.license-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}

.section-lead {
  margin: 0 0 2.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 28rem;
}

/* Services — list, not cards */
.services {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(235, 230, 220, 0.55) 40%,
    rgba(235, 230, 220, 0.7) 100%
  );
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.service-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}

.service-item:hover::after {
  width: 100%;
}

.service-index {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  min-width: 2rem;
}

.service-name {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--ink);
}

.service-desc {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 34rem;
}

/* Address */
.address {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(176, 141, 87, 0.1), transparent 60%),
    transparent;
}

.address-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.address-text {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 26rem;
}

.phone-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.phone-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.phone-link {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
}

.phone-link:hover {
  color: var(--gold);
}

.address-note {
  margin: 0 0 2rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 28rem;
  line-height: 1.75;
}

.address-cta {
  justify-content: center;
}

.footer-phone {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-phone a {
  color: var(--ink);
  letter-spacing: 0.03em;
  transition: color 0.25s var(--ease);
}

.footer-phone a:hover {
  color: var(--gold);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  background: rgba(235, 230, 220, 0.4);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.footer-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item.reveal {
  transition-delay: 0s;
}

.service-item.reveal:nth-child(1).is-visible { transition-delay: 0.05s; }
.service-item.reveal:nth-child(2).is-visible { transition-delay: 0.12s; }
.service-item.reveal:nth-child(3).is-visible { transition-delay: 0.19s; }
.service-item.reveal:nth-child(4).is-visible { transition-delay: 0.26s; }

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* Mobile */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: 52vw;
    max-height: 420px;
    order: -1;
  }

  .hero-media::after {
    background: linear-gradient(
      to top,
      rgba(247, 244, 239, 0.85) 0%,
      rgba(247, 244, 239, 0) 35%
    );
  }

  .hero-content {
    max-width: none;
    padding-top: 1.75rem;
    padding-bottom: 3.5rem;
  }

  .hero-name {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .nav {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-inline: 1.1rem;
  }

  .brand-mark {
    font-size: 0.95rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .service-item {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img {
    animation: none;
    transform: scale(1);
  }

  .btn:hover,
  .btn-ghost:hover {
    transform: none;
  }
}
