/* ==========================================================
   CarePoint Medical Centre — Stylesheet
   ========================================================== */

:root {
  --white: #FFFFFF;
  --light-gray: #F7F9FC;
  --navy: #0B1F3A;
  --teal: #0D9488;
  --teal-dark: #0A7A70;
  --teal-tint: #E6F5F3;
  --border: #E7ECF3;
  --shadow-soft: 0 20px 45px -25px rgba(11, 31, 58, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(13, 148, 136, 0.55);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(13, 148, 136, 0.6);
}
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 8px 30px -20px rgba(11, 31, 58, 0.4);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  margin-right: auto;
}
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--teal-tint);
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-hotline:hover { background: #D5EEEB; transform: translateY(-1px); }
.hotline-icon { width: 17px; height: 17px; color: var(--teal); flex-shrink: 0; }
.hotline-text { display: flex; flex-direction: column; line-height: 1.2; }
.hotline-text small { font-size: 0.65rem; color: #5B6B82; font-weight: 600; }
.hotline-text strong { font-size: 0.85rem; color: var(--navy); font-weight: 800; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { max-height: 420px; }
.mobile-menu a {
  padding: 14px 32px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-hotline { color: var(--teal); font-weight: 800; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { padding: 90px 0 110px; }
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #46536A;
  margin: 0 0 34px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.hero-card {
  position: absolute;
  left: -30px;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
}
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 45px -18px rgba(11, 31, 58, 0.3);
}
.hero-card-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card-icon svg { width: 20px; height: 20px; }
.hero-card-copy { display: flex; flex-direction: column; line-height: 1.25; }
.hero-card-copy strong { font-size: 1.15rem; font-weight: 900; }
.hero-card-copy small { font-size: 0.78rem; color: #5B6B82; font-weight: 600; }

/* ==========================================================
   SHARED SECTION HEADERS
   ========================================================== */
.section-eyebrow {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}
.section-heading {
  text-align: center;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 900;
  margin: 0 auto 16px;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: #5B6B82;
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.65;
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services { background: var(--light-gray); padding: 100px 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-left-color: var(--teal);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 10px; }
.service-card p { font-size: 0.92rem; color: #5B6B82; line-height: 1.6; margin: 0; }

/* ==========================================================
   DOCTORS
   ========================================================== */
.doctors { background: var(--white); padding: 100px 0; }
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.doctor-card { text-align: center; }
.doctor-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/3.4;
  margin-bottom: 20px;
  background: var(--light-gray);
}
.doctor-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.doctor-card:hover .doctor-img-wrap img { transform: scale(1.06); }
.doctor-card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 4px; }
.doctor-specialty { color: var(--teal); font-weight: 700; font-size: 0.88rem; margin: 0 0 12px; }
.doctor-link { font-weight: 700; font-size: 0.88rem; color: var(--navy); border-bottom: 2px solid var(--teal); padding-bottom: 2px; }

/* ==========================================================
   STATS
   ========================================================== */
.stats { background: var(--teal); padding: 70px 0; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  display: block;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================
   APPOINTMENT
   ========================================================== */
.appointment { background: var(--white); padding: 100px 0; }
.appointment-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.appointment-copy .section-eyebrow,
.appointment-copy .section-heading,
.appointment-copy .section-sub { text-align: left; margin-left: 0; }
.appointment-copy .section-sub { margin-bottom: 0; }

.appointment-form {
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}
.form-row { margin-bottom: 20px; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}
.form-row textarea { resize: vertical; }
.form-note {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--teal-dark);
  min-height: 1.2em;
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials { background: var(--light-gray); padding: 100px 0; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  border: 1px solid var(--border);
}
.stars { color: #F5B301; letter-spacing: 3px; font-size: 0.95rem; margin-bottom: 16px; }
.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #33415A;
  margin: 0 0 22px;
  font-style: italic;
}
.testimonial-name { font-weight: 800; margin: 0 0 2px; font-size: 0.95rem; }
.testimonial-treatment { color: var(--teal); font-weight: 600; font-size: 0.85rem; margin: 0; }

/* ==========================================================
   NEWS
   ========================================================== */
.news { background: var(--white); padding: 100px 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-body { padding: 24px; }
.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  background: var(--teal-tint);
  padding: 5px 12px;
  border-radius: 999px;
  margin-right: 8px;
}
.news-date { font-size: 0.78rem; color: #8393AB; font-weight: 600; }
.news-body h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.4; margin: 14px 0 14px; }
.news-link { font-weight: 700; font-size: 0.88rem; color: var(--teal-dark); }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--navy); color: rgba(255,255,255,0.85); padding: 80px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer .logo { color: var(--white); }
.footer-logo { margin-bottom: 18px; }
.footer-tagline { font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.65); max-width: 280px; margin: 0 0 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.footer-social a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; color: var(--white); }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 20px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 0.92rem; color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--teal); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.footer-contact svg { width: 17px; height: 17px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

.map-img {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  height: 130px;
  width: 100%;
  object-fit: cover;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 32px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .nav-hotline { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-card { left: 16px; bottom: -24px; }
  .appointment-inner { grid-template-columns: 1fr; }
  .appointment-copy .section-eyebrow,
  .appointment-copy .section-heading,
  .appointment-copy .section-sub { text-align: center; }
  .appointment-copy { text-align: center; }
}

@media (max-width: 700px) {
  .section-inner { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .service-grid, .testimonial-grid, .news-grid { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .appointment-form { padding: 28px 22px; }
  .hero { padding: 50px 0 90px; }
  .hero-img { height: 320px; }
}
