:root {
  --navy: #071c36;
  --navy-soft: #0b2648;
  --gold: #b99a5a;
  --gold-light: #d8c79e;
  --ink: #101c2f;
  --text: #4a4d53;
  --muted: #777b82;
  --line: #ece8df;
  --cream: #fbfaf7;
  --white: #fff;
  --shadow: 0 12px 34px rgba(7, 28, 54, .09);
  --font: "Vazirmatn", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  line-height: 1.9;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
svg { display: block; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: -60px;
  right: 18px;
  padding: 8px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 0 0 8px 8px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: 66px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #f1eee8;
  backdrop-filter: blur(12px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(7,28,54,.07); }
.header-shell {
  direction: ltr;
  width: min(1220px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 205px 1fr 170px;
  align-items: center;
  gap: 22px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  direction: ltr;
  align-items: center;
  gap: 9px;
  line-height: 1;
}
.brand-monogram {
  color: #9f8051;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  letter-spacing: -4px;
}
.brand-name {
  color: #263143;
  font-family: Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.5;
}
.desktop-nav {
  direction: rtl;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
}
.nav-link {
  position: relative;
  padding: 22px 0 19px;
  color: #363a40;
  font-size: 12px;
  font-weight: 600;
}
.nav-link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translateX(50%);
  transition: opacity .2s;
}
.nav-link:hover::after,
.nav-link.active::after { opacity: 1; }
.direct-contact {
  direction: rtl;
  justify-self: end;
  height: 38px;
  min-width: 128px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--navy);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(7,28,54,.16);
}
.direct-contact svg { width: 15px; height: 15px; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: 405px;
  overflow: hidden;
  background: #fbfaf8;
  border-bottom: 1px solid #f1ede5;
}
.hero-column {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20.5%;
  background: url("assets/images/hero-left.jpg") center center / cover no-repeat;
}
.hero-scale {
  position: absolute;
  inset: 0 0 0 auto;
  width: 41%;
  background: url("assets/images/hero-scale.jpg") center center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251,250,248,.02) 0%, rgba(251,250,248,.97) 23%, rgba(251,250,248,.96) 59%, rgba(251,250,248,.05) 79%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 36%;
  min-width: 350px;
  margin-right: 41%;
  padding-top: 69px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(35px, 3.2vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.hero-role {
  margin: 7px 0 11px;
  color: #b09050;
  font-size: 18px;
  font-weight: 700;
}
.hero-license {
  margin: 0;
  color: #3e4145;
  font-size: 12px;
  line-height: 1.75;
}
.hero-license strong { color: #1c2638; font-weight: 900; }
.gold-divider {
  width: 58px;
  height: 15px;
  margin: 14px auto 8px;
  display: block;
  position: relative;
}
.gold-divider::before,
.gold-divider::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 21px;
  height: 1px;
  background: var(--gold-light);
}
.gold-divider::before { right: 0; }
.gold-divider::after { left: 0; }
.gold-divider i {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}
.hero-summary {
  margin: 0;
  color: #35383d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
}
.hero-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 13px;
}
.button {
  min-height: 38px;
  padding: 8px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 15px; height: 15px; }
.button-navy {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 7px 18px rgba(7,28,54,.16);
}
.button-navy:hover { background: var(--navy-soft); }
.button-outline {
  color: #4f5155;
  background: rgba(255,255,255,.65);
  border: 1px solid #d9d3c9;
}
.button-outline:hover { border-color: var(--gold); }

.about {
  position: relative;
  min-height: 225px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #f2eee8;
}
.about-decor {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: url("assets/images/about-decor.jpg") left center / cover no-repeat;
}
.about::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 35%;
  width: 13%;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 82%);
}
.about-content {
  width: 43%;
  margin-right: 44%;
  padding-top: 40px;
  text-align: center;
}
.about-content h2,
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
}
.section-divider {
  position: relative;
  display: block;
  width: 54px;
  height: 12px;
  margin: 3px auto 12px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 20px;
  height: 1px;
  background: #d8caa8;
}
.section-divider::before { right: 0; }
.section-divider::after { left: 0; }
.section-divider { background: radial-gradient(circle, var(--gold) 0 2px, transparent 2.5px) center/8px 8px no-repeat; }
.about-content p {
  width: min(100%, 420px);
  margin: 0 auto;
  color: #4a4e54;
  font-size: 12px;
  line-height: 2.05;
}

.services {
  padding: 31px 34px 32px;
  background: #fff;
  border-bottom: 1px solid #f0ede6;
}
.section-heading { text-align: center; }
.services-grid {
  width: min(1160px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.service-card {
  min-height: 180px;
  padding: 17px 15px 14px;
  text-align: center;
  background: #fff;
  border: 1px solid #efede8;
  box-shadow: 0 7px 18px rgba(7,28,54,.055);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: #ddcda9;
  box-shadow: 0 13px 28px rgba(7,28,54,.1);
}
.service-icon {
  width: 45px;
  height: 45px;
  margin: 0 auto 8px;
  color: #b0945a;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}
.service-card p {
  min-height: 49px;
  margin: 0;
  color: #666a70;
  font-size: 10px;
  line-height: 1.85;
}
.service-more {
  margin-top: 9px;
  padding: 3px 0;
  color: #6f6d68;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}
.service-more::after { content: " 〈"; color: var(--gold); }

.why {
  padding: 25px 42px 34px;
  color: #fff;
  background: var(--navy);
}
.section-heading-light h2 { color: #fff; }
.section-heading-light .section-divider::before,
.section-heading-light .section-divider::after { background: rgba(216,202,168,.35); }
.why-grid {
  width: min(1060px, 100%);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.why-item {
  position: relative;
  min-height: 108px;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}
.why-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.12);
}
.why-item svg {
  width: 42px;
  height: 42px;
  color: #b39a67;
}
.why-item p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.83);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
}

.contact {
  padding: 22px 36px 25px;
  background: #fff;
}
.contact-grid {
  width: min(1120px, 100%);
  margin: 14px auto 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.contact-item {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 8px 18px;
  text-align: center;
}
.contact-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 1px;
  height: 52px;
  background: #eeeae2;
}
.contact-item svg {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: #b6a37b;
}
.contact-item strong,
.contact-item span { display: block; }
.contact-item strong {
  color: #242d3b;
  font-size: 10px;
  font-weight: 700;
}
.contact-item span { color: #666a70; font-size: 9px; }
.email-text { direction: ltr; font-family: Arial, sans-serif; font-size: 9px !important; }
.map-panel {
  position: relative;
  width: min(1120px, 100%);
  height: 95px;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  background: url("assets/images/map.jpg") center / cover no-repeat;
  border: 0;
}
.map-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.05);
}
.map-pin {
  position: absolute;
  z-index: 2;
  top: 37px;
  left: 50%;
  width: 18px;
  height: 23px;
  border-radius: 11px 11px 11px 0;
  background: var(--navy);
  transform: translateX(-50%) rotate(-45deg);
  box-shadow: 0 4px 10px rgba(7,28,54,.22);
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.site-footer {
  position: relative;
  min-height: 120px;
  padding: 15px 35px 8px;
  color: #fff;
  background: var(--navy);
  text-align: center;
}
.footer-brand {
  width: max-content;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  line-height: 1.35;
}
.footer-brand > span {
  color: #ae9160;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: -3px;
}
.footer-brand strong { font-size: 11px; font-weight: 700; }
.footer-brand small { color: rgba(255,255,255,.75); font-size: 9px; }
.footer-social {
  position: absolute;
  left: 31px;
  top: 45px;
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 17px;
}
.footer-social a {
  color: rgba(255,255,255,.7);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.site-footer > p {
  margin: 12px 0 0;
  padding-top: 7px;
  color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.04);
  font-size: 8px;
}

.modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, visibility .22s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,14,29,.72);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 33px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0,0,0,.27);
  transform: translateY(16px) scale(.985);
  transition: transform .22s;
}
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-card-small { width: min(510px, 100%); }
.modal-close {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 34px;
  height: 34px;
  color: var(--navy);
  background: #f4f1ea;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}
.modal-card h2 { margin: 0; color: var(--navy); font-size: 23px; }
.modal-card > p { margin: 5px 0 20px; color: var(--muted); font-size: 12px; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-option {
  padding: 19px;
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.contact-option:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.contact-option svg { width: 35px; height: 35px; margin-bottom: 5px; color: var(--gold); }
.contact-option.whatsapp svg { color: #1e9b61; }
.contact-option strong { color: var(--navy); font-size: 13px; }
.contact-option span { color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label { display: grid; gap: 5px; }
.form-grid label span { color: #303846; font-size: 10px; font-weight: 700; }
.full-field { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ded9cf;
  border-radius: 6px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,154,90,.14); }
.invalid { border-color: #bc3131 !important; }
.consent { margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; }
.consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--navy); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.form-actions { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-status { min-height: 20px; color: var(--muted); font-size: 10px; }
.form-status.success { color: #14814e; }
.form-status.error { color: #b42318; }
.submit-button.loading { pointer-events: none; opacity: .75; }
.spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.submit-button.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.service-modal-card { width: min(600px, 100%); }
.service-modal-card ul { padding-right: 18px; color: var(--muted); font-size: 12px; }
.service-modal-card p { color: var(--muted); font-size: 12px; }
.service-modal-card .button { margin-top: 10px; }

@media (min-width: 1280px) {
  .hero { min-height: 530px; }
  .hero-copy { padding-top: 105px; }
  .about { min-height: 295px; }
  .about-content { padding-top: 65px; }
  .services { padding-top: 52px; padding-bottom: 55px; }
  .service-card { min-height: 240px; padding-top: 28px; }
  .service-card p { font-size: 12px; }
  .why { padding-top: 42px; padding-bottom: 50px; }
  .contact { padding-top: 37px; padding-bottom: 38px; }
  .map-panel { height: 125px; }
  .site-footer { min-height: 150px; padding-top: 22px; }
}

@media (max-width: 900px) {
  .header-shell { width: min(100% - 28px, 720px); grid-template-columns: 1fr auto; }
  .desktop-nav, .header-direct { display: none; }
  .menu-toggle {
    justify-self: end;
    width: 42px;
    height: 42px;
    padding: 9px;
    display: block;
    background: #f5f2eb;
    border-radius: 6px;
  }
  .menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--navy); transition: .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav {
    position: fixed;
    top: 66px;
    right: 14px;
    left: 14px;
    padding: 10px;
    display: grid;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 9px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .2s;
  }
  .mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-nav a, .mobile-nav button { padding: 10px 12px; color: var(--navy); background: transparent; border-radius: 5px; text-align: right; font-size: 12px; }
  .mobile-nav a:hover { background: #f6f2e9; }
  .mobile-nav button { margin-top: 4px; color: #fff; background: var(--navy); text-align: center; }

  .hero { min-height: 610px; padding: 0; }
  .hero-column { width: 30%; opacity: .55; }
  .hero-scale { top: 280px; width: 62%; height: 330px; }
  .hero::before { background: linear-gradient(180deg, rgba(251,250,248,.98) 0 53%, rgba(251,250,248,.15) 77%, rgba(251,250,248,0) 100%); }
  .hero-copy { width: min(92%, 520px); min-width: 0; margin: 0 auto; padding-top: 48px; }
  .hero h1 { font-size: 39px; }
  .hero-role { font-size: 16px; }

  .about { min-height: 410px; }
  .about-decor { inset: auto 0 0 0; width: 100%; height: 210px; background-position: left bottom; }
  .about::after { inset: auto 0 160px 0; width: 100%; height: 70px; background: linear-gradient(180deg, #fff, rgba(255,255,255,0)); }
  .about-content { position: relative; z-index: 2; width: min(90%, 620px); margin: 0 auto; padding-top: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(2)::after { display: none; }
  .contact-item:nth-child(2)::after { display: none; }
  .footer-social { position: static; justify-content: center; margin-bottom: 6px; }
}

@media (max-width: 560px) {
  .site-header { height: 62px; }
  .header-shell { height: 62px; }
  .mobile-nav { top: 62px; }
  .brand-monogram { font-size: 27px; }
  .hero { min-height: 575px; }
  .hero-copy { padding-top: 38px; }
  .hero h1 { font-size: 34px; }
  .hero-summary { font-size: 12px; }
  .hero-actions { flex-direction: column; width: min(250px, 90%); margin-inline: auto; }
  .hero-actions .button { width: 100%; }
  .hero-column { width: 38%; }
  .hero-scale { top: 295px; width: 78%; height: 280px; }
  .services { padding-inline: 14px; }
  .services-grid { grid-template-columns: 1fr; max-width: 390px; }
  .service-card { min-height: 190px; }
  .why { padding-inline: 18px; }
  .why-grid { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .why-item::after { display: none !important; }
  .contact { padding-inline: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { justify-content: flex-start; text-align: right; border-bottom: 1px solid #eeeae2; }
  .contact-item::after { display: none !important; }
  .map-panel { height: 105px; }
  .site-footer { min-height: 155px; }
  .footer-social { margin-bottom: 10px; }
  .contact-options, .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .modal-card { padding: 28px 20px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Visual alignment fixes */
.about-decor { z-index: 0; }
.about::after { z-index: 1; pointer-events: none; }
.about-content { position: relative; z-index: 2; }
.map-pin { display: none; }
