/* =========================================================
   CarePoint Dental Studio - Global Styles
   Clean, modern blue–white healthcare theme
   ========================================================= */

:root {
  /* Palette tuned to logo: deep navy, fresh green, soft teal highlights */
  --primary: #00528c;
  --primary-dark: #003a63;
  --primary-soft: #e4f3ff;
  --accent: #45b97c;
  --bg: #f3f8f5;
  --text: #102a43;
  --muted: #6c7a8a;
  --border: rgba(15, 23, 42, 0.08);
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Layout Utilities */

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

main {
  padding-top: var(--nav-height);
  padding-bottom: 3rem;
}

section {
  padding-block: 3.5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-heading p {
  max-width: 560px;
  margin: 0.25rem auto 0;
  color: var(--muted);
}

/* ================== HEADER / NAVBAR ================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  height: 52px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span:first-child {
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-text span:last-child {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding-block: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--primary-dark);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1e293b;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(6px);
}

.nav-toggle.is-open span {
  transform: rotate(45deg);
}

.nav-toggle.is-open span::before {
  transform: rotate(-90deg);
}

.nav-toggle.is-open span::after {
  opacity: 0;
}

/* Mobile menu panel */

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset-inline: 0;
    top: var(--nav-height);
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ================== HERO (HOME) ================== */

.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(var(--nav-height) * -1);
  padding-top: var(--nav-height);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 82, 140, 0.85) 0%, rgba(69, 185, 124, 0.75) 100%);
  z-index: 1;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding-block: 5rem 4rem;
  color: #ffffff;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0.9rem 0 1rem;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-description {
  color: rgba(255, 255, 255, 0.95);
  max-width: 580px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
  align-items: center;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-meta-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.25);
}

.meta-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.meta-number {
  font-weight: 700;
  font-size: 1.3rem;
  display: block;
  color: #ffffff;
  line-height: 1.2;
}

.meta-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-top: 0.2rem;
}

.hero-image-wrapper {
  position: relative;
  animation: fadeInRight 0.8s ease-out 0.5s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  background: #ffffff;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.4s ease;
}

.hero-image-card:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.image-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 82, 140, 0.4);
  z-index: 3;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.image-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 1.5rem 1.5rem;
  color: #ffffff;
}

.image-overlay-text h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: #ffffff;
}

.image-overlay-text p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 3rem;
    padding-bottom: 3rem;
    gap: 2rem;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-main-image {
    height: 350px;
  }

  .hero-meta {
    gap: 1rem;
  }

  .hero-meta-item {
    flex: 1;
    min-width: 140px;
  }
}

/* ================== BUTTONS ================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.1s ease,
    box-shadow 0.2s ease, border-color 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 82, 140, 0.4);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(0, 82, 140, 0.5);
}

.btn-primary span:last-child {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover span:last-child {
  transform: translateX(5px);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.35);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ================== ABOUT PAGE ================== */

.about-hero-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(var(--nav-height) * -1);
  padding-top: var(--nav-height);
}

.about-hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 82, 140, 0.8) 0%, rgba(69, 185, 124, 0.7) 100%);
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding-block: 4rem;
}

.about-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.about-hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 3rem;
}

.about-copy p {
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.75rem;
}

.about-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: flex-start;
}

.about-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.about-image-showcase {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 82, 140, 0.15);
}

.about-image-showcase img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image-showcase:hover img {
  transform: scale(1.05);
}

.about-aside {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.about-aside-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.about-aside-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-aside:hover .about-aside-image img {
  transform: scale(1.1);
}

.about-aside h2,
.about-aside p,
.about-aside .stack-sm,
.about-aside .pill-list {
  padding: 0 1.75rem;
}

.about-aside h2 {
  padding-top: 1.75rem;
  margin-bottom: 1rem;
}

.about-aside p {
  padding-bottom: 1rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .about-hero-section {
    min-height: 40vh;
  }

  .about-hero-content {
    padding-block: 3rem;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .about-image-showcase img {
    height: 280px;
  }

  .about-aside-image {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .about-hero-section {
    min-height: 35vh;
  }

  .about-hero-content h1 {
    font-size: 2rem;
  }

  .about-hero-content p {
    font-size: 1rem;
  }

  .about-image-showcase img {
    height: 220px;
  }
}

/* Highlight cards row (About & Home reuse) */

.highlight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 82, 140, 0.15);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.highlight-card:hover .card-image-wrapper img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 82, 140, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.highlight-card:hover .card-overlay {
  opacity: 1;
}

.card-content {
  padding: 1.5rem 1.5rem 1.8rem;
}

.highlight-card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .highlight-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .highlight-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================== GALLERY SECTION ================== */

.gallery-section {
  background: linear-gradient(135deg, #f8faf9 0%, #eef5f1 100%);
  padding-block: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 82, 140, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 82, 140, 0.85), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ================== TESTIMONIALS ================== */

.testimonials-section {
  padding-block: 4rem;
  background: #ffffff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 35px rgba(0, 82, 140, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 82, 140, 0.2);
}

.testimonial-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), rgba(69, 185, 124, 0.1));
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.testimonial-card:hover .testimonial-image {
  transform: scale(1.1);
}

.testimonial-quote-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 82, 140, 0.3);
}

.testimonial-content {
  padding: 1.6rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-meta {
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--muted);
}

.testimonial-stars {
  font-size: 0.9rem;
  color: #f59e0b;
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonial-image-wrapper {
    height: 150px;
  }

  .testimonial-quote-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: 0.75rem;
    right: 0.75rem;
  }
}

/* ================== SERVICES ================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 82, 140, 0.2);
  border-color: var(--accent);
}

.service-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image-wrapper img {
  transform: scale(1.15);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 82, 140, 0.4));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-content {
  padding: 1.5rem 1.4rem 1.8rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(69, 185, 124, 0.15));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 82, 140, 0.15);
}

.service-card h3 {
  margin: 0 0 0.35rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.service-meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================== APPOINTMENT PAGE ================== */

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: stretch;
  padding-block: 3.5rem;
}

.appointment-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.appointment-highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.appointment-highlight-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}

.appointment-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.appointment-meta {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.appointment-meta h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--text);
}

.appointment-form {
  position: relative;
}

@media (max-width: 880px) {
  .appointment-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 3rem;
  }
}

/* ================== FORMS (Appointment & Contact) ================== */

.form-shell {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group span.helper {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  border-radius: 16px;
  min-height: 110px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18);
}

.form-actions {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================== CONTACT PAGE ================== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item + .contact-item {
  margin-top: 1.5rem;
}

.contact-badge {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

.phone-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  display: inline;
}

.phone-link:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(69, 185, 124, 0.3);
}

.map-placeholder {
  margin-top: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.map-placeholder img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

@media (max-width: 880px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================== UTILITIES ================== */

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ================== FOOTER ================== */

.site-footer {
  position: relative;
  border-top: none;
  background: linear-gradient(135deg, #0a2540 0%, #00528c 40%, #1a5f3f 100%);
  padding-block: 5rem 3rem;
  margin-top: 6rem;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
  box-shadow: 0 4px 20px rgba(69, 185, 124, 0.4);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(69, 185, 124, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1.1fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.footer-brand-section {
  max-width: 100%;
}

.footer-brand-section .logo-wrap {
  margin-bottom: 1.25rem;
}

.footer-brand-section .logo-text span:first-child {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-brand-section .logo-text span:last-child {
  color: rgba(255, 255, 255, 0.85);
}

.footer-brand-section .logo-image {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.footer-brand-text {
  max-width: 380px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-top: 1.25rem;
  font-weight: 400;
}

.footer-links {
  display: contents;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h4 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column ul a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease, transform 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
  font-weight: 500;
}

.footer-column ul a:hover {
  color: #ffffff;
  transform: translateX(5px);
  padding-left: 5px;
}

.footer-column ul li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 500;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  font-weight: 500;
}

/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.social-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a:hover .social-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.social-link.whatsapp .social-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-link.instagram .social-icon {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.facebook .social-icon {
  background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.footer-social-label {
  white-space: nowrap;
  font-weight: 500;
}

.footer-bottom a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(69, 185, 124, 0.5);
}

/* Copyright section styling */
.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  white-space: nowrap;
}

.copyright-symbol {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
}

#year {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0.25rem;
}

.copyright-text {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.copyright-reserved {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-credit-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-divider {
  color: var(--accent);
  font-weight: 700;
  opacity: 0.8;
}

.footer-credit-text {
  font-weight: 500;
}

.footer-credit-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.3px;
}

.footer-credit-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.3s ease;
}

.footer-credit-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(69, 185, 124, 0.4);
}

.footer-credit-link:hover::after {
  width: 100%;
}

/* ================== CLINIC SECTION ================== */

.clinic-section {
  padding-block: 4rem;
  background: linear-gradient(135deg, rgba(228, 243, 255, 0.5) 0%, rgba(243, 248, 245, 0.8) 100%);
}

.clinic-header {
  text-align: center;
  margin-bottom: 3rem;
}

.clinic-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.clinic-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.clinic-gallery {
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.clinic-image-large {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 350px;
  box-shadow: var(--shadow-soft);
}

.clinic-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.clinic-image-large:hover img {
  transform: scale(1.05);
}

.clinic-gallery-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.clinic-image-small {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.clinic-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.clinic-image-small:hover img {
  transform: scale(1.08);
}

.clinic-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clinic-image-small:hover .clinic-image-overlay,
.clinic-image-large:hover .clinic-image-overlay {
  opacity: 1;
}

.clinic-image-label {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.clinic-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.clinic-feature {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.clinic-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(69, 185, 124, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.clinic-feature h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.clinic-feature p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand-section {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding-block: 3rem 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand-section {
    grid-column: 1;
  }

  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .social-links {
    gap: 0.5rem;
  }

  .social-links a {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding-top: 1.5rem;
  }

  /* Responsive Clinic Section */
  .clinic-header h2 {
    font-size: 1.8rem;
  }

  .clinic-header p {
    font-size: 0.95rem;
  }

  .clinic-image-large {
    height: 280px;
  }

  .clinic-image-small {
    height: 200px;
  }

  .clinic-gallery-row {
    grid-template-columns: 1fr;
  }

  .clinic-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .clinic-feature {
    padding: 1.5rem;
  }

  .clinic-feature h3 {
    font-size: 1.05rem;
  }

  .clinic-feature p {
    font-size: 0.9rem;
  }

  .feature-icon {
    font-size: 2rem;
  }
}

/* Floating WhatsApp button */
.floating-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.45);
}

.floating-whatsapp:hover {
  filter: brightness(1.05);
}

.floating-whatsapp-icon {
  font-size: 1rem;
}

@media (max-width: 480px) {
  .floating-whatsapp-text {
    display: none;
  }

  .floating-whatsapp {
    right: 1rem;
    bottom: 1rem;
    padding: 0.5rem 0.75rem;
  }

  .container {
    width: 100%;
    padding-inline: 1rem;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .section-heading p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .logo-text span:first-child {
    font-size: 0.95rem;
  }

  .logo-text span:last-child {
    font-size: 0.75rem;
  }

  .logo-image {
    height: 45px;
  }

  .form-shell {
    padding: 1.5rem 1.25rem;
  }

  .highlight-card,
  .service-card,
  .testimonial-card {
    margin-bottom: 1rem;
  }
}

/* Additional mobile improvements */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-meta-item {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .meta-icon {
    font-size: 1.5rem;
  }

  .meta-number {
    font-size: 1.1rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-links a,
  .gallery-item,
  .highlight-card,
  .service-card,
  .testimonial-card {
    -webkit-tap-highlight-color: rgba(0, 82, 140, 0.1);
  }

  .btn:active {
    transform: scale(0.98);
  }
}

