/* =========================
   BRANDING & TYPOGRAPHY
   ========================= */
:root {
  --brand-blue: #0a3a6a;
  --brand-blue-light: #e8f2fb;
  --brand-accent: #3aa0ff;
  --border-light: #e0e0e0;
  --text-secondary: #666;
  --site-background: #f0f8ff; /* Light blue background for the whole site */
}

/* Self-hosted Inter font — no Google Fonts / no external requests */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700.woff2") format("woff2");
}

body {
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  background-color: var(--site-background); /* Apply light blue background */
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4 {
  color: var(--brand-blue);
}

a[role="button"] {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  display: inline-block;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

a[role="button"]:hover {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}

/* =========================
   TOP CONTACT BAR
   ========================= */
.top-contact-bar {
  background-color: transparent;
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
  font-weight: 300;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.top-contact-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-contact-item {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.top-contact-label {
  font-weight: 300;
  color: var(--text-secondary);
  opacity: 0.7;
}

.top-contact-link {
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.top-contact-link:hover {
  opacity: 1;
  text-decoration: none;
}

.top-contact-separator {
  color: var(--border-light);
  user-select: none;
  opacity: 0.5;
}

/* =========================
   NAVIGATION
   ========================= */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  border: 2px solid var(--brand-blue-light);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.08);
  background-color: #ffffff;
}

.main-nav .brand {
  font-size: 1.1rem;
  color: var(--brand-blue);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--brand-blue);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background-color: var(--brand-blue-light);
}

.nav-links a[aria-current="page"] {
  background-color: var(--brand-blue-light);
  font-weight: 600;
}

.nav-links a.primary {
  background-color: var(--brand-blue);
  color: #ffffff;
}

.nav-links a.primary:hover {
  background-color: var(--brand-accent);
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  background: linear-gradient(
    180deg,
    #d9ecff,  /* Lighter blue to match site background */
    #ffffff
  );
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  margin-bottom: 4rem;
  animation: fadeUp 0.8s ease-out both;
  border: 1px solid #cce0ff; /* Light blue border */
}

.hero p {
  max-width: 600px;
  font-size: 1.1rem;
}

/* Hero grid layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-cta {
  margin-top: 2rem;
}

.hero-button {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-button:hover {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: white;
}

.hero-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 300px;
}

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

.hero-image img:hover {
  transform: scale(1.02);
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-image {
    min-height: 250px;
    order: -1; /* Place image above text on mobile if desired */
  }
}

@media (max-width: 480px) {
  .hero-image {
    min-height: 200px;
  }
}

/* =========================
   BENEFITS
   ========================= */
.benefits article {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  animation: fadeUp 0.8s ease-out both;
  border: 1px solid #d9ecff; /* Light blue border to match theme */
}

.benefits article:nth-child(2) {
  animation-delay: 0.1s;
}

.benefits article:nth-child(3) {
  animation-delay: 0.2s;
}

.icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--brand-accent);
}

/* =========================
   SUBTLE ANIMATIONS
   ========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   CTA CARD
   ========================= */
.cta-card {
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #d9ecff;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background-color: var(--brand-accent);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(58, 160, 255, 0.3);
}

.cta-button:hover {
  background-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(58, 160, 255, 0.4);
}

/* =========================
   FOOTER
   ========================= */
footer {
  margin-top: 5rem;
  text-align: center;
  opacity: 0.7;
  padding: 2rem 0;
  border-top: 1px solid #d9ecff; /* Light blue border */
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .nav-links {
    flex-wrap: wrap;
  }
  
  .hero {
    padding: 3rem 1.5rem !important;
  }
  
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  }

  .main-nav .brand {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .top-contact-bar {
    font-size: 0.65rem;
  }

  .main-nav {
    padding: 1rem 1.25rem;
  }

  .main-nav .brand {
    font-size: 0.88rem;
  }
}

/* =========================
   CAROUSEL STYLES
   ========================= */
.carousel-section {
    max-width: 1200px;
    margin: 3rem auto 3rem auto;
    text-align: center;
}
/* The container height will adjust automatically to fit the image */

.carousel-section h3 {
    margin-bottom: 1.5rem;
    color: var(--brand-blue);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(10, 58, 106, 0.1);
    background: #ffffff;
    border: 1px solid var(--brand-blue-light);
    padding: 1rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
}

.carousel-slide img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--brand-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #bdc3c7;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--brand-accent);
}

.carousel-dots .dot:hover {
    background: var(--brand-blue);
}

.carousel-caption {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Custom object-position for each carousel slide */
.slide-1 img {
    object-position: center 70%; /* Adjust as needed */
}

.slide-2 img {
    object-position: center 40%; /* Adjust as needed */
}

.slide-3 img {
    object-position: center 50%; /* Center */
}

.slide-4 img {
    object-position: center 60%; /* Adjust as needed */
}

.slide-5 img {
    object-position: center 60%; /* Adjust as needed */
}

.slide-6 img {
    object-position: center 20%; /* Adjust as needed */
}

.slide-7 img {
    object-position: center 80%; /* Adjust as needed */
}

.slide-8 img {
    object-position: center 50%; /* Adjust as needed */
}

.slide-9 img {
    object-position: center 52%; /* Adjust as needed */
}

.slide-10 img {
    object-position: center 45%; /* Adjust as needed */
}

.slide-11 img {
    object-position: center 55%; /* Adjust as needed */
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 312px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-slide img {
        height: 260px;
    }
}

/* =========================
   TEAM PAGE SPECIFIC
   ========================= */
/* Add background to image containers */
.grid article div[style*="border-radius: 50%"],
section div[style*="border-radius: 50%"] {
  background-color: var(--brand-blue-light);
}

@media (max-width: 768px) {
  /* Adjust image sizes on mobile */
  .grid article div[style*="width: 247px"] {
    width: 190px !important;
    height: 190px !important;
  }
  .grid article div[style*="width: 150px"] {
    width: 120px !important;
    height: 120px !important;
  }

  /* Force doctor cards (2-col grid) to single column on mobile */
  section > .grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Further adjust image sizes on very small screens */
  .grid article div[style*="width: 247px"],
  .grid article div[style*="width: 150px"] {
    width: 130px !important;
    height: 130px !important;
  }
}

/* =========================
   CONTACT PAGE
   ========================= */
@media (max-width: 600px) {
  /* Stack opening hours table cells vertically on narrow screens */
  .contact-hours tr {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .contact-hours td {
    border-bottom: none !important;
    padding: 0 !important;
  }
}

