/* ----------------------------------------------------
   DENTAL CARE CLINIC - Rourkela, Odisha
   Modern Premium Healthcare Stylesheet
   ---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0e7490;         /* Deep Teal */
  --primary-hover: #0891b2;   /* Bright Teal */
  --primary-light: #ecfeff;   /* Soft Cyan Tint */
  --secondary: #0284c7;       /* Ocean Blue Accent */
  --accent-green: #10b981;    /* WhatsApp Green */
  --dark: #0f172a;            /* Slate Dark */
  --slate: #475569;           /* Body Text Muted */
  --light-bg: #f8fafc;        /* Soft Light Gray */
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --focus-ring: rgba(14, 116, 144, 0.25);
  
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(14, 116, 144, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 35px -10px rgba(14, 116, 144, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --nav-height: 80px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--slate);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

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

/* Header & Sticky Navigation Bar */
.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.nav-container {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(14, 116, 144, 0.25);
}

.brand-text span {
  color: var(--primary);
}

.brand-subtitle {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

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

/* Navbar CTA Button */
.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 116, 144, 0.35);
  color: white;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--dark);
  cursor: pointer;
  padding: 5px;
}

/* Main Container & Page Layout */
main {
  margin-top: var(--nav-height); /* Zero gap between navbar and hero! */
}

.section-space {
  padding: 80px 0;
}

.bg-white { background-color: #ffffff; }
.bg-light { background-color: var(--light-bg); }

.container {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate);
}

/* Hero Section (Start immediately below Navbar) */
.hero-section {
  padding: 70px 0 90px 0;
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* General Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 6px 20px rgba(14, 116, 144, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(14, 116, 144, 0.35);
  color: white;
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Image Interactions & Hover Zoom */
.card-img-wrap, .img-hover-box {
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
}

.card-img-wrap img, .img-hover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.card-img-wrap:hover img, .img-hover-box:hover img {
  transform: scale(1.05); /* Slight zoom on hover as specified */
}

/* Hero Image Specific */
.hero-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 4px solid white;
}

/* Demo Badge */
.demo-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid #fde68a;
}

/* Preview Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 116, 144, 0.3);
}

.card-img-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 10px;
}

.btn-read-more:hover {
  color: var(--primary-hover);
  gap: 10px;
}

/* Floating WhatsApp & Call Buttons (Right side fixed visible) */
.floating-contact-buttons {
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.float-btn:hover {
  transform: scale(1.12);
  color: white;
}

.float-whatsapp {
  background: #25d366;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.float-whatsapp:hover {
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.6);
}

.float-call {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 18px rgba(14, 116, 144, 0.4);
}

.float-call:hover {
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.6);
}

.float-btn .tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
}

.float-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Dedicated Page Header Banner */
.page-banner {
  background: linear-gradient(135deg, #0e7490, #0369a1);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-banner h1 {
  color: white;
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.breadcrumb a {
  color: #a5f3fc;
}

/* Doctor Profile Cards */
.doctor-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.doctor-img-wrap {
  height: 280px;
  overflow: hidden;
}

.doctor-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.doctor-info {
  padding: 24px;
}

.doctor-name {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.doctor-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Appointment Form Styles */
.form-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-control.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.error-message {
  color: #dc2626;
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}

.error-message.active {
  display: block;
}

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-alert.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-alert.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  color: var(--slate);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 70px 0 30px 0;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-links h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 30px;
  text-align: center;
  font-size: 0.88rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 85%;
  max-height: 85%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.35s ease;
  }
  .nav-menu.active {
    transform: translateY(0);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-box {
    padding: 24px;
  }
}
