:root {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-alt: #f8f7f4;
  --text: #111111;
  --muted: #595959;
  --line: rgba(17, 17, 17, 0.12);
  --accent: #c6a972;
  --shadow-soft: 0 24px 70px rgba(17, 17, 17, 0.08);
  --shadow-card: 0 18px 40px rgba(17, 17, 17, 0.06);
  --container: min(1180px, calc(100% - 48px));
  --radius-lg: 28px;
  --radius-md: 20px;
  --transition: 0.3s ease;
}

@font-face {
  font-family: 'MyCustomFont';
  src: url('./Vazir-Bold.ttf') format('truetype');
}

* {
  box-sizing: border-box;
  font-family: 'MyCustomFont', sans-serif !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

/* ===== HEADER & NAVBAR ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background-color: rgb(232, 231, 230);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

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

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

.brand-text small {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Site Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav > a {
  color: var(--text);
  font-size: 0.9rem;
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s ease;
}

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

/* ===== DROPDOWN MENUS ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.5em;
  transition: transform 0.3s ease;
}

.dropdown:hover > .dropdown-toggle {
  color: var(--accent);
}

.dropdown:hover > .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Main Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu > a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.2s ease;
  border-right: 3px solid transparent;
}

.dropdown-menu > a:hover {
  background: rgba(17, 17, 17, 0.04);
  border-right-color: var(--accent);
  color: var(--accent);
}

/* Nested Dropdown */
.dropdown-nested {
  position: relative;
}

.dropdown-nested-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 3px solid transparent;
}

.dropdown-nested-toggle::after {
  content: "◀";
  font-size: 0.7em;
  margin-right: auto;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.dropdown-nested:hover > .dropdown-nested-toggle {
  background: rgba(17, 17, 17, 0.04);
  border-right-color: var(--accent);
  color: var(--accent);
}

.dropdown-nested:hover > .dropdown-nested-toggle::after {
  transform: translateX(-4px);
}

.dropdown-nested-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 8px 0;
  margin-right: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.dropdown-nested:hover > .dropdown-nested-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-nested-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.dropdown-nested-menu a:hover {
  background: rgba(17, 17, 17, 0.04);
  color: var(--accent);
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 92px 0;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  max-width: 720px;
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

p {
  margin: 0;
  color: var(--muted);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #ffffff;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2), transparent);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 172px 0 72px;
}

.hero h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #fff;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5);
}

.hero .eyebrow,
.hero-copy {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-copy {
  max-width: 560px;
  margin-top: 18px;
  font-size: 1.1rem;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  right: 25px;
}

.hero-next {
  left: 25px;
}

/* ===== PROJECT CARDS ===== */
.projects-container {
  max-width: 1400px;
  margin: 100px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 24px;
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-header {
  background: linear-gradient(135deg, #4a5f7f 0%, #5d7396 100%);
  color: white;
  padding: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.image-wrapper {
  overflow: hidden;
  height: 220px;
}

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

.project-card:hover .project-image {
  transform: scale(1.1);
}

/* ===== ABOUT SECTION ===== */
.split-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.about-metrics article {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.about-metrics strong {
  display: block;
  font-size: 2.4rem;
  color: var(--text);
}

.about-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.image-stack {
  position: relative;
  padding: 36px 0 0 36px;
}

.image-stack::before {
  content: "";
  position: absolute;
  inset: 0 50px 50px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.image-stack img {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 0.88;
}

/* ===== SLIDER SECTION ===== */
.slider-section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 16px;
}

.title-decoration {
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
  display: none;
}

.slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.slider-wrapper {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: flex-end;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-image {
  position: absolute;
  inset: 0;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
}

.slide-content {
  position: relative;
  z-index: 3;
  padding: 40px;
  color: white;
}

.slide-title {
  font-size: 1.8rem;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-tags {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.tag {
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--accent);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.85rem;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 15px;
}

.slider-arrow.next {
  right: 15px;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.2);
  border: 2px solid rgba(17, 17, 17, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent);
  width: 30px;
  border-radius: 10px;
}

/* ===== SERVICES ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.service-topline span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PARTNERS SLIDER ===== */
.partners-slider-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 60px 0;
  overflow: hidden;
}

.partners-slider-wrapper {
  overflow: hidden;
  padding: 10px 0;
}

.partners-slider {
  display: flex;
  gap: 50px;
  animation: slidePartners 10s linear(1.33 -14.44%, 0.82 -8.56%) infinite;
  width: fit-content;
}

.partners-slider:hover {
  animation-play-state: paused;
}

@keyframes slidePartners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-item {
  flex-shrink: 0;
}

.partner-logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.partner-logo:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.4s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* ===== MEMBERSHIPS ===== */
.memberships {
  width: 100%;
  padding: 40px 24px;
  background: white;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.memberships-title {
  color: #333;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.memberships-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.membership-item {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, #2d3748, #1a202c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.35s ease;
}

.membership-item:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.membership-item img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

/* ===== CONTACT ===== */
.contact-details {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.contact-details span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.contact-details strong {
  font-size: 1rem;
  font-weight: 600;
}

.map-placeholder {
  position: relative;
  width: 100%;
  height: 280px;
  background-image: url('./images/map.png');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--line);
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
}

.map-overlay {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.map-placeholder:hover .map-overlay {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 72px;
  padding: 40px 0 30px;
  background: #0d0f13;
  color: #d7dbe2;
}

.footer-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #f4f1ea;
}

.footer-brand-block h3 {
  font-size: 16px;
  color: #f4f1ea;
  margin-bottom: 4px;
}

.footer-brand-block p {
  margin: 0;
  font-size: 14px;
  color: #a7afbb;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c9ced7;
  font-size: 14px;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-quick-access {
  margin-top: 20px;
}

.footer-section-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.quick-access-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-access-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  transition: color 0.2s ease;
}

.quick-access-links a:hover {
  color: #fff;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.footer-social-links a:hover .footer-social-icon {
  transform: translateY(-2px);
}

.footer-credit {
  font-size: 13px;
  color: #98a0ac;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1100px) {
  .project-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 780px) {
  /* Show hamburger menu */
  .menu-toggle {
    display: flex;
  }

  /* Mobile Navigation */
  .site-nav {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    bottom: auto;
    max-height: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 99;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav > a {
    display: block;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.02);
  }

  /* Mobile Dropdown */
  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.02);
  }

  .dropdown-toggle::after {
    transition: transform 0.3s ease;
  }

  .dropdown.is-open > .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(17, 17, 17, 0.03);
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    margin: 4px 0 4px 16px;
    padding: 4px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .dropdown.is-open > .dropdown-menu {
    max-height: 1500px;
    padding: 8px 0;
  }

  .dropdown-menu > a {
    padding: 10px 16px 10px 24px;
    font-size: 0.88rem;
  }

  /* Mobile Nested Dropdown */
  .dropdown-nested-toggle {
    padding: 10px 16px 10px 24px;
  }

  .dropdown-nested-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(17, 17, 17, 0.04);
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    margin: 4px 0 4px 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .dropdown-nested.is-open > .dropdown-nested-menu {
    max-height: 400px;
  }

  .dropdown-nested.is-open > .dropdown-nested-toggle::after {
    transform: rotate(-90deg);
  }

  .dropdown-nested-menu a {
    padding: 8px 16px 8px 32px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero-content {
    padding: 120px 0 50px;
  }

  .hero-arrow {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .hero-prev {
    right: 12px;
  }

  .hero-next {
    left: 12px;
  }

  .projects-container {
    margin-top: 60px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider-wrapper {
    height: 350px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .partner-logo {
    width: 120px;
    height: 120px;
    padding: 18px;
  }

  .memberships {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .memberships-title {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    gap: 24px;
  }

  .footer-credit {
    text-align: right;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-text strong {
    font-size: 0.85rem;
  }

  .brand-text small {
    font-size: 0.6rem;
  }

  .about-metrics {
    grid-template-columns: 1fr;
  }

  .slider-wrapper {
    height: 280px;
    border-radius: 12px;
  }

  .slide-content {
    padding: 24px;
  }

  .slide-title {
    font-size: 1.3rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
