


:root {
  --bg-cream: #FAF5EC;
  --text-main: #18222F;
  --text-muted: #4B5563;
  --accent-copper: #B8804A;
  --card-radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-cream);
}

.services-section {
  padding: 4rem 1.5rem 4rem;
  background-color: var(--bg-cream);
  background-color: #d6e2e8
}

.about-section {
  padding: 5rem 1.5rem 5rem;
  background-color: var(--bg-cream);
   
}

/* You can later add a cream+copper topo background image here if desired */
/* e.g. background-image: url('../images/topo-bg.svg'); */

.services-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-copper);
  margin-bottom: 0.4rem;
}

.services-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.2rem;
  margin: 0 0 0.75rem;
}

.services-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

/* Card layout */

.service-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
  background-color: #faf5ec;
}

.service-image {
  width: 100%;
  padding-top: 118%; /* controls aspect ratio */
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transition: transform 260ms ease-out;
}

/* Dark gradient overlay across the bottom area of the image */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.35),
    transparent 55%
  );
  /* pointer-events: none; */
}

/* Text overlay sitting on top of the bottom of the image */
.service-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.6rem 1.7rem;
  color: #F9FAFB;
  transition: max-height 260ms ease-out;
  max-height: 4.2rem; /* enough for title, text hidden by default */
  overflow: hidden;
}

.service-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.15rem;
  margin: 0;
}

.service-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #E5E7EB;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease-out;
}

/* Hover behavior for desktop */
.service-card:hover .service-image {
  transform: scale(1.04);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-overlay {
    max-height: 16rem;
  }
  .service-card:hover .service-text {
    max-height: 16rem;
  }
}

.hovered, .hovered .service-text {
    max-height: 16rem;
}  

@media (hover: none) {
  .service-overlay.hovered, .service-overlay.hovered .service-text {
    max-height: 16rem;
  }  
}

/* Active class for mobile tap behavior */
.service-card.service-active .service-overlay {
  max-height: 16rem;
}

.service-card.service-active .service-text {
  max-height: 16rem;
}

/* Responsive grid behavior */

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .services-section {
    padding: 3rem 1.25rem 4rem;
  }
}

.service-card .services-overlay{
    padding: 15px;
    color: #333;
    border-radius: 5px;
    background-color: white;
}

.service-card .services-overlay p { color: #333; }

#womens_health .service-overlay{
    background-color: #5BA7BDAD;
    background-color: #C88A8CB2;
}
#mens_health .service-overlay{
    background-color: #B2ACA6AD;
    background-color: #788398b2;
}
#thyroid_adrenal .service-overlay{
  background-color: #C6BE9AAD;
}
#lifestyle_medicine .service-overlay{
background-color: #C6BE9AAD;
background-color: #CA965CB2;
}
#sexual_health .service-overlay{
background-color: #C6BE9AAD;
background-color: #9e4f0aad;
background-color: #d17423AD;
}
#hair_loss .service-overlay{
background-color: #C6BE9AAD;
background-color: #899CA9B2;
}