/* ========================================
   TolueTuran — Pixel-Perfect Recreation
   Matches Framer original at thoughtful-type-815014.framer.app
   ======================================== */

/* ---- Design Tokens ---- */
:root {
  --bg-main: #faf6f0;
  --bg-card: #fff;
  --text-primary: #030303;
  --text-muted: rgba(5, 5, 5, 0.25);
  --text-light: #969696;
  --accent-dark: #050505;
  --accent-light: #fffefa;
  --border-subtle: rgba(5, 5, 5, 0.25);
  --border-faint: rgba(5, 5, 5, 0.1);
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-red: rgba(173, 67, 59, 0.87);
  --nav-gradient-start: rgb(250, 246, 240);
  --nav-gradient-end: rgba(255, 254, 250, 0);
  --hero-text: #030303;
  --hero-logo-filter: brightness(0);
  --link-color: rgb(0, 153, 255);
  --control-bg: rgba(255, 255, 255, 0.85);
  --control-border: rgba(5, 5, 5, 0.12);
  --control-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --team-badge-bg: rgba(255, 255, 255, 0.9);
  --max-width: 1600px;
  --radius-card: 24px;
  --radius-btn: 58px;
  --font-heading: "Mj_Extender X-Slant Bold", "CANAVAR ExtraBold", sans-serif;
  --font-body: "Yekan NewFace D1 Medium", "Shabnam Bold", sans-serif;
  --font-en: "Switzer", sans-serif;
  --font-en-display: "Switzer", sans-serif;
}

[data-theme="dark"] {
  --bg-main: #141210;
  --bg-card: #1f1c19;
  --text-primary: #f5f0e8;
  --text-muted: rgba(245, 240, 232, 0.35);
  --text-light: #a8a29a;
  --accent-dark: #f5f0e8;
  --accent-light: #1f1c19;
  --border-subtle: rgba(245, 240, 232, 0.2);
  --border-faint: rgba(245, 240, 232, 0.08);
  --nav-gradient-start: rgb(20, 18, 16);
  --nav-gradient-end: rgba(20, 18, 16, 0);
  --hero-text: #f5f0e8;
  --hero-logo-filter: brightness(0) invert(1);
  --link-color: #5eb8ff;
  --control-bg: rgba(31, 28, 25, 0.92);
  --control-border: rgba(245, 240, 232, 0.12);
  --control-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --team-badge-bg: rgba(31, 28, 25, 0.92);
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  overflow: visible;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: linear-gradient(180deg, var(--nav-gradient-start) 0%, var(--nav-gradient-end) 100%);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  position: relative;
  overflow: visible;
}

.nav-logo {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 65px;
  width: auto;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-item {
  font-family: "Yekan NewFace D1 Medium", sans-serif;
  font-size: 25px;
  font-weight: 500;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
  position: relative;
}

.nav-item:hover,
.nav-item.active {
  opacity: 0.7;
}

.nav-right {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: visible;
  z-index: 10;
}

/* Theme & language controls */
.theme-toggle,
.lang-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

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

.theme-toggle {
  width: 36px;
  padding: 0;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.lang-selector {
  position: relative;
  z-index: 1100;
}

.lang-current {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-current .flag-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.lang-chevron {
  width: 10px;
  height: 10px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

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

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  inset-inline-start: auto;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  border-radius: 12px;
  box-shadow: var(--control-shadow);
  z-index: 1101;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.lang-selector.is-open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  text-align: start;
}

.lang-option:hover,
.lang-option.is-active {
  background: var(--border-faint);
}

.lang-option.is-active {
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar scrolled state */
.navbar.scrolled {
  border-bottom: 1px solid var(--border-faint);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="ltr"] .mobile-menu {
  transform: translateX(-100%);
}

.mobile-menu.open {
  transform: translateX(0);
}

html[dir="ltr"] .mobile-menu.open,
html[dir="rtl"] .mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.mobile-link {
  font-family: "Yekan NewFace D1 Medium", sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.mobile-link:hover {
  opacity: 0.7;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: rgba(173, 67, 59, 0.87);
  object-position: 50% 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(173, 67, 59, 0.87);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='126' height='126'%3E%3Cpath id='a' d='M126 0v21.584L21.584 126H0v-17.585L108.415 0H126Zm0 108.414V126h-17.586L126 108.414Zm0-84v39.171L63.585 126H24.414L126 24.414Zm0 42v39.17L105.584 126h-39.17L126 66.414ZM105.586 0 0 105.586V84L84 0ZM84 0 0 84V63.586L63.586 0ZM63.587 0 0 63.587V42L42 0ZM42 0 0 42V21.585L21.585 0Z'/%3E%3Cuse href='%23a' transform='matrix(0 1 -1 0 126 126)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 64px auto;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  font-family: "Mj_Extender X-Slant Bold", sans-serif;
  font-size: clamp(36px, 6vw, 87px);
  font-weight: 700;
  color: var(--hero-text);
  text-align: center;
  line-height: 1.1;
}

.hero-title-accent {
  color: var(--hero-text);
}

.hero-sub {
  margin-top: 24px;
  margin-bottom: 40px;
}

.hero-subtitle-en {
  font-family: "CANAVAR ExtraBold", sans-serif;
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1em;
  color: var(--hero-text);
  text-align: center;
  margin-bottom: 8px;
}

.hero-subtitle-fa {
  font-family: "Yekan NewFace D1 Medium", sans-serif;
  font-size: clamp(24px, 3.5vw, 58px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4em;
  color: var(--hero-text);
  text-align: center;
}

.hero-logo-float {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-float-logo {
  width: 80px;
  height: auto;
  filter: var(--hero-logo-filter);
}

.hero-brand-text {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 300;
  color: var(--hero-text);
}

/* ========================================
   SHOWCASE — Framer qhkeru 2×2 mosaic
   ======================================== */
.showcase {
  padding: 60px 0 80px;
  background-color: var(--bg-main);
}

.showcase-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* framer-qhkeru-container */
.showcase-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(352px, 42vw, 563px);
  padding: 40px;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  background-color: #f5f5f5;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .showcase-card {
  background-color: #2a2622;
}

.showcase-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.showcase-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition:
    opacity 0.65s cubic-bezier(0.25, 0, 0.25, 1),
    transform 0.65s cubic-bezier(0.25, 0, 0.25, 1),
    filter 0.65s cubic-bezier(0.25, 0, 0.25, 1);
}

.showcase-card-photo {
  z-index: 0;
  opacity: 1;
  transform: scale(1);
}

.showcase-card-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.44, 0, 0.56, 1);
  pointer-events: none;
}

.showcase-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.25, 0, 0.25, 1);
  pointer-events: none;
}

.showcase-card-overlay-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-card:hover .showcase-card-overlay,
.showcase-card:focus-visible .showcase-card-overlay {
  opacity: 0.12;
}

.showcase-card.is-active .showcase-card-overlay {
  opacity: 0.12;
}

.showcase-card-caption {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  text-align: center;
  color: var(--text-primary);
  transform: translateY(18px);
  opacity: 0;
  transition:
    opacity 0.45s cubic-bezier(0.44, 0, 0.56, 1),
    transform 0.55s cubic-bezier(0.44, 0, 0.56, 1);
  pointer-events: none;
}

.showcase-card-heading {
  font-family: "Shabnam Bold", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3em;
  margin: 0;
}

.showcase-card-desc {
  font-family: "Shabnam Bold", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.9em;
  margin: 0;
}

/* Hover / focus — reveal photo + caption */
.showcase-card:hover .showcase-card-photo,
.showcase-card:focus-visible .showcase-card-photo {
  transform: scale(1.05);
  filter: blur(4px);
}

.showcase-card:hover .showcase-card-shade,
.showcase-card:focus-visible .showcase-card-shade {
  opacity: 1;
}

.showcase-card:hover .showcase-card-caption,
.showcase-card:focus-visible .showcase-card-caption {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}

/* Touch: tap toggles caption */
.showcase-card.is-active .showcase-card-photo {
  transform: scale(1.05);
  filter: blur(4px);
}

.showcase-card.is-active .showcase-card-shade {
  opacity: 1;
}

.showcase-card.is-active .showcase-card-caption {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}

.showcase-card:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-card-media img,
  .showcase-card-shade,
  .showcase-card-caption {
    transition: none;
  }
}

.arrow-svg {
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  opacity: 0.4;
}

/* ========================================
   WORKS / DECORATIVE HEADING SECTION
   ======================================== */
.works {
  padding: 80px 0 40px;
  background-color: var(--bg-main);
  text-align: center;
}

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

.works-heading {
  font-family: "picoopic Black", sans-serif;
  font-size: clamp(36px, 5vw, 83px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 40px;
  line-height: 1.2;
}

.works-services-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: start;
}

.works-services-text p {
  font-family: "Shabnam Bold", sans-serif;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 2.2em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* ========================================
   SERVICES / TEAM SECTION
   (called "Services" in Framer — contains the team cards)
   ======================================== */
.services {
  padding: 80px 0 80px;
  background-color: var(--bg-main);
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.services-title-row {
  text-align: center;
  margin-bottom: 48px;
}

.services-title {
  font-family: "Mj_Extender X-Slant Bold", sans-serif;
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* Cards Wrapper — holds both team cards side by side */
.cards-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.team-card {
  flex: 1;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-faint);
  transition: box-shadow 0.3s ease;
}

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

/* --- Team Photo --- */
.team-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.team-photo-wrapper {
  position: absolute;
  inset: 0;
}

.team-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0, 0.25, 1);
}

.team-card.is-shade-open .team-photo-wrapper img {
  transform: scale(1.04);
}

.team-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.team-photo-logo {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: var(--team-badge-bg);
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo-logo img {
  width: 36px;
  height: 38px;
}

/* --- Photo Tab (name visible when shade collapsed) --- */
.team-photo-tab {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.team-card.is-shade-open .team-photo-tab,
.team-card:hover .team-photo-tab {
  opacity: 0;
}

.team-tab-name {
  font-family: var(--font-en-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.team-tab-chevron {
  width: 18px;
  height: 18px;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.25, 0, 0.25, 1);
}

.team-card.is-shade-open .team-tab-chevron {
  transform: rotate(180deg);
}

/* --- WhatsApp Link on Team Cards --- */
.team-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  flex-shrink: 0;
  border-radius: 50%;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.team-whatsapp-link:hover {
  transform: scale(1.15);
}

/* WhatsApp icon in the photo tab */
.team-photo-tab .team-whatsapp-link {
  width: 36px;
  height: 36px;
  background: #25D366;
  border-radius: 50%;
}

.team-photo-tab .team-whatsapp-link:hover {
  background: #1ebe57;
  transform: scale(1.1);
}

.team-photo-tab .team-whatsapp-icon {
  width: 20px;
  height: 20px;
  color: #fff;
  filter: none;
}

/* WhatsApp icon inline next to name in the info area */
.team-whatsapp-link--inline {
  width: 32px;
  height: 32px;
  margin-inline-start: 4px;
}

.team-whatsapp-link--inline .team-whatsapp-icon {
  width: 18px;
  height: 18px;
  color: #25D366;
}

.team-whatsapp-link--inline:hover {
  background: rgba(37, 211, 102, 0.15);
  transform: scale(1.1);
}

/* --- Window Shade (collapsible info area) --- */
.team-card-shade {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.25, 0, 0.25, 1);
}

.team-card:hover .team-card-shade,
.team-card:focus-visible .team-card-shade,
.team-card.is-shade-open .team-card-shade {
  max-height: 800px;
}

/* Hover on team-card: show shade (desktop only via hover) */
@media (hover: hover) {
  .team-card:hover .team-card-shade {
    max-height: 800px;
  }
}

.team-card-info {
  padding: 32px 28px;
}

.team-name {
  font-family: var(--font-en-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  direction: ltr;
  text-align: left;
}

.team-role {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 20px;
  direction: ltr;
  text-align: left;
}

.team-achievements {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-achievements li {
  font-family: "Shabnam Bold", sans-serif;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 2em;
  color: var(--text-primary);
  padding-right: 16px;
  position: relative;
  text-align: right;
}

.team-achievements li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--text-primary);
  border-radius: 50%;
}

.team-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  flex: 0 0 40px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--bg-main);
  padding: 80px 0 48px;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-title {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-en);
  font-size: clamp(36px, 8vw, 140px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
  text-decoration: none;
  padding: 40px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity 0.25s;
}
.footer-title:hover {
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.footer-item {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8em;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s;
  max-width: 124px;
}
.footer-item:hover {
  opacity: 0.5;
}

.footer-addr {
  cursor: default;
}
.footer-addr:hover {
  opacity: 1;
}

/* Lang overrides for FA/AR */
html[lang="fa"] .footer-item[href],
html[lang="ar"] .footer-item[href] {
  font-family: "Yekan NewFace D1 Medium", sans-serif;
  font-weight: 500;
  font-size: 15px;
}

html[lang="fa"] .footer-addr,
html[lang="ar"] .footer-addr {
  font-family: "Shabnam Bold", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 2em;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-muted);
  transition:
    color 0.2s,
    background 0.2s;
}
.social-icon:hover {
  color: var(--text-primary);
  background: var(--border-faint);
}

.social-icon svg {
  width: 17px;
  height: 17px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-light);
}

.footer-legal-logo {
  opacity: 0.4;
}

/* ========================================
   CERTIFICATES SECTION
   ======================================== */
.certificates {
  padding: 80px 0 80px;
  background-color: var(--bg-main);
}

.certificates-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.certificates-title-row {
  text-align: center;
  margin-bottom: 48px;
}

.certificates-heading {
  font-family: "Mj_Extender X-Slant Bold", sans-serif;
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* Certificate Grid — 2×2 mosaic */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

/* Vertical single-column variant */
.certificates-grid--vertical {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}

.certificates-grid--vertical .certificate-card {
  min-height: clamp(320px, 40vw, 500px);
}

/* Certificate Card */
.certificate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(300px, 38vw, 480px);
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  background-color: #f5f5f5;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .certificate-card {
  background-color: #2a2622;
}

.certificate-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.certificate-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 12px;
  transition:
    transform 0.55s cubic-bezier(0.25, 0, 0.25, 1),
    filter 0.55s cubic-bezier(0.25, 0, 0.25, 1);
}

.certificate-card-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.44, 0, 0.56, 1);
  pointer-events: none;
}

.certificate-card-caption {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  color: #fff;
  transform: translateY(12px);
  opacity: 0;
  transition:
    opacity 0.45s cubic-bezier(0.44, 0, 0.56, 1),
    transform 0.5s cubic-bezier(0.44, 0, 0.56, 1);
  pointer-events: none;
}

.certificate-card-label {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Certificate Card Hover / Focus */
.certificate-card:hover .certificate-card-photo,
.certificate-card:focus-visible .certificate-card-photo {
  transform: scale(1.05);
}

.certificate-card:hover .certificate-card-shade,
.certificate-card:focus-visible .certificate-card-shade {
  opacity: 1;
}

.certificate-card:hover .certificate-card-caption,
.certificate-card:focus-visible .certificate-card-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Certificate Card Touch Toggle */
.certificate-card.is-active .certificate-card-photo {
  transform: scale(1.05);
}

.certificate-card.is-active .certificate-card-shade {
  opacity: 1;
}

.certificate-card.is-active .certificate-card-caption {
  opacity: 1;
  transform: translateY(0);
}

.certificate-card:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .certificate-card-media img,
  .certificate-card-shade,
  .certificate-card-caption {
    transition: none;
  }
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

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

.lightbox-close svg {
  width: 28px;
  height: 28px;
}

.lightbox-image-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  pointer-events: none;
}

.lightbox-image-wrapper img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.open .lightbox-image-wrapper img {
  transform: scale(1);
}

/* LTR override for close button */
html[dir="ltr"] .lightbox-close {
  right: auto;
  left: 24px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
[data-animate] {
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(30px);
}

[data-animate].animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.3, 0.76, 0.56, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.3, 0.76, 0.56, 1) 0.1s forwards;
}

/* ========================================
   RESPONSIVE — Tablet (810px – 1199px)
   ======================================== */
@media (max-width: 1199px) {
  .nav-inner { padding: 12px 20px; }
  .nav-logo { right: 20px; }
  .nav-logo img { height: 54px; }
  .nav-right { left: 16px; gap: 12px; }
  .nav-item { font-size: 20px; }
  .nav-links-desktop { gap: 24px; }

  .works {
    padding: 60px 0 32px;
  }
  .showcase {
    padding: 40px 0 60px;
  }

  .showcase-card {
    min-height: 384px;
    padding: 32px;
  }

  .services {
    padding: 60px 0 60px;
  }

  .cards-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .team-card {
    max-width: 100%;
  }

  .certificates {
    padding: 60px 0 60px;
  }

  .certificate-card {
    min-height: 340px;
    padding: 24px;
  }

  .team-arrow {
    padding-top: 0;
    transform: rotate(90deg);
  }

  .footer-grid {
    gap: 32px;
  }
  .footer-title {
    font-size: clamp(28px, 8vw, 80px);
    padding: 32px 0;
    margin-bottom: 28px;
  }
}

/* ========================================
   RESPONSIVE — Mobile (< 810px)
   ======================================== */
@media (max-width: 809px) {
  .nav-inner {
    padding: 14px 20px;
    min-height: 64px;
  }

  .nav-links-desktop { display: none; }
  .hamburger { display: flex; }

  .nav-logo { right: 16px; }
  .nav-logo img { height: 52px; }

  .nav-right {
    left: 12px;
    gap: 10px;
  }

  .theme-toggle {
    width: 40px;
    min-height: 40px;
  }
  .theme-toggle svg {
    width: 20px;
    height: 20px;
  }

  .lang-current {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
    gap: 6px;
  }

  .hamburger { padding: 10px; }
  .hamburger span { width: 22px; }

  .hero-title-line {
    font-size: clamp(28px, 7vw, 48px);
  }

  .hero-subtitle-en {
    font-size: clamp(22px, 5vw, 40px);
  }

  .hero-subtitle-fa {
    font-size: clamp(18px, 4vw, 32px);
    letter-spacing: 0.04em;
  }

  .works {
    padding: 48px 0 24px;
  }
  .showcase {
    padding: 32px 0 48px;
  }
  .services {
    padding: 48px 0 48px;
  }
  .footer {
    padding: 60px 0 36px;
  }

  .showcase-mosaic {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .certificate-card {
    min-height: 300px;
    padding: 20px;
    border-radius: 24px;
  }

  .certificates-grid--vertical {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  /* Lightbox mobile */
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .lightbox-close svg {
    width: 24px;
    height: 24px;
  }

  html[dir="ltr"] .lightbox-close {
    right: auto;
    left: 16px;
  }

  .lightbox-image-wrapper {
    padding: 16px;
  }

  .lightbox-image-wrapper img {
    max-width: 96vw;
    max-height: 85vh;
  }

  .showcase-card {
    min-height: 352px;
    padding: 24px;
    border-radius: 24px;
  }

  .cards-wrapper {
    gap: 24px;
  }

  .team-arrow {
    transform: rotate(90deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-title {
    font-size: clamp(28px, 12vw, 48px);
    padding: 28px 0;
    margin-bottom: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================
   LTR layout (English)
   ======================================== */
html[dir="ltr"] .nav-logo {
  right: auto;
  left: 24px;
}

html[dir="ltr"] .nav-right {
  left: auto;
  right: 24px;
}

html[dir="ltr"] .showcase-card-caption {
  text-align: center;
}

html[dir="ltr"] .team-achievements li {
  text-align: left;
  padding-right: 0;
  padding-left: 16px;
}

html[dir="ltr"] .team-achievements li::before {
  right: auto;
  left: 0;
}

html[dir="ltr"] .team-photo-logo {
  right: auto;
  left: 16px;
}

html[dir="ltr"] .works-services-text,
html[dir="ltr"] .works-heading {
  text-align: left;
}

html[dir="ltr"] .team-tab-name {
  text-align: left;
}

html[dir="ltr"] .certificates-heading {
  text-align: center;
}

/* ========================================
   Language Typography (EN/TR override Persian fonts)
   ======================================== */
html[lang="en"] .nav-item,
html[lang="tr"] .nav-item,
html[lang="en"] .mobile-link,
html[lang="tr"] .mobile-link {
  font-family: var(--font-en);
  letter-spacing: normal;
}

html[lang="en"] .showcase-card-heading,
html[lang="tr"] .showcase-card-heading,
html[lang="en"] .showcase-card-desc,
html[lang="tr"] .showcase-card-desc {
  font-family: var(--font-en);
}

html[lang="en"] .works-services-text p,
html[lang="tr"] .works-services-text p {
  font-family: var(--font-en);
  letter-spacing: normal;
}

html[lang="en"] .team-achievements li,
html[lang="tr"] .team-achievements li {
  font-family: var(--font-en);
  letter-spacing: normal;
}

html[lang="en"] .hero-subtitle-fa,
html[lang="tr"] .hero-subtitle-fa {
  letter-spacing: normal;
  font-family: var(--font-en);
}

/* ========================================
   Utility
   ======================================== */
body.menu-open {
  overflow: hidden;
}
