/* ── SERVICES PAGE CSS ─────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,700&family=DM+Sans:wght@400;500;600&display=swap');

/* ── HERO ─────────────────────────────────────────────── */
.services-hero {
  min-height: 380px;
  padding-top: 72px;
  background: linear-gradient(135deg, #071e1b 0%, #0e3330 50%, #163e38 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.1) 0%, transparent 65%);
  right: -200px;
  top: -200px;
  pointer-events: none;
}

.services-hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,126,110,.12) 0%, transparent 65%);
  left: -100px;
  bottom: -150px;
  pointer-events: none;
}

.services-hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 40px 24px;
}

.services-hero-content .section-tag {
  display: inline-block;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.35);
  color: #c9a84c;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.services-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.services-hero-content h1 em {
  color: #c9a84c;
  font-style: italic;
}

.services-hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  font-weight: 400;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ── SERVICES MAIN SECTION ────────────────────────────── */
.services-main {
  background: #f8faf9;
  padding: 80px 0;
}

.services-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── CATEGORY SECTION ─────────────────────────────────── */
.service-category {
  margin-bottom: 60px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2eeec;
}

.category-bar {
  width: 4px;
  height: 28px;
  border-radius: 3px;
  flex-shrink: 0;
}

.category-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #0e2e2a;
  margin: 0;
  line-height: 1.2;
}

.category-header .cat-count {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(10,126,110,.1);
  color: #0a7e6e;
  white-space: nowrap;
}

/* ── SERVICE CARDS GRID ───────────────────────────────── */
.services-grid {
  display: grid;
  gap: 18px;
}

.services-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.services-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.services-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.services-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ── SERVICE CARD ─────────────────────────────────────── */
.service-card-new {
  background: #fff;
  border: 1px solid #e2eeec;
  border-radius: 14px;
  padding: 28px 22px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}

.service-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0a7e6e, #c9a84c);
  opacity: 0;
  transition: opacity .25s ease;
}

.service-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(10,126,110,.12);
  border-color: #b3d9d3;
}

.service-card-new:hover::before {
  opacity: 1;
}

.service-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e6f7f4, #d0f0e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  transition: transform .25s ease;
}

.service-card-new:hover .service-card-icon {
  transform: scale(1.08);
}

.service-card-new h3 {
  font-size: .98rem;
  font-weight: 600;
  color: #0e2e2a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.service-card-new p {
  font-size: .84rem;
  color: #5a7a76;
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #0a7e6e;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}

.service-card-link:hover {
  gap: 10px;
  color: #c9a84c;
}

/* ── FULL MOUTH REHAB WIDE CARD ───────────────────────── */
.service-card-wide {
  background: linear-gradient(135deg, #0e3330, #163e38);
  border: 1px solid #1f5048;
  border-radius: 14px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card-wide:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0,0,0,.2);
}

.service-card-wide .service-card-icon {
  background: rgba(201,168,76,.15);
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  font-size: 1.8rem;
}

.service-card-wide h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.service-card-wide p {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-bottom: 0;
}

.service-card-wide .service-card-link {
  color: #c9a84c;
  margin-top: 12px;
  display: inline-flex;
}

.service-card-wide .service-card-link:hover {
  color: #fff;
}

/* ── WIDE CARDS GRID ──────────────────────────────────── */
.wide-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ── CTA BANNER ───────────────────────────────────────── */
.services-cta {
  background: linear-gradient(135deg, #071e1b 0%, #0e3330 100%);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 65%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.services-cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.services-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.services-cta h2 em {
  color: #c9a84c;
  font-style: italic;
}

.services-cta p {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .services-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .services-main { padding: 50px 0; }
  .services-grid.cols-4,
  .services-grid.cols-3,
  .services-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .wide-cards-grid { grid-template-columns: 1fr; }
  .service-card-wide { flex-direction: column; text-align: center; padding: 24px; }
  .category-header h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .services-grid.cols-4,
  .services-grid.cols-3,
  .services-grid.cols-2,
  .services-grid.cols-5 { grid-template-columns: 1fr; }
  .services-hero-content h1 { font-size: 2rem; }
}
