/* =====================================================
   MARIX AGENCY INTEGRATION + RESPONSIVE OVERHAUL
   Premium responsive design + agency lead generation
   ===================================================== */

/* ════════════════════════════════════════════════════════
   PART 1: COMPREHENSIVE RESPONSIVE DESIGN
   Breakpoints: 320px, 480px, 768px, 1024px, 1440px
   ════════════════════════════════════════════════════════ */

/* ── 1440px+ (Ultra-wide) ── */
@media (min-width: 1441px) {
  .container { max-width: 1320px; }
  .hero-inner { padding-top: 100px; }
  .hero-heading { font-size: 80px; }
  .hero-ac-showcase { max-width: 900px; }
}

/* ── 1024px–1100px (Small Desktop / Large Tablet) ── */
@media (max-width: 1100px) {
  .coverage-map-wrap { padding: 32px 20px; }
  .coverage-map { width: 90%; }
  .stats-bar .container { padding: 0 24px; }
}

/* ── 768px–1024px (Tablet Portrait) ── */
@media (max-width: 1024px) {
  .hero-inner { padding: 60px 0 0; }
  .hero-ac-showcase { max-width: 600px; }
  .ac-airflow-wrap { height: 180px; }

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

  .stats-bar-inner,
  .trust-inner {
    gap: 32px;
  }
  .trust-item { gap: 10px; }
  .trust-icon { width: 38px; height: 38px; }
  .trust-icon svg { width: 18px; height: 18px; }
}

/* ── 768px (Tablet / Mobile Split) ── */
@media (max-width: 768px) {
  /* Base sizing */
  :root {
    --nav-h: 64px;
  }
  .container { padding: 0 20px; }

  /* All section padding reduction */
  section { padding: 60px 0; }
  .hero { min-height: auto; padding-bottom: 40px; }

  /* Hero */
  .hero-ac-showcase { max-width: 90%; margin-top: 32px; }
  .ac-airflow-wrap { height: 140px; }

  /* Typography */
  .section-desc { font-size: 15px; }

  /* Trust bar */
  .trust-inner { gap: 20px; }
  .trust-item { flex-direction: column; text-align: center; gap: 8px; }
  .trust-text { font-size: 13px; }
  .trust-sub { font-size: 11px; }

  /* Stats bar */
  .stats-bar { padding: 40px 0; }
  .stats-bar-inner,
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item { padding: 20px 16px; }
  .stat-num { font-size: 32px; }

  /* Coverage map */
  .coverage-map-wrap { padding: 20px 16px; }
  .coverage-map { width: 100%; }
  .cov-tags { gap: 8px; }
  .cov-tag { font-size: 12px; padding: 6px 12px; }

  /* About features */
  .about-features { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Pricing cards */
  .pricing-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .price-card { padding: 28px 24px; }

  /* Process timeline */
  .process-timeline { flex-direction: column; align-items: center; gap: 24px; }
  .process-timeline::before { display: none; }
  .process-step { width: 100%; max-width: 320px; }

  /* Buttons - touch friendly */
  .btn { min-height: 48px; padding: 14px 28px; font-size: 15px; }
  .btn-lg { min-height: 52px; padding: 16px 32px; }
  .fab { width: 54px; height: 54px; }

  /* Form */
  .form-card { padding: 28px 20px; }
  .form-input, .form-card select { font-size: 16px; padding: 14px 16px; min-height: 48px; }
  .form-submit-btn { min-height: 52px; font-size: 16px; }
}

/* ── 480px (Small Mobile) ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 48px 0; }

  /* Hero */
  .hero-inner { padding-top: 40px; }
  .hero-desc { font-size: 14px; margin-bottom: 24px; }
  .hero-ac-showcase { max-width: 95%; }
  .ac-airflow-wrap { height: 110px; }

  /* Trust bar compact */
  .trust-bar { padding: 32px 0; }
  .trust-inner { flex-direction: column; gap: 16px; }
  .trust-item { flex-direction: row; text-align: left; }

  /* About */
  .about-features { grid-template-columns: 1fr; }
  .about-img-badge { width: 72px; height: 72px; }
  .about-img-badge .badge-num { font-size: 22px; }
  .about-img-badge .badge-text { font-size: 9px; }

  /* Stats */
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 12px; }

  /* Service cards */
  .service-card { padding: 28px 20px; }

  /* Why choose us */
  .why-card { padding: 28px 20px; }

  /* Reviews */
  .review-card { padding: 24px 20px; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer-col h4 { font-size: 14px; margin-bottom: 12px; }
  .footer-col ul li a { font-size: 13px; }
  .footer-brand-text { font-size: 13px; }
  .footer-bottom { padding-top: 20px; gap: 12px; }
  .footer-bottom p { font-size: 12px; }

  /* FABs */
  .fab-container { bottom: 16px; right: 16px; gap: 10px; }
  .fab { width: 50px; height: 50px; }
}

/* ── 320px (Extra Small Mobile) ── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-heading { font-size: 24px !important; letter-spacing: -0.02em; }
  .hero-heading .inline-img { width: 48px; height: 24px; }
  .section-heading.xl { font-size: 24px !important; }
  .section-heading.lg { font-size: 22px !important; }
  .hero-btns .btn { font-size: 14px; padding: 12px 20px; }
  .nav-logo-text { font-size: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-num { font-size: 24px; }
  .btn { font-size: 14px; padding: 12px 24px; }
}

/* ── Touch device optimizations ── */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover-only effects on touch */
  .service-card:hover,
  .why-card:hover,
  .review-card:hover,
  .project-card:hover {
    transform: none !important;
  }
  /* Larger tap targets */
  .nav-link { padding: 12px 16px; }
  .faq-q { min-height: 56px; }
}

/* ── Landscape phone ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-inner { padding-top: 20px; }
  .hero-ac-showcase { max-width: 50%; }
}

/* ── Safe area (notch phones) ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .fab-container {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .footer-bottom {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}


/* ════════════════════════════════════════════════════════
   PART 2: MARIX AGENCY — Footer Credit
   ════════════════════════════════════════════════════════ */
.marix-footer-credit {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.15));
  border-top: 1px solid rgba(255,255,255,0.06);
}

.marix-footer-credit p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body);
  line-height: 1.6;
}

.marix-footer-credit a {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.marix-footer-credit a:hover {
  color: #fff;
}

.marix-footer-credit a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.marix-footer-credit a:hover::after {
  width: 100%;
}


/* ════════════════════════════════════════════════════════
   PART 3: MARIX AGENCY — Floating Badge
   ════════════════════════════════════════════════════════ */
.marix-badge {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 998;
  background: rgba(20, 20, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 10px 18px 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: marixBadgeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2s both;
  text-decoration: none;
  white-space: nowrap;
}

.marix-badge:hover {
  background: rgba(20, 20, 25, 0.95);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  color: #fff;
}

.marix-badge .marix-badge-emoji {
  font-size: 14px;
  line-height: 1;
}

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

@media (max-width: 768px) {
  .marix-badge {
    bottom: 80px;
    right: 12px;
    font-size: 11px;
    padding: 8px 14px 8px 12px;
  }
}


/* ════════════════════════════════════════════════════════
   PART 4: MARIX AGENCY — Premium Modal
   ════════════════════════════════════════════════════════ */
.marix-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.marix-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.marix-modal {
  background: #0e1015;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.marix-modal-overlay.open .marix-modal {
  transform: translateY(0) scale(1);
}

/* Scrollbar styling */
.marix-modal::-webkit-scrollbar { width: 4px; }
.marix-modal::-webkit-scrollbar-track { background: transparent; }
.marix-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.marix-modal-header {
  padding: 32px 32px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.marix-modal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.marix-modal-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.marix-modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marix-modal-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.marix-modal-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.marix-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.marix-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.marix-modal-close svg {
  width: 18px;
  height: 18px;
}

.marix-modal-body {
  padding: 28px 32px 32px;
}

.marix-modal-intro {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Services grid */
.marix-services-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.marix-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.marix-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  transition: all 0.25s;
}

.marix-service-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

.marix-service-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* CTA section in modal */
.marix-modal-cta {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.15), rgba(200, 60, 60, 0.08));
  border: 1px solid rgba(200, 60, 60, 0.15);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.marix-modal-cta h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.marix-modal-cta p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  line-height: 1.6;
}

.marix-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
}

.marix-wa-btn:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.4);
}

.marix-wa-btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 480px) {
  .marix-modal {
    border-radius: 16px;
    max-height: 85vh;
  }
  .marix-modal-header { padding: 24px 20px 0; }
  .marix-modal-body { padding: 20px 20px 24px; }
  .marix-services-grid { grid-template-columns: 1fr; }
  .marix-modal-name { font-size: 17px; }
  .marix-modal-logo { width: 40px; height: 40px; }
}


/* ════════════════════════════════════════════════════════
   PART 5: MARIX AGENCY — Form CTA ("Need a website?")
   ════════════════════════════════════════════════════════ */
.marix-form-cta {
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
  border: 1px solid rgba(22, 129, 255, 0.1);
  border-radius: 14px;
  text-align: center;
}

.marix-form-cta h5 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.marix-form-cta p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.marix-form-cta .marix-wa-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
}

.marix-form-cta .marix-wa-btn-sm:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.marix-form-cta .marix-wa-btn-sm svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 480px) {
  .marix-form-cta { padding: 20px 16px; margin-top: 20px; }
  .marix-form-cta h5 { font-size: 14px; }
  .marix-form-cta p { font-size: 12px; }
}
