:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fef3c7;
  --dark: #111827;
  --dark-light: #1f2937;
  --light: #f9fafb;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --success: #10b981;
  --error: #ef4444;

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --container-max-width: 1200px;
  --header-height: 80px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Responsive Typography */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --fs-base: clamp(1rem, 0.95rem + 0.5vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.75vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 1.1rem + 1vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.3rem + 1.5vw, 2.3rem);
  --fs-3xl: clamp(2rem, 1.8rem + 2.5vw, 3.5rem);
  --fs-huge: clamp(2.5rem, 2.2rem + 4.5vw, 5rem);

  --pattern-opacity: 0.05;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section {
  padding: 50px 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.bg-dark {
  background-color: var(--dark);
  color: var(--white);
}

.bg-light {
  background-color: var(--light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  gap: 10px;
  font-size: var(--fs-base);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
}

/* Header */
header {
  height: var(--header-height);
  background: var(--white);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  gap: 10px;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--fs-huge);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: slideUp 0.8s ease-out;
}

.hero p {
  font-size: var(--fs-lg);
  max-width: 600px;
  margin-bottom: 30px;
  animation: slideUp 1s ease-out;
}

.urdu-tagline {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
  font-size: 1.2rem;
  letter-spacing: 1px;
  min-height: 1.5em;
  transition: opacity 0.5s ease;
}

/* Page Header with Pattern */
.page-header {
  position: relative;
  padding: 40px 0;
  background-color: var(--light);
  border-bottom: 1px solid var(--gray-light);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--primary) 0.5px, transparent 0.5px);
  background-size: 15px 15px;
  opacity: var(--pattern-opacity);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.faq-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-content {
  padding: 0 20px 20px;
  max-height: 200px;
}

.faq-toggle i {
  transition: var(--transition);
}

.faq-item.active .faq-toggle i {
  transform: rotate(180deg);
}

/* Sticky Bottom Mobile Bar */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  grid-template-columns: repeat(3, 1fr);
}

.sticky-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-right: 1px solid var(--gray-light);
}

.sticky-bar-item i {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .sticky-mobile-bar {
    display: grid;
  }

  body {
    padding-bottom: 60px;
  }
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo i {
  font-size: 2rem;
}

.footer-links h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--primary);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--gray);
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Utility for patterns */
.bg-pattern {
  position: relative;
}

.bg-pattern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(45deg, var(--gray-light) 25%, transparent 25%),
    linear-gradient(-45deg, var(--gray-light) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--gray-light) 75%),
    linear-gradient(-45deg, transparent 75%, var(--gray-light) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.03;
  pointer-events: none;
}

/* Legal Content Styling */
.legal-content h2 {
  margin: 30px 0 15px;
  color: var(--dark);
  font-size: 1.5rem;
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

.legal-content p {
  margin-bottom: 20px;
  color: var(--gray);
}

.legal-content ul {
  margin: 0 0 20px 20px;
  list-style: disc;
}

.legal-content ul li {
  margin-bottom: 10px;
  color: var(--gray);
}