/* ============================================
   DON AUTOMOBILE & ENGINEERING WORKS
   style.css — Premium Workshop Website (Light Theme)
   ============================================ */

/* -------- CSS VARIABLES -------- */
:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --red-light: #fff0f1;
  --red-glow: rgba(230, 57, 70, 0.10);
  --bg-dark: #ffffff;
  --bg-card: #f7f8fc;
  --bg-card2: #eef0f8;
  --border: rgba(0,0,0,0.08);
  --border-red: rgba(230,57,70,0.25);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --white: #ffffff;
  --font: 'Outfit', sans-serif;
  --font-ur: 'Noto Nastaliq Urdu', serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-red: 0 8px 30px rgba(230,57,70,0.22);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul { list-style: none; }

/* -------- SCROLLBAR -------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f5; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

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

.section { padding: 100px 0; position: relative; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  border-radius: 99px;
  padding: 5px 16px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.highlight { color: var(--red); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
}

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

.section-header .section-subtitle {
  margin: 0 auto;
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 99px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(230,57,70,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  background-color: rgba(255,255,255,0.08);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ==============================
   NAVBAR
   ============================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: var(--transition);
}

#navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.nav-logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 44px;
  height: 44px;
  margin-right: 12px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-en {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.logo-ur {
  font-family: var(--font-ur);
  font-size: 0.82rem;
  color: var(--red);
  direction: rtl;
}

.nav-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 99px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--red);
  background: var(--red-glow);
}

.nav-link.nav-cta {
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: 8px 20px;
}

.nav-link.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  margin-bottom: 5px;
}
.nav-toggle span:last-child { margin-bottom: 0; }

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

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

.hero-bg-img {
  object-position: center 30%;
  filter: brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,15,20,0.80) 0%,
    rgba(15,15,20,0.45) 50%,
    rgba(15,15,20,0.65) 100%
  );
}

.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, #ffffff, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 99px;
  padding: 6px 18px;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.15);
  animation: fadeInUp 0.6s ease both;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title-main {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-title-sub {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.hero-title-urdu {
  font-family: var(--font-ur);
  font-size: 1.4rem;
  color: var(--text-secondary);
  direction: rtl;
  margin-top: 4px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-actions .btn {
  margin-right: 14px;
  margin-bottom: 10px;
}

.hero-actions .btn:last-child { margin-right: 0; }

.hero-stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}

.stat:first-child { padding-left: 0; }

.stat-num {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  margin-top: 4px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  letter-spacing: 0.03em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: var(--red);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  -webkit-animation: bounce 2s ease infinite;
          animation: bounce 2s ease infinite;
  -webkit-transition: opacity 0.2s;
          transition: opacity 0.2s;
}

.hero-scroll-hint svg {
  width: 20px; height: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.hero-scroll-hint:hover { opacity: 0.8; color: var(--red); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

/* ==============================
   ABOUT
   ============================== */
.about { background: var(--bg-dark); }

.about-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 80px 1fr;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 80px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.about-images {
  position: relative;
  height: 560px;
}

.about-img-main {
  position: absolute;
  top: 0; left: 0;
  width: 70%;
  height: 80%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-img-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  height: 52%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-red);
  border: 2px solid var(--red-dark);
}

.about-experience-badge {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  background: var(--red);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  z-index: 2;
}

.exp-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.exp-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: center;
  line-height: 1.3;
  margin-top: 4px;
}

.about-desc {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.75;
}

.about-desc strong { color: var(--text-primary); }

.about-features {
  margin-top: 36px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.feature-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin-bottom: 20px;
}
.feature-item:last-child { margin-bottom: 0; }

.feature-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-right: 16px;
  color: var(--red);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==============================
   SERVICES
   ============================== */
.services {
  background: var(--bg-card);
}

.services-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(230,57,70,0.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(230,57,70,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.services-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 24px 1fr 24px 1fr;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
}

.service-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-red);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 0 0 1px rgba(230,57,70,0.12);
}

.service-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.service-card.featured {
  background: linear-gradient(135deg, rgba(230,57,70,0.08), rgba(193,18,31,0.04));
  border-color: var(--border-red);
}

.service-card.featured::before {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.service-badge-tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  border-radius: 99px;
  padding: 3px 12px;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--red);
  transition: var(--transition);
}

.service-icon-wrap svg { width: 30px; height: 30px; }

.service-card:hover .service-icon-wrap {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.service-list li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 7px;
}
.service-list li:last-child { margin-bottom: 0; }

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.7;
}

/* ==============================
   WHY CHOOSE US
   ============================== */
.why-us {
  background: var(--bg-dark);
}

.why-us-inner {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 80px 1fr;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 80px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.why-us-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.why-us-points {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.why-point {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin-bottom: 28px;
}
.why-point:last-child { margin-bottom: 0; }

.why-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  opacity: 0.4;
  line-height: 1;
  min-width: 44px;
  width: 44px;
  margin-right: 20px;
}

.why-point strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.why-point p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.why-us-visual {
  position: relative;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
}

.why-us-img {
  border-radius: var(--radius);
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.why-us-overlay-card {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.why-us-overlay-card svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  margin-right: 12px;
  min-width: 22px;
}

/* ==============================
   GALLERY
   ============================== */
.gallery {
  background: var(--bg-card);
}

.gallery-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  /* 2018-era padding-bottom hack for 4:3 aspect ratio instead of aspect-ratio property */
  padding-bottom: 75%;
  height: 0;
  width: 100%;
}

.gallery-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  -webkit-transition: -webkit-transform 0.5s ease;
          transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-large {
  grid-row: auto;
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
  color: var(--red);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 30px 16px 14px;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ==============================
   CONTACT
   ============================== */
.contact {
  background: var(--bg-dark);
}

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

.contact-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.contact-info .contact-card {
  margin-bottom: 20px;
}

.contact-info .contact-card:last-child { margin-bottom: 0; }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-transition: var(--transition);
          transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-red);
  transform: translateX(4px);
}

.contact-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-right: 18px;
  color: var(--red);
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-card h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.urdu-location {
  display: block;
  font-family: var(--font-ur);
  font-size: 1rem;
  color: var(--red);
  direction: rtl;
  margin-top: 6px;
}

/* FORM */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.04em;
}

input, textarea, select {
  width: 100%;
  background: var(--bg-dark);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

input:focus, textarea:focus, select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

select option { background: var(--bg-card); }

textarea { resize: vertical; min-height: 110px; }

.btn-primary svg { width: 18px; height: 18px; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: #16a34a;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-success svg { width: 20px; height: 20px; }

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: #1a1a2e;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo .logo-icon { width: 40px; height: 40px; }

/* Override logo text colors inside the dark footer */
.footer .logo-en {
  color: #ffffff;
}
.footer .logo-ur {
  color: var(--red);
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.70);
  transition: var(--transition);
}

.footer-links li a:hover { color: var(--red); padding-left: 4px; }

.footer-services li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.70);
}

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.70);
  line-height: 1.6;
}

.footer-urdu {
  font-family: var(--font-ur);
  font-size: 0.85rem;
  color: var(--red) !important;
  direction: rtl;
  margin-top: 8px !important;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom-ur {
  font-family: var(--font-ur);
  color: rgba(255,255,255,0.55);
  direction: rtl;
}

/* ==============================
   ANIMATIONS ON SCROLL
   ============================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==============================
   RESPONSIVE — TABLET
   ============================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-images { height: 400px; }
  .why-us-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-us-visual { height: 380px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==============================
   RESPONSIVE — MOBILE
   ============================== */
@media (max-width: 768px) {
  .section { padding: 70px 0; }

  /* ---- Nav ---- */
  /* Logo: shrink to fit next to hamburger */
  .nav-container { padding: 0 16px; gap: 8px; }
  .nav-logo .logo-icon { width: 34px !important; height: 34px !important; flex-shrink: 0; }
  .logo-text { max-width: 160px; overflow: hidden; }
  .logo-en { font-size: 0.68rem; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logo-ur { display: none; } /* hide Urdu text on very small screens to avoid overflow */
  .nav-toggle { display: flex; flex-shrink: 0; }

  /* Nav dropdown: slide in from top, fully hidden until .open */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: auto;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    flex-direction: column;
    padding: 12px 16px 20px;
    gap: 4px;
    /* Hidden state: moved fully above viewport */
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    text-align: center;
    font-size: 0.95rem;
  }

  .nav-link.nav-cta { margin-top: 6px; }

  /* ---- Hero ---- */
  .hero {
    min-height: 100svh; /* small viewport height unit for mobile browsers */
    padding-top: 0;
    align-items: center;
  }
  .hero-content { padding: 120px 20px 50px; /* top padding = nav height + breathing room */ }
  .hero-title-main { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-title-sub { font-size: clamp(1rem, 4.5vw, 1.5rem); }
  .hero-title-urdu { font-size: clamp(0.85rem, 3.5vw, 1.1rem); }
  .hero-badge { font-size: 0.7rem; padding: 5px 14px; margin-bottom: 20px; }
  .hero-desc { font-size: 0.9rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 10px; margin-bottom: 36px; }
  .hero-actions .btn { width: 100%; justify-content: center; font-size: 0.95rem; padding: 14px 20px; }
  .hero-stats { gap: 0; flex-wrap: wrap; justify-content: space-around; }
  .stat { padding: 6px 12px; align-items: center; text-align: center; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.68rem; }
  .stat-divider { height: 30px; }

  /* ---- About ---- */
  .about-images { height: 300px; }
  .about-img-main { width: 75%; height: 75%; }
  .about-img-accent { width: 60%; height: 50%; }
  .about-experience-badge { padding: 12px 16px; right: -2%; }
  .exp-num { font-size: 1.6rem; }

  /* ---- Services ---- */
  .services-grid { grid-template-columns: 1fr; }

  /* ---- Contact ---- */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  /* ---- Gallery ---- */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { padding-bottom: 62.5%; } /* 16:10 ratio on mobile */
  .gallery-item-large { grid-row: auto; }
  .gallery-caption { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; }

  /* ---- Footer ---- */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* ---- Why Us ---- */
  .why-us-visual { height: 260px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: center; gap: 10px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .service-card { padding: 24px 20px; }
}
