/* Design System & Core Styles - وثاب جدة لخدمات التكييف */

:root {
  --primary-color: #0b5c9e;      /* أزرق تبريد عميق - ثقة واحترافية */
  --primary-dark: #073a64;
  --primary-light: #1c7ecb;
  --accent-color: #f39c12;       /* برتقالي ناري دافئ - للتحويلات والأزرار الساخنة */
  --accent-light: #fbe6c4;
  --bg-white: #ffffff;
  --bg-light: #f4f8fb;           /* خلفية سماوية خفيفة للغاية */
  --text-dark: #1f2c3d;
  --text-muted: #5e6f85;
  --cta-orange: #e67e22;
  --cta-green: #27ae60;          /* لون واتساب المعتمد */
  --border-color: #e2eaf0;
  --font-family: 'IBM Plex Sans Arabic', sans-serif;
  --transition-speed: 0.35s;
  --max-width: 1200px;
  --shadow-sm: 0 2px 8px rgba(11, 92, 158, 0.04);
  --shadow-md: 0 10px 25px rgba(11, 92, 158, 0.06);
  --shadow-lg: 0 20px 45px rgba(11, 92, 158, 0.12);
  --shadow-glow: 0 8px 24px rgba(243, 156, 18, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 30px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  transition: transform var(--transition-speed) ease;
}

img:hover {
  transform: scale(1.02);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

h1 { 
  font-size: 2.6rem; 
}

h2 { 
  font-size: 2rem; 
  border-bottom: 4px solid var(--accent-color); 
  display: inline-block; 
  padding-bottom: 8px; 
  margin-bottom: 1.8rem; 
  border-radius: 2px;
}

h3 { font-size: 1.5rem; color: var(--primary-color); margin-top: 1.5rem; margin-bottom: 1rem; }
p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.2rem; text-align: justify; }

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

.section-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
  display: block;
  font-size: 0.95rem;
}

/* Header & Navigation */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.logo-text span {
  color: var(--accent-color);
}

nav ul {
  display: flex;
  gap: 1.8rem;
}

nav a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.05rem;
  padding: 0.5rem 0.2rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

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

nav a:hover {
  color: var(--primary-color);
}

/* Buttons & Conversion CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cta-orange), #f39c12);
  color: var(--bg-white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
  background-color: var(--cta-green);
  color: var(--bg-white);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(39, 174, 96, 0.3);
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 10% 20%, rgba(238, 247, 252, 0.8) 0%, rgba(255, 255, 255, 1) 90%);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero .container {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-trust-badges {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
}

.badge {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.hero-visual {
  position: relative;
}

.hero-visual img {
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--bg-white);
  border-radius: var(--radius-md);
}

/* Service Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

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

/* Timeline & Steps */
.steps-list {
  position: relative;
  padding-right: 2rem;
  margin: 2rem 0;
}

.steps-list::after {
  content: '';
  position: absolute;
  right: 9px;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--border-color);
}

.step-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.step-num {
  position: absolute;
  right: -31px;
  top: 0;
  width: 25px;
  height: 25px;
  background: var(--primary-color);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1;
}

.step-desc {
  padding-right: 1rem;
}

.step-desc h4 {
  margin-bottom: 0.4rem;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.5rem;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-weight: 700;
}

.comparison-table tr:nth-child(even) {
  background-color: var(--bg-light);
}

/* FAQ Section */
.faq-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-white);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform var(--transition-speed) ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  padding: 1.2rem 1.5rem;
  max-height: 500px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

/* Articles layout */
.article-grid {
  display: grid;
  grid-template-columns: 2.2fr 0.8fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.article-grid,
.rich-content,
.sidebar,
.content-section,
.professional-media-grid {
  min-width: 0;
  max-width: 100%;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-widget {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin-bottom: 2rem;
}

.sidebar-widget h4 {
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 6px;
}

.sidebar-link-list li {
  margin-bottom: 0.8rem;
}

.sidebar-link-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
}

.sidebar-link-list a:hover {
  color: var(--primary-color);
  transform: translateX(-5px);
}

/* Floating Actions Bar */
.floating-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 0.8rem 5%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  z-index: 999;
}

/* Footer Section */
footer {
  background-color: #0b1a27;
  color: #a3b8cc;
  padding: 4rem 0 2rem 0;
  border-top: 5px solid var(--primary-color);
}

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

.footer-col h4 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a:hover {
  color: var(--bg-white);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1c2b38;
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-trust-badges {
    justify-content: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  right: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--primary-color, #0b5c9e);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}
.skip-link:focus {
  right: 1rem;
  outline: 3px solid var(--accent-color, #f39c12);
}

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

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(243, 156, 18, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
  }
}

/* Base interactive transitions */
.card, .rich-content-section, .hero-content, .hero-visual {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn-primary, .btn-pulse {
  animation: pulseGlow 2.5s cubic-bezier(0.25, 0, 0, 1) infinite;
  transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.btn-primary:hover, .btn-pulse:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Stagger card load effects */
.grid-3 > .card:nth-child(1) { animation-delay: 0.05s; }
.grid-3 > .card:nth-child(2) { animation-delay: 0.1s; }
.grid-3 > .card:nth-child(3) { animation-delay: 0.15s; }
.grid-3 > .card:nth-child(4) { animation-delay: 0.2s; }
.grid-3 > .card:nth-child(5) { animation-delay: 0.25s; }
.grid-3 > .card:nth-child(6) { animation-delay: 0.3s; }
.grid-3 > .card:nth-child(7) { animation-delay: 0.35s; }
.grid-3 > .card:nth-child(8) { animation-delay: 0.4s; }

.grid-2 > div:nth-child(1) { animation-delay: 0.05s; }
.grid-2 > div:nth-child(2) { animation-delay: 0.15s; }

/* Interactive Hover States */
.card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(11, 92, 158, 0.08);
  border-color: rgba(11, 92, 158, 0.15);
}

/* Smooth Accordions styling */
.faq-question {
  transition: background-color 0.3s ease, color 0.3s ease;
}
.faq-question i {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-color);
}

/* 2026 production hardening: contrast, navigation, editorial media and forms */
:root {
  --cta-green: #087a45;
  --focus-ring: #ffb000;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-secondary {
  background: var(--cta-green);
  color: #fff;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary-dark);
  font-size: 1.25rem;
  cursor: pointer;
}

.header-cta {
  display: flex;
  gap: 0.5rem;
}

.header-call {
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
}

.floating-actions {
  display: none;
}

.floating-actions .btn {
  flex: 1;
  max-width: 260px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.faq-answer[hidden] {
  display: none !important;
}

.reading-container {
  max-width: 920px;
}

.professional-guide {
  background: linear-gradient(180deg, #f7fbfe 0%, #fff 100%);
  border-top: 1px solid var(--border-color);
}

.professional-guide h2,
.professional-guide h3 {
  scroll-margin-top: 100px;
}

.professional-guide h3 {
  margin-top: 2.2rem;
}

.professional-guide .lead {
  font-size: 1.15rem;
  color: var(--text-dark);
}

.eyebrow {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  text-align: start;
}

.professional-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
}

.professional-media-grid figure {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.professional-media-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.professional-media-grid figcaption {
  padding: 0.9rem 1rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.check-list,
.numbered-list,
.professional-guide ul,
.professional-guide ol {
  margin: 1rem 1.5rem 1.5rem 0;
  color: var(--text-muted);
}

.check-list {
  list-style: none;
}

.check-list li,
.numbered-list li,
.professional-guide li {
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "✓";
  color: var(--cta-green);
  font-weight: 700;
  margin-left: 0.65rem;
}

.numbered-list,
.professional-guide ol {
  list-style: decimal;
}

.compact-media-section {
  background: var(--bg-light);
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label,
.form-label {
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-dark);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(11, 92, 158, 0.12);
  outline: 0;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.page-hero {
  padding: 4.5rem 0 3rem;
  background: radial-gradient(circle at 20% 10%, rgba(28, 126, 203, 0.12), transparent 34%), linear-gradient(135deg, #f8fbfd, #eef6fb);
  border-bottom: 1px solid var(--border-color);
}

.compact-hero .container {
  max-width: 920px;
}

.compact-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.bg-light {
  background: var(--bg-light);
}

.contact-form-card,
.contact-channel-card,
.process-card {
  padding: 2rem;
}

.contact-aside {
  display: grid;
  gap: 1.25rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-top: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary-dark);
}

.contact-channel > i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(11, 92, 158, 0.1);
  color: var(--primary-color);
}

.contact-channel.whatsapp > i {
  background: rgba(8, 122, 69, 0.1);
  color: var(--cta-green);
}

.contact-channel span {
  display: grid;
}

.contact-channel small,
.fine-print,
.form-field small {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.contact-figure {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.contact-figure figcaption {
  padding: 0.9rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.process-number {
  display: inline-flex;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.legal-page {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.legal-page h2 {
  margin-top: 2.5rem;
}

.contact-fields-grid,
.contact-grid,
.contact-process-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-fields-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.contact-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-status {
  padding: 0.9rem 1rem;
  border: 1px solid #a62b2b;
  border-radius: var(--radius-sm);
  background: #fff2f2;
  color: #7b1919;
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.consent-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 0.25rem;
}

.honeypot {
  position: absolute;
  right: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comparison-table {
  width: 100%;
}

@media (max-width: 992px) {
  .header-container {
    min-height: 68px;
    padding: 0.65rem 4%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
  }

  #primary-navigation {
    display: none;
    order: 4;
    width: 100%;
  }

  #primary-navigation[data-open="true"] {
    display: block;
  }

  #primary-navigation ul {
    display: grid;
    gap: 0;
    padding: 0.4rem 0 0.2rem;
  }

  #primary-navigation a {
    display: block;
    padding: 0.75rem 0.35rem;
    border-top: 1px solid var(--border-color);
  }

  .header-cta {
    display: none;
  }

  .contact-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-content h1,
  .keyword-hero h1,
  .hub-hero h1 {
    font-size: clamp(2rem, 7vw, 2.8rem) !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 78px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .container {
    width: min(92%, 680px);
    padding: 1.4rem 0;
  }

  p {
    font-size: 1rem;
    text-align: start;
  }

  h2 {
    font-size: 1.45rem;
  }

  .professional-media-grid,
  .contact-fields-grid,
  .contact-grid,
  .contact-process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form-card,
  .contact-channel-card,
  .process-card {
    padding: 1.25rem;
  }

  .floating-actions {
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem 4%;
  }

  .comparison-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table th,
  .comparison-table td {
    min-width: 150px;
  }
}

@media (max-width: 420px) {
  .floating-actions .btn {
    gap: 0.45rem;
    padding: 0.65rem 0.55rem;
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes floatBadge {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes floatBadgeReverse {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}

