/* Basic styles for the whole website */

:root {
  --bg-color: #fafafa;
  --text-color: #333;
  --subtext-color: #666;
  --accent-color: #005a9c;
  --box-color: #638fae;
}

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

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 1.1rem;
}

.logo a {
    text-decoration: none;
    color: var(--accent-color);
}

/* Header + Navigation */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: relative;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* mobile ony headers*/

.mobile-only {
  width: 100%;
  padding: 1rem 1rem;
  display: block;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
  margin-bottom: 1rem;
}

/* Hide on desktop */
@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
}

/* Navigation links */

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-color);
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

/* Hamburger button */

.menu-toggle {
  display: contents;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* Mobile menu hidden by default */

#navbar {
  display: none;
}

/* When toggle is clicked, add `.open` to show it */

#navbar.open {
  display: flex;
}

/* Desktop view shows navbar normally */

@media (min-width: 769px) {
  #navbar {
    display: block !important;
  }

  .menu-toggle {
    display: none;
  }
}

/* Improved Mobile Navigation */
@media (max-width: 768px) {
  #navbar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #navbar.open {
    max-height: 500px; /* adjust if needed for more links */
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-links li {
    margin: 0.5rem 0;
    text-align: center;
  }

  .menu-toggle {
    display: inline-block; /* ensure hamburger is visible */
    cursor: pointer;
  }
}

/* Home page styles */

.container {
  max-width: 100%;
  margin: 0 10%;
  padding: 1.5rem 1rem;
}


#vacation-banner {
  margin: 0;
}

.vacation-alert {
  background-color: #fff3cd;
  color: #856404;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  border-bottom: 1px solid #eedc82;
}


/* Opening Hours Table */

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1rem;
  background-color: #fff;
}

.hours-table th,
.hours-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.hours-table th {
  background-color: #f0f4f8;
  color: var(--accent-color);
}

/* Contact Section */

.contact-section {
  margin-top: 3rem;
  padding-top: 1rem;
}

.office-contact {
  margin-top: 2rem;
}

.office-contact h4 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.shared-contact {
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-list a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-grid {
  display: flex;
  gap: 5.5rem;
  flex-direction: column;
  border-top: 1px solid #ddd;
}

.shared-contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Make it side by side on desktop */

@media (min-width: 768px) {
  .shared-contact-wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .shared-contact, .medevo-banner {
    flex: 1;
  }

  .shared-contact {
    padding-right: 1rem;
  }

  .medevo-banner {
    text-align: right;
  }
}

/* Two-column layout on wider screens */

@media (min-width: 768px) {
  .contact-grid {
    flex-direction: row;
  }

  .office-contact {
    flex: 1;
  }
}

a {
  transition: color 0.2s ease;
}
.menu-toggle {
  transition: transform 0.2s ease;
}

/* About page styles */

.doctorList, .nurseList{
  margin: 0.55rem 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.25rem;
}

.doctorList h3, .nurseList h3{
  margin-bottom: 0.33rem;
  text-decoration: wavy;
}

.about-hero {
  background-color: #f0f4f8;
  color: var(--accent-color);
  text-align: center;
  padding: 3rem 1rem;
  border: 1px solid var(--box-color);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.about-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-content {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content h2 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* Footer */

footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--subtext-color);
  padding: 1rem;
  border-top: 1px solid #eee;
  margin-top: 3rem;
  background-color: #f0f4f8;
  color: var(--accent-color);
}

/* Vacation page styles */

#vacation-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.vacation-item {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.vacation-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.vacation-item strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.vacation-item.current {
  border-color: #ffd966;
  background-color: #fff9e6;
}

.vacation-now {
  color: #d9534f;
  font-weight: bold;
}

.vacation-empty {
  text-align: center;
  padding: 2rem;
  font-style: italic;
  color: var(--subtext-color);
}

/* Large screen optimization for vacation page */
@media (min-width: 1024px) {
  #vacation-list {
    display: grid;
    padding: 0 2rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }
  .vacation-item {
    margin-bottom: 0; /* grid gap handles spacing */
  }
}

.container.full-width{
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0 5%;
}

/* Price Table Styles */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  background-color: #fff;
}

.price-table th,
.price-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.price-table th {
  background-color: #f0f4f8;
  color: var(--accent-color);
}


.price-table tbody tr:hover {
  background-color: #f5f9fc;
}

.price-table td:last-child {
  text-align: left;
}

.italic{
  font-style: italic;
}

.space{
  margin-bottom: 1rem;
}

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

.insurance-item{
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.insurance-item:hover{
  transform: translateY(-4px);
}

.insurance-item img{
  max-width: 100%;
  height: auto;
}

.insurance-item a{
  text-decoration: none;
  color: var(--text-color);
}

/*equipment page styles*/

.equipment-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem ;
  margin-top: 1rem;
}

.equipment-card{
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  font-size: 1rem;
}

.equipment-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

