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

:root {
  --primary: #285c9c;
  --primary-dark: #1e4a7e;
  --primary-light: #3a7fd5;
  --secondary: #333333;
  --text: #444444;
  --text-light: #666666;
  --text-dark: #1a1a1a;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-grey: #e9ecef;
  --border: #dee2e6;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(40,92,156,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(40,92,156,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.btn svg, .btn i {
  font-size: 1.1em;
}

/* ===== SECTION UTILITIES ===== */
.section {
  padding: 90px 0;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 40px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* ===== HEADER / NAVBAR ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.grid-logo img,
.header-logo img {
  height: 80px; /* Increased from 55px */
  width: auto;
  transition: var(--transition);
}

.header-logo img:hover {
  transform: scale(1.05);
}

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

.nav-links a {
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--secondary);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(40,92,156,0.06);
}

.nav-cta {
  margin-left: 12px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.88rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
  transition: var(--transition);
  margin: 5px 0;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin-top: 104px; /* Increased to match larger logo/header height */
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.7) 0%,
    rgba(40,92,156,0.5) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 700px;
  padding: 60px 20px 0; /* Added top padding */
  margin: 0 auto 0 8%;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.15);
}

/* ===== FORM SECTION ===== */
.form-section {
  background: var(--off-white);
}

.form-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.form-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 520px;
}

.form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-wrapper h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40,92,156,0.12);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-wrapper .btn {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 1rem;
  margin-top: 6px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--light-grey);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.services-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 45px;
  flex-wrap: wrap;
}

/* ===== BENEFITS / WHY US ===== */
.benefits-section {
  background: var(--off-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.benefit-card {
  background: var(--white);
  padding: 35px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(40,92,156,0.1), rgba(40,92,156,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  background: var(--primary);
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon svg {
  stroke: var(--white);
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== ACTION PLAN / HOW IT WORKS ===== */
.action-plan-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 50px;
}

.action-step {
  text-align: center;
  position: relative;
}

.action-step-image {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.action-step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.action-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 15px rgba(40,92,156,0.3);
}

.action-step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.action-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* Connector lines between steps */
.action-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 290px;
  right: -18px;
  width: 36px;
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 45px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about .footer-logo img {
  height: 80px;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ===== AUTHORITY / SOLUTION SECTION ===== */
.authority-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.authority-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.authority-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.authority-content .section-title {
  font-size: 2.2rem;
}

.authority-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}

.authority-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--light-grey);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* ===== FAQ ACCORDION ===== */
.faq-section {
  background: var(--off-white);
}

.faq-list {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--light-grey);
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(40,92,156,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  background: var(--primary);
  transform: rotate(45deg);
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  stroke-width: 2.5;
  fill: none;
  transition: var(--transition);
}

.faq-item.active .faq-icon svg {
  stroke: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 28px 22px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== GALLERY / PORTFOLIO ===== */
.gallery-intro {
  max-width: 700px;
  margin: 0 auto 50px;
}

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

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40,92,156,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(40,92,156,0.35);
}

.gallery-item-overlay svg {
  width: 36px;
  height: 36px;
  fill: var(--white);
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: scale(1);
}

.gallery-item.video-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(40,92,156,0.85);
  border-radius: 50%;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.gallery-item.video-item:hover::after {
  background-color: var(--primary);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

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

.lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  stroke-width: 2.5;
  fill: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  stroke-width: 2.5;
  fill: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-white {
  font-size: 1rem;
  padding: 15px 35px;
}

/* ===== THANK YOU PAGE ===== */
.thankyou-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
}

.thankyou-content {
  max-width: 550px;
}

.thankyou-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(40,92,156,0.15), rgba(40,92,156,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.thankyou-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

.thankyou-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.thankyou-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 35px;
  line-height: 1.7;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 140px 0 70px;
  text-align: center;
  margin-top: 104px;
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .authority-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .hero {
    margin-top: 96px; /* Adjusted for mobile header scale */
  }

  .page-hero {
    margin-top: 96px;
    padding: 120px 0 50px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 4px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
  }

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

  .mobile-toggle {
    display: block;
  }

  .hero-content {
    margin: 0 auto;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 0 40px; /* More padding so text isn't edge to edge */
  }

  .hero-content h1 {
    font-size: 2.2rem; /* Adjusted for better scale */
    text-align: center;
  }

  .hero-content p {
    font-size: 1rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .form-section .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-image {
    max-height: 300px;
  }

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

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .action-plan-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .action-step:not(:last-child)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  .authority-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.65rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .form-wrapper {
    padding: 24px;
  }

  .container {
    padding: 0 16px;
  }
}

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

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SERVICES PAGE DETAIL ===== */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  border: 1px solid var(--light-grey);
}

.service-detail-card:nth-child(even) {
  direction: rtl;
}

.service-detail-card:nth-child(even) > * {
  direction: ltr;
}

.service-detail-image {
  height: 100%;
  min-height: 320px;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-body {
  padding: 40px;
}

.service-detail-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.service-detail-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-detail-body ul {
  list-style: none;
  margin-top: 16px;
}

.service-detail-body ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text);
}

.service-detail-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

@media (max-width: 768px) {
  .service-detail-card {
    grid-template-columns: 1fr;
  }

  .service-detail-card:nth-child(even) {
    direction: ltr;
  }

  .service-detail-image {
    min-height: 220px;
  }

  .service-detail-body {
    padding: 24px;
  }
}

/* ===== MOBILE OVERLAY ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
