:root {
  --font-family: 'Vazirmatn', sans-serif;
  --color-bg: #0f1b2d;
  --color-bg-alt: #f5f7fa;
  --color-primary: #1b3a5c;
  --color-primary-light: #2e5c8a;
  --color-accent: #d4af37;
  --color-text: #1c2733;
  --color-text-light: #5a6a7a;
  --color-card-bg: #ffffff;
  --color-border: #e3e8ee;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 27, 45, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg-alt);
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.3;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
}

.brand-sub {
  font-size: 12px;
  color: #c9d6e4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-switch {
  position: relative;
}

.lang-options {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 4px;
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #dbe4ee;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Each label always renders in its own language's font, regardless of the active page language */
.lang-btn[data-lang="fa"] { font-family: 'Vazirmatn', sans-serif; }
.lang-btn[data-lang="en"],
.lang-btn[data-lang="tr"] { font-family: 'Inter', sans-serif; }

.lang-btn:hover { background: rgba(255,255,255,0.12); }

.lang-btn.active {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

/* Mobile-only dropdown trigger; hidden on tablet/desktop where the pill row shows directly */
.lang-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: none;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.lang-switch.open .chevron {
  transform: rotate(180deg);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #12283f 100%);
  color: #fff;
  padding: 64px 0 76px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
}

.hero-tagline {
  margin: 0 auto;
  max-width: 640px;
  color: #cdd9e6;
  font-size: 16px;
  text-wrap: balance;
}

.hero-license {
  margin: 14px auto 0;
  max-width: 640px;
  color: var(--color-accent);
  font-size: 13.5px;
  font-weight: 600;
  text-wrap: balance;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  margin: 0 0 40px;
  color: var(--color-primary);
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.info-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 27, 45, 0.14);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(27, 58, 92, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.info-card p {
  margin: 0 0 6px;
  font-size: 14.5px;
  color: var(--color-text);
}

.info-card p.muted {
  color: var(--color-text-light);
  font-size: 13.5px;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  margin-bottom: 6px;
  font-size: 14.5px;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: inherit;
}

/* Address card sits below the contact row, spanning the same full width */
.address-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.address-card .card-icon {
  margin-bottom: 0;
}

.address-card .address-body {
  flex: 1;
  min-width: 0;
}

.building-thumb {
  display: inline-block;
  margin-top: 12px;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: none;
  line-height: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.building-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(15, 27, 45, 0.2);
}

.building-thumb img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 26, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

body.lightbox-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: #c9d6e4;
  text-align: center;
  padding: 22px 0;
  font-size: 13.5px;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  .contact-row { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0 60px; }
  .section { padding: 44px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 40px 0 52px; }
}

@media (max-width: 560px) {
  .header-inner { padding-top: 10px; padding-bottom: 10px; }

  .brand { gap: 10px; }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
  }

  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 10.5px; }

  .lang-toggle { display: flex; }

  .lang-options {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    flex-direction: column;
    background: var(--color-primary);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    min-width: 150px;
    z-index: 20;
  }

  .lang-switch.open .lang-options { display: flex; }

  .lang-options .lang-btn {
    width: 100%;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .contact-row { grid-template-columns: 1fr; }
  .address-card { flex-direction: column; }
  .info-card { padding: 22px 18px; }
}
