:root {
  --bg: #f5fbff;
  --white: #ffffff;
  --navy: #082032;
  --sky: #3abef9;
  --sky-light: #cbefff;
  --gray: #6c7a89;
  --accent: #1cb0ff;
  --shadow: 0 20px 60px rgba(8, 32, 50, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

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

.hero {
  min-height: 100vh;
  padding: 24px clamp(20px, 6vw, 80px) 120px;
  background: linear-gradient(135deg, var(--white), var(--sky-light));
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 10% 20%;
  background: radial-gradient(circle, rgba(58, 190, 249, 0.35), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-height: 70px;
}

.logo {
  height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-right: 12px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

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

.brand > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clinic-name {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.tagline {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.2;
  margin: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 600;
  color: var(--gray);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-content .text {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 20px 0;
}

.hero-content .text > * {
  opacity: 1;
  visibility: visible;
}

.intro {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin-top: 12px;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.2rem;
  margin: 16px 0;
  color: var(--gray);
  line-height: 1.6;
  font-weight: 500;
}

.hero .tagline {
  font-size: 1rem;
  color: var(--gray);
  margin: 12px 0 24px 0;
  font-style: italic;
}

.hero .tagline:empty {
  display: none;
}

.hero-description {
  margin: 24px 0 32px 0;
  color: var(--navy);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-description::-webkit-scrollbar {
  width: 6px;
}

.hero-description::-webkit-scrollbar-track {
  background: var(--sky-light);
  border-radius: 10px;
}

.hero-description::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.hero-description p {
  margin-bottom: 16px;
  color: var(--gray);
  text-align: justify;
}

.hero-description p:last-child {
  margin-bottom: 0;
}

.hero-description strong {
  color: var(--navy);
  font-weight: 700;
}

.hero-content .visual {
  position: relative;
  z-index: 2;
}

.hero-card {
  background: var(--white);
  padding: 24px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.section {
  padding: 100px clamp(20px, 6vw, 80px);
  min-height: auto;
}

.about.section {
  padding: 100px clamp(20px, 6vw, 80px);
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

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

.description {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 0;
  padding: 24px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-height: fit-content;
}

.about .info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.info article {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  flex: 1;
  min-height: 140px;
}

.icon {
  font-size: 1.8rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(8, 32, 50, 0.12);
}

.service-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--sky-light), var(--white));
  position: relative;
  box-shadow: 0 4px 12px rgba(8, 32, 50, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(8, 32, 50, 0.12);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--navy);
  font-weight: 700;
}

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

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.doctor-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(8, 32, 50, 0.12);
}

.doctor-icon {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky-light), var(--accent));
  font-size: 5rem;
  padding: 20px;
  transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-icon {
  transform: scale(1.05);
}

.doctor-card .details {
  padding: 24px;
  text-align: center;
}

.doctor-card .details h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.doctor-card .details .qualification {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.doctor-card .details .speciality {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  border-radius: 18px;
  height: 240px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.appointment-form, .map {
  background: var(--white);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.field label {
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #e0e8ef;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}

.field.full {
  grid-column: span 2;
}

.appointment-form button {
  width: 100%;
}

.map {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map iframe {
  width: 100%;
  height: 400px;
  min-height: 300px;
  border: none;
  border-radius: 16px;
  display: block;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.contact-cards article {
  background: var(--sky-light);
  padding: 16px;
  border-radius: 16px;
}

.btn {
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(28, 176, 255, 0.35);
  margin-top: 24px;
  font-size: 1rem;
  padding: 16px 32px;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(28, 176, 255, 0.45);
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--navy);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  opacity: 0;
  transition: 0.3s ease;
  box-shadow: var(--shadow);
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: #ff5c5c;
}

.footer {
  background: #04111f;
  color: #dbeeff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(20px, 6vw, 80px);
}

.socials a {
  margin-right: 16px;
  color: #dbeeff;
}

.whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: white;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.4);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp span {
  font-size: 0.95rem;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.whatsapp-icon-small {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.whatsapp-link:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .navbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    top: 20px;
  }
  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    background: var(--white);
    width: 220px;
    padding: 18px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.3s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .logo {
    height: 40px;
    max-width: 140px;
  }
  .brand {
    gap: 8px;
  }
  .clinic-name {
    font-size: 0.95rem;
  }
  .tagline {
    font-size: 0.75rem;
  }
  .field.full {
    grid-column: span 1;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .description {
    padding: 20px;
  }
  .info article {
    min-height: auto;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-image {
    height: 160px;
    margin-bottom: 16px;
  }
  .service-card h3 {
    font-size: 1.2rem;
  }
  .service-card p {
    font-size: 0.9rem;
  }
  .doctor-icon {
    height: 160px;
    font-size: 4rem;
  }
  .doctor-card .details h3 {
    font-size: 1.2rem;
  }
  .doctor-card .details .qualification {
    font-size: 0.9rem;
  }
  .doctor-card .details .speciality {
    font-size: 0.85rem;
  }
  .map iframe {
    height: 300px;
    min-height: 250px;
  }
  .map {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    margin-top: 70px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-content .text {
    text-align: center;
    max-width: 100%;
    padding: 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
  .hero-description {
    font-size: 0.9rem;
    margin: 20px 0 24px 0;
    text-align: left;
  }
  .hero-description p {
    margin-bottom: 12px;
  }
  .hero-card {
    animation: none;
    margin: 0 auto;
    max-width: 100%;
  }
  .logo {
    height: 35px;
    max-width: 120px;
  }
  .brand {
    gap: 6px;
  }
  .clinic-name {
    font-size: 0.85rem;
  }
  .tagline {
    display: none;
  }
}

.error-text {
  color: #e63946;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.invalid {
  border: 1px solid #e63946 !important;
}
