/* ============================================
   EIS - Egyptian Innovation Systems
   Modern Professional Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary: #0B1C33;
  --primary-light: #1a3561;
  --secondary: #1E5BB5;
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --text: #334155;
  --text-light: #64748B;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-light { color: var(--text-light); }
.text-accent { color: var(--accent); }

.label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
}

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

.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header .label {
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.125rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.flex {
  display: flex;
}

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

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

.btn-outline-dark:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-body {
  padding: 2rem;
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--secondary);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
}

.nav-social a:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.nav-social svg {
  width: 16px;
  height: 16px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
  padding-top: 72px;
}

/* Compact hero for inner pages (About, Services, Contact) */
.hero-compact {
  min-height: 60vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: radial-gradient(circle at 80% 50%, var(--secondary) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, var(--accent) 0%, transparent 40%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content .label {
  color: var(--accent-light);
  margin-bottom: 1rem;
  display: block;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

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

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  object-fit: contain;
  max-height: 500px;
  /* drop-shadow follows the PNG's actual shape, not a rectangle */
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.35));
}

.hero-brands {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-brands p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  opacity: 0.7;
}

.brand-logos img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Features/Services Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card h4 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* Stats */
.stats-section {
  background: var(--light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.testimonial-card .quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 2rem;
  position: relative;
  padding-top: 2rem;
}

.testimonial-card .quote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 0;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-light);
  font-family: Georgia, serif;
  opacity: 0.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h5 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* CTA */
.cta-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, var(--secondary) 0%, transparent 50%);
  opacity: 0.2;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Image + Text Section */
.split-section {
  padding: 6rem 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-grid.reverse .split-image {
  order: 2;
}

.split-image img {
  border-radius: var(--radius-xl);
  width: 100%;
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  max-height: 450px;
}

.split-content .label {
  margin-bottom: 1rem;
  display: block;
}

.split-content h2 {
  margin-bottom: 1.25rem;
}

.split-content p {
  color: var(--text-light);
  font-size: 1.0625rem;
}

.check-list {
  margin-top: 1.5rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  color: var(--text);
  font-weight: 500;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 12px;
  height: 12px;
}

/* Services Page */
.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 3rem;
  background: var(--light);
  border-radius: var(--radius-xl);
}

.service-card:nth-child(even) .service-image {
  order: 2;
}

.service-card:nth-child(even) .service-content {
  order: 1;
}

.service-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 320px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.service-content .label {
  margin-bottom: 0.75rem;
  display: block;
}

.service-content h3 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--white);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
}

/* About Page */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--secondary);
}

.value-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.value-item p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

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

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card span {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: var(--light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-info-item .icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.contact-info-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}

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

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

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

/* Map */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
  height: 64px;
  margin-bottom: 1.25rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-column h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--white);
  padding-left: 0.25rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

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

.footer-social a:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

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

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

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

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

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  border: none;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Floating Support Button (Request Maintenance) */
.support-fab {
  position: fixed;
  bottom: 5.5rem; /* Stacked above back-to-top */
  right: 2rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  z-index: 999;
  border: 2px solid transparent;
}

.support-fab:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.support-fab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Pulse animation on first load to draw attention — fires once */
@keyframes supportPulse {
  0%, 100% { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 0 12px rgba(37, 99, 235, 0); }
}

.support-fab.pulse {
  animation: supportPulse 2s ease-out 1;
}

/* On the support page itself, hide the floating button — they're already there */
body.support-page .support-fab {
  display: none;
}

/* ============================================
   RESPONSIVE — ordered largest to smallest
   ============================================ */

/* Prevent any element from causing horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img {
  max-width: 100%;
  height: auto;
}

/* ---------- Tablets & small laptops ---------- */
@media (max-width: 1024px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .service-card,
  .service-card:nth-child(even) .service-image,
  .service-card:nth-child(even) .service-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-grid.reverse .split-image,
  .service-card:nth-child(even) .service-image,
  .service-card:nth-child(even) .service-content {
    order: unset;
  }

  .service-card {
    padding: 2rem;
  }

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

  /* Hero: stop forcing full viewport height once stacked */
  .hero,
  .hero-compact {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 4rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-image img {
    max-height: 380px;
  }

  .hero-brands {
    margin-top: 2.5rem;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links,
  .nav-social {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    gap: 1rem;
  }

  .nav-links.mobile-open a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.mobile-open a::after {
    display: none;
  }

  /* Header */
  .header .container {
    height: 64px;
  }

  .logo img {
    height: 38px;
  }

  /* Container padding */
  .container {
    padding: 0 1.25rem;
  }

  /* Hero */
  .hero,
  .hero-compact {
    padding-top: 96px;
    padding-bottom: 3rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  .hero-image img {
    max-height: 300px;
  }

  .hero-brands {
    margin-top: 2rem;
    text-align: center;
  }

  .brand-logos {
    justify-content: center;
  }

  /* Section spacing */
  .section,
  .split-section {
    padding: 3rem 0;
  }

  /* Typography */
  h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  /* Grids collapse to single column */
  .features-grid,
  .testimonials-grid,
  .team-grid,
  .values-grid,
  .form-row,
  .footer-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Stats stay 2x2 — looks balanced, avoids tall stack */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  /* Cards */
  .feature-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  /* Footer */
  .footer-grid {
    text-align: center;
    gap: 2rem;
  }

  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-column {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  /* Map */
  .map-container iframe {
    width: 100%;
    height: 300px;
  }

  /* Floating support button */
  .support-fab {
    bottom: 5rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* ---------- Small phones (iPhone SE, older Androids) ---------- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero,
  .hero-compact {
    padding-top: 88px;
  }

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

  .hero-content p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .stats-grid {
    gap: 1rem;
  }

  .stat-item h3 {
    font-size: 1.75rem;
  }

  .feature-card,
  .testimonial-card,
  .service-card {
    padding: 1.25rem;
  }

  .brand-logos img {
    max-height: 38px;
  }

  .btn {
    font-size: 0.9375rem;
  }
}

/* ---------- Very small phones — support button becomes icon-only ---------- */
@media (max-width: 380px) {
  .support-fab {
    padding: 0.875rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
  }

  .support-fab .support-fab-text {
    display: none;
  }
}
