/* Strictly Medical — Modern Brand Stylesheet */

:root {
  --primary: #0D9488;
  --primary-dark: #0F766E;
  --primary-darker: #115E59;
  --primary-light: #f0fdfa;
  --primary-100: #ccfbf1;
  --accent: #14B8A6;
  --dark: #0f172a;
  --dark-700: #334155;
  --gray-100: #f8fafc;
  --gray-200: #f1f5f9;
  --gray-300: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --white: #ffffff;
  --danger: #dc3545;
  --success: #198754;
  --warning: #fd7e14;
  --radius: 6px;
  --radius-lg: 8px;
}

/* ===== BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  border-radius: var(--radius);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
}

/* ===== BOOTSTRAP OVERRIDES ===== */
.bg-primary {
  background-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.btn {
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  padding: 0.65rem 1.5rem;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-outline-light:hover {
  color: var(--primary);
}

.btn-success {
  background: #25d366;
  border-color: #25d366;
}

.btn-success:hover {
  background: #1da851;
  border-color: #1da851;
}


/* ===== SKIP LINK ===== */
.skip-to-main {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.85rem;
}

.skip-to-main:focus {
  top: 0;
  color: var(--white);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  padding: 8px 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.top-bar-link:hover {
  color: #5eead4;
}

.top-bar-link i {
  color: var(--primary);
  font-size: 0.7rem;
}

.top-bar-badge {
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-100);
}

.top-bar-badge + .top-bar-badge::before {
  content: "/";
  color: var(--primary);
  margin-right: 14px;
  letter-spacing: 0;
}

a.top-bar-badge {
  transition: color 0.2s;
}

a.top-bar-emergency:hover {
  color: #fcd34d;
}

.top-bar-emergency {
  color: #fbbf24;
}

@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: center;
  }

  .top-bar-left .top-bar-link:not(:first-child) {
    display: none;
  }
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  padding: 0;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
  z-index: 1030;
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.navbar-logo {
  height: 40px;
  width: 40px;
  border-radius: 0;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-brand-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.navbar-brand-text small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  font-weight: 500;
}

.navbar-nav .nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--dark-700);
  padding: 6px 14px;
  transition: color 0.2s;
}

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

.navbar-nav .nav-link.active {
  color: var(--primary-dark);
  font-weight: 600;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 2px;
    background: var(--primary);
  }
}

.navbar-toggler {
  border: none;
  padding: 6px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%230D9488' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    border-top: 1px solid var(--gray-300);
    padding: 8px 0 16px;
    margin-top: 4px;
  }

  .navbar-nav .nav-item + .nav-item:not(:last-child) {
    border-top: 1px solid var(--gray-200);
  }

  .navbar-nav .nav-link {
    padding: 12px 4px;
  }

  .navbar-nav .nav-link.active {
    color: var(--primary-dark);
    box-shadow: inset 3px 0 0 var(--primary);
    padding-left: 12px;
  }

  .navbar-nav .btn {
    width: 100%;
    margin-top: 12px;
  }
}

/* ===== HERO ===== */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 90px;
  border-bottom: 2px solid var(--primary);
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary-100);
  margin-bottom: 20px;
}

.hero-badge span {
  color: var(--primary);
  font-weight: 400;
  margin: 0 8px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-contact i {
  color: #5eead4;
}

.hero-contact a {
  color: var(--white);
  text-decoration: none;
}

.hero-contact a:hover {
  color: #5eead4;
}

.hero-img {
  max-height: 420px;
  object-fit: cover;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px;
}

@media (max-width: 768px) {
  .hero {
    padding: 50px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-300);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 550px;
  margin: 0 auto;
}

.bg-light {
  background: var(--gray-100) !important;
}

/* ===== SERVICE CARDS ===== */
.section-split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 48px;
}

.section-split-head .section-title {
  margin-bottom: 0;
}

.section-split-desc {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 360px;
  margin: 0;
  text-align: right;
}

.service-entry {
  border-top: 2px solid var(--gray-300);
  padding-top: 24px;
  height: 100%;
  transition: border-color 0.2s ease;
}

.service-entry:hover {
  border-top-color: var(--primary);
}

.service-entry-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.service-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  min-width: 24px;
}

.service-entry h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin: 0 0 14px 38px;
  max-width: 440px;
}

.service-items {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gray-600);
  margin: 0 0 0 38px;
}

.service-items span {
  color: var(--primary);
  font-weight: 400;
  margin: 0 7px;
}

@media (max-width: 576px) {
  .section-split-desc {
    text-align: left;
  }

  .service-desc,
  .service-items {
    margin-left: 0;
  }
}

/* ===== TESTIMONIALS ===== */
.quote-entry {
  border-top: 2px solid var(--gray-300);
  padding-top: 24px;
  height: 100%;
  margin: 0;
  transition: border-color 0.2s ease;
}

.quote-entry:hover {
  border-top-color: var(--primary);
}

.quote-entry blockquote {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0 0 16px;
}

.quote-entry blockquote::before {
  content: "\201C";
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.quote-entry figcaption {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--dark);
}

.quote-entry figcaption span {
  color: var(--primary);
  font-weight: 400;
  margin: 0 5px;
}

/* ===== CTA SECTIONS ===== */
.cta-band {
  background: var(--dark);
  border-top: 2px solid var(--primary);
  color: var(--white);
  padding: 56px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.cta-band-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary-100);
  margin-bottom: 10px;
}

.cta-band h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 520px;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== ABOUT ===== */
.about-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-points li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-300);
}

.about-points li:last-child {
  border-bottom: 1px solid var(--gray-300);
}

.about-points strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}

.about-points span {
  font-size: 0.82rem;
  color: var(--gray-500);
  text-align: right;
}

.about-photo {
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 6px;
  background: var(--white);
}

/* ===== ACCREDITATION ===== */
.accreditation-entry {
  border-top: 2px solid var(--gray-300);
  padding-top: 24px;
  height: 100%;
  transition: border-color 0.2s ease;
}

.accreditation-entry:hover {
  border-top-color: var(--primary);
}

.accreditation-entry h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.accreditation-entry p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  max-width: 440px;
}

.accreditation-entry img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 10px;
  background: var(--white);
}

/* ===== CATALOG ===== */
.hero-compact {
  padding: 64px 0 70px;
}

.hero-compact .hero-desc {
  max-width: 640px;
}

.catalog-notice {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
}

.catalog-notice-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--dark-700);
}

.catalog-notice-inner i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 3px;
}

.catalog-notice-inner strong {
  display: block;
  color: var(--dark);
  margin-bottom: 2px;
}

.catalog-notice-inner span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ===== CATEGORY GRID ===== */
.category-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 5px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.category-card:hover .category-card-media,
.category-card:focus-visible .category-card-media {
  border-color: var(--primary);
}

.category-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.category-card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-200);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-empty .category-card-bg {
  background-color: var(--gray-100);
}

.category-card-ph {
  font-size: 2.5rem;
  color: var(--gray-400);
}

.category-card-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
}

.category-card-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 2px;
}

.category-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: color 0.2s ease;
}

.category-card:hover .category-card-cta,
.category-card:focus-visible .category-card-cta {
  color: var(--primary);
}

.category-card-cta i {
  font-size: 0.65rem;
}

/* Category page */
.category-breadcrumb {
  margin-bottom: 18px;
}

.category-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.category-breadcrumb a:hover {
  color: var(--white);
}

.category-empty {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 0;
}

.category-empty-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

.category-empty h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.category-empty p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

.category-empty-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.category-empty-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-empty-link:hover,
.category-empty-link:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Price enquiry */
.enquiry-section {
  scroll-margin-top: 90px;
}

.enquiry-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dark);
  margin-bottom: 20px;
}

.enquiry-category-tag span {
  color: var(--primary);
  margin: 0 6px;
  letter-spacing: 0;
}

/* ===== PRODUCT GALLERY ===== */
.product-group {
  padding: 56px 0;
}

.product-group-alt {
  background: var(--gray-100, #f8fafc);
}

.product-group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.product-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.product-group-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin: 0;
  max-width: 620px;
}

.product-group-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.product-group-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 576px) {
  .product-group {
    padding: 40px 0;
  }
  .product-group-title {
    font-size: 1.25rem;
  }
}

/* Gallery grid + lightbox styles are provided by the folder-gallery library (assets/gallery.css) */

/* ===== PARTS ===== */
.parts-list {
  margin-top: 24px;
}

.parts-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.parts-item i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.parts-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.parts-item span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== CONTACT CARDS ===== */
.contact-entry {
  border-top: 2px solid var(--gray-300);
  padding-top: 20px;
  height: 100%;
  transition: border-color 0.2s ease;
}

.contact-entry:hover {
  border-top-color: var(--primary);
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

a.contact-value:hover {
  color: var(--primary);
}

.contact-entry small {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.contact-entry small a {
  color: var(--gray-600);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  border-top: 2px solid var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo {
  height: 44px;
  width: 44px;
  border-radius: 0;
}

.footer-name {
  display: block;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.footer-socials {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  margin-left: -10px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: #5eead4;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-100);
  margin-bottom: 18px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #5eead4;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.footer-contact i {
  color: var(--primary);
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
  margin-top: 4px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #5eead4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.footer-spec {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-100);
}

.footer-spec span {
  color: var(--primary);
  margin: 0 6px;
  letter-spacing: 0;
}

@media (max-width: 576px) {
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ===== WHATSAPP FLOAT ===== */
/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

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

.back-to-top:hover {
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 82px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ===== FORMS ===== */
.form-frame {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-top: 2px solid var(--primary);
  border-radius: 8px;
  padding: 32px;
}

.form-control,
.form-select {
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  padding: 0.7rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
  font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-label {
  font-weight: 500;
  color: var(--dark-700);
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}

.form-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.form-step-title span {
  color: var(--primary);
  font-size: 0.85rem;
  margin-right: 12px;
}

.form-control[type="file"] {
  padding: 0.5rem;
  background: var(--white);
}

/* ===== ALERTS ===== */
.alert {
  border-radius: var(--radius);
  border: none;
  padding: 1rem 1.25rem;
  border-left: 4px solid;
}

.alert-success {
  background: #d1e7dd;
  color: #0f5132;
  border-left-color: var(--success);
}

.alert-danger {
  background: #f8d7da;
  color: #842029;
  border-left-color: var(--danger);
}

.alert i {
  margin-right: 0.5rem;
}

/* ===== HR ===== */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gray-300), transparent);
  margin: 2rem 0;
  opacity: 0.5;
}

/* ===== FOCUS ===== */
*:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.3);
  outline-offset: 2px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===== FILE UPLOAD ===== */
.file-upload-wrapper {
  position: relative;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  border: 1px dashed var(--gray-400);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  text-align: center;
}

.file-upload-dropzone i {
  color: var(--primary);
  font-size: 1.25rem;
}

.file-upload-dropzone:hover {
  border-color: var(--primary);
}

.file-upload-dropzone.dragover {
  border-color: var(--primary);
  border-style: solid;
  background: var(--primary-light);
}

.file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.file-preview-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  gap: 1rem;
}

.file-preview-item:hover {
  border-color: var(--primary);
}

.file-preview-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 6px;
  overflow: hidden;
}

.file-preview-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.file-preview-info {
  flex: 1;
  min-width: 0;
}

.file-preview-name {
  font-weight: 500;
  color: var(--dark-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.file-preview-size {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.file-preview-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--gray-500);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.file-preview-remove:hover {
  background: #fef2f2;
  color: var(--danger);
}

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

/* ===== FORM VALIDATION ===== */
.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--success);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--danger);
}

/* ===== BUTTON STATES ===== */
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn.loading {
  position: relative;
  color: transparent !important;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== NOTIFICATION TOASTS ===== */
.notification-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1050;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .notification-toast {
    left: 20px;
    right: 20px;
    min-width: auto;
  }
}

/* ===== MULTI-STEP FORM ===== */
.form-stepper {
  display: flex;
  gap: 16px;
}

.stepper-item {
  flex: 1;
  border-top: 2px solid var(--gray-300);
  padding-top: 10px;
  transition: border-color 0.2s ease;
}

.stepper-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-right: 8px;
  transition: color 0.2s ease;
}

.stepper-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  transition: color 0.2s ease;
}

.stepper-item.active {
  border-top-color: var(--primary);
}

.stepper-item.active .stepper-num {
  color: var(--primary);
}

.stepper-item.active .stepper-label {
  color: var(--dark);
}

.stepper-item.completed {
  border-top-color: var(--primary);
}

.stepper-item.completed .stepper-num,
.stepper-item.completed .stepper-label {
  color: var(--gray-600);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.emergency-alert {
  background: #fef2f2;
  border-left: 4px solid var(--danger);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.emergency-alert i {
  color: var(--danger);
}

.emergency-alert p {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .form-frame {
    padding: 20px 16px;
  }

  .form-stepper {
    gap: 10px;
  }

  .stepper-label {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
  }

  .section {
    padding: 50px 0;
  }

  .btn,
  .nav-link,
  .form-control,
  .form-select {
    min-height: 44px;
  }
}

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.error-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.error-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.error-digit {
  font-size: 7rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.error-logo {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-logo img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.error-content h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.error-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 40px;
}

.error-links {
  margin-bottom: 48px;
}

.error-link {
  display: block;
  border-top: 2px solid var(--gray-300);
  padding-top: 14px;
  text-align: left;
  height: 100%;
  transition: border-color 0.2s ease;
}

.error-link:hover {
  border-top-color: var(--primary);
}

.error-link strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.error-link strong span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 10px;
}

.error-link small {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.error-contact {
  border-top: 1px solid var(--gray-300);
  padding-top: 32px;
}

.error-contact p {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .error-digit {
    font-size: 4.5rem;
  }

  .error-logo {
    width: 60px;
    height: 60px;
  }

  .error-content h1 {
    font-size: 1.4rem;
  }
}

/* ===== AI CHAT WIDGET ===== */
.chat-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
  z-index: 9999;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-toggle:hover,
.chat-toggle.open {
  background: var(--primary-dark);
}

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: min(560px, calc(100vh - 220px));
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--dark);
  border-top: 2px solid var(--primary);
  color: var(--white);
}

.chat-status {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  vertical-align: 1px;
}

.chat-header strong {
  display: block;
  font-size: 0.95rem;
}

.chat-header small {
  font-size: 0.78rem;
  opacity: 0.85;
}

.chat-header-actions {
  display: flex;
  gap: 2px;
}

.chat-close,
.chat-clear {
  background: none;
  border: none;
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 6px;
  opacity: 0.85;
}

.chat-close:hover,
.chat-clear:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 2px;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--gray-100, #f3f4f6);
  color: var(--dark, #111827);
  border-bottom-left-radius: 2px;
}

.chat-msg.error {
  background: #fef2f2;
  color: #991b1b;
}

.chat-retry {
  display: block;
  margin-top: 8px;
  background: none;
  border: 1px solid #b91c1c;
  color: #991b1b;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-retry:hover {
  background: #fee2e2;
}

.chat-msg.bot a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: chatTyping 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatTyping {
  0%, 60%, 100% {
    opacity: 0.35;
  }
  30% {
    opacity: 1;
  }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-chip {
  background: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary-dark);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-chip:hover {
  background: var(--primary-light);
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--gray-200, #e5e7eb);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  resize: none;
  overflow-y: auto;
  max-height: 96px;
}

.chat-input:focus {
  border-color: var(--primary);
}

.chat-send {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 38px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-send:hover:not(:disabled) {
  background: var(--primary-dark);
}

.chat-send:disabled {
  opacity: 0.6;
  cursor: default;
}

.chat-disclaimer {
  padding: 6px 12px 10px;
  font-size: 0.72rem;
  color: var(--gray-500, #6b7280);
  text-align: center;
}

.chat-disclaimer a {
  color: var(--primary);
}

.chat-toggle,
.chat-send,
.chat-chip,
.chat-retry,
.chat-close,
.chat-clear {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  .chat-typing span {
    animation: none;
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .chat-toggle {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .chat-toggle.open {
    display: none;
  }

  .chat-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    height: calc(100vh - 110px);
    height: calc(100dvh - 110px);
    max-height: 620px;
  }

  /* 16px stops iOS from zooming the page when the input is focused */
  .chat-input {
    font-size: 16px;
  }

  .chat-send {
    width: 44px;
    height: 44px;
  }

  .chat-close,
  .chat-clear {
    padding: 10px 12px;
  }

  .chat-chip {
    padding: 9px 14px;
  }
}

@media (max-width: 576px) {
  .chat-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    height: 100dvh;
    max-height: none;
    border: none;
    border-radius: 0;
  }

  .chat-header {
    padding-top: calc(12px + env(safe-area-inset-top));
  }

  .chat-disclaimer {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  body.chat-open {
    overflow: hidden;
  }

  body.chat-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* ===== PRINT ===== */
@media print {
  .navbar,
  .top-bar,
  footer,
  .back-to-top,
  .chat-toggle,
  .chat-panel {
    display: none !important;
  }

  .hero {
    background: var(--white) !important;
    color: var(--dark) !important;
  }
}
