/* ============================================
   AHS - Advanced Health Solutions
   Design System based on PhamilyPharma
   ============================================ */

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

html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #1E1E1E;
  background-color: #F7FDFB;
  overflow-x: hidden;
}

/* Loading state — blocks interaction */
body.is-loading {
  overflow: hidden;
  cursor: progress;
}

::selection {
  background: #4DC9E6;
  color: #084C6E;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- CSS Custom Properties --- */
:root {
  --primary: #084C6E;
  --secondary: #0E7A9E;
  --accent: #00B4D8;
  --light-accent: #4DC9E6;
  --cream: #F7FBFD;
  --dark: #1E1E1E;
  --gray: #6B7580;
  --white: #FFFFFF;
  --shadow: 0 0 100px rgba(8, 76, 110, 0.08);
  --radius: 3rem;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --hero-gradient: linear-gradient(160deg, #4DC9E6 0%, #00B4D8 20%, #0E7A9E 50%, #084C6E 80%, #052F45 100%);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cream);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-logo svg {
  width: 8rem;
  height: 9rem;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-img {
  width: 32rem;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-dot {
  animation: loaderDotPop 1.2s ease-in-out infinite;
}

@keyframes loaderDotPop {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

.loader-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1rem;
  animation: loaderTextFade 1.5s ease-in-out infinite;
}

@keyframes loaderTextFade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================
   BACKGROUND MOLECULAR DOTS
   ============================================ */
.bg-molecules {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.bg-molecules .molecule-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
  animation: floatDot 8s ease-in-out infinite;
  opacity: 0.25;
}

.bg-molecules .molecule-dot:nth-child(1) {
  width: 1rem; height: 1rem;
  top: 8%; left: 5%;
  animation-delay: 0s;
  animation-duration: 7s;
}
.bg-molecules .molecule-dot:nth-child(2) {
  width: 0.7rem; height: 0.7rem;
  top: 15%; right: 8%;
  animation-delay: 1.2s;
  animation-duration: 9s;
}
.bg-molecules .molecule-dot:nth-child(3) {
  width: 1.4rem; height: 1.4rem;
  top: 35%; left: 3%;
  animation-delay: 2.5s;
  animation-duration: 6s;
}
.bg-molecules .molecule-dot:nth-child(4) {
  width: 0.8rem; height: 0.8rem;
  top: 50%; right: 4%;
  animation-delay: 0.8s;
  opacity: 0.25;
  animation-duration: 10s;
}
.bg-molecules .molecule-dot:nth-child(5) {
  width: 0.5rem; height: 0.5rem;
  top: 65%; left: 7%;
  animation-delay: 3.5s;
  animation-duration: 7.5s;
}
.bg-molecules .molecule-dot:nth-child(6) {
  width: 1.1rem; height: 1.1rem;
  top: 22%; left: 15%;
  animation-delay: 1.8s;
  animation-duration: 8.5s;
}
.bg-molecules .molecule-dot:nth-child(7) {
  width: 0.6rem; height: 0.6rem;
  top: 45%; right: 12%;
  animation-delay: 2.8s;
  animation-duration: 6.5s;
}
.bg-molecules .molecule-dot:nth-child(8) {
  width: 1.2rem; height: 1.2rem;
  top: 75%; right: 6%;
  animation-delay: 0.5s;
  opacity: 0.3;
  animation-duration: 9.5s;
}
.bg-molecules .molecule-dot:nth-child(9) {
  width: 0.9rem; height: 0.9rem;
  top: 85%; left: 10%;
  animation-delay: 4s;
  opacity: 0.2;
  animation-duration: 8s;
}
.bg-molecules .molecule-dot:nth-child(10) {
  width: 0.6rem; height: 0.6rem;
  top: 55%; left: 20%;
  animation-delay: 1.5s;
  animation-duration: 7s;
}
.bg-molecules .molecule-dot:nth-child(11) {
  width: 1rem; height: 1rem;
  top: 30%; right: 18%;
  animation-delay: 3s;
  opacity: 0.25;
  animation-duration: 8s;
}
.bg-molecules .molecule-dot:nth-child(12) {
  width: 0.8rem; height: 0.8rem;
  top: 92%; right: 15%;
  animation-delay: 2s;
  animation-duration: 7.5s;
}

/* Connection lines */
.bg-molecules .molecule-line {
  display: none;
}

.bg-molecules .molecule-line:nth-child(13) {
  width: 10rem; top: 12%; left: 6%; transform: rotate(25deg);
  animation-delay: 0s;
}
.bg-molecules .molecule-line:nth-child(14) {
  width: 7rem; top: 40%; left: 4%; transform: rotate(-15deg);
  animation-delay: 2s;
}
.bg-molecules .molecule-line:nth-child(15) {
  width: 9rem; top: 20%; right: 10%; transform: rotate(40deg);
  animation-delay: 1s;
}
.bg-molecules .molecule-line:nth-child(16) {
  width: 6rem; top: 60%; right: 5%; transform: rotate(-30deg);
  animation-delay: 3s;
}
.bg-molecules .molecule-line:nth-child(17) {
  width: 8rem; top: 80%; left: 8%; transform: rotate(15deg);
  animation-delay: 1.5s;
}

@keyframes floatDot {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-12px) translateX(5px); }
  50% { transform: translateY(-6px) translateX(-8px); }
  75% { transform: translateY(-15px) translateX(3px); }
}

@keyframes floatLine {
  0%, 100% { opacity: 0.1; transform: rotate(var(--r, 25deg)) translateY(0); }
  50% { opacity: 0.18; transform: rotate(var(--r, 25deg)) translateY(-8px); }
}

/* --- Typography --- */
.tx-xxl {
  font-family: 'Anton', sans-serif;
  font-size: 5.5rem;
  line-height: 0.93;
  letter-spacing: -0.13rem;
  font-weight: 400;
}

.tx-xl {
  font-family: 'Anton', sans-serif;
  font-size: 4.5rem;
  line-height: 0.93;
  letter-spacing: -0.075rem;
  font-weight: 400;
}

.tx-l {
  font-family: 'Anton', sans-serif;
  font-size: 3.6rem;
  line-height: 0.93;
  letter-spacing: -0.046rem;
  font-weight: 400;
}

.tx-m {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  line-height: 1.2;
  letter-spacing: -0.036rem;
  font-weight: 600;
}

.tx-s {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
}

.tx-p {
  font-size: 1.6rem;
  line-height: 1.6;
}

.tx-ps {
  font-size: 1.4rem;
  line-height: 1.5;
}

/* --- Container --- */
.container {
  max-width: 192rem;
  margin: 0 auto;
  padding: 0 3rem;
}

.container-narrow {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 3rem;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 3rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* --- Sections --- */
section {
  padding: 9rem 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   SCROLL REVEAL ANIMATION SYSTEM
   ============================================ */

/* Default: fade up */
[data-reveal] {
  opacity: 0;
  transform: translateY(4rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.15s;
}

[data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Fade from left */
[data-reveal="left"] {
  opacity: 0;
  transform: translateX(-6rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.15s;
}

/* Fade from right */
[data-reveal="right"] {
  opacity: 0;
  transform: translateX(6rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.15s;
}

/* Scale up */
[data-reveal="scale"] {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.15s;
}

/* Fade only */
[data-reveal="fade"] {
  opacity: 0;
  transform: none;
  transition: opacity 0.8s ease-in-out;
  transition-delay: 0.5s;
}

[data-reveal="fade"].is-inview {
  opacity: 1;
}

/* Stagger delays */
[data-reveal][data-delay="1"] { transition-delay: 0.3s; }
[data-reveal][data-delay="2"] { transition-delay: 0.5s; }
[data-reveal][data-delay="3"] { transition-delay: 0.7s; }
[data-reveal][data-delay="4"] { transition-delay: 0.9s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 3.2rem;
  border-radius: 10rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(8, 76, 110, 0.3);
}

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

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

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 191, 160, 0.3);
}

.btn svg,
.btn .btn-arrow {
  width: 2rem;
  height: 2rem;
  transition: transform var(--transition);
}

.btn:hover svg,
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(247, 253, 251, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.4s ease, border-radius 0.4s ease, top 0.4s ease, left 0.4s ease, right 0.4s ease, width 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

/* Hide header during loading screen */
body.is-loading .header {
  opacity: 0;
  pointer-events: none;
}

/* Dark header over hero — sits inside the card visually */
.header.header-dark {
  background: rgba(8, 76, 110, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  top: 1rem;
  left: 1rem;
  right: 1rem;
  width: auto;
  border-radius: 2.4rem 2.4rem 0 0;
}

/* Scrolled but still on hero — pill shape */
.header.header-dark.scrolled {
  background: rgba(8, 76, 110, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  top: 1rem;
  left: 1rem;
  right: 1rem;
  width: auto;
  border-radius: 2.4rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header.header-dark .logo-text {
  color: var(--white);
}

.header.header-dark .logo-text span {
  color: rgba(255, 255, 255, 0.6);
}

.header.header-dark .nav-menu a {
  color: rgba(255, 255, 255, 0.9);
}

.header.header-dark .nav-menu a::after {
  background: var(--light-accent);
}

.header.header-dark .nav-cta .btn {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.header.header-dark .nav-cta .btn:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.header.header-dark .hamburger span {
  background: var(--white);
}

.header.scrolled {
  background: rgba(247, 253, 251, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(8, 76, 110, 0.08);
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 0;
}

.header.scrolled:not(.header-dark) .logo-text {
  color: var(--primary);
}

.header.scrolled:not(.header-dark) .logo-text span {
  color: var(--gray);
}

.header.scrolled:not(.header-dark) .nav-menu a {
  color: var(--primary);
}

.header.scrolled:not(.header-dark) .nav-cta .btn {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.header.scrolled:not(.header-dark) .hamburger span {
  background: var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 3rem;
  max-width: 192rem;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 1001;
}

.logo-img {
  height: 4.5rem;
  width: auto;
  max-width: 18rem;
  object-fit: contain;
  transition: all 0.4s ease;
}

.header.header-dark .logo-img {
  filter: brightness(0) invert(1);
}

.logo-icon {
  width: 5rem;
  height: 5rem;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary);
  line-height: 1.1;
  transition: color 0.4s ease;
}

.logo-text span {
  display: block;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--gray);
  letter-spacing: 0.15rem;
  transition: color 0.4s ease;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.nav-menu a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  position: relative;
  transition: color var(--transition);
}

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

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

.nav-cta .btn {
  padding: 1.2rem 2.4rem;
  font-size: 1.4rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: 'Anton', sans-serif;
  font-size: 4rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--accent);
}

/* ============================================
   HERO SECTION — Big card, nearly full-screen
   ============================================ */
.hero-wrapper {
  padding: 1rem;
  padding-top: 1rem;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  z-index: 1;
  background: transparent;
}

.hero-card {
  background: var(--hero-gradient);
  border-radius: 2.4rem;
  padding: 12rem 4rem 6rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

  /* Card entrance animation */
  opacity: 0;
  transform: scale(0.95);
  animation: heroCardReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s both;
}

@keyframes heroCardReveal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 90rem;
  margin: 0 auto;
}

/* Subtitle above headline */
.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  letter-spacing: 0.05rem;
  animation: heroFadeIn 0.8s ease 2s both;
}

/* Massive headline */
.hero-card h1 {
  font-family: 'Anton', sans-serif;
  font-size: 7rem;
  line-height: 1;
  letter-spacing: -0.15rem;
  color: var(--white);
  margin-bottom: 3rem;
  text-transform: uppercase;
  animation: heroFadeIn 0.8s ease 2.2s both;
}

/* Highlighted word */
.hero-card h1 .highlight {
  color: var(--primary);
  background: var(--light-accent);
  padding: 0.2rem 2rem;
  display: inline-block;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 60rem;
  margin: 0 auto 4rem;
  line-height: 1.7;
  animation: heroFadeIn 0.8s ease 2.4s both;
}

/* Dual CTA pill */
.hero-cta-pill {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 10rem;
  padding: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: heroFadeIn 0.8s ease 2.6s both;
}

.hero-cta-option {
  padding: 1.4rem 3.2rem;
  border-radius: 10rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.hero-cta-active {
  background: var(--light-accent);
  color: var(--primary);
}

.hero-cta-option:not(.hero-cta-active):hover {
  background: rgba(59, 191, 160, 0.1);
}

/* Hero entrance animations */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- About Section --- */
.about {
  background: var(--white);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.about-visual {
  position: relative;
}

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

.about-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(8, 76, 110, 0.05), transparent);
}

.about-slideshow {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.about-slide.active {
  opacity: 1;
}

.about-stat {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--white);
  padding: 2rem 3rem;
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(8, 76, 110, 0.12);
  z-index: 2;
}

.about-stat .stat-number {
  font-family: 'Anton', sans-serif;
  font-size: 3.6rem;
  color: var(--primary);
  line-height: 1;
}

.about-stat .stat-label {
  font-size: 1.3rem;
  color: var(--gray);
  font-weight: 500;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.section-label::before {
  content: '';
  width: 3rem;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: 'Anton', sans-serif;
  font-size: 3.6rem;
  line-height: 1.1;
  color: var(--primary);
  text-transform: uppercase;
}

.section-text {
  font-size: 1.5rem;
  color: var(--gray);
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: 0.5rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 4.4rem;
  height: 4.4rem;
  background: rgba(59, 191, 160, 0.12);
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon svg {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--secondary);
}

.about-feature h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.about-feature p {
  font-size: 1.3rem;
  color: var(--gray);
  line-height: 1.5;
}

/* --- Services Section --- */
.services {
  position: relative;
}

.services-header {
  text-align: center;
  max-width: 70rem;
  margin: 0 auto 6rem;
}

.services-header .section-title {
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 4rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(8, 76, 110, 0.12);
}

.service-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.service-icon svg {
  width: 3rem;
  height: 3rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-card:nth-child(1) .service-icon { background: var(--primary); }
.service-card:nth-child(2) .service-icon { background: var(--secondary); }
.service-card:nth-child(3) .service-icon { background: var(--accent); }
.service-card:nth-child(4) .service-icon { background: linear-gradient(135deg, var(--primary), var(--accent)); }

.service-number {
  font-family: 'Anton', sans-serif;
  font-size: 8rem;
  color: rgba(8, 76, 110, 0.04);
  position: absolute;
  top: 1rem;
  right: 2rem;
  line-height: 1;
}

.service-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-card p {
  font-size: 1.5rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary);
  transition: all var(--transition);
}

.service-link svg {
  width: 1.8rem;
  height: 1.8rem;
  transition: transform var(--transition);
}

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

.service-link:hover svg {
  transform: translateX(4px);
}

/* --- Approach / Process Section --- */
.approach {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.approach::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60rem;
  height: 60rem;
  background: radial-gradient(circle, rgba(59, 191, 160, 0.15), transparent 70%);
  pointer-events: none;
}

.approach .section-label {
  color: var(--light-accent);
}

.approach .section-label::before {
  background: var(--light-accent);
}

.approach .section-title {
  color: var(--white);
}

.approach .section-text {
  color: rgba(255, 255, 255, 0.7);
}

.approach-header {
  text-align: center;
  max-width: 70rem;
  margin: 0 auto 6rem;
}

.approach-header .section-title {
  margin-bottom: 2rem;
}

.approach-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}

.step-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 4rem;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 191, 160, 0.3);
  transform: translateY(-3px);
}

.step-number {
  font-family: 'Anton', sans-serif;
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.step-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.step-card p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* --- News Section --- */
.news {
  background: var(--white);
}

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 6rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.news-header-text {
  max-width: 60rem;
}

.news-header .section-title {
  margin-bottom: 1.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.news-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(8, 76, 110, 0.1);
}

.news-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card:nth-child(1) .news-image-placeholder { background: linear-gradient(135deg, #0E7A9E, #00B4D8); }
.news-card:nth-child(2) .news-image-placeholder { background: linear-gradient(135deg, #084C6E, #0E7A9E); }
.news-card:nth-child(3) .news-image-placeholder { background: linear-gradient(135deg, #00B4D8, #4DC9E6); }
.news-card:nth-child(4) .news-image-placeholder { background: linear-gradient(135deg, #084C6E, #00B4D8); }

.news-image-placeholder svg {
  width: 5rem;
  height: 5rem;
  color: rgba(255, 255, 255, 0.3);
}

.news-slideshow {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.news-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.news-slide.active {
  opacity: 1;
}

.news-body {
  padding: 3rem;
}

.news-tag {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: 10rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.tag-biosecurity { background: rgba(8, 76, 110, 0.1); color: var(--primary); }
.tag-population { background: rgba(14, 140, 107, 0.1); color: var(--secondary); }
.tag-training { background: rgba(0, 180, 216, 0.15); color: #084C6E; }
.tag-waste { background: rgba(93, 217, 193, 0.2); color: var(--primary); }

.news-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.news-card p {
  font-size: 1.4rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary);
  transition: all var(--transition);
}

.news-link svg {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform var(--transition);
}

.news-link:hover svg {
  transform: translateX(4px);
}

/* --- CTA Section --- */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='white' fill-opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 70rem;
  margin: 0 auto;
}

.cta .section-title {
  color: var(--white);
  font-size: 3.6rem;
  margin-bottom: 2rem;
}

.cta-text {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4rem;
  line-height: 1.7;
}

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

.cta .btn-primary:hover {
  background: var(--cream);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* --- Contact Section --- */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-info .section-title {
  margin-bottom: 1rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--white);
  border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(8, 76, 110, 0.05);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(8, 76, 110, 0.1);
}

.contact-card-icon {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  background: rgba(59, 191, 160, 0.1);
  border-radius: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-icon svg {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--secondary);
}

.contact-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 1.4rem;
  color: var(--gray);
  line-height: 1.5;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 4rem;
  box-shadow: var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1.4rem 2rem;
  border: 2px solid rgba(8, 76, 110, 0.1);
  border-radius: 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--dark);
  background: var(--cream);
  transition: all var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 191, 160, 0.1);
}

.form-group textarea {
  min-height: 14rem;
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  padding: 6rem 0 3rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-logo-img {
  height: 5rem;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.footer-brand .logo-text span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 35rem;
}

.footer-links h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.footer-links a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}

.footer-social a {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-social svg {
  width: 2rem;
  height: 2rem;
  color: var(--white);
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-bottom p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}

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

/* --- Responsive --- */
@media (min-width: 641px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
  section {
    padding: 14rem 0;
  }

  .tx-xxl { font-size: clamp(11rem, 8.5vw, 13rem); }
  .tx-xl { font-size: 7.5rem; }
  .tx-l { font-size: 4.6rem; }
  .tx-m { font-size: 3.6rem; }

  .hero-wrapper {
    padding: 1.2rem;
    padding-top: 1.2rem;
  }

  .hero-card {
    padding: 12rem 6rem 8rem;
    border-radius: 2.8rem;
  }

  .header.header-dark {
    top: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    width: auto;
    border-radius: 2.8rem 2.8rem 0 0;
  }

  .header.header-dark.scrolled {
    top: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    width: auto;
    border-radius: 2.8rem;
  }

  .hero-card h1 {
    font-size: clamp(8rem, 7vw, 12rem);
  }

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

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

  .section-title {
    font-size: 4.6rem;
  }

  .hamburger { display: none !important; }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-steps { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: repeat(4, 1fr); }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .cta .section-title {
    font-size: 4.6rem;
  }
}

/* Large desktop */
@media (min-width: 1367px) {
  .hero-card h1 {
    font-size: clamp(10rem, 8vw, 13rem);
  }
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

}

@media (max-width: 640px) {
  .container, .container-narrow {
    padding: 0 2rem;
  }

  .hero-wrapper {
    padding: 0.6rem;
    padding-top: 0.6rem;
    min-height: 100vh;
  }

  .hero-card {
    padding: 10rem 2rem 5rem;
    border-radius: 2rem;
  }

  .header.header-dark {
    top: 0.6rem;
    left: 0.6rem;
    right: 0.6rem;
    width: auto;
    border-radius: 2rem 2rem 0 0;
  }

  .header.header-dark.scrolled {
    top: 0.6rem;
    left: 0.6rem;
    right: 0.6rem;
    width: auto;
    border-radius: 2rem;
  }

  .header-inner {
    padding: 1.2rem 1.6rem;
  }

  .logo-img {
    height: 3.5rem;
    max-width: 14rem;
  }

  .hero-card h1 {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1.6rem;
  }

  .hero-cta-pill {
    flex-direction: column;
    border-radius: 2rem;
  }

  .hero-cta-option {
    padding: 1.2rem 2.8rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 3rem;
  }

  .step-card {
    padding: 3rem;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form-wrapper {
    padding: 3rem;
  }

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

  /* Reduce dot visibility on mobile */
  .bg-molecules .molecule-dot {
    opacity: 0.2;
  }
  .bg-molecules .molecule-line {
    opacity: 0.06;
  }
}
