/*
Theme Name: MediiMedia AI Marketing Suite v3.3
Description: Professional WordPress theme for MediiMedia's AI-powered marketing platform. Features modern design, contact forms, and conversion-focused layouts with compact service cards.
Author: MediiMedia
Version: 3.3
Text Domain: mediimedia
*/

/* Import Tailwind-like utility classes */
:root {
  --color-primary: #2563EB;
  --color-secondary: #7C3AED;
  --color-accent: #FFD700;
  --color-text-dark: #1e293b;
  --color-text-light: #64748b;
  --color-background: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-accent-secondary: #FFA500;
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-background);
  width: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.main-content {
  width: 100%;
  max-width: 100vw;
  padding-top: 80px; /* Account for fixed header */
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* Header Navigation */
.site-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0;
  padding: 0;
}

.main-navigation a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--color-primary);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  padding: 6rem 0 4rem;
  margin-top: 0; /* Remove margin since main-content now has padding-top */
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
  font-size: 1.2rem;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.gradient-text {
  color: var(--color-accent);
  font-weight: 800;
}

@keyframes gradient-shift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(30deg); }
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: center;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-subtext strong {
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  color: var(--color-accent);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 120px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-icon {
  font-size: 1.2rem;
}

.hero-trust {
  margin-top: 3rem;
}

.trust-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-logo {
  font-size: 2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.trust-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Services Grid - Compact Version */
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 0.75rem !important;
  margin-top: 2rem !important;
}

/* Optimize for larger screens */
@media (min-width: 1400px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: white !important;
  padding: 0.75rem !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05) !important;
  transition: all 0.3s ease !important;
  border: 1px solid var(--color-gray-200) !important;
  text-align: center !important;
  min-height: 160px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
  border-color: var(--color-primary);
}

.service-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-dark);
  font-weight: 600;
}

.service-card p {
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--color-text-light);
  margin: 0;
  flex-grow: 1;
}

.service-icon {
  width: 28px;
  height: 28px;
  background: var(--gradient-primary);
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  color: white;
  font-size: 0.8rem;
}

.ai-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Modern Contact Form */
.modern-contact-section {
  position: relative;
  background: white;
  padding: 6rem 0 8rem;
  overflow: hidden;
}

.contact-bg-decoration {
  position: absolute;
  top: -10rem;
  left: 50%;
  transform: translateX(-50%) rotate(30deg);
  width: 72rem;
  height: 42rem;
  background: var(--gradient-primary);
  opacity: 0.2;
  border-radius: 50%;
  filter: blur(3rem);
  z-index: 0;
}

.contact-header {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 1;
}

.contact-header h2 {
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.contact-header p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.modern-contact-form {
  max-width: 36rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full-width {
  grid-column: span 2;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.625rem;
  line-height: 1.5;
}

.input-wrapper {
  margin-top: 0.625rem;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  border-radius: 0.375rem;
  background: white;
  padding: 0.875rem 0.875rem;
  font-size: 1rem;
  color: var(--color-text-dark);
  border: 1px solid var(--color-gray-300);
  transition: all 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-color: var(--color-primary);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-light);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.checkbox-wrapper label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.checkbox-wrapper a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.checkbox-wrapper a:hover {
  text-decoration: underline;
}

.form-submit {
  margin-top: 2.5rem;
}

.modern-submit-btn {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: white;
  padding: 0.625rem 0.875rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modern-submit-btn:hover {
  background: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.modern-submit-btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 2px solid var(--color-gray-200);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.pricing-featured {
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.pricing-featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-period {
  font-size: 1rem;
  color: var(--color-text-light);
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-gray-200);
  color: var(--color-text-dark);
}

.pricing-features li:last-child {
  border-bottom: none;
}

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

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 4px solid var(--color-primary);
}

.faq-item h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.faq-item p {
  color: var(--color-text-dark);
  line-height: 1.6;
  margin: 0;
}

/* Call to Action Section */
.cta-section {
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%);
  background-size: 20px 20px;
  animation: move 20s linear infinite;
}

@keyframes move {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

.cta-section h2,
.cta-section p {
  color: white;
  position: relative;
  z-index: 2;
}

.cta-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.cta-feature {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  color: white;
}

.cta-feature:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.25);
}

.cta-button {
  text-align: center;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.cta-button .btn {
  display: inline-block;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: all 0.3s ease;
}

.cta-button .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .cta-features {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */
.site-footer {
  background: var(--color-text-dark);
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.footer-info h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-contact .btn {
  margin-top: 1rem;
  display: inline-block;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.contact-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: fit-content;
}

/* Testimonial Section */
.testimonial-section {
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
}

.testimonial-section .btn {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

@media (max-width: 768px) {
  /* Global mobile constraints */
  body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }
  
  /* Force all sections to full width */
  .hero-section,
  .services-section,
  .contact-section,
  .footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }
  
  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* Hero Section Mobile Optimization */
  .hero-section {
    min-height: auto;
    padding: 2rem 1rem;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    overflow: visible;
    position: relative;
    left: 0;
    right: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  .hero-section * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .hero-content {
    padding: 0 1rem;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto;
    overflow: visible;
  }
  
  .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  .hero-description {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  .hero-subtext {
    font-size: 0.9rem !important;
    margin-bottom: 2rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* Responsive text sizing for better mobile readability */
  @media (max-width: 480px) {
    .hero-title {
      font-size: 1.3rem !important;
    }
    
    .hero-description {
      font-size: 0.75rem !important;
    }
    
    .hero-subtext {
      font-size: 0.7rem !important;
    }
  }
  
  .hero-stats {
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }
  
  .stat-item {
    padding: 1rem !important;
    min-width: 100px !important;
  }
  
  .stat-number {
    font-size: 1.8rem !important;
  }
  
  .stat-label {
    font-size: 0.8rem !important;
  }
  
  .hero-buttons {
    margin-bottom: 2rem !important;
  }
  
  .btn-large {
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
    width: 100% !important;
    max-width: 300px !important;
  }
  
  .hero-trust {
    margin-top: 2rem !important;
  }
  
  /* Hide decorative shapes on mobile to prevent overflow */
  .hero-shapes {
    display: none !important;
  }
  
  .shape {
    display: none !important;
  }
  
  /* Ensure hero background doesn't overflow */
  .hero-background {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  
  .trust-logos {
    gap: 1rem !important;
  }
  
  .trust-logo {
    font-size: 1.5rem !important;
  }
  
  /* Services Grid Mobile */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
  }
  
  .service-card {
    padding: 0.75rem;
    min-height: 180px;
  }
  
  .service-card h3 {
    font-size: 0.9rem;
  }
  
  .service-card p {
    font-size: 0.75rem;
  }
  
  .service-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .ai-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.4rem;
    margin-bottom: 0.4rem;
  }
  
  .modern-contact-section {
    padding: 4rem 0 6rem;
  }
  
  .contact-header h2 {
    font-size: 2.5rem;
  }
  
  .contact-bg-decoration {
    width: 48rem;
    height: 28rem;
    top: -6rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-field.full-width {
    grid-column: span 1;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }
  
  .hero-description {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  .hero-subtext {
    font-size: 0.8rem !important;
  }
  
  .hero-stats {
    gap: 0.75rem !important;
  }
  
  .stat-item {
    padding: 0.75rem !important;
    min-width: 80px !important;
  }
  
  .stat-number {
    font-size: 1.5rem !important;
  }
  
  .stat-label {
    font-size: 0.7rem !important;
  }
  
  .btn-large {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .service-card {
    padding: 1rem !important;
    min-height: auto !important;
  }
  
  .service-card h3 {
    font-size: 1rem !important;
  }
  
  .service-card p {
    font-size: 0.8rem !important;
  }
}

/* Mobile Menu Toggle - Hidden by default on desktop */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  gap: 4px;
}

/* Mobile Authentication Buttons - Hidden on desktop */
.mobile-auth-buttons {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--color-gray-200);
  margin-top: 1rem;
}

.mobile-auth-buttons .btn {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem !important;
    flex-wrap: nowrap;
    position: relative;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .site-logo {
    font-size: 1.5rem !important;
  }
  
  /* Hide desktop auth buttons on mobile */
  .auth-buttons {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Show mobile auth buttons in menu */
  .mobile-auth-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 1rem !important;
    border-top: 1px solid var(--color-gray-200) !important;
    margin-top: 1rem !important;
    width: 100% !important;
  }
  
  .mobile-auth-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    order: 3;
    margin-left: auto;
    z-index: 1001;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    z-index: 999;
    transition: all 0.3s ease;
    border-top: 1px solid var(--color-gray-200);
    box-sizing: border-box;
  }

  .main-navigation.active {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 80vh !important;
    overflow-y: auto;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    margin: 0;
    list-style: none;
  }

  .main-navigation li {
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1rem 0;
  }

  .main-navigation li:last-child {
    border-bottom: none;
  }

  .auth-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
  }
}

@media (min-width: 769px) {
  .main-navigation {
    display: block !important;
  }
  
  .mobile-menu-toggle {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-item {
    min-width: 100px;
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-large {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .trust-logos {
    gap: 1rem;
  }
  
  .trust-logo {
    font-size: 1.5rem;
  }
  
  .hero-badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .shape {
    display: none;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

/* WordPress Specific Classes */
.post {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.post-title {
  margin-bottom: 1rem;
}

.post-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.page-header {
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.page-title {
  margin-bottom: 0.5rem;
}

.page-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.post-content {
  line-height: 1.8;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Mobile blog image sizing */
@media (max-width: 768px) {
  .post-content img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 0.5rem !important;
    margin: 1rem 0 !important;
  }
  
  .blog-card-image {
    height: 80px !important;
    max-height: 80px !important;
  }
  
  .blog-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* Scroll Offset for Fixed Header */
#services,
#contact {
  scroll-margin-top: 100px;
}

/* Blog Page Styles */
.blog-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.blog-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.blog-header p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--color-gray-200);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-thumbnail {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.blog-date {
  color: var(--color-text-light);
}

.blog-category a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-title a {
  color: var(--color-text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--color-primary);
}

.blog-excerpt {
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-200);
}

.blog-author {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.read-more {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--color-secondary);
}

.blog-pagination {
  margin-top: 3rem;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 0.75rem 1rem;
  margin: 0 0.25rem;
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.no-posts h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.blog-cta {
  background: var(--color-gray-50);
  padding: 2rem;
  border-radius: 1rem;
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta h3 {
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.blog-cta p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 2.5rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-card-content {
    padding: 1rem;
  }
  
  .blog-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* 404 Error Page Styles */
.error-404-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.error-404-header {
  margin-bottom: 3rem;
}

.error-404-title {
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.error-404-header h2 {
  font-size: 2.5rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.error-404-header p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.error-404-search {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-gray-50);
  border-radius: 1rem;
}

.error-404-search h3 {
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.error-404-search .search-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}

.error-404-search input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.error-404-search input[type="submit"] {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.error-404-search input[type="submit"]:hover {
  background: var(--color-secondary);
}

.error-404-links {
  margin-bottom: 3rem;
}

.error-404-links h3 {
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.error-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--color-text-dark);
}

.error-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--color-primary);
}

.error-link-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.error-link-text {
  font-weight: 500;
  color: var(--color-text-dark);
}

.error-404-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 2rem;
  border-radius: 1rem;
  margin-top: 2rem;
}

.error-404-cta h3 {
  color: white;
  margin-bottom: 1rem;
}

.error-404-cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

/* Mobile 404 Responsive */
@media (max-width: 768px) {
  .error-404-title {
    font-size: 5rem;
  }
  
  .error-404-header h2 {
    font-size: 2rem;
  }
  
  .error-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .error-404-search .search-form {
    flex-direction: column;
  }
  
  .error-404-cta {
    padding: 2rem 1rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-dark { color: var(--color-text-dark); }
.text-light { color: var(--color-text-light); }
.bg-white { background-color: var(--color-background); }
.bg-gray-50 { background-color: var(--color-gray-50); }
.bg-gray-100 { background-color: var(--color-gray-100); }
.bg-primary { background: var(--gradient-primary); color: white; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none; }

/* Mobile menu body lock */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  max-width: 100vw;
}