/* ==========================================================================
   NUDISIRI SPEECH AND DEVELOPMENT CENTRE
   Design System & Master Stylesheet (CSS3)
   Exact match to Figma specifications
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Colors */
  --primary: #006a63;
  --primary-dark: #004d48;
  --primary-light: #99efe5;
  --primary-tint: rgba(0, 106, 99, 0.1);
  --primary-tint-hover: rgba(0, 106, 99, 0.15);

  /* Neutral & Text Colors */
  --navy-dark: #001428;
  --text-heading: #001428;
  --text-body: #43474d;
  --text-muted: #64748b;
  --text-light: #8e95a5;
  --text-white: #ffffff;

  /* Surface & Background Colors */
  --bg-page: #f8f9ff;
  --bg-surface: #ffffff;
  --bg-footer: #eff4ff;
  --bg-accent: #e6eeff;
  --bg-subtle: #f1f5f9;

  /* Borders & Dividers */
  --border-color: #d5e3fc;
  --border-light: #e2e8f0;
  --border-hover: #006a63;

  /* Typography */
  --font-heading:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing & Sizing */
  --container-max: 1280px;
  --gutter-desktop: 64px;
  --gutter-tablet: 32px;
  --gutter-mobile: 20px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0px 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-card:
    0px 4px 6px -1px rgba(0, 0, 0, 0.06), 0px 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover:
    0px 12px 20px -3px rgba(0, 106, 99, 0.12),
    0px 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-float:
    0px 20px 25px -5px rgba(0, 0, 0, 0.08),
    0px 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter-desktop);
  padding-right: var(--gutter-desktop);
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: var(--gutter-desktop);
  padding-right: var(--gutter-desktop);
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 20, 40, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
}

.brand-logo,
.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 2px 0;
}

.logo-img,
.site-logo-img {
  height: 88px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: transform var(--transition-fast, 0.2s ease);
}

.brand-logo:hover .site-logo-img,
.brand-logo:hover .logo-img,
.logo-wrapper:hover .logo-img,
.logo-wrapper:hover .site-logo-img {
  transform: scale(1.02);
}

.logo-text-block {
  display: none;
}

.logo-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
  padding: 8px 0;
  letter-spacing: 0.15px;
  transition: color var(--transition-fast);
}

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

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background-color: var(--primary);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px rgba(0, 106, 99, 0.2);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-header-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 106, 99, 0.3);
}

.btn-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--navy-dark);
  color: var(--text-white);
  transition: background-color var(--transition-fast);
}

.btn-header-icon:hover {
  background-color: var(--primary);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  color: var(--navy-dark);
  border-radius: var(--radius-sm);
}

/* --- Common UI Components --- */

/* Eyebrow Badge / Pill */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--primary-tint);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow-pill .dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  display: inline-block;
}

/* Headings */
.heading-1 {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.heading-1 .highlight {
  color: var(--primary);
}

.heading-2 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.heading-3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.subtitle-large {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--primary);
  margin-bottom: 16px;
}

.lead-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 28px;
}

.body-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.15px;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 6px -1px rgba(0, 106, 99, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 14px -2px rgba(0, 106, 99, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--navy-dark);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-page);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--navy-dark);
  color: var(--text-white);
  box-shadow: 0 4px 6px -1px rgba(0, 20, 40, 0.2);
}

.btn-dark:hover {
  background-color: #002244;
  transform: translateY(-2px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast);
}

.btn-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}

.trust-badge-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Breadcrumbs */
.breadcrumb-strip {
  background-color: var(--bg-footer);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 500;
}

.breadcrumb-nav a {
  color: var(--text-body);
}

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

.breadcrumb-nav .separator {
  color: var(--text-light);
}

.breadcrumb-nav .current {
  color: var(--primary);
  font-weight: 600;
}

/* Section Header (Centered or Standard) */
.section-header {
  margin-bottom: 20px;
}

.section-header.text-center {
  text-align: center;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
}

/* --- Grids & Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 28px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Feature Block (Alternating Cadence) */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

.feature-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.feature-image-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.feature-image-wrapper:hover img {
  transform: scale(1.02);
}

.feature-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: rgba(0, 20, 40, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Process Timeline / Step Cards */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* FAQ Accordion */
.faq-section {
  padding: 32px 0;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.accordion-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-dark);
  text-align: left;
  cursor: pointer;
  background: transparent;
  transition: color var(--transition-fast);
}

.accordion-item.active .accordion-header {
  color: var(--primary);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: var(--primary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}

.accordion-item.active .accordion-body {
  padding-bottom: 20px;
}

.accordion-content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

/* CTA Banner Section */
.cta-banner-section {
  padding: 32px 0;
}

.cta-banner-card {
  background: linear-gradient(135deg, #004d48 0%, #006a63 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: var(--text-white);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.cta-banner-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: rgba(153, 239, 229, 0.15);
  filter: blur(40px);
}

.cta-banner-card .cta-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-white);
}

.cta-banner-card .cta-desc {
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 32px auto;
  opacity: 0.95;
  line-height: 1.6;
}

.cta-banner-card .btn-white {
  background-color: var(--bg-surface);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cta-banner-card .btn-white:hover {
  background-color: var(--bg-page);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Forms */
.form-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: var(--bg-page);
  color: var(--navy-dark);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

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

/* Modals */
.modal-backdrop,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 40, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal-backdrop.active,
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window,
.modal-container,
.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.modal-backdrop.active .modal-window,
.modal-backdrop.active .modal-container,
.modal-backdrop.active .modal-card,
.modal-overlay.active .modal-window,
.modal-overlay.active .modal-container,
.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px 32px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2;
}

.modal-title-group {
  display: flex;
  flex-direction: column;
}

.modal-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-page);
  color: var(--navy-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--border-light);
  transform: rotate(90deg);
}

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

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

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

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Universal Footer --- */
.site-footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: 32px 0 16px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.8fr;
  gap: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  text-decoration: none;
  width: fit-content;
}

.footer-logo-img {
  width: auto;
  height: 48px;
  max-width: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 20, 40, 0.08);
  display: block;
  transition: transform var(--transition-fast, 0.2s ease);
}

.footer-logo-wrap:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-logo-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-body);
  transition: color var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 12px;
}

.footer-contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* --- Call & WhatsApp Buttons --- */
.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.35);
}

.btn-call {
  background-color: var(--navy-dark);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 20, 40, 0.15);
}

.btn-call:hover {
  background-color: var(--primary-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 20, 40, 0.25);
}

/* Floating WhatsApp Quick Action Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  color: #ffffff !important;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.floating-whatsapp-btn:hover {
  background-color: #1ebe5d;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
  color: #ffffff !important;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .floating-whatsapp-btn span {
    display: none;
  }
  .floating-whatsapp-btn {
    padding: 14px;
    bottom: 20px;
    right: 20px;
  }
}

/* Floating Call Button */
.floating-call-btn {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  background: #087cf0;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 90, 200, 0.3);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.floating-call-btn:hover {
  background: #0668cc;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .floating-call-btn {
    right: 20px;
    bottom: 84px;
    padding: 14px 20px;
    font-size: 15px;
  }
}

html {
  scroll-behavior: smooth;
}

.feature-split {
  scroll-margin-top: 320px;
}

/* ==========================================================================
   RESPONSIVE: TABLET (max 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .container,
  .container-narrow {
    padding-left: var(--gutter-tablet);
    padding-right: var(--gutter-tablet);
  }

  .nav-menu {
    gap: 20px;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .heading-1 {
    font-size: 40px;
  }
  .heading-2 {
    font-size: 30px;
  }
}

/* ==========================================================================
   RESPONSIVE: MOBILE (max 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Container spacing */
  .container,
  .container-narrow {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }

  /* Header */
  .header-inner {
    min-height: 72px;
    position: relative;
  }

  .logo-img,
  .site-logo-img {
    height: 56px;
    max-width: 130px;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-actions .btn-header-cta {
    display: none; /* the CTA moves into the mobile menu, or hide it */
  }

  /* Mobile dropdown menu (shown when JS adds .active) */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter-mobile));
    right: calc(-1 * var(--gutter-mobile));
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 12px 24px rgba(0, 20, 40, 0.08);
    padding: 8px var(--gutter-mobile) 16px;
  }

  .nav-menu.active,
  .nav-menu.open,
  .nav-menu.show {
    display: flex;
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-link.active::after {
    display: none;
  }

  /* Typography */
  .heading-1 {
    font-size: 32px;
    letter-spacing: -0.6px;
  }
  .heading-2 {
    font-size: 26px;
    letter-spacing: -0.4px;
  }
  .heading-3 {
    font-size: 18px;
  }
  .subtitle-large {
    font-size: 17px;
  }
  .lead-text {
    font-size: 16px;
  }

  /* Grids collapse to one column */
  .grid-2,
  .grid-3,
  .grid-4,
  .process-grid,
  .form-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Feature sections: image on top, text below */
  .feature-split,
  .feature-split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 20px;
    margin-bottom: 40px;
    scroll-margin-top: 150px;
  }

  .feature-split .feature-image-wrapper {
    order: -1;
  }

  .feature-tag {
    bottom: 12px;
    left: 12px;
    font-size: 10px;
  }

  /* Buttons: full width and easy to tap */
  .btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-group .btn,
  .btn-group .btn-whatsapp,
  .btn-group .btn-call {
    width: 100%;
  }

  /* Cards, forms, banners */
  .card {
    padding: 22px;
  }
  .form-card {
    padding: 24px 20px;
  }

  .cta-banner-card {
    padding: 28px 20px;
  }
  .cta-banner-card .cta-title {
    font-size: 26px;
  }
  .cta-banner-card .cta-desc {
    font-size: 15px;
  }

  .accordion-header {
    padding: 16px 18px;
    font-size: 15px;
  }
  .accordion-body {
    padding: 0 18px;
  }

  /* Modals */
  .modal-backdrop,
  .modal-overlay {
    padding: 12px;
  }
  .modal-header {
    padding: 18px 20px 14px;
  }
  .modal-body {
    padding: 20px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Floating buttons: smaller so they don't cover text */
  .floating-call-btn {
    right: 16px;
    bottom: 80px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .floating-whatsapp-btn {
    right: 16px;
    bottom: 16px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .heading-1 {
    font-size: 28px;
  }
  .heading-2 {
    font-size: 24px;
  }
  .logo-img,
  .site-logo-img {
    height: 48px;
  }
}
.feature-image-wrapper {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

.feature-image-wrapper img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}
