/* services.css */

/* --- 1. Hero --- */
.services-hero {
  background: url('../images/services-hero.jpg') center/cover no-repeat;
  padding: 6rem 0;
  text-align: center;
  color: #fff;
}
.services-hero .hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 2rem;
  border-radius: 0.5rem;
}

/* --- 2. Services Grid --- */
.services-list {
  margin: 4rem 0;
  text-align: center;
}
.services-list h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* --- 3. Service Card Base --- */
.service-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 2rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  overflow: auto;    /* contain floated images */
  text-align: left;  /* reset centering from parent */
}
.service-card:hover {
  transform: translateY(-5px);
}

/* Titles & Text */
.service-card h3 {
  color: var(--primary);
  margin: 0 0 1rem;
  text-align: center;
}
.service-card h4 {
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  position: relative;
}
.service-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Sun Protection List */
.sun-protection-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.sun-protection-list li {
  background: rgba(25, 135, 84, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}

/* Clinic Lead */
.clinic-lead {
  margin: 2rem 0 1.5rem;
  font-style: italic;
  color: #555;
}

/* Fees List */
.fees-list {
  margin: 1rem 0 1.5rem 1rem;
  padding: 0;
  list-style: disc;
  color: #333;
}
.fees-list li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Gap Fee & Closing */
.gap-fee {
  font-style: italic;
  margin-bottom: 1.5rem;
}
.closing {
  margin-top: 2rem;
  font-weight: 600;
  text-align: center;
}

/* === Floated Images in Skin Cancer Clinic Card === */
.service-img-left,
.service-img-right {
  width: 48%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 1rem;
}
.service-img-left {
  float: left;
}
.service-img-right {
  float: right;
}

/* Responsive: stack floated images on narrow screens */
@media (max-width: 600px) {
  .service-img-left,
  .service-img-right {
    float: none;
    display: block;
    width: 100%;
    margin: 1rem auto;
  }
}
/* Procedures & Fees table */
.fees-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.fees-table th,
.fees-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
}

.fees-table thead {
  background: rgba(25, 135, 84, 0.1);
}

.fees-table th {
  color: var(--primary);
  font-weight: 600;
}

.fees-table tbody tr:nth-child(odd) {
  background: #fafafa;
}

.fees-table tfoot td {
  border-top: 2px solid var(--primary);
  font-style: italic;
  color: #555;
}
/* Full-width header image under the title */
.service-img-full {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
  float: none;
}

/* === Clinic Lead Profile (image + text together) === */
.lead-profile {
  float: right;
  max-width: 280px;
  margin: 1rem;
}
.lead-profile img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: .5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: .5rem;
}
.lead-profile .clinic-lead {
  margin: 0;           /* reset default margins */
  font-style: italic;
  color: #555;
}
@media (max-width: 600px) {
  .lead-profile {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
  }
}
/* Hide native <summary> marker (the black triangle) */
.service-card summary {
  list-style: none;           /* remove any fallback list-style */
}
.service-card summary::-webkit-details-marker {
  display: none;              /* Chrome, Safari, Edge */
}
.service-card summary::marker {
  display: none;              /* Firefox, modern browsers */
}

/* in services.css */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.contact-address address {
  font-style: normal;
  line-height: 1.5;
  color: var(--primary);
  font-weight: 600;
}
.contact-note {
  display: flex;
  align-items: center;
}
.contact-note p {
  margin: 0;
}
@media (max-width: 600px) {
  .contact-block {
    grid-template-columns: 1fr;
  }
}

/* =========================
   On-this-page jump-menu
   ========================= */
   /* ——— On This Page box ——— */
   .on-this-page {
     background: #fff;
     border: 1px solid rgba(0,0,0,0.1);
     border-left: 4px solid var(--primary);
     border-radius: 0.5rem;
     padding: 1.25rem 1.5rem;
     margin: 2rem 0;
   }
   .on-this-page h2 {
     margin: 0 0 1rem;
     color: var(--primary);
     font-size: 1.5rem;
   }
   .on-this-page ul {
     list-style: none;
     margin: 0;
     padding: 0;
     /* flow into columns */
     column-count: 2;
     column-gap: 1.5rem;
   }
   .on-this-page ul li {
     margin: .5em 0;
   }
   .on-this-page ul a {
     color: var(--primary);
     text-decoration: none;
   }
   .on-this-page ul a:hover {
     text-decoration: underline;
   }

   /* 3 columns on wide screens */
   @media (min-width: 1200px) {
     .on-this-page ul {
       column-count: 3;
     }
   }

   /* collapse to one column on phones */
   @media (max-width: 600px) {
     .on-this-page ul {
       column-count: 1;
       column-gap: 1rem;
     }
   }

   #scrollTopBtn {
     display: none;               /* hidden by default */
     position: fixed;
     bottom: 1.5rem;
     right: 1.5rem;
     z-index: 1000;
     background-color: var(--primary);
     color: #fff;
     border: none;
     padding: 0.75rem 1rem;
     font-size: 1.25rem;
     border-radius: 0.5rem;
     cursor: pointer;
     box-shadow: 0 2px 6px rgba(0,0,0,0.3);
     transition: opacity 0.3s ease;
   }
   #scrollTopBtn.show {
     display: block;
     opacity: 0.8;
   }
   #scrollTopBtn:hover {
     opacity: 1;
   }
