:root {
  --brand-blue: #2B9CD8;
  --brand-blue-dark: #1A7AB8;
  --brand-blue-light: #4DB8E8;
  --brand-green: #94C83D;
  --brand-green-dark: #7BAD2D;
  --brand-green-light: #A8D75F;
  --brand-navy: #1A2840;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: #111827;
  background: #fff;
}

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

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Navigation */
nav.site-nav {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.nav-logo img { height: 64px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: #374151;
  font-size: 1rem;
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-blue); font-weight: 600; }
.nav-cta {
  background: var(--brand-blue);
  color: #fff !important;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand-blue-dark) !important; color: #fff !important; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-mobile-toggle svg { width: 24px; height: 24px; }

.nav-mobile {
  display: none;
  padding-bottom: 1rem;
}
.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--brand-blue); background: #f9fafb; }
.nav-mobile a.active { color: var(--brand-blue); background: rgba(43,156,216,0.1); font-weight: 600; }
.nav-mobile .nav-cta-mobile {
  display: block;
  margin: 0.5rem 1rem 0;
  text-align: center;
  background: var(--brand-blue);
  color: #fff;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}

/* Footer */
footer.site-footer {
  background: #111827;
  color: #fff;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo img { height: 48px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-col h3 { font-weight: 600; margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #9CA3AF; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--brand-blue-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; }
.footer-contact-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand-blue); margin-top: 2px; }
.footer-contact-item a, .footer-contact-item span { color: #9CA3AF; font-size: 0.875rem; transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--brand-blue-light); }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}
.footer-bottom a { color: #9CA3AF; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* Common Layout */
.max-w-7xl { max-width: 1280px; margin: 0 auto; }
.px-container { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .px-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .px-container { padding-left: 2rem; padding-right: 2rem; } }

/* Sections */
.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }
.section-lg { padding: 6rem 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
  justify-content: center;
}
.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { background: var(--brand-blue-dark); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.btn-green { background: var(--brand-green); color: #fff; }
.btn-green:hover { background: var(--brand-green-dark); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.btn-white { background: #fff; color: var(--brand-blue); }
.btn-white:hover { background: #f3f4f6; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline-white:hover { background: #fff; color: var(--brand-blue); }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.125rem; }

/* Hero Section */
.hero { position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75), rgba(0,0,0,0.6), rgba(0,0,0,0.5));
  z-index: 1;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; width: 100%; }

/* Page hero (colored bg) */
.page-hero {
  padding: 5rem 0;
  text-align: center;
  background: var(--brand-blue);
  color: #fff;
}
.page-hero h1 { font-size: 3rem; margin-bottom: 1.5rem; font-weight: 800; }
.page-hero p { font-size: 1.25rem; max-width: 48rem; margin: 0 auto; }

/* Cards */
.card { background: #fff; border-radius: 0.75rem; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.card-p { padding: 2rem; }

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Icon circle */
.icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg { width: 32px; height: 32px; }
.icon-circle-sm {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-circle-sm svg { width: 24px; height: 24px; }
.ic-blue { background: var(--brand-blue); color: #fff; }
.ic-green { background: var(--brand-green); color: #fff; }
.ic-blue-light { background: rgba(43,156,216,0.1); color: var(--brand-blue); }

/* Text utilities */
.text-blue { color: var(--brand-blue); }
.text-green { color: var(--brand-green); }
.text-gray { color: #6B7280; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Testimonial */
.testimonial-card { background: #fff; border-radius: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,0.12); padding: 3rem; max-width: 48rem; margin: 0 auto; }
.testimonial-text { font-size: 1.25rem; color: #1F2937; line-height: 1.8; font-style: italic; font-weight: 500; margin-bottom: 2rem; }
.testimonial-meta { display: flex; align-items: center; justify-content: space-between; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-dots { display: flex; gap: 0.5rem; }
.testimonial-dot { width: 12px; height: 12px; border-radius: 50%; background: #D1D5DB; border: none; cursor: pointer; transition: all 0.3s; }
.testimonial-dot.active { background: var(--brand-blue); width: 32px; border-radius: 6px; }
.stars { display: flex; gap: 2px; }
.stars svg { width: 20px; height: 20px; color: var(--brand-blue); fill: var(--brand-blue); }

/* Gallery */
.gallery-wrapper { position: relative; }
.gallery-scroll { overflow-x: auto; scroll-behavior: smooth; }
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.gallery-track { display: flex; gap: 1.5rem; min-width: min-content; padding: 0 4rem; }
.gallery-item {
  flex-shrink: 0; width: 320px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 4px solid var(--brand-blue);
  transition: box-shadow 0.3s;
}
.gallery-item:nth-child(even) { border-color: var(--brand-green); }
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-blue); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  z-index: 5;
}
.gallery-btn:hover { transform: translateY(-50%) scale(1.1); }
.gallery-btn-prev { left: 0; }
.gallery-btn-next { right: 0; }
.gallery-btn svg { width: 24px; height: 24px; }

/* Service Areas pills */
.areas-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.area-pill {
  background: #fff; padding: 0.75rem 1.5rem; border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 2px solid var(--brand-blue);
  font-weight: 600; transition: box-shadow 0.2s;
}
.area-pill:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.area-pill-blue { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

/* Check list */
.check-list { list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.5rem; background: #fff; border-radius: 0.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 0.75rem; }
.check-list li svg { width: 24px; height: 24px; color: var(--brand-blue); flex-shrink: 0; margin-top: 2px; }
.check-list li span { font-size: 1rem; color: #374151; }
.check-list-simple li { background: none; box-shadow: none; padding: 0; margin-bottom: 0.75rem; }

/* Service hero */
.service-hero { position: relative; height: 500px; display: flex; align-items: center; overflow: hidden; }
.service-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,0.3)); z-index: 1; }
.service-hero-content { position: relative; z-index: 2; max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 1.5rem; color: #fff; }

/* Form styles */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 0.5rem; }
.form-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  background: #fff;
}
.form-input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(43,156,216,0.15); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Alert / success */
.alert-success {
  border-radius: 0.75rem; padding: 2rem;
  background: rgba(43,156,216,0.08);
  border: 1px solid rgba(43,156,216,0.3);
  text-align: center;
}
.alert-success svg { width: 48px; height: 48px; color: var(--brand-blue); margin: 0 auto 1rem; display: block; }

/* Promo banner */
@keyframes pulse-anim { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
.animate-pulse { animation: pulse-anim 2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* Service alt layout */
.service-block { display: flex; gap: 2rem; align-items: center; }
.service-block:nth-child(even) { flex-direction: row-reverse; }
.service-block-img { flex: 1; position: relative; }
.service-block-img img { width: 100%; height: 400px; object-fit: cover; border-radius: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,0.15); transition: transform 0.7s; }
.service-block-img:hover img { transform: scale(1.05); }
.service-block-icon {
  position: absolute; bottom: -24px; right: -24px;
  width: 96px; height: 96px; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s;
}
.service-block-img:hover .service-block-icon { transform: scale(1.1) rotate(6deg); }
.service-block-icon svg { width: 48px; height: 48px; color: #fff; }
.service-block-content { flex: 1; }
.service-block-tag { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.service-block-tag hr { width: 64px; height: 4px; border: none; border-radius: 2px; }
.service-block-content h3 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.service-block-content p { font-size: 1.125rem; color: #374151; line-height: 1.8; margin-bottom: 1.5rem; }
.service-block-pills { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.service-pill { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 9999px; border: 2px solid; font-weight: 600; font-size: 0.875rem; }
.service-pill svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
  .service-block, .service-block:nth-child(even) { flex-direction: column; }
  .service-block-img { width: 100%; }
  .service-block-content { width: 100%; }
  .service-block-icon { bottom: -16px; right: -16px; width: 72px; height: 72px; }
  .service-block-icon svg { width: 36px; height: 36px; }
}

/* Prose */
.prose h2 { font-size: 1.875rem; font-weight: 700; margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.5rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.prose p { color: #374151; line-height: 1.8; margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; color: #374151; }
.prose ul li { margin-bottom: 0.5rem; line-height: 1.8; }

/* Text center */
.text-center { text-align: center; }

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { padding: 2rem; }
  .testimonial-text { font-size: 1.1rem; }
}

@media (max-width: 768px) {
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }

  /* Contact page grid */
  section .contact-grid { display: flex; flex-direction: column; }

  /* Service blocks */
  .service-block, .service-block:nth-child(even) {
    flex-direction: column;
  }
  .service-block-icon { bottom: -12px; right: -12px; width: 60px; height: 60px; }
  .service-block-icon svg { width: 28px; height: 28px; }

  /* Hero text */
  .hero { min-height: 500px; }

  /* Gallery track on mobile */
  .gallery-track { padding: 0 2rem; }

  /* Footer grid */
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Testimonial meta */
  .testimonial-meta { flex-direction: column; gap: 1rem; align-items: flex-start; }

  /* Promo banner */
  .promo-inner { flex-direction: column; text-align: center; }

  /* Benefits grid on service pages */
  section .benefits-grid { grid-template-columns: 1fr 1fr; }

  /* About leadership grid */
  .leadership-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-item { width: 280px; }
  .btn-lg { padding: 1rem 1.5rem; font-size: 1rem; }
  .service-block-pills { flex-wrap: wrap; }
}

/* ===== CONTACT PAGE 2-COL FIX ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ===== SERVICES PAGE ALT IMAGE FIX ===== */
@media (max-width: 768px) {
  div[style*="direction:rtl"] { direction: ltr !important; }
}

/* Services page alternating rows */
.svc-row { display: flex; gap: 3rem; align-items: center; }
.svc-row > div { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .svc-row { flex-direction: column !important; }
  .svc-row > div { width: 100%; }
}

/* Services page 40/60 responsive */
@media (max-width: 768px) {
  .svc-img-col { flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Stack services page rows on mobile */
@media (max-width: 768px) {
  /* Force flex wrap + full width on the 40/60 image+content rows */
  div[style*="flex:0 0 40%"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
