/* Berlin Tehran — Design System */
:root {
  --color-primary: #0a3340;
  --color-primary-mid: #145366;
  --color-primary-light: #1d6b82;
  --color-accent: #c4a035;
  --color-accent-hover: #a88628;
  --color-accent-soft: #f3ead0;
  --color-surface: #f4f7f9;
  --color-surface-elevated: #ffffff;
  --color-text: #14212b;
  --color-text-muted: #5a6b78;
  --color-border: #dde5ea;
  --color-success: #1a7a52;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 12px rgba(10, 51, 64, 0.06);
  --shadow-md: 0 12px 40px rgba(10, 51, 64, 0.12);
  --shadow-lg: 0 24px 64px rgba(10, 51, 64, 0.16);
  --header-height: 88px;
  --container: min(1180px, calc(100% - 3rem));
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface-elevated);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--alt {
  background: var(--color-surface);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section__lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 42rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
}

.brand:hover {
  color: var(--color-primary);
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.brand__tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  line-height: 1.2;
  min-height: 2.2em; /* ensure consistent height for all items */
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-primary);
  background: var(--color-accent-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Robust header to prevent text/button overlap on main pages */
.site-header__inner {
  gap: 1rem;
}

.nav {
  gap: 1.25rem;
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  gap: 0.15rem;
}

@media (max-width: 1280px) {
  .site-header__inner {
    gap: 0.75rem;
  }
  .nav {
    gap: 0.75rem;
  }
  .nav__link {
    padding: 0.4rem 0.55rem;
    font-size: 0.875rem;
    min-height: 2em;
  }
  .nav__actions {
    gap: 0.4rem;
  }
  .lang-switch {
    font-size: 0.72rem;
  }
  .lang-switch a {
    padding: 0.32rem 0.55rem;
  }
  .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }
  .brand__tagline {
    display: none; /* reclaim horizontal space on crowded headers */
  }
}

@media (max-width: 1024px) {
  .nav__link {
    padding: 0.35rem 0.45rem;
    font-size: 0.82rem;
    min-height: 1.9em;
  }
  .btn--outline {
    /* compact WhatsApp on medium screens */
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}

/* Stronger DE-specific header compactness for 900-1300px range (long German nav items + lang + 2 buttons cause overlap on home and other pages) */
@media (max-width: 1300px) {
  .site-header__inner {
    gap: 0.4rem;
  }
  .brand__tagline {
    display: none; /* hide early to free space for DE long text */
  }
  .nav {
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav__list {
    gap: 0.05rem;
  }
  .nav__link {
    padding: 0.2rem 0.35rem;
    font-size: 0.76rem;
  }
  .nav__actions {
    gap: 0.2rem;
  }
  .lang-switch {
    font-size: 0.62rem;
    flex-shrink: 0;
  }
  .lang-switch a {
    padding: 0.18rem 0.35rem;
  }
  .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
  }
  .btn--outline {
    /* make WhatsApp very compact in DE medium widths */
    padding: 0.35rem 0.5rem;
  }
}

/* Final strong responsive header fixes for DE (and all) - no overlap in 900-1400px+ and all sizes */
/* Target the problematic range where DE long nav words + lang-switch + 2 buttons overlap */
@media (max-width: 1400px) {
  .brand__tagline {
    display: none; /* hide tagline early for DE to free horizontal space */
  }
  .site-header__inner {
    gap: 0.35rem;
  }
  .nav {
    gap: 0.35rem;
  }
  .nav__link {
    padding: 0.18rem 0.32rem;
    font-size: 0.74rem;
    min-height: 1.8em;
  }
  .nav__actions {
    gap: 0.2rem;
  }
  .lang-switch {
    font-size: 0.6rem;
  }
  .lang-switch a {
    padding: 0.16rem 0.32rem;
  }
  .btn {
    padding: 0.32rem 0.55rem;
    font-size: 0.7rem;
  }
  .btn--outline {
    padding: 0.32rem 0.45rem; /* extra compact WhatsApp in DE medium */
  }
}

@media (max-width: 1100px) {
  .site-header__inner {
    gap: 0.25rem;
  }
  .nav {
    gap: 0.25rem;
  }
  .nav__link {
    padding: 0.12rem 0.25rem;
    font-size: 0.7rem;
    min-height: 1.7em;
  }
  .nav__actions {
    gap: 0.1rem;
  }
  .lang-switch {
    font-size: 0.55rem;
  }
  .lang-switch a {
    padding: 0.12rem 0.25rem;
  }
  .btn {
    padding: 0.25rem 0.45rem;
    font-size: 0.65rem;
  }
}

/* ============================================
   HAMBURGER MENU + MOBILE HEADER IMPROVEMENTS
   Trigger at < 992px for better tablet/mobile support
   ============================================ */
@media (max-width: 992px) {
  :root { --header-height: 64px; }

  .menu-toggle {
    display: flex;
  }

  /* Hide full nav on mobile, show via hamburger */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem 2rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1050;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  /* Simple backdrop when menu open */
  .nav.is-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .nav__link {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    min-height: 2.4em;
  }

  .nav__link:hover,
  .nav__link.is-active {
    background: var(--color-accent-soft);
    color: var(--color-primary);
  }

  /* Actions (lang + buttons + WhatsApp) stacked nicely at bottom */
  .nav__actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .nav__actions .lang-switch {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
  }

  .nav__actions .lang-switch a {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
  }

  .nav__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  /* Clean header on mobile - no overlaps */
  .site-header__inner {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .brand__tagline {
    display: none; /* save space on mobile */
  }

  /* Tighter nav list links in header (when visible on larger mobile) */
  .nav__link {
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    min-height: 2em;
  }
}

/* RTL support for mobile slide-in (slide from right for consistency, or left) */
@media (max-width: 992px) {
  html[dir="rtl"] .nav {
    transform: translateX(100%);
  }
  html[dir="rtl"] .nav.is-open {
    transform: translateX(0);
  }
}

/* Prevent internal overlap in lang-switch and actions */
.lang-switch {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-switch a {
  padding: 0.4rem 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.nav__actions {
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-switch a.is-active,
.lang-switch a:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #d4b44a 100%);
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(196, 160, 53, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
  color: var(--color-primary);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

.btn--dark:hover {
  background: var(--color-primary-mid);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger to X animation */
.menu-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--color-primary);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(10, 51, 64, 0.94) 0%,
    rgba(10, 51, 64, 0.75) 45%,
    rgba(20, 83, 102, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.35rem;
}

/* Cards grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.975rem;
  margin: 0;
}

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-step {
  position: relative;
  padding: 1.75rem;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--color-primary);
  background: var(--color-accent-soft);
  border-radius: 50%;
}

.process-step h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Team */
.team-card {
  text-align: center;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
}

.team-card__photo {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--color-primary-mid), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__initials {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.team-card__body {
  padding: 1.5rem;
}

.team-card__role {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0;
}

.team-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
}

/* Testimonials */
.testimonial {
  padding: 2rem;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  height: 100%;
}

.testimonial__quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.testimonial__quote::before {
  content: "\201C";
  color: var(--color-accent);
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.15rem;
}

.testimonial__author {
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial__org {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: span 4; }
.gallery__item:nth-child(3) { grid-column: span 3; }
.gallery__item:nth-child(4) { grid-column: span 4; }
.gallery__item:nth-child(5) { grid-column: span 3; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
}

.form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.form__group {
  margin-bottom: 1.25rem;
}

.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(29, 107, 130, 0.15);
}

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

.form__success {
  display: none;
  padding: 1rem;
  background: #e8f5ef;
  color: var(--color-success);
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 1rem;
}

.form__success.is-visible {
  display: block;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  color: #fff;
}

.page-hero h1 {
  color: #fff;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 36rem;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid li a {
  font-size: 0.9375rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 480px;
  z-index: 2000;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-banner .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.8125rem;
}

/* Language modal */
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 51, 64, 0.85);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
}

.lang-modal[hidden] {
  display: none;
}

.lang-modal__box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.lang-modal h2 {
  margin-bottom: 0.5rem;
}

.lang-modal p {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.lang-modal__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lang-modal__options a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--color-primary);
  transition: border-color var(--transition), background var(--transition);
}

.lang-modal__options a:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.lang-modal__flag {
  font-size: 2rem;
}

/* RTL */
html[dir="rtl"] body {
  font-family: "Vazirmatn", var(--font-body);
}

html[dir="rtl"] .brand,
html[dir="rtl"] .nav__list,
html[dir="rtl"] .hero__actions,
html[dir="rtl"] .contact-info__item {
  flex-direction: row-reverse;
}

/* Blog placeholder */
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
}

/* Responsive */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Old mobile nav styles removed - now handled by the improved 992px+ hamburger menu above */

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery__item:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 180px;
  }

  .gallery__item:nth-child(1) {
    grid-column: span 2 !important;
    height: 220px;
  }

  .hero__stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.article-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface);
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.04);
}

.article-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.article-card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.article-card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.container--article {
  max-width: 760px;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-primary-light);
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin-top: 0.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.article-hero {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.blog-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.sidebar-box {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.sidebar-box h4 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.sidebar-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-box li {
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
}

.recent-posts-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .recent-posts-mini { grid-template-columns: 1fr; }
}