/* =========================================================
   FREE TOOLS SECTION — shared by every specialty page
   One design for dentistry, general practice, physiotherapy and
   psychiatry: only the heading, the cards and the faint corner
   glyph (a modifier class) change from page to page.
========================================================= */

.sp-tools-section {
  position: relative;
  overflow: hidden;
  padding: 94px 0 75px;
  background:
    radial-gradient(circle at 8% 8%, rgba(63, 111, 135, 0.1), transparent 26%),
    radial-gradient(circle at 94% 78%, rgba(157, 184, 199, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, var(--dn-bg-cool) 56%, var(--dn-accent-subtle) 100%);
}

.sp-tools-section::before {
  content: "\f5c9";
  position: absolute;
  top: 44px;
  right: 7%;
  color: rgba(63, 111, 135, 0.13);
  font-family: "Font Awesome 5 Free";
  font-size: 105px;
  font-weight: 900;
  pointer-events: none;
}

.sp-tools-section--dental::before { content: "\f5c9"; }        /* tooth */
.sp-tools-section--general::before { content: "\f0f1"; }       /* stethoscope */
.sp-tools-section--physio::before { content: "\f44b"; }        /* dumbbell */
.sp-tools-section--psychiatry::before { content: "\f5dc"; }    /* brain */

.sp-tools-header {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 41px;
}

.sp-tools-header h2 {
  margin: 0 0 13px;
  color: var(--dn-text);
  font-size: clamp(38px, 4vw, 50px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.sp-tools-header p {
  margin: 0;
  color: var(--dn-text-2);
  font-size: 16px;
  line-height: 1.7;
}

.sp-tool-card {
  height: 100%;
  min-height: 325px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 20px 20px;
  border: 1px solid var(--dn-divider);
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 13px 31px rgba(28, 38, 44, 0.075);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sp-tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--dn-accent-border);
  box-shadow: 0 21px 43px rgba(28, 38, 44, 0.12);
}

.sp-tool-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--dn-accent-subtle);
  color: var(--dn-accent);
  font-size: 29px;
}

.sp-tool-card h3 {
  margin: 0 0 10px;
  color: var(--dn-text);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 850;
}

.sp-tool-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--dn-text-2);
  font-size: 13px;
  line-height: 1.58;
}

.sp-tool-button {
  width: 100%;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--dn-accent);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(63, 111, 135, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.sp-tool-button:hover {
  background: var(--dn-accent-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.sp-tools-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--dn-text-2);
  font-size: 12px;
  line-height: 1.5;
}

.sp-tools-note i {
  color: var(--dn-accent);
}

@media (max-width: 991.98px) {
  .sp-tool-card { min-height: 310px; }
}

@media (max-width: 767.98px) {
  .sp-tools-section { padding-top: 72px; padding-bottom: 72px; }
  .sp-tool-card { min-height: auto; }
  .sp-tools-note { align-items: flex-start; text-align: left; }
}

@media (max-width: 575.98px) {
  .sp-tools-header h2 { font-size: 32px; }
}

/* Feature screenshots: the phone composites are trimmed to their phones, so let them use the column fully */
.dentistry-app-preview,
.physio-app-preview,
.gp-app-preview {
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

@media (min-width: 768px) {
  .dentistry-preview-wide,
  .physio-preview-wide,
  .gp-preview-wide,
  .dentistry-preview-standard,
  .physio-preview-standard {
    width: min(112%, 880px);
    max-width: none;
  }
  .gp-preview-wide { width: min(112%, 880px); max-width: none; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .dentistry-preview-wide, .physio-preview-wide, .gp-preview-wide,
  .dentistry-preview-standard, .physio-preview-standard { width: min(100%, 760px); }
}

/* "Why Dr. Notes" cards: one design on every specialty page (four across, accent top edge, rounded icon tile) */
.dentistry-why, .gp-why { background: var(--dn-bg-cool); }
.dentistry-benefit-card, .gp-benefit-card { background: #fff; }
.dentistry-why::after, .gp-why::after { display: none; }
.dentistry-benefits-wrap, .gp-benefits-wrap { max-width: none; }
.dentistry-benefit-card, .gp-benefit-card {
  --card-accent: var(--dn-accent);
  min-height: 300px;
  padding: 29px 25px;
  border: 1px solid var(--dn-divider);
  border-top: 4px solid var(--card-accent);
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(28, 38, 44, 0.065);
}
.dentistry-benefits-wrap .row > div:nth-child(2) .dentistry-benefit-card,
.gp-benefits-wrap .row > div:nth-child(2) .gp-benefit-card { --card-accent: var(--dn-accent); }
.dentistry-benefits-wrap .row > div:nth-child(3) .dentistry-benefit-card,
.gp-benefits-wrap .row > div:nth-child(3) .gp-benefit-card { --card-accent: var(--dn-text); }
.dentistry-benefits-wrap .row > div:nth-child(4) .dentistry-benefit-card,
.gp-benefits-wrap .row > div:nth-child(4) .gp-benefit-card { --card-accent: var(--dn-accent-soft); }
.dentistry-benefit-card:hover, .gp-benefit-card:hover { transform: translateY(-5px); box-shadow: 0 21px 45px rgba(28, 38, 44, 0.11); }
.dentistry-benefit-icon, .gp-benefit-icon {
  width: 60px; height: 60px; margin-bottom: 24px;
  border-radius: 17px;
  color: var(--card-accent);
  font-size: 26px;
}
.dentistry-benefit-card h3, .gp-benefit-card h3 { position: relative; margin: 0 0 25px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.dentistry-benefit-card h3::after, .gp-benefit-card h3::after {
  content: ""; position: absolute; left: 0; bottom: -11px;
  width: 28px; height: 3px; border-radius: 999px; background: var(--card-accent);
}
.dentistry-benefit-card p, .gp-benefit-card p { font-size: 15px; line-height: 1.72; }

/* Dentistry photos: pull the saturated royal blue toward the site's slate-blue and restore contrast on the pale story shot */
.dentistry-hero-photo img { filter: hue-rotate(-14deg) saturate(0.78); }
.dentistry-story-image img { filter: contrast(1.1) saturate(0.9) brightness(0.97); }
