/* =============================================
   TREATMENTS.CSS — Pearlhaus Dental
   Crisp clinical white, colour-coded categories
   Card-grid energy, bold filter tabs
   ============================================= */

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

:root {
  --teal: #2a9d8f;
  --teal-light: #52b5a9;
  --teal-pale: #e8f7f5;
  --dark: #1a2e2b;
  --white: #ffffff;
  --off: #f8fffe;
  --text: #1d3430;
  --muted: #6b8f8a;
  --border: #d4ecea;
  --gold: #e9c46a;
  --cosmetic-color: #e76f51;
  --cosmetic-bg: #fef0ec;
  --restorative-color: #2196f3;
  --restorative-bg: #e3f2fd;
  --orthodontic-color: #9c27b0;
  --orthodontic-bg: #f3e5f5;
  --preventive-color: #4caf50;
  --preventive-bg: #e8f5e9;
  --kids-color: #ff9800;
  --kids-bg: #fff3e0;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--text); font-family: var(--font-body); overflow-x: hidden; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 52px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav.scrolled { padding: 12px 52px; box-shadow: 0 2px 24px rgba(42,157,143,0.1); }
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--dark); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo em { font-style: italic; color: var(--teal); font-weight: 400; }
.logo-icon { color: var(--teal); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: var(--white);
  padding: 10px 24px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(42,157,143,0.3);
}
.nav-cta:hover { background: var(--dark); }
.hamburger {
  display: none; background: none; border: none;
  color: var(--dark); font-size: 1.3rem; cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: 0; background: var(--dark);
  z-index: 2000; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: translateX(100%); transition: transform 0.4s;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin: 18px 0; }
.mobile-menu ul li a {
  font-family: var(--font-display); font-size: 1.8rem;
  color: var(--white); text-decoration: none;
}
.mobile-menu ul li a.mob-cta { color: var(--teal); }
.close-menu {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer;
}

/* HEADER */
.t-header {
  padding: 160px 80px 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2, #243b37) 100%);
  position: relative; overflow: hidden;
}
.t-header::before {
  content: '+'; position: absolute;
  font-size: 28vw; font-weight: 300; color: rgba(42,157,143,0.05);
  right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display);
}
.t-header-content { position: relative; z-index: 1; max-width: 700px; }
.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-light); font-weight: 600; margin-bottom: 12px; display: block;
}
.t-header h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700; line-height: 1.05; color: var(--white);
}
.t-header h1 em { font-style: italic; color: var(--teal-light); font-weight: 400; }
.t-header-sub {
  margin-top: 20px; font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,0.55); max-width: 560px;
}

/* TREATMENT NAV */
.treatment-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 65px; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.tn-inner {
  display: flex; gap: 0; overflow-x: auto;
  padding: 0 80px;
}
.tn-inner::-webkit-scrollbar { display: none; }
.tn-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  color: var(--muted);
  padding: 18px 24px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s; white-space: nowrap;
}
.tn-btn:hover { color: var(--teal); }
.tn-btn.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }

/* FEATURED TREATMENT */
.t-featured {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 0; background: var(--teal-pale);
  border-bottom: 1px solid var(--border);
}
.tf-left {
  display: flex; align-items: center; justify-content: center;
  padding: 80px;
  background: linear-gradient(135deg, #e8f7f5, #d0f0ea);
}
.tf-visual {
  position: relative; width: 240px; height: 240px;
}
.tf-circle {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  opacity: 0.15;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.08)} }
.tf-icon-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--teal);
}
.tf-badge {
  position: absolute; top: 10px; right: -10px;
  background: var(--gold); color: var(--dark);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
}
.tf-right { padding: 72px 80px; }
.t-cat-badge {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 16px;
}
.t-cat-badge.cosmetic { background: var(--cosmetic-bg); color: var(--cosmetic-color); }
.tf-right h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 16px;
}
.tf-right h2 em { font-style: italic; color: var(--teal); font-weight: 400; }
.tf-desc { font-size: 0.95rem; line-height: 1.8; color: var(--muted); margin-bottom: 32px; }
.tf-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px;
}
.tf-detail-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.tf-detail-item i {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--white); color: var(--teal); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 2px 8px rgba(42,157,143,0.15);
}
.tf-detail-item strong { display: block; font-size: 0.75rem; color: var(--dark); font-weight: 600; }
.tf-detail-item span { display: block; font-size: 0.8rem; color: var(--muted); }
.btn-book {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: white;
  padding: 14px 30px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(42,157,143,0.3);
}
.btn-book:hover { background: var(--dark); transform: translateY(-2px); }

/* TREATMENTS GRID */
.treatments-section { padding: 72px 80px; background: var(--off); }
.treatments-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.treatment-card {
  background: var(--white); border-radius: 16px;
  border: 1.5px solid var(--border);
  padding: 32px; transition: all 0.35s ease;
}
.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(42,157,143,0.12);
  border-color: var(--teal);
}
.tc-header-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.tc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.tc-icon.cosmetic { background: var(--cosmetic-bg); color: var(--cosmetic-color); }
.tc-icon.restorative { background: var(--restorative-bg); color: var(--restorative-color); }
.tc-icon.orthodontic { background: var(--orthodontic-bg); color: var(--orthodontic-color); }
.tc-icon.preventive { background: var(--preventive-bg); color: var(--preventive-color); }
.tc-icon.kids { background: var(--kids-bg); color: var(--kids-color); }
.tc-cat {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
}
.tc-cat.cosmetic { background: var(--cosmetic-bg); color: var(--cosmetic-color); }
.tc-cat.restorative { background: var(--restorative-bg); color: var(--restorative-color); }
.tc-cat.orthodontic { background: var(--orthodontic-bg); color: var(--orthodontic-color); }
.tc-cat.preventive { background: var(--preventive-bg); color: var(--preventive-color); }
.tc-cat.kids { background: var(--kids-bg); color: var(--kids-color); }
.treatment-card h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--dark); margin-bottom: 10px;
}
.treatment-card p { font-size: 0.85rem; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
.tc-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tc-meta span { font-size: 0.78rem; color: var(--text); display: flex; align-items: center; gap: 6px; }
.tc-meta i { color: var(--teal); font-size: 0.7rem; }
.tc-steps {
  display: flex; flex-direction: column; gap: 5px; margin-bottom: 20px;
}
.tc-steps span {
  font-size: 0.75rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.tc-steps span::before {
  content: '→'; color: var(--teal); font-size: 0.7rem;
}
.tc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-size: 0.82rem; font-weight: 700;
  text-decoration: none; transition: gap 0.3s;
}
.tc-cta:hover { gap: 14px; }

/* PRICING PROMISE */
.pricing-promise {
  background: var(--dark); padding: 48px 80px;
}
.pp-inner {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
}
.pp-icon {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: rgba(42,157,143,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-light); font-size: 1.5rem;
}
.pp-text { flex: 1; }
.pp-text h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.pp-text p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-badges span {
  display: flex; align-items: center; gap: 7px;
  background: rgba(42,157,143,0.12); color: var(--teal-light);
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
}
.pp-badges i { font-size: 0.7rem; }

/* CTA */
.t-cta {
  padding: 100px 80px; text-align: center;
  background: var(--off);
}
.t-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 16px;
}
.t-cta h2 em { font-style: italic; color: var(--teal); font-weight: 400; }
.t-cta p {
  font-size: 0.97rem; color: var(--muted); line-height: 1.7;
  max-width: 600px; margin: 0 auto 36px;
}
.t-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: white;
  padding: 16px 36px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none; transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(42,157,143,0.3);
}
.t-cta-btn:hover { background: var(--dark); transform: translateY(-2px); }

/* FOOTER */
.footer { background: #0f1e1c; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; padding: 64px 80px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.footer-logo i { color: var(--teal-light); }
.footer-logo em { font-style: italic; color: var(--teal-light); font-weight: 400; }
.footer-brand p { font-size: 0.83rem; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 0.8rem;
  text-decoration: none; transition: all 0.3s;
}
.footer-socials a:hover { border-color: var(--teal-light); color: var(--teal-light); }
.footer-col h5 {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 0.83rem; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.3s;
}
.footer-col ul li a:hover { color: white; }
.footer-contact-items p {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  margin-bottom: 9px; display: flex; gap: 9px; line-height: 1.5;
}
.footer-contact-items i { color: var(--teal-light); flex-shrink: 0; }
.footer-bottom { padding: 18px 80px; text-align: center; }
.footer-bottom p { font-size: 0.7rem; color: rgba(255,255,255,0.2); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav { padding: 16px 32px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .tn-inner { padding: 0 32px; }
  .t-featured { grid-template-columns: 1fr; }
  .tf-left { padding: 48px; min-height: 200px; }
  .tf-right { padding: 48px 40px; }
  .treatments-section { padding: 60px 40px; }
  .treatments-grid { grid-template-columns: 1fr 1fr; }
  .pricing-promise { padding: 40px 40px; }
  .t-cta { padding: 72px 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 48px 40px 36px; }
  .footer-bottom { padding: 16px 40px; }
}
@media (max-width: 640px) {
  .t-header { padding: 120px 24px 60px; }
  .treatments-section { padding: 48px 24px; }
  .treatments-grid { grid-template-columns: 1fr; }
  .tf-details { grid-template-columns: 1fr; }
  .pricing-promise { padding: 36px 24px; }
  .pp-inner { flex-direction: column; }
  .t-cta { padding: 60px 24px; }
  .footer-top { grid-template-columns: 1fr; padding: 40px 24px 28px; }
  .footer-bottom { padding: 14px 24px; }
}
