/* Department pages — Caremonde type, colours, logo-aligned container */
.dept-page { color: var(--foreground); }
.dept-page a, .dept-page a:visited { color: inherit; text-decoration: none; }
.dept-page .eyebrow { color: var(--primary); font-weight: 600; }
.dept-page h2,
.dept-page h3,
.dept-page h4 { font-family: var(--font-display); font-weight: 700; }

.dept-page .dept-icon {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--teal); background: var(--background);
  flex-shrink: 0;
}
.dept-page .dept-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }

.dept-hero { background: var(--secondary); }
.dept-hero > .container { display: flex; align-items: center; gap: 72px; padding-top: 72px; padding-bottom: 72px; }
.dept-hero__copy { width: 50%; }
.dept-hero .eyebrow { font-size: 11px; font-weight: 600; margin: 0 0 14px; }
.dept-hero h1 { font-size: var(--type-section); line-height: 1.12; margin: 0 0 16px; font-weight: 700; color: var(--foreground); }
.dept-hero p { margin: 0 0 28px; font-size: var(--type-body); font-weight: 400; line-height: 1.65; color: var(--muted-foreground); max-width: 540px; }
.dept-hero__media { width: 50%; }
.dept-media { position: relative; border-radius: var(--radius-media); overflow: hidden; aspect-ratio: 641 / 462; border: 1px solid var(--border); }
.dept-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dept-media__badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--background); color: var(--foreground);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px 8px 10px; font-size: 12px; font-weight: 600;
}
.dept-media__badge svg { width: 16px; height: 16px; color: var(--teal); }
.dept-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dept-page .premium-button { border-radius: var(--radius-control); }

.dept-stats { background: var(--contrast-surface); padding: 36px 0; }
.dept-stats > .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; color: var(--contrast-foreground); }
.dept-stats article {
  text-align: center; padding: 28px 20px;
  border: 1px solid var(--contrast-border);
  border-radius: var(--radius-media);
  background: oklch(1 0 0 / .04);
}
.dept-stats .dept-icon {
  margin: 0 auto 14px;
  border-color: var(--contrast-border);
  color: var(--contrast-accent);
  background: oklch(1 0 0 / .06);
}
.dept-stats__num { font-size: 22px; font-weight: 700; color: var(--contrast-accent); margin-bottom: 6px; }
.dept-stats__label { font-size: 13px; font-weight: 400; color: var(--contrast-muted); line-height: 1.5; }

.dept-intro { background: var(--background); padding: 64px 0; border-bottom: 1px solid var(--border); }
.dept-intro > .container { display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap; }
.dept-intro__copy { flex: 1 1 480px; }
.dept-intro__copy h2 { font-size: var(--type-section); margin: 0 0 18px; color: var(--foreground); font-weight: 700; }
.dept-intro__copy p { font-size: var(--type-body); font-weight: 400; line-height: 1.65; color: var(--muted-foreground); margin: 0; }
.dept-intro__copy p + p { margin-top: 16px; }
.dept-subhead { font-size: 18px; margin: 24px 0 12px; color: var(--foreground); font-weight: 700; }
.dept-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dept-reasons li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--muted); border: 1px solid var(--border);
  border-radius: var(--radius-media); padding: 12px 14px;
  font-size: 14px; line-height: 1.5; color: var(--foreground);
}
.dept-reasons .dept-icon { width: 32px; height: 32px; }
.dept-reasons .dept-icon svg { width: 14px; height: 14px; }
.dept-enquiry {
  flex: 0 1 420px; width: 100%; height: auto; align-self: flex-start;
  border-radius: var(--radius-media); padding: 36px 32px;
  background: var(--contrast-surface); color: var(--contrast-foreground);
  border: 1px solid var(--contrast-border);
}
.dept-enquiry .dept-icon {
  margin-bottom: 18px;
  border-color: var(--contrast-border);
  color: var(--contrast-accent);
  background: oklch(1 0 0 / .06);
}
.dept-enquiry h3 { color: var(--contrast-foreground); margin: 0 0 12px; line-height: 1.25; font-size: 24px; font-weight: 700; }
.dept-enquiry p { font-size: var(--type-body); font-weight: 400; line-height: 1.65; margin: 0 0 22px; color: var(--contrast-muted); }
.dept-enquiry .premium-button { background: var(--teal); color: var(--primary-foreground); }
.dept-enquiry .premium-button.outline { background: transparent; color: var(--contrast-foreground); border-color: var(--contrast-border); }

.dept-block { padding: 72px 0; }
.dept-block--tint { background: var(--muted); }
.dept-title { max-width: 820px; }
.dept-title.center { margin-inline: auto; text-align: center; }
.dept-title.center .eyebrow { justify-content: center; }
.dept-title h3 { font-size: var(--type-section); margin: 10px 0 12px; color: var(--foreground); font-weight: 700; }
.dept-title p { color: var(--muted-foreground); font-size: var(--type-body); font-weight: 400; line-height: 1.65; margin: 0; }
.dept-title p + p { margin-top: 14px; }
.dept-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.dept-highlights article {
  border: 1px solid var(--border); border-radius: var(--radius-media);
  padding: 22px 18px; background: var(--background);
}
.dept-highlights h4 { margin: 0 0 8px; font-size: 16px; color: var(--foreground); }
.dept-highlights p { margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }

.dept-services { margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; }
.dept-services li { list-style: none; border-radius: var(--radius-media); overflow: hidden; position: relative; border: 1px solid var(--border); }
.dept-services a { display: block; position: relative; }
.dept-services img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.dept-services a::before {
  content: ""; inset: 0; position: absolute; z-index: 1;
  background: linear-gradient(0deg, oklch(.28 .055 239.7 / .88), transparent 55%);
}
.dept-services__icon {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--background); color: var(--primary);
}
.dept-services__icon svg { width: 16px; height: 16px; }
.dept-services h3 { position: absolute; z-index: 2; bottom: 16px; left: 16px; right: 52px; margin: 0; font-size: var(--type-tile); color: var(--primary-foreground); text-align: left; font-weight: 500; }

.dept-doctors { margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; }
.dept-doctors li { list-style: none; border: 1px solid var(--border); border-radius: var(--radius-media); overflow: hidden; background: var(--background); padding-bottom: 20px; }
.dept-doctors img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; display: block; }
.dept-doctors h3 { color: var(--foreground); padding: 16px 18px 4px; font-size: 16px; font-weight: 700; margin: 0; }
.dept-doctors h4 { color: var(--muted-foreground); font-size: 13px; font-weight: 400; margin: 0; padding: 0 18px 10px; }
.dept-doctors a { color: inherit; text-decoration: none; }
.dept-doctors .text-link { display: inline-block; margin: 0 18px 10px; font-size: 13px; }
.dept-doctors .premium-button { margin: 0 18px; width: calc(100% - 36px); }

.dept-conditions ul {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 32px 0 24px; padding: 0; list-style: none;
}
.dept-conditions li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--background); border-radius: var(--radius-media); padding: 22px 20px;
  border: 1px solid var(--border); list-style: none; text-align: left;
  transition: border-color .2s ease;
}
.dept-conditions li:hover { border-color: var(--teal); }
.dept-conditions h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--foreground); line-height: 1.3; }
.dept-conditions p { margin: 0; font-size: 14px; font-weight: 400; color: var(--muted-foreground); line-height: 1.65; }
.dept-conditions .note { text-align: center; color: var(--muted-foreground); max-width: 820px; margin: 0 auto; font-size: 14px; line-height: 1.7; }

.dept-approach {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background:
    radial-gradient(1200px 420px at 12% -10%, oklch(.55 .09 239.7 / .22), transparent 55%),
    linear-gradient(160deg, var(--contrast-surface) 0%, oklch(.24 .05 239.7) 55%, oklch(.2 .04 200) 100%);
  color: var(--contrast-foreground);
}
.dept-approach__fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dept-orb {
  position: absolute; border-radius: 50%; filter: blur(2px);
  background: radial-gradient(circle, oklch(.72 .1 195 / .35), transparent 68%);
  animation: dept-float 18s ease-in-out infinite;
}
.dept-orb--a { width: 280px; height: 280px; top: -80px; right: 8%; animation-delay: 0s; }
.dept-orb--b { width: 180px; height: 180px; bottom: -40px; left: 12%; animation-delay: -6s; background: radial-gradient(circle, oklch(.7 .12 239 / .28), transparent 70%); }
.dept-orb--c { width: 120px; height: 120px; top: 38%; left: 46%; animation-delay: -11s; animation-duration: 14s; }
@keyframes dept-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .7; }
  50% { transform: translate3d(24px, -28px, 0) scale(1.12); opacity: 1; }
}
.dept-approach .container { position: relative; z-index: 1; }
.dept-approach__intro { max-width: 720px; margin-bottom: 40px; }
.dept-approach .eyebrow { color: var(--contrast-accent); }
.dept-approach .eyebrow::before { background: var(--contrast-accent); }
.dept-approach h3 { font-size: var(--type-section); margin: 10px 0 16px; font-weight: 700; color: var(--contrast-foreground); }
.dept-approach__intro p { color: var(--contrast-muted); font-size: var(--type-body); font-weight: 400; line-height: 1.6; margin: 0; }
.dept-approach__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.dept-approach__steps li {
  position: relative;
  background: oklch(1 0 0 / .06);
  border: 1px solid oklch(1 0 0 / .12);
  border-radius: var(--radius-media);
  padding: 26px 22px 24px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.dept-approach__steps li::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  background-size: 200% 100%;
  animation: dept-shimmer 4.5s linear infinite;
}
@keyframes dept-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.dept-approach .dept-icon {
  margin-bottom: 16px;
  border-color: oklch(1 0 0 / .18);
  color: var(--contrast-accent);
  background: oklch(1 0 0 / .08);
}
.dept-approach__num {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--contrast-accent); margin-bottom: 10px;
}
.dept-approach__steps h4 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--contrast-foreground); line-height: 1.3; }
.dept-approach__steps p { margin: 0; color: var(--contrast-muted); font-size: 14px; line-height: 1.65; }
.dept-approach__note {
  margin: 32px 0 0; padding: 22px 26px;
  border-left: 3px solid var(--teal);
  background: oklch(1 0 0 / .05);
  border-radius: 0 var(--radius-media) var(--radius-media) 0;
}
.dept-approach__note p { margin: 0; color: var(--contrast-muted); font-size: 15px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
  .dept-orb, .dept-approach__steps li::after { animation: none; }
}

.dept-choose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.dept-choose article {
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-media);
  text-align: left; padding: 28px 24px;
  transition: border-color .2s ease;
}
.dept-choose article:hover { border-color: var(--teal); }
.dept-choose .dept-icon { margin: 0 0 18px; }
.dept-choose h4 { font-size: 17px; margin: 0 0 10px; color: var(--foreground); font-weight: 700; }
.dept-choose p { margin: 0; color: var(--muted-foreground); font-size: var(--type-body); font-weight: 400; line-height: 1.65; }

.dept-banner { background: var(--contrast-surface); padding-block: 80px; color: var(--contrast-foreground); }
.dept-banner__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.dept-banner .eyebrow { color: var(--contrast-accent); }
.dept-banner .eyebrow::before { background: var(--contrast-accent); }
.dept-banner h3 { font-size: var(--type-closing); margin: 10px 0 12px; color: var(--contrast-foreground); font-weight: 700; max-width: 640px; }
.dept-banner h3 span { color: var(--contrast-accent); }
.dept-banner p { margin: 0; max-width: 560px; color: var(--contrast-muted); font-size: var(--type-body); font-weight: 400; line-height: 1.6; }
.dept-banner .premium-button { background: var(--teal); color: var(--primary-foreground); }
.dept-banner .premium-button.outline { background: transparent; color: var(--contrast-foreground); border-color: var(--contrast-border); }

@media (max-width: 1100px) {
  .dept-hero > .container { gap: 40px; }
  .dept-approach__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .dept-hero h2 { font-size: 32px; }
  .dept-services, .dept-doctors, .dept-highlights { grid-template-columns: repeat(2, 1fr); }
  .dept-choose { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dept-hero > .container { flex-direction: column; padding-block: 40px; gap: 32px; }
  .dept-hero__copy, .dept-hero__media { width: 100%; }
  .dept-stats > .container { grid-template-columns: 1fr; gap: 12px; }
  .dept-banner { padding-block: 48px; }
  .dept-banner h3 { font-size: 28px; }
  .dept-approach { padding: 56px 0; }
  .dept-approach h3 { font-size: 28px; }
  .dept-intro > .container { gap: 28px; }
}
@media (max-width: 480px) {
  .dept-choose { grid-template-columns: 1fr; }
  .dept-services, .dept-doctors, .dept-highlights { grid-template-columns: 1fr; }
  .dept-approach__steps { grid-template-columns: 1fr; }
  .dept-conditions ul { grid-template-columns: 1fr; }
}
