/* =====================================================
   TDQ Co — CLEAN STYLE.CSS (Single Source of Truth)
   - Keeps latest TDQ Hero (Phase 2) + focus interaction
   - Keeps latest Engineering Cards layout
   - Restores nav link color (dark blue)
   - Clean mobile nav (single implementation)
===================================================== */

/* ===============================
   GLOBAL RESET + BOX SIZING
=============================== */
*, *::before, *::after { box-sizing: border-box; }

/* ===== Sticky header must work: do NOT make body the scroller ===== */
html, body {
  margin: 0;
  padding: 0;
  /* no overflow here */
}

.page-wrap {
  overflow-x: hidden;
  position: relative; /* prevents future transform issues */
}


body {
  margin: 0;
  padding: 0;
  background: #eef2f6; /* light engineering gray-blue */
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: #1A1D21;
}

/* ===============================
   FORMS — inherit site fonts
=============================== */
button, input, select, textarea { font-family: inherit; }

/* ===============================
   VAZIRMATN — SELF HOSTED (FA)
=============================== */
@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   BILINGUAL TYPOGRAPHY
=============================== */
html[lang="en"] body {
  text-align: justify;
  text-justify: inter-word;
}

html[lang="fa"] body {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.9;
  font-feature-settings: "kern", "liga";
}

h1, h2, h3, h4, h5, h6 { text-align: start; }

/* Avoid justify messing up hero */
html[lang="fa"] .tdq-hero,
html[lang="fa"] .tdq-hero * ,
html[lang="en"] .tdq-hero,
html[lang="en"] .tdq-hero * {
  text-align: start;
}
@media (min-width: 900px) {
  html[lang="fa"] .tdq-hero h1 {
    letter-spacing: -0.2px;
  }
}

/* ===============================
   LAYOUT
=============================== */
main { padding: 40px; }

@media (max-width: 768px) {
  main {
    padding: 16px; /* consistent mobile gutter EN/FA */
  }
}

/* Sections / panels */
.section-white { background: #fff; }

.section-panel {
  padding: 3rem 2.5rem;
}

@media (max-width: 768px) {
  .section-panel {
    padding: 24px 16px;
  }
}

/* Elevation */
.elev-1 {
  background: #fff;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.06);
}

.elev-2 {
  background: #fff;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.06),
    0 14px 36px rgba(0,0,0,0.08);
}

/* Cards */
.card-light {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .card-light { padding: 20px; }
}

/* ===============================
   HEADER + NAV (RESTORE BLUE LINKS)
=============================== */
.header-light{
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255,255,255,0.88); /* or #fff if you want solid */
  backdrop-filter: blur(12px);

  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}


.header-light.scrolled {
  background: rgba(255,255,255,0.90);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo { height: 64px; width: auto; }

.brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F6FB2;
}

/* Nav container */
.nav-menu-light {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language menu visibility */
.menu-en, .menu-fa { display: none; }
html[lang="en"] .menu-en { display: flex; }
html[lang="fa"] .menu-fa { display: flex; }

/* ✅ NAV LINKS — dark blue (not black) */
.nav-menu-light a,
.dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: #1F5FA8;          /* restore dark blue */
  font-weight: 600;
  font-size: 15px;

  padding: 8px 12px;
  border-radius: 10px;

  transition: background 180ms ease, color 180ms ease;
}

/* Hover/active */
.nav-menu-light a:hover,
.dropdown-btn:hover {
  background: rgba(31,95,168,0.10);
  color: #0D5C91;
}

.nav-menu-light a.active {
  background: rgba(31,95,168,0.12);
  color: #0D5C91;
}

/* Underline micro-effect */
.nav-menu-light a {
  position: relative;
}
.nav-menu-light a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: rgba(31,95,168,0.65);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.nav-menu-light a:hover::after { transform: scaleX(1); }
.nav-menu-light a.active::after { transform: scaleX(1); }

/* Icons */
.nav-menu-light .nav-icon,
.nav-menu-light svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* Language buttons */
.lang-switch-light { display: flex; gap: 10px; }

.lang-btn-light {
  min-width: 42px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #1F6FB2;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #104A7A;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;

  transition: background 180ms ease, transform 180ms ease;
}
.lang-btn-light:hover {
  background: #3485CC;
  transform: translateY(-1px);
}

/* RTL header direction */
html[dir="rtl"] .header-light { flex-direction: row-reverse; }
html[dir="rtl"] .header-left { flex-direction: row-reverse; }

/* Focus accessibility */
.nav-menu-light a:focus-visible,
.lang-btn-light:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid rgba(31,95,168,0.55);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ===============================
   MOBILE NAV (SINGLE SOURCE)
=============================== */
.hamburger{
  display: none; /* desktop hidden */
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

/* Mobile behavior */
@media (max-width: 900px) {

  .header-light { position: sticky; overflow: visible; }

  /* Hamburger visible */
  .hamburger{
    display: inline-flex;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    padding: 0;
    z-index: 9999;
    overflow: visible;
  }

  .hamburger span{
    position: absolute;
    left: 9px;
    width: 24px;
    height: 2px;
    background: #1F5FA8;
    border-radius: 2px;
    transition: transform 260ms ease, opacity 180ms ease;
    transform-origin: center;
  }
  .hamburger span:nth-child(1){ top: 14px; }
  .hamburger span:nth-child(2){ top: 20px; }
  .hamburger span:nth-child(3){ top: 26px; }

  .hamburger.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .hamburger.open span:nth-child(2){ opacity: 0; }
  .hamburger.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  /* keep logo away from hamburger */
  .header-left .logo-link { margin-left: 52px; }

  /* Nav becomes dropdown drawer under header */
  .nav-menu-light {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    display: block;         /* single model */
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    border-radius: 12px;

    /* animation */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 320ms ease, opacity 220ms ease, transform 220ms ease;
    padding: 0;
  }

  .nav-menu-light.open {
    max-height: 80vh;
    opacity: 1;
    transform: translateY(0);
    padding: 10px 12px;
  }

  .menu-en, .menu-fa {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

/* menu items (mobile only) */
.nav-menu-light a,
.dropdown-btn{
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* IMPORTANT: stop pushing children to opposite sides */
  gap: 12px;

  padding: 12px 16px;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  min-width: 0;
}

/* icon */
.nav-menu-light a .nav-icon,
.nav-menu-light a svg,
.nav-menu-light a i{
  width: 24px;
  min-width: 24px;
  height: 24px;
  flex: 0 0 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  margin-inline: 0 !important;

  /* IMPORTANT: reset any old margins */
  margin: 0 !important;
}

/* label/text */
.nav-menu-light a .nav-label,
.dropdown-btn .nav-label{
  min-width: 0;
  white-space: normal;
  line-height: 1.5;

  /* IMPORTANT: kill any old “push to edge” behavior */
  margin: 0 !important;
  flex: 1 1 auto;
}

/* ---------- LTR (English) ---------- */
html[dir="ltr"] .nav-menu-light a,
html[dir="ltr"] .dropdown-btn{
  flex-direction: row;     /* icon then text */
  text-align: left;
}

/* ---------- RTL (Farsi) ---------- */
html[dir="rtl"] .nav-menu-light a,
html[dir="rtl"] .dropdown-btn,
html[lang="fa"] .nav-menu-light a,
html[lang="fa"] .dropdown-btn{
  direction: rtl;
  flex-direction: row;          /* keep DOM order: icon then label */
  justify-content: flex-end;    /* push BOTH to the right */
  text-align: right;
}

/* ensure text aligns correctly inside the label */
html[dir="rtl"] .nav-menu-light .nav-label,
html[dir="rtl"] .dropdown-btn .nav-label{
  text-align: right;
}




  /* .nav-menu-light a:active,
  .dropdown-btn:active {
    background: rgba(31,95,168,0.08);
  } */
}

/* ===============================
   DROPDOWN (DESKTOP HOVER)
=============================== */
.dropdown { position: relative; display: inline-block; }

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  z-index: 1000;
  border-radius: 10px;
  overflow: hidden
}

.dropdown-content a {
  color: #1F5FA8;
  padding: 10px 14px;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid #eef2f7;
}
.dropdown-content a:hover { background: #f1f7ff; color: #0D5C91; }
.dropdown:hover .dropdown-content { display: block; }

html[dir="rtl"] .dropdown-content { right: 0; left: auto; text-align: right; }
.submenu-arrow { margin-left: 6px; font-size: 12px; }
html[dir="rtl"] .submenu-arrow { margin-left: 0; margin-right: 6px; }

/* ===============================
   TDQ HERO — Phase 2 (LATEST)
=============================== */
  .tdq-hero {
    color: #f4f7ff;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    margin: 18px;
    padding: 40px 22px;
    margin-bottom: 20px;
    background:
      radial-gradient(1000px 600px at 12% 25%, rgba(64, 106, 166, 0.35), transparent 60%),
      radial-gradient(900px 600px at 88% 70%, rgba(64, 106, 166, 0.20), transparent 70%),
      linear-gradient(135deg, #08121b 0%, #0d1722 100%);
  }

  .tdq-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: center;
  }

  @media (max-width: 980px) {
    .tdq-hero { padding: 28px 16px; }
    .tdq-hero-inner { grid-template-columns: 1fr; }
  }

  .tdq-hero-title {
    margin: 0 0 10px;
    line-height: 1.08;
    font-size: clamp(1.75rem, 3.4vw, 3rem);
    letter-spacing: -0.3px;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0,0,0,0.55);
  }

  .tdq-hero-subtitle {
    margin: 0 0 14px;
    font-size: 1.02rem;
    opacity: 0.92;
    max-width: 60ch;
  }

  .tdq-hero-kicker {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 0.95rem;
    opacity: 0.88;
    margin: 0 0 8px;
  }

  .tdq-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    margin: 10px 0 12px;
    align-items: center;
  }
  @media (max-width: 620px) {
    .tdq-hero-cta { flex-direction: column; align-items: stretch; }
  }

.tdq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.tdq-btn-primary {
  color: #fff;
  background: linear-gradient(90deg, rgba(84,140,255,1), rgba(88,220,185,1));
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.tdq-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.28); }

.tdq-btn-ghost {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
}
.tdq-btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.20); }

/* Right panel */
.tdq-hero-panel { position: relative; min-height: 260px; display: grid; place-items: center; }

.tdq-panel-card {
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 48px rgba(0,0,0,0.40);
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
  will-change: transform, filter, opacity;
}

.tdq-panel-card-main {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(64,106,166,0.22);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.tdq-panel-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(64,106,166,0.14), rgba(255,255,255,0.00));
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.tdq-panel-title { margin-left: 8px; font-weight: 800; opacity: 0.92; }
.tdq-panel-body { padding: 14px; }

.tdq-panel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
}
.tdq-panel-label { opacity: 0.78; }
.tdq-panel-value { opacity: 0.92; font-weight: 700; text-align: right; }
.tdq-panel-divider { height: 1px; margin: 12px 0; background: rgba(255,255,255,0.12); }

.tdq-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tdq-metric {
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
}
.tdq-metric-num { font-weight: 900; opacity: 0.95; }
.tdq-metric-label { font-size: 0.88rem; opacity: 0.78; margin-top: 4px; }

/* Floating cards (desktop only) */
.tdq-panel-card-float {
  position: absolute;
  width: 205px;
  padding: 12px;
  z-index: 3;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(64,106,166,0.18);
  box-shadow: 0 14px 36px rgba(0,0,0,0.38);
  transition: transform 260ms ease;
}
.tdq-float-1 { top: -12px; right: -16px; }
.tdq-float-2 { bottom: -12px; left: -16px; }

@media (max-width: 980px) {
  .tdq-panel-card-float { display: none; }
  .tdq-hero-panel { min-height: auto; margin-top: 6px; }
}

/* ✅ Interactive focus (your latest) */
.tdq-panel-card-main { z-index: 2; }
.tdq-panel-card-float { z-index: 3; }

.tdq-hero-panel.is-focus .tdq-panel-card {
  filter: blur(2.2px);
  opacity: 0.55;
  transform: translateZ(0) scale(0.995);
}
.tdq-hero-panel.is-focus .tdq-panel-card.is-active {
  filter: none;
  opacity: 1;
  transform: translateZ(0) scale(1.02);
  box-shadow: 0 22px 58px rgba(0,0,0,0.45);
}
.tdq-hero-panel .tdq-panel-card.is-active { z-index: 10 !important; }

.tdq-hero-panel.is-focus.is-main-active .tdq-float-1 {
  transform: translate(34px, -18px);
  opacity: 0.35;
}
.tdq-hero-panel.is-focus.is-main-active .tdq-float-2 {
  transform: translate(-34px, 18px);
  opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
  .tdq-panel-card,
  .tdq-btn { transition: none !important; }
}

/* ===============================
   ENGINEERING CARDS (LATEST)
=============================== */
.tdq-home-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 10px;
}
.tdq-home-head {
  padding: 10px 6px 12px;
  background: radial-gradient(700px 200px at 20% 0%, rgba(64,106,166,0.10), transparent 60%);
  border-radius: 14px;
}
[dir="rtl"] .tdq-home-head {
  background: radial-gradient(700px 200px at 88% 0%, rgba(64,106,166,0.10), transparent 60%);
}

.engineering-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 32px 0 40px;
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) {
  .engineering-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .engineering-cards { grid-template-columns: 1fr; }
}

.eng-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.eng-card-link .eng-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.eng-card-link:hover .eng-card {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}
.eng-card-link:hover .eng-card h3 {
  color: #1f3c6d; /* your primary brand blue */
}
.eng-card-link:hover .eng-card {
  border: 1px solid rgba(31, 60, 109, 0.15);
}



.eng-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 26px 24px;
  border-top: 4px solid #1F6FB2;
  transition: transform 200ms ease, box-shadow 220ms ease, border-color 220ms ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.eng-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  border-color: rgba(31,95,168,0.28);
}

.eng-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.eng-card-icon {
  width: 26px;
  height: 26px;
  fill: #406aa6;
  opacity: 0.95;
  transition: transform 180ms ease, opacity 180ms ease;
}

.eng-card:hover .eng-card-icon {
  transform: translateY(-1px);
  opacity: 1;
}

.eng-card h3 {
  margin: 2px 0 8px;
  font-size: 18px;
  color: #1F6FB2;
}

.eng-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #4B5563;
  line-height: 1.6;
}

html[dir="rtl"] .eng-card { text-align: right; }

/* ===============================
   CONTACT (KEEP YOUR WORKING PARTS)
=============================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #9BB4D3;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.contact-form textarea { height: 140px; resize: vertical; }

.btn-submit {
  background: #1F6FB2;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 800;
}
.btn-submit:hover { background: #155A8A; }
.btn-submit[disabled]{ opacity: 0.7; cursor: not-allowed; }

/* Success message animation */
.success-msg{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  transform: translateY(-6px);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .25s ease, transform .25s ease, max-height .35s ease;
}
.success-msg.is-visible{
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
}
.success-msg.is-hiding{
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
}

/* Honeypot (safe hidden) */
.hp-field{
  position: fixed !important;
  top: -10000px !important;
  right: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Contact details */
.contact-details {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  transition: transform 0.25s ease;
}
.contact-details li:hover { transform: translateX(4px); }

.soft-divider{
  border: 0;
  height: 1px;
  background: rgba(0,0,0,0.15);
  margin: 16px 0 18px;
}

/* Map (prevents RTL shift / overflow) */
.contact-map {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.contact-map iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 320px;
  border: 0;
  display: block;
}

/* Social icons */
.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
  vertical-align: middle;
}

.contact-socials {
  display: flex;
  gap: 14px;
  margin: 14px 0 18px;
}
.contact-socials a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: visible;
}
.contact-socials .icon {
  width: 22px;
  height: 22px;
  fill: #666;
  transition: fill 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-socials a:hover .icon { transform: translateY(-2px) scale(1.12); }

.contact-socials a[href*="wa.me"]:hover .icon { fill: #25D366; }
.contact-socials a[href*="t.me"]:hover .icon { fill: #0088cc; }
.contact-socials a[href*="instagram"]:hover .icon { fill: #E4405F; }
.contact-socials a[href*="linkedin"]:hover .icon { fill: #0A66C2; }

/* Tooltip (won’t cause horizontal scroll) */
.contact-socials a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #222;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.contact-socials a::before {
  content: "";
  position: absolute;
  bottom: 115%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #222;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.contact-socials a:hover::after,
.contact-socials a:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Coming soon */
.social-coming-soon { opacity: 0.6; transition: opacity 0.2s ease; }
.social-coming-soon:hover { opacity: 0.9; }

/* Specs CTA */
.specs-cta {
  padding: 22px;
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 12px;
  margin: 22px 0;
  text-align: center;
}
.specs-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 260px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
  margin: 0 auto;
}

/* ===============================
   ABOUT (kept clean)
=============================== */
.about-container { max-width: 1280px; margin: 0 auto; }

.about-overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-overview { grid-template-columns: 1fr; }
}
.about-overview img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.about-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
@media (max-width: 900px) {
  .about-gallery { grid-template-columns: 1fr; }
  .about-gallery img { height: 200px; }
}
.engineering-cards{
  grid-template-columns: 1fr;
}

.eng-card{
  min-width: 0;
}


/* ===============================
   TDQ GALLERY + MODAL (LATEST)
=============================== */
.tdq-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 28px;
}
.tdq-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0f1622;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  cursor: pointer;
}
.tdq-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms ease, filter 600ms ease;
  filter: grayscale(80%) contrast(1.05);
}
.tdq-gallery-item:hover img {
  transform: scale(1.07);
  filter: grayscale(0%) contrast(1.08);
}
.tdq-gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(64,106,166,0.6);
  box-shadow: 0 26px 60px rgba(0,0,0,0.5), 0 0 25px rgba(64,106,166,0.35);
}
.tdq-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,25,0.85), rgba(10,15,25,0.35) 40%, rgba(10,15,25,0.05));
  pointer-events: none;
}
.tdq-gallery-item figcaption {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  z-index: 2;
  letter-spacing: 0.4px;
}

/* Modal */
.tdq-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,12,18,0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
}
.tdq-modal-img {
  max-width: 85%;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.7);
}
.tdq-modal-caption {
  margin-top: 18px;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.tdq-modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 32px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 200ms ease;
}
.tdq-modal-close:hover { color: #406aa6; }

/* ===============================
   FOOTER
=============================== */
footer {
  text-align: center;
  padding: 20px;
  background: #fff;
  color: #5A6A78;
  border-top: 2px solid #D8E3EF;
}

/* ===============================
   MOTION HELPERS
=============================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.fade-up.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none; opacity: 1; transform: none; }
}
/* =========================================================
   TDQ — SAFE OVERRIDES (paste at END of style.css)
   Goal:
   - Bring nav link color back to dark blue (not black)
   - Keep latest hero section (tdq-hero) intact
   - Restore engineering cards layout + style
   - Match button color + shape like your screenshots
========================================================= */

/* ---------- NAV: dark blue links (EN + FA) ---------- */
.nav-menu-light a,
.nav-menu-light a:visited,
.dropdown-btn {
  color: #1F6FB2;
}

.nav-menu-light a:hover,
.dropdown-btn:hover {
  color: #0D5C91;
}

/* Ensure SVG icons inherit link color */
.nav-menu-light a svg,
.nav-menu-light a .icon,
.nav-menu-light a .nav-icon {
  fill: currentColor;
  color: currentColor;
}

/* Active state (clean + visible) */
.nav-menu-light a.active {
  color: #0D5C91;
  background: rgba(31, 111, 178, 0.10);
}

/* ---------- BUTTONS: match your screenshot (blue, compact, not pill) ---------- */
.btn,
.btn-primary,
.btn-submit,
.specs-cta .btn-primary,
.company-profile-cta .btn-primary {
  background: #1F6FB2;
  color: #fff;
  border: 1px solid #104A7A;
  border-radius: 8px;          /* screenshot-like */
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover,
.btn-primary:hover,
.btn-submit:hover,
.specs-cta .btn-primary:hover,
.company-profile-cta .btn-primary:hover {
  background: #155A8A;
}

/* Keep small buttons (like lang switch) from being affected */
.lang-btn-light {
  border-radius: 10px;         /* keep your nicer lang buttons */
  padding: 6px 12px;
  font-weight: 600;
}

/* ---------- ENGINEERING CARDS: grid + look like screenshot ---------- */
.engineering-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin: 22px 0 34px;
}

@media (max-width: 980px) {
  .engineering-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .engineering-cards {
    grid-template-columns: 1fr;
  }
}

/* Card look */
.eng-card {
  background: #eef2f6;                  /* light grey-blue like screenshot */
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.eng-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  border-color: rgba(31,111,178,0.25);
}

/* Headings inside cards */
.eng-card h3 {
  margin: 0 0 10px;
  color: #1F6FB2;
  font-weight: 800;
}

/* Body text inside cards */
.eng-card p {
  margin: 0;
  color: #4B5563;
  line-height: 1.8;
}

/* RTL alignment in cards (FA) */
html[dir="rtl"] .eng-card {
  text-align: right;
}

/* ---------- HERO: protect your latest tdq-hero from accidental overrides ---------- */
/* (This block just ensures older generic hero rules don’t overwrite tdq-hero text colors.) */

.tdq-hero {
  color: #f4f7ff;                 /* ✅ makes hero text light */
  position: relative;
  overflow: hidden;
  /* keep your existing background/spacing/etc */
}

.tdq-hero .tdq-hero-title {
  color: #ffffff;
}

.tdq-hero .tdq-hero-subtitle,
.tdq-hero .tdq-hero-kicker {
  color: rgba(255,255,255,0.88);
}
/* ===============================
   SEO links — pill style (single source)
=============================== */
.tdq-seo-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 42px; /* spacing before footer */
}

.tdq-seo-links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(64,106,166,0.08);
  border: 1px solid rgba(64,106,166,0.18);

  color: #406aa6;              /* dark blue */
  text-decoration: none;       /* ✅ removes underline */
  font-weight: 600;

  transition: background 180ms ease, transform 160ms ease, border-color 180ms ease;
}

.tdq-seo-links a:hover{
  background: rgba(64,106,166,0.14);
  border-color: rgba(64,106,166,0.28);
  transform: translateY(-1px);
}

.tdq-seo-links a:focus-visible{
  outline: 2px solid rgba(64,106,166,0.55);
  outline-offset: 2px;
}
/* ===============================
   SCADA LIVE MOCKUP (Dashboard KPI)
=============================== */

.scada-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 8px;
}

.scada-head-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: wrap;
}

.scada-title{
  margin:0;
}

.scada-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}

.scada-badge{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20,40,80,.12);
  background: rgba(255,255,255,.75);
}

.scada-head-right .scada-meta{
  font-size: 12px;
  font-weight: 700;
  color: rgba(10,20,40,.58);
}

.scada-desc{
  margin: 6px 0 14px;
  color: rgba(10,20,40,.78);
}

/* KPI grid */
.scada-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px){
  .scada-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px){
  .scada-head{ align-items:flex-start; }
  .scada-grid{ grid-template-columns: 1fr; }
}

/* KPI card */
.scada-kpi{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(20,40,80,.10);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.scada-kpi:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,.08);
}

.scada-kpi-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.scada-kpi-title{
  margin:0;
  font-size: 15px;
  font-weight: 800;
  color: rgba(10,20,40,.92);
}

.scada-kpi-right{
  display:flex;
  align-items:center;
  gap:10px;
}

/* value */
.scada-kpi-value{
  display:flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.scada-num{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(10,20,40,.96);
}

.scada-unit{
  font-size: 13px;
  font-weight: 800;
  color: rgba(10,20,40,.62);
}

/* chips */
.scada-chip{
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20,40,80,.12);
  background: rgba(255,255,255,.75);
  white-space: nowrap;
}

.scada-chip--ok{
  border-color: rgba(34,197,94,.25);
}

.scada-chip--warn{
  border-color: rgba(245,158,11,.35);
}

/* range + bar */
.scada-range{
  display:flex;
  justify-content:space-between;
  font-size: 12px;
  color: rgba(10,20,40,.55);
  margin-bottom: 6px;
}

.scada-bar{
  height: 8px;
  border-radius: 999px;
  background: rgba(20,40,80,.10);
  overflow:hidden;
}

.scada-bar > span{
  display:block;
  height: 100%;
  border-radius: 999px;
  background: rgba(35, 110, 210, .65);
}
.status-light.yellow { background: #f59e0b; box-shadow: 0 0 10px rgba(245,158,11,.45); }
.status-light.red    { background: #ef4444; box-shadow: 0 0 10px rgba(239,68,68,.45); }
/* ===============================
   CONTACT LINKS – CLEAN CORPORATE STYLE
=============================== */

.contact-info a,
.section-panel a.copyable {
  color: #1f3c6d; /* TDQ primary blue */
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* Prevent purple visited links */
.contact-info a:visited,
.section-panel a.copyable:visited {
  color: #1f3c6d;
}

/* Hover effect */
.contact-info a:hover,
.section-panel a.copyable:hover {
  color: #0d2a4d;
  border-bottom: 1px solid rgba(31, 60, 109, 0.4);
}
/* ===============================
   COPY TOOLTIP
=============================== */

.copyable {
  position: relative;
  cursor: pointer;
}

.copy-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f3c6d;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #1f3c6d transparent transparent transparent;
}

/* Active state */
.copyable.copied .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
}