/* MyDigital Crown - HTML Website Styles */
/* Converted from Tailwind CSS to vanilla CSS */

:root {
  --background: #ffffff;
  --foreground: #1e293b;
  --primary-blue: #2D4BB5;
  --secondary-blue: #3b82f6;
  --accent-purple: #7c3aed;
  --light-blue: #dbeafe;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --max-width: 1280px;
}

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Animations */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

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

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Navbar */
.navbar {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-icon svg {
  stroke: white;
}

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

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: white;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    flex-direction: row;
  }
  
  .nav-menu.active {
    position: static;
    box-shadow: none;
    padding: 0;
  }
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--secondary-blue);
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 16rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: #eff6ff;
  color: var(--secondary-blue);
}

.cta-button {
  background: linear-gradient(135deg, #2D4BB5, #2563eb);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(45, 75, 181, 0.4);
  transition: all 0.3s;
}

.cta-button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 75, 181, 0.5);
}

.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-button {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #1e3a8a, #2563eb, #3b82f6);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom right, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 6rem;
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 6.5rem;
  }
}

.hero h2 {
  font-size: 2.25rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero h2 {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .hero h2 {
    font-size: 3.5rem;
  }
}

.hero p {
  font-size: 1.75rem;
  color: #dbeafe;
  max-width: 56rem;
  margin: 0 auto 3rem;
  font-weight: 600;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .hero p {
    font-size: 2rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(to right, #fbbf24, #f97316, #ef4444);
  color: white;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(251, 146, 60, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--secondary-blue);
  border: 4px solid white;
}

.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.5);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(24px);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1) translateY(-8px);
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.4);
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.1), rgba(239, 68, 68, 0.05));
  opacity: 0;
  transition: opacity 0.5s;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 32px;
  height: 32px;
  background: linear-gradient(to right, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: rotate(12deg);
  transition: transform 0.3s;
}

.stat-card:hover::after {
  transform: rotate(45deg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #dbeafe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3.5rem;
  }
}

.stat-label {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

/* Section Styles */
.section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card Styles */
.card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 1px solid #f3f4f6;
}

.card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
  border-color: #dbeafe;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.card-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--secondary-blue);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  color: var(--primary-blue);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a);
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-cta {
  text-align: center;
  margin-bottom: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
}

/* Footer Company Info - spans 2 columns on desktop */
.footer-company-info {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-company-info {
    grid-column: span 2;
  }
}

/* Mobile Footer Responsive Styles */
@media (max-width: 767px) {
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .footer-section {
    margin-bottom: 1rem !important;
  }
  
  .footer-social-icons {
    justify-content: center !important;
  }
  
  .footer-company-info {
    text-align: center;
  }
  
  .footer-company-info img {
    margin: 0 auto;
  }
  
  .footer-company-info h4 {
    justify-content: center !important;
  }
  
  .footer-title {
    justify-content: center !important;
  }
}

/* Floating Buttons */
.floating-buttons-right {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floating-buttons-left {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.floating-btn-call {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.floating-btn-whatsapp {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

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

.text-gradient {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

.hidden {
  display: none;
}

@media (min-width: 1024px) {
  .lg-block {
    display: block;
  }
  
  .lg-hidden {
    display: none;
  }
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Background Gradients */
.bg-gradient-blue {
  background: linear-gradient(135deg, #eff6ff, white, #dbeafe);
}

.bg-gradient-gray {
  background: linear-gradient(135deg, #f9fafb, white, #eff6ff);
}

/* Details/Summary (FAQ) */
details {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

summary {
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--secondary-blue);
  transition: transform 0.3s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details[open] {
  background: #eff6ff;
  border-color: var(--secondary-blue);
}

details p {
  margin-top: 1rem;
  color: #4b5563;
  line-height: 1.8;
}

/* Enquiry Form Responsive Layout */
@media (max-width: 767px) {
  section[style*="background: linear-gradient(135deg, #1e3a8a"] div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* About Section Responsive */
  section[style*="background: #f9fafb"] div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Why Choose Us Section Responsive */
  section[style*="background: linear-gradient(135deg, #4c1d95"] div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Services Section Responsive */
  section[style*="background: #ffffff"][style*="padding: 5rem 0"] div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Free Strategy Session Stats Grid Responsive */
  section[style*="background: linear-gradient(135deg, #2563eb"] div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Client Success Stories Stats Grid Responsive */
  section[style*="background: linear-gradient(135deg, #1e3a8a"] div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Client Success Stories Testimonials Responsive */
  section[style*="background: linear-gradient(135deg, #1e3a8a"] div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Our Happy Clients Logo Grid Responsive */
  section[style*="background: linear-gradient(135deg, #1e3a8a"] div[style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

/* Visit Our Offices Cards Responsive */
section[style*="background: linear-gradient(135deg, #f8fafc"] div[style*="grid-template-columns: repeat(3, 1fr)"] {
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
}

/* FAQ Section Responsive */
section[style*="background: linear-gradient(135deg, #1e3a8a, #5b21b6"] div[style*="grid-template-columns: repeat(2, 1fr)"] {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

section[style*="background: linear-gradient(135deg, #1e3a8a, #5b21b6"] h2 {
  font-size: 2rem !important;
}

section[style*="background: linear-gradient(135deg, #1e3a8a, #5b21b6"] h3 {
  font-size: 1.5rem !important;
}

/* FAQ Answer Styles */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-answer {
  display: block !important;
}

.faq-item:hover {
  background: rgba(139, 92, 246, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.faq-arrow {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}
}

/* ============================================ */
/* MOBILE-FIRST & PAGESPEED OPTIMIZATIONS */
/* ============================================ */

/* Touch-friendly tap targets for mobile */
@media (max-width: 767px) {
  .btn, .cta-button, .dropdown-toggle, .nav-link, .mobile-menu-button {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
  }

  /* 2-column grids become single column on mobile (except stats) */
  [style*="grid-template-columns: repeat(2, 1fr)"]:not(.stats-grid) {
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns:repeat(2,1fr)"]:not(.stats-grid) {
    grid-template-columns: 1fr !important;
  }

  /* Hero section mobile optimization */
  .hero h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }

  .hero h2 {
    font-size: 1.5rem !important;
  }

  .hero p {
    font-size: 1.125rem !important;
  }

  /* Stats grid mobile - 2 columns */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .stat-card {
    padding: 1.5rem 1rem !important;
  }

  .stat-number {
    font-size: 2.5rem !important;
  }

  /* Services grid mobile */
  .services-grid, 
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Form inputs mobile-friendly */
  input, textarea, select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  /* Buttons full width on mobile */
  .hero-buttons {
    flex-direction: column !important;
  }

  .hero-buttons a, .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Container padding mobile */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Navbar mobile optimization */
  .navbar-container {
    padding: 0 1rem !important;
  }

  /* Reduce section padding on mobile */
  .section {
    padding: 3rem 0 !important;
  }

  /* FAQ items mobile */
  .faq-item h4 {
    font-size: 1rem !important;
  }

  /* Testimonial cards mobile */
  div[style*="grid-template-columns"][style*="gap: 2rem"] {
    gap: 1rem !important;
  }
}

/* Tablet optimization */
@media (min-width: 768px) and (max-width: 1023px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .hero h1 {
    font-size: 3.5rem !important;
  }
}

/* Performance: Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Improve font rendering */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Images responsive by default */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Better touch scrolling on iOS */
* {
  -webkit-overflow-scrolling: touch;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3b82f6;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* Print styles */
@media print {
  .navbar, .floating-buttons-left, .floating-buttons-right,
  .mobile-menu-button, .dropdown-menu {
    display: none !important;
  }

  body {
    color: black;
    background: white;
  }

  a {
    text-decoration: underline;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn, .cta-button {
    border: 2px solid currentColor;
  }

  .stat-card, .card {
    border: 2px solid currentColor !important;
  }
}

/* ============================================ */
/* RESPONSIVE GRID UTILITIES */
/* ============================================ */

/* Responsive Grid Classes - Mobile-First Approach */
.responsive-grid-2,
.responsive-grid-3,
.responsive-grid-4,
.responsive-grid-5 {
  display: grid !important;
  gap: 2rem;
  width: 100%;
}

/* Mobile: All grids are single column by default */
.responsive-grid-2,
.responsive-grid-3,
.responsive-grid-4,
.responsive-grid-5 {
  grid-template-columns: 1fr !important;
}

/* Tablet: 2 columns for most grids */
@media (min-width: 768px) {
  .responsive-grid-2,
  .responsive-grid-3,
  .responsive-grid-4,
  .responsive-grid-5 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Desktop: Full column counts */
@media (min-width: 1024px) {
  .responsive-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .responsive-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .responsive-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  
  .responsive-grid-5 {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* Mobile: All grids with inline styles become single column */
@media (max-width: 767px) {
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns:repeat(5"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Stats can be 2 columns on mobile for better use of space */
  [style*="grid-template-columns: repeat(4, 1fr)"][style*="stat"],
  [style*="grid-template-columns:repeat(4,1fr)"][style*="stat"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Tablet: 2 columns for most grids with inline styles */
@media (min-width: 768px) and (max-width: 1023px) {
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns:repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Ensure max-width containers */
@media (min-width: 1280px) {
  [style*="max-width: 1200px"],
  [style*="max-width: 64rem"],
  [style*="max-width: 72rem"] {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Prevent Browser Dark Mode Overrides - Force Light Theme */
@media (prefers-color-scheme: dark) {
  /* Only force white background on body, not color */
  html {
    color-scheme: light !important;
  }
  
  body {
    color-scheme: light !important;
    background-color: white !important;
  }
  
  /* Ensure service cards stay white - more specific selectors */
  section div[style*="background: white"],
  section > div > div[style*="background: white"],
  div[style*="border-radius: 1.5rem"][style*="padding: 2.5rem"][style*="background: white"],
  [style*="background: white !important"] {
    background-color: #ffffff !important;
    background: white !important;
    filter: none !important;
    -webkit-filter: none !important;
  }
  
  /* Preserve gradient backgrounds */
  section[style*="background: linear-gradient"],
  div[style*="background: linear-gradient"] {
    filter: none !important;
    -webkit-filter: none !important;
  }
}

/* Global override for dark mode - apply to all states */
html {
  color-scheme: light !important;
}

body {
  color-scheme: light !important;
  background-color: white !important;
}

