/*
Theme Name: GWTech
Theme URI: https://gwtech.sa
Author: GW Technology Company Ltd.
Author URI: https://gwtech.sa
Description: Official GWTech website theme - bilingual EN/AR, modern corporate style.
Version: 1.0.0
License: Proprietary
Text Domain: gwtech
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Brand Colors)
   ============================================================ */
:root {
  --primary:      #2E3F99;
  --primary-dark: #1c2b73;
  --primary-10:   rgba(46, 63, 153, 0.10);
  --primary-20:   rgba(46, 63, 153, 0.20);
  --primary-30:   rgba(46, 63, 153, 0.30);
  --bg:           #F8F9FA;
  --white:        #ffffff;
  --text:         #212529;
  --muted:        #A8A7A7;
  --muted-20:     rgba(168, 167, 167, 0.20);
  --muted-30:     rgba(168, 167, 167, 0.30);
  --muted-40:     rgba(168, 167, 167, 0.40);
  --border-r:     12px;
  --border-r-lg:  20px;
  --border-r-xl:  24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.lang-ar {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 { font-weight: 800; color: var(--primary); line-height: 1.2; }
p { color: var(--text); }

.section-badge {
  display: inline-block;
  background: var(--primary-10);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid var(--primary-20);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 48px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.bg-white { background: var(--white); }
.bg-light { background: var(--bg); }
.bg-primary { background: var(--primary); }

.border-y { border-top: 1px solid var(--muted-30); border-bottom: 1px solid var(--muted-30); }
.border-b { border-bottom: 1px solid var(--muted-30); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(46, 63, 153, 0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: scale(1.03); }

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--muted-40);
}
.btn-outline:hover { background: var(--bg); }

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { background: #f0f0f0; transform: scale(1.03); }

.btn-sm {
  padding: 10px 20px;
  border-radius: var(--border-r);
  font-size: 14px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 24px;
  margin-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

body.lang-ar .nav-actions {
  padding-left: 0; margin-left: 0;
  padding-right: 24px; margin-right: 24px;
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.lang-switcher:hover { color: #fff; }
.lang-switcher svg { width: 16px; height: 16px; }

.nav-consult-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-consult-btn:hover { background: #f0f0f0; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--muted-20);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 12px 24px 20px; }
.mobile-menu ul li a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--bg);
}
.mobile-menu ul li a:first-child { color: var(--primary); }
.mobile-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
}

@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   HERO — VIDEO BACKGROUND
   ============================================================ */
.hero-video-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20, 28, 80, 0.82) 0%,
    rgba(46, 63, 153, 0.70) 60%,
    rgba(10, 16, 55, 0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 120px 24px 80px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

body.lang-ar .hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.4;
  letter-spacing: 0;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white-solid {
  background: #ffffff;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-white-solid:hover { background: #f0f0f0; transform: scale(1.03); }

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-white svg { width: 20px; height: 20px; stroke: white; }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   PARTNERS STRIP
   ============================================================ */
#partners {
  padding: 40px 0;
  background: var(--white);
  border-top: 1px solid var(--muted-30);
  border-bottom: 1px solid var(--muted-30);
}

.partners-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 64px;
}

.partner-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--muted);
  transition: color 0.2s;
  user-select: none;
}
.partner-name:hover { color: var(--primary); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background: var(--white);
  padding: 96px 0;
  border-bottom: 1px solid var(--muted-30);
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text > p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 40px;
  color: var(--text);
}

.about-facts { display: flex; flex-direction: column; gap: 24px; }

.fact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--muted-30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fact-icon svg { width: 22px; height: 22px; color: var(--primary); stroke: var(--primary); }

.fact-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.fact-content p { font-size: 14px; color: #707070; line-height: 1.6; }

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-images .col { display: flex; flex-direction: column; gap: 16px; }
.about-images .col.offset { padding-top: 48px; }

.about-images img {
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-images .img-tall { height: 260px; }
.about-images .img-short { height: 200px; }

/* ============================================================
   CASE STUDIES / PROVEN RESULTS
   ============================================================ */
#work {
  background: var(--bg);
  padding: 96px 0;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto; }

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

.case-card {
  background: var(--white);
  border-radius: var(--border-r-xl);
  padding: 36px;
  border: 1px solid var(--muted-30);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
}
.case-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.case-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.case-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-10);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.case-icon svg { width: 28px; height: 28px; stroke: var(--primary); }

.case-header h3 { font-size: 18px; margin-bottom: 2px; }
.case-header .case-sub { font-size: 13px; color: var(--muted); font-weight: 500; }

.case-blocks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.case-block {
  border-radius: 12px;
  padding: 18px 20px;
}
.case-block.challenge {
  background: var(--bg);
  border: 1px solid var(--muted-20);
}
.case-block.solution {
  background: var(--white);
  border: 1px solid var(--primary-30);
}

.case-block-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.challenge .case-block-label { color: var(--muted); }
.solution .case-block-label { color: var(--primary); }
.case-block p { font-size: 14px; line-height: 1.65; }

.case-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--muted-30);
}
.stat-val { display: block; font-size: 36px; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  background: var(--white);
  padding: 96px 0;
  border-top: 1px solid var(--muted-30);
  border-bottom: 1px solid var(--muted-30);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}
.services-header .badge-line {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.services-header h2 { font-size: clamp(2rem, 4vw, 3rem); }
.catalog-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.catalog-link:hover { color: var(--primary-dark); }

.service-card {
  background: var(--bg);
  border-radius: var(--border-r-lg);
  padding: 32px;
  border: 1px solid var(--muted-30);
  transition: all 0.3s;
  cursor: pointer;
}
.service-card:hover {
  border-color: rgba(46,63,153,0.5);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-10);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-icon svg { width: 28px; height: 28px; stroke: var(--primary); }

.service-card h4 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text); line-height: 1.65; margin-bottom: 24px; }

.learn-more {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* ============================================================
   AI ARCHITECT SECTION
   ============================================================ */
#ai-consult {
  background: var(--bg);
  padding: 96px 0;
}

.ai-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--border-r-xl);
  padding: 56px;
  border: 1px solid var(--muted-30);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.ai-header-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-header-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.ai-header h2 { font-size: clamp(1.6rem, 3vw, 2rem); }

.ai-desc { font-size: 16px; line-height: 1.75; margin-bottom: 28px; }

#ai-textarea {
  width: 100%;
  height: 120px;
  background: var(--bg);
  border: 1px solid rgba(168,167,167,0.5);
  border-radius: 12px;
  padding: 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  display: block;
  margin-bottom: 16px;
}
#ai-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-10); }
#ai-textarea::placeholder { color: var(--muted); }

#ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  width: auto;
  max-width: fit-content;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
#ai-btn svg { width: 15px; height: 15px; flex-shrink: 0; display: block; }
#ai-btn:hover:not(:disabled) { background: var(--primary-dark); }
#ai-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ai-output {
  margin-top: 28px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--primary-30);
  border-radius: 16px;
  display: none;
}
.ai-output.visible { display: block; }
.ai-output-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.ai-output-title svg { width: 20px; height: 20px; stroke: var(--primary); }
.ai-output-body { font-size: 15px; line-height: 1.75; }
.ai-output-body p { margin-bottom: 8px; }
.ai-output-body p:last-child { margin-bottom: 0; }

.ai-error {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 10px;
  color: #dc2626;
  font-size: 14px;
  display: none;
}
.ai-error.visible { display: block; }

/* ============================================================
   CTA BAND
   ============================================================ */
#cta-band {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}
#cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 20px; }
#cta-band p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--bg);
  border-top: 1px solid var(--muted-40);
  padding: 48px 0;
}

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

.footer-logo img { height: 48px; width: auto; opacity: 0.9; }
.footer-logo img:hover { opacity: 1; }

.footer-contact {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
  text-decoration: none;
  line-height: 1;
}
.footer-contact-item:hover { color: var(--primary); }

.footer-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.footer-icon svg { width: 17px; height: 17px; display: block; }

.footer-copy { font-size: 13px; color: var(--muted); }

/* ============================================================
   MODAL (Consultation Form)
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 540px;
  position: relative;
  margin: auto;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}
body.lang-ar .modal-close { right: auto; left: 20px; }
.modal-close:hover { color: var(--text); }

.modal-box h3 { font-size: 22px; color: var(--primary); margin-bottom: 8px; }
.modal-box .modal-sub { font-size: 14px; color: #707070; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(168,167,167,0.4);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-10);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
  background: rgba(220,38,38,0.04);
}
.form-group .err-msg {
  display: none;
  font-size: 11px;
  color: #dc2626;
  margin-top: 4px;
}
.form-group .err-msg.visible { display: block; }
.form-group textarea { resize: none; height: 100px; }

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid rgba(168,167,167,0.4);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.captcha-row label { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; flex-shrink: 0; }
.captcha-row input {
  width: 70px;
  text-align: center;
  padding: 8px;
  border: 1px solid rgba(168,167,167,0.4);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}
.captcha-row input:focus { border-color: var(--primary); }
.captcha-err { font-size: 11px; color: #dc2626; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
}
body.lang-ar .modal-footer { justify-content: flex-start; }

.form-cancel {
  padding: 10px 20px;
  border: 1px solid rgba(168,167,167,0.5);
  border-radius: 8px;
  color: #707070;
  font-weight: 600;
  font-size: 14px;
  background: none;
  cursor: pointer;
}
.form-cancel:hover { background: var(--bg); }

.form-submit {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.form-submit:hover:not(:disabled) { background: var(--primary-dark); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  text-align: center;
  padding: 32px 0;
  display: none;
}
.form-success.visible { display: block; }
.form-success svg { width: 56px; height: 56px; stroke: #16a34a; margin: 0 auto 16px; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: #707070; }

/* Service Details Modal */
.service-detail-icon {
  width: 64px; height: 64px;
  background: var(--primary-10);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-detail-icon svg { width: 32px; height: 32px; stroke: var(--primary); }

.service-features {
  background: var(--bg);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--muted-20);
  margin: 20px 0 28px;
}
.service-features h4 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-features ul { list-style: none; }
.service-features ul li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 10px;
}
.service-features ul li::before { content: "•"; color: var(--primary); flex-shrink: 0; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

/* Base hidden state — set before JS kicks in */
.anim-fade-up,
.anim-fade-left,
.anim-fade-right,
.anim-scale {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.anim-fade-up    { transform: translateY(36px); }
.anim-fade-left  { transform: translateX(-36px); }
.anim-fade-right { transform: translateX(36px); }
.anim-scale      { transform: scale(0.94); }

/* Visible state — added by IntersectionObserver */
.anim-fade-up.in-view,
.anim-fade-left.in-view,
.anim-fade-right.in-view,
.anim-scale.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger delays for card grids */
.anim-delay-1 { transition-delay: 0.08s; }
.anim-delay-2 { transition-delay: 0.16s; }
.anim-delay-3 { transition-delay: 0.24s; }
.anim-delay-4 { transition-delay: 0.32s; }
.anim-delay-5 { transition-delay: 0.40s; }
.anim-delay-6 { transition-delay: 0.48s; }
.anim-delay-7 { transition-delay: 0.56s; }
.anim-delay-8 { transition-delay: 0.64s; }

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-fade-left,
  .anim-fade-right,
  .anim-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   SPINNER
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.spinner-dark {
  border-color: rgba(46,63,153,0.3);
  border-top-color: var(--primary);
}

/* ============================================================
   SERVICES — 5-card layout
   ============================================================ */
.services-sub { font-size: 16px; color: var(--muted); margin-top: 8px; }

.services-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .services-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .services-grid-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .services-grid-5 { grid-template-columns: 1fr; }
}

/* ============================================================
   INDUSTRIES WE SERVE
   ============================================================ */
.bg-primary-dark-section {
  background: linear-gradient(135deg, #1c2b73 0%, var(--primary) 60%, #3a4fa8 100%);
  padding: 96px 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.industry-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.industry-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}
.industry-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.industry-icon svg { width: 22px; height: 22px; stroke: white; }
.industry-card span {
  font-size: 15px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .industries-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   WHY CHOOSE GW TECH
   ============================================================ */
#why.bg-white.border-y { padding-top: 80px; }

.why-card {
  background: var(--bg);
  border: 1px solid var(--muted-30);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
}
.why-card:hover {
  border-color: var(--primary-30);
  box-shadow: 0 8px 24px rgba(46,63,153,0.1);
  transform: translateY(-3px);
}
.why-dot {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-bottom: 16px;
}
.why-card h4 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  padding: 140px 0 60px;
  background: var(--bg);
  text-align: center;
}
.contact-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.contact-hero p { font-size: 17px; color: #707070; max-width: 500px; margin: 0 auto; }

.contact-body {
  background: var(--white);
  padding: 64px 0 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 { font-size: 20px; margin-bottom: 24px; }
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: var(--primary-10);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; stroke: var(--primary); }
.contact-detail-body .label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
.contact-detail-body .val { font-size: 15px; font-weight: 600; color: var(--text); }

.contact-form-box {
  background: var(--bg);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--muted-30);
}
.contact-form-box h3 { font-size: 20px; margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .about-images { display: none; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-conte