:root {
  --navy: #0a2540;
  --blue: #1a6fbb;
  --sky: #4ab3f4;
  --ice: #e8f4fd;
  --white: #ffffff;
  --text: #1a2a3a;
  --muted: #6b7c8d;
  --border: #dde8f0;
  --accent: #00b4d8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
}

/* BACK BUTTON */
.back-btn {
  position: fixed;
  top: 5.5rem;
  left: 1.5rem;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.back-btn:hover {
  background: var(--navy);
  color: #fff;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
}
.nav-logo span {
  color: var(--sky);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--navy);
}

.nav-book {
  background: var(--blue);
  color: #fff !important;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-book:hover {
  background: var(--navy) !important;
}

/* HERO */
.hero {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    #0d3d6b 40%,
    #1a5c8a 100%
  );
  display: flex;
  align-items: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(74, 179, 244, 0.15) 0%,
    transparent 70%
  );
}

.hero-circles {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
}

.circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(74, 179, 244, 0.2);
}
.circle-1 {
  inset: 0;
  animation: spin 20s linear infinite;
}
.circle-2 {
  inset: 30px;
  animation: spin 15s linear infinite reverse;
}
.circle-3 {
  inset: 80px;
  background: rgba(74, 179, 244, 0.05);
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.tooth-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-15px);
  }
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(74, 179, 244, 0.15);
  border: 1px solid rgba(74, 179, 244, 0.3);
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero h1 span {
  color: var(--sky);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.hero-btns a,
.hero-btns button {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.8rem;
  }

  .hero-btns a,
  .hero-btns button {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

.btn-primary {
  background: var(--sky);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 3rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 3rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

/* SERVICES */
.services {
  padding: 6rem 4rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--ice);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10, 37, 64, 0.1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.service-name {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}
.service-price {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.9rem;
}

/* WHY */
.why {
  background: var(--navy);
  padding: 6rem 4rem;
  color: #fff;
}

.why .section-title {
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.why-item {
  text-align: center;
}
.why-num {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--sky);
  display: block;
  margin-bottom: 0.5rem;
}
.why-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* TEAM */
.team {
  padding: 6rem 4rem;
  background: var(--ice);
}

.doctor-card {
  display: flex;
  gap: 3rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.doctor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.doctor-name {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.doctor-title {
  color: var(--sky);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.doctor-bio {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* BOOKING */
.booking {
  padding: 6rem 4rem;
  text-align: center;
}

.booking-card {
  background: linear-gradient(135deg, var(--navy), #1a5c8a);
  border-radius: 2rem;
  padding: 4rem;
  color: #fff;
}
.booking-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.booking-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.booking-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.booking-input {
  flex: 1;
  padding: 0.9rem 1.5rem;
  border-radius: 3rem;
  border: none;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
}
.booking-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.booking-btn {
  background: var(--sky);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 3rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.booking-btn:hover {
  opacity: 0.85;
}

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}
footer strong {
  color: #fff;
}


/* =========================
   RESPONSIVE / MOBILE
========================= */

@media (max-width: 1100px) {

  .hero-sub,
  .section-header,
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    flex-wrap: wrap;
  }

  .stat {
    width: 50%;
    border-bottom: 1px solid var(--border);
    padding: 2rem 1rem;
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .refs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  nav {
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 7rem 1.25rem 3rem;
    min-height: auto;
  }

  section {
    padding: 4rem 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 5rem);
    line-height: 1;
  }

  .hero-sub {
    margin-top: 2rem;
  }

  .hero-desc {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
    width: 100%;
  }

  .services-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .service-card,
  .step {
    padding: 1.75rem;
  }

  .stats-bar {
    padding: 0;
  }

  .stat {
    width: 100%;
    border-right: none;
  }

  .stat:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .section-title {
    font-size: 2.2rem;
  }

  .contact-email {
    font-size: 1.2rem;
    word-break: break-word;
    text-align: center;
  }

  .ref-overlay {
    padding: 1.25rem;
  }

  .ref-name {
    font-size: 1.1rem;
  }

  .ref-desc {
    font-size: 0.78rem;
  }

  footer {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 480px) {

  .nav-links a {
    font-size: 0.72rem;
  }

  .hero-tag {
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stat-num {
    font-size: 2rem;
  }

  .service-title,
  .step-title {
    font-size: 1rem;
  }

  .contact-email {
    font-size: 1rem;
  }
  
}
  @media (max-width: 768px) {
  .tooth-icon {
    top: auto;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.5rem;
    z-index: 0;
    opacity: 0.25;
  }}

@media (max-width: 768px) {
  .booking-form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }

  .booking-form input,
  .booking-form button {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.1;
    word-break: break-word;
  }
}

@media (max-width: 768px) {
  .back-btn {
    top: 1.5rem;
    left: 1rem;
  }
}

/* TABLET */
@media (max-width: 992px) {
  .team {
    padding: 5rem 2rem;
  }

  .doctor-card {
    gap: 2rem;
    padding: 2rem;
  }

  .doctor-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .doctor-name {
    font-size: 1.4rem;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .team {
    padding: 4rem 1.25rem;
  }

  .doctor-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
  }

  .doctor-avatar {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
  }

  .doctor-name {
    font-size: 1.3rem;
  }

  .doctor-title {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .doctor-bio {
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .team {
    padding: 3.5rem 1rem;
  }

  .doctor-card {
    padding: 1.5rem 1.2rem;
    gap: 1.25rem;
  }

  .doctor-avatar {
    width: 78px;
    height: 78px;
    font-size: 2rem;
  }

  .doctor-name {
    font-size: 1.15rem;
  }

  .doctor-bio {
    font-size: 0.88rem;
  }
}

