:root {
  --ink: #262626;
  --muted: #77736d;
  --paper: #f7f5f0;
  --white: #ffffff;
  --charcoal: #242424;
  --charcoal-2: #30302f;
  --gold: #c59a62;
  --gold-light: #e3c18d;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body[dir="rtl"] {
  font-family: "Amiri", serif;
}

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

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 760ms ease, transform 760ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal .section-heading,
.reveal .hero-content,
.reveal .about-copy,
.reveal .rate-controls,
.reveal .rate-table-wrap,
.reveal .license-card div,
.reveal .service-grid article,
.reveal .process-grid article,
.reveal .why-grid article,
.reveal .contact-card,
.reveal .contact-form,
.reveal .map-frame,
.reveal .service-detail-grid article,
.reveal.terms-section article {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible .section-heading,
.reveal.is-visible .hero-content,
.reveal.is-visible .about-copy,
.reveal.is-visible .rate-controls,
.reveal.is-visible .rate-table-wrap,
.reveal.is-visible .license-card div,
.reveal.is-visible .service-grid article,
.reveal.is-visible .process-grid article,
.reveal.is-visible .why-grid article,
.reveal.is-visible .contact-card,
.reveal.is-visible .contact-form,
.reveal.is-visible .map-frame,
.reveal.is-visible .service-detail-grid article,
.reveal.is-visible.terms-section article {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal.is-visible .section-heading,
.reveal.is-visible .hero-content,
.reveal.is-visible .about-copy {
  transition-delay: 80ms;
}

.reveal.is-visible .rate-controls,
.reveal.is-visible .license-card div:nth-child(1),
.reveal.is-visible .service-grid article:nth-child(1),
.reveal.is-visible .process-grid article:nth-child(1),
.reveal.is-visible .why-grid article:nth-child(1),
.reveal.is-visible .service-detail-grid article:nth-child(1),
.reveal.is-visible.terms-section article:nth-child(1) {
  transition-delay: 150ms;
}

.reveal.is-visible .rate-table-wrap,
.reveal.is-visible .license-card div:nth-child(2),
.reveal.is-visible .service-grid article:nth-child(2),
.reveal.is-visible .process-grid article:nth-child(2),
.reveal.is-visible .why-grid article:nth-child(2),
.reveal.is-visible .contact-card,
.reveal.is-visible .service-detail-grid article:nth-child(2),
.reveal.is-visible.terms-section article:nth-child(2) {
  transition-delay: 240ms;
}

.reveal.is-visible .license-card div:nth-child(3),
.reveal.is-visible .service-grid article:nth-child(3),
.reveal.is-visible .process-grid article:nth-child(3),
.reveal.is-visible .why-grid article:nth-child(3),
.reveal.is-visible .contact-form,
.reveal.is-visible .service-detail-grid article:nth-child(3),
.reveal.is-visible.terms-section article:nth-child(3) {
  transition-delay: 330ms;
}

.reveal.is-visible .license-card div:nth-child(4),
.reveal.is-visible .service-grid article:nth-child(4),
.reveal.is-visible.terms-section article:nth-child(4) {
  transition-delay: 420ms;
}

.reveal.is-visible .service-grid article:nth-child(5),
.reveal.is-visible.terms-section article:nth-child(5) {
  transition-delay: 510ms;
}

.reveal.is-visible .service-grid article:nth-child(6) {
  transition-delay: 600ms;
}

.reveal.is-visible .service-grid article:hover,
.reveal.is-visible .process-grid article:hover,
.reveal.is-visible .why-grid article:hover,
.reveal.is-visible .service-detail-grid article:hover,
.reveal.is-visible.terms-section article:hover {
  transform: translateY(-6px) scale(1);
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  padding: 34px 28px;
  background: #f2f1ef;
  border-right: 1px solid #dedbd4;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

body[dir="rtl"] .side-nav {
  inset: 0 0 0 auto;
  border-right: 0;
  border-left: 1px solid #dedbd4;
}

.brand {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  margin-bottom: 86px;
}

.brand-mark,
.mini-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: "Amiri", serif;
  font-weight: 700;
  transform: rotate(45deg);
}

.brand-mark::first-letter,
.mini-mark::first-letter {
  color: var(--ink);
}

.brand-mark {
  font-size: 18px;
}

.brand-mark,
.mini-mark {
  text-indent: -2px;
}

.brand-name {
  margin-top: 16px;
  font-family: "Amiri", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-line {
  color: var(--muted);
  font-size: 10px;
}

.nav-links {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  text-transform: uppercase;
  font-size: 12px;
}

.nav-links a {
  position: relative;
}

.nav-links a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -28px;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

body[dir="rtl"] .nav-links a::before {
  left: auto;
  right: -28px;
}

.lang-toggle,
.btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  min-height: 42px;
  padding: 0 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
}

.lang-toggle {
  width: 100%;
}

.side-contact {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

.side-contact p {
  margin: 18px 0 2px;
  color: #a39b90;
}

.side-contact strong,
.side-contact a {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

main {
  margin-left: 230px;
}

body[dir="rtl"] main {
  margin-left: 0;
  margin-right: 230px;
}

.hero {
  min-height: 760px;
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 90px 8vw 150px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(rgba(31, 31, 31, 0.72), rgba(31, 31, 31, 0.78)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(transparent, var(--charcoal));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Amiri", serif;
  line-height: 1.14;
}

h1 {
  color: var(--gold-light);
  font-size: clamp(32px, 4.5vw, 48px);
  max-width: 980px;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  font-size: 20px;
}

.hero p:not(.eyebrow) {
  max-width: 740px;
  margin: 24px auto 0;
  color: #d8d3ca;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.btn:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.btn.primary {
  background: var(--gold);
  color: var(--white);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn.compact {
  min-width: 112px;
  background: var(--gold);
  color: var(--white);
}

.rates-panel {
  background:
    linear-gradient(rgba(36, 36, 36, 0.96), rgba(36, 36, 36, 0.94)),
    url("https://images.unsplash.com/photo-1601597111158-2fceff292cdc?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: var(--white);
  padding: 74px 7vw 68px;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.dark h2,
.section-heading.dark p:not(.eyebrow) {
  color: var(--white);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 700px;
}

.mini-mark {
  margin-bottom: 26px;
  width: 42px;
  height: 42px;
  font-size: 12px;
}

.rate-controls {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.rate-controls label {
  display: grid;
  gap: 8px;
  color: #d8d3ca;
  font-size: 13px;
}

.rate-controls input {
  width: 180px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 16px;
}

.rate-table-wrap {
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.rate-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.035);
}

.rate-table th,
.rate-table td {
  padding: 18px 22px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  text-align: center;
}

.rate-table th {
  color: #f0e9df;
  font-size: 13px;
}

.currency-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-weight: 700;
}

body[dir="rtl"] .currency-cell {
  text-align: right;
}

.flag {
  font-size: 20px;
}

.rate-status {
  text-align: center;
  color: #aaa39a;
  font-size: 12px;
}

.about-section {
  min-height: 620px;
  padding: 90px 8vw;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(247, 245, 240, 0.96), rgba(247, 245, 240, 0.72)),
    url("https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.about-copy {
  max-width: 820px;
  margin: auto;
  text-align: center;
}

.about-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.license-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: #ded5c7;
}

.license-card div {
  background: rgba(255, 255, 255, 0.82);
  padding: 22px;
}

.license-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.license-card strong {
  display: block;
  margin-top: 8px;
}

.services-section,
.contact-section,
.process-section,
.map-section,
.service-detail-section,
.terms-section {
  padding: 88px 8vw;
  background: var(--paper);
}

.service-grid,
.why-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1160px;
  margin: auto;
}

.service-grid article {
  min-height: 270px;
  padding: 38px;
  background: var(--white);
  border: 1px solid #e5ded4;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-grid article:hover,
.process-grid article:hover,
.why-grid article:hover,
.service-detail-grid article:hover,
.terms-section article:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 154, 98, 0.55);
  box-shadow: 0 20px 46px rgba(52, 44, 34, 0.12);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 26px;
}

.service-grid p,
.why-grid p {
  color: var(--muted);
}

.why-section {
  padding: 90px 8vw;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(186, 138, 74, 0.92), rgba(231, 191, 128, 0.88)),
    url("https://images.unsplash.com/photo-1521791055366-0d553872125f?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.section-heading.light .eyebrow,
.section-heading.light h2,
.section-heading.light p {
  color: var(--white);
}

.why-grid article {
  min-height: 220px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.why-grid p {
  color: rgba(255, 255, 255, 0.84);
}

.process-section {
  background: #fffaf1;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1160px;
  margin: auto;
}

.process-grid article {
  padding: 32px;
  background: var(--white);
  border: 1px solid #e5ded4;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.process-grid span {
  color: var(--gold);
  font-weight: 700;
}

.process-grid p {
  color: var(--muted);
}

.map-section {
  background: var(--white);
}

.map-frame {
  position: relative;
  max-width: 1160px;
  min-height: 430px;
  margin: auto;
  overflow: hidden;
  border: 8px solid #f0eee9;
  box-shadow: 0 20px 52px rgba(52, 44, 34, 0.14);
}

.map-frame iframe {
  width: 100%;
  height: 430px;
  display: block;
  border: 0;
}

.map-card {
  position: absolute;
  top: 22px;
  left: 22px;
  width: min(330px, calc(100% - 44px));
  padding: 18px 20px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

body[dir="rtl"] .map-card {
  left: auto;
  right: 22px;
}

.map-card strong,
.map-card span,
.map-card small {
  display: block;
}

.map-card span {
  margin-top: 4px;
  color: var(--muted);
}

.map-card small {
  margin-top: 8px;
  color: var(--gold);
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.contact-card,
.contact-form {
  background: var(--white);
  border: 1px solid #e5ded4;
  box-shadow: 0 18px 42px rgba(52, 44, 34, 0.08);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-image {
  min-height: 360px;
  background:
    linear-gradient(rgba(35, 35, 35, 0.1), rgba(35, 35, 35, 0.18)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80") center / cover;
}

.contact-info,
.contact-form {
  padding: 36px;
}

.contact-info a {
  display: block;
  margin-top: 10px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ded5c7;
  background: #fbfaf7;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.contact-form .has-error {
  border-color: #b54848;
  box-shadow: 0 0 0 3px rgba(181, 72, 72, 0.12);
}

.field-error {
  min-height: 18px;
  color: #b54848;
  font-size: 12px;
}

.page-hero {
  min-height: 520px;
  display: grid;
  align-content: center;
  padding: 90px 8vw;
  color: var(--white);
  background:
    linear-gradient(rgba(31, 31, 31, 0.76), rgba(31, 31, 31, 0.8)),
    url("https://images.unsplash.com/photo-1526304640581-d334cdbbf45e?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.page-hero h1,
.page-hero p {
  max-width: 860px;
}

.page-hero p:not(.eyebrow) {
  color: #d8d3ca;
  font-size: 18px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1160px;
  margin: auto;
}

.service-detail-grid article,
.terms-section article {
  background: var(--white);
  border: 1px solid #e5ded4;
  padding: 34px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-detail-grid ul {
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

body[dir="rtl"] .service-detail-grid ul {
  padding-left: 0;
  padding-right: 20px;
}

.terms-section {
  display: grid;
  gap: 20px;
}

.terms-section article {
  max-width: 980px;
  width: 100%;
  margin: auto;
}

.terms-section p {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: 360px;
  padding: 16px 18px;
  color: var(--white);
  background: #2d6b4f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

body[dir="rtl"] .toast {
  right: auto;
  left: 24px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .btn,
  .lang-toggle,
  .toast {
    transition: none;
  }
}

footer {
  padding: 30px 8vw;
  background: var(--charcoal);
  color: #beb7ad;
  text-align: center;
  font-size: 13px;
}

footer p {
  margin: 5px 0;
}

@media (max-width: 1020px) {
  .side-nav {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: auto;
    padding: 16px 22px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    border-right: 0;
    border-bottom: 1px solid #dedbd4;
  }

  body[dir="rtl"] .side-nav {
    border-left: 0;
  }

  .brand {
    margin: 0;
    justify-items: start;
    text-align: start;
    min-width: 180px;
  }

  .brand-mark,
  .brand-line {
    display: none;
  }

  .brand-name {
    margin: 0;
    font-size: 22px;
  }

  .nav-links {
    display: flex;
    overflow-x: auto;
    margin: 0;
    gap: 18px;
  }

  .nav-links a::before,
  .side-contact {
    display: none;
  }

  .lang-toggle {
    width: auto;
    white-space: nowrap;
  }

  main,
  body[dir="rtl"] main {
    margin: 0;
  }

  .hero {
    min-height: 660px;
  }

  .license-card,
  .service-grid,
  .why-grid,
  .process-grid,
  .service-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .side-nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    order: 3;
  }

  .hero,
  .rates-panel,
  .about-section,
  .services-section,
  .why-section,
  .contact-section,
  .process-section,
  .map-section,
  .service-detail-section,
  .terms-section,
  .page-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    min-height: 620px;
    text-align: start;
    justify-items: start;
  }

  .hero p:not(.eyebrow) {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .license-card,
  .service-grid,
  .why-grid,
  .process-grid,
  .service-detail-grid,
  .contact-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 360px;
    height: 360px;
  }

  .section-heading,
  .about-copy {
    text-align: start;
  }

  .rate-controls {
    justify-content: flex-start;
  }
}
