/*
Theme Name: Caring Hands Dental
Theme URI: https://caringhandsdental.com/
Author: Caring Hands Dental
Author URI: https://caringhandsdental.com/
Description: A responsive, accessible WordPress theme designed for Caring Hands Dental in Burien, Washington. Includes a polished dental homepage, editable practice information, multilingual messaging, service sections, appointment calls to action, and optional contact-form integration.
Version: 1.2.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caring-hands-dental
Tags: custom-logo, custom-menu, featured-images, one-column, accessibility-ready, block-styles, wide-blocks
*/

:root {
  --chd-navy: #042351;
  --chd-navy-deep: #011536;
  --chd-navy-soft: #125e9a;
  --chd-blue: #0465d9;
  --chd-teal: #1fadd7;
  --chd-teal-pale: #e7f8fc;
  --chd-ink: #10233e;
  --chd-muted: #53667d;
  --chd-line: #d9e7f0;
  --chd-cloud: #f4f9fc;
  --chd-white: #ffffff;
  --chd-shadow: 0 22px 60px rgba(1, 21, 54, 0.18);
  --chd-shadow-soft: 0 12px 32px rgba(1, 21, 54, 0.1);
  --chd-radius: 24px;
  --chd-radius-small: 14px;
  --chd-shell: 1180px;
  --chd-serif: Georgia, 'Times New Roman', serif;
  --chd-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  color: var(--chd-ink);
  background: var(--chd-white);
  font-family: var(--chd-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: var(--chd-navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--chd-teal);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--chd-blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7em;
  color: var(--chd-navy-deep);
  font-family: var(--chd-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.25rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1.25em;
}

ul,
ol {
  margin-top: 0;
}

.site-shell {
  width: min(calc(100% - 48px), var(--chd-shell));
  margin-inline: auto;
}

.section {
  padding: clamp(78px, 10vw, 132px) 0;
}

.site-main {
  min-height: 60vh;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto !important;
  color: var(--chd-white);
  background: var(--chd-navy-deep);
  border-radius: 8px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--chd-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #a6f4ff;
}

.button,
button[type='submit'],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  color: var(--chd-white);
  background: linear-gradient(135deg, var(--chd-blue), var(--chd-teal));
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(4, 101, 217, 0.24);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
button[type='submit']:hover,
.wp-block-button__link:hover {
  color: var(--chd-white);
  background: linear-gradient(135deg, var(--chd-teal), #28d7e2);
  box-shadow: 0 14px 30px rgba(31, 173, 215, 0.28);
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 0.84rem;
}

.button-ghost {
  color: var(--chd-navy);
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(4, 35, 81, 0.14);
  box-shadow: none;
}

.button-ghost:hover {
  color: var(--chd-navy);
  background: var(--chd-white);
}

.button-outline {
  color: var(--chd-navy);
  background: transparent;
  border-color: var(--chd-navy);
  box-shadow: none;
}

.button-light {
  color: var(--chd-navy-deep);
  background: var(--chd-white);
  box-shadow: none;
}

.button-light:hover {
  color: var(--chd-navy-deep);
  background: var(--chd-teal-pale);
}

.icon-inline,
.check-icon,
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-inline svg {
  width: 19px;
  height: 19px;
  margin-right: 8px;
  fill: currentColor;
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(4, 35, 81, 0.1);
}

.topbar {
  color: rgba(255, 255, 255, 0.86);
  background: var(--chd-navy-deep);
  font-size: 0.82rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.topbar p {
  margin: 0;
}

.topbar a {
  color: var(--chd-white);
  font-weight: 700;
  text-decoration: none;
}

.topbar-phone {
  display: inline-flex;
  align-items: center;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 94px;
  gap: 28px;
}

.brand-link {
  display: flex;
  align-items: center;
  color: var(--chd-navy-deep);
  text-decoration: none;
}

.brand-link:hover {
  color: var(--chd-navy-deep);
}

.brand-logo,
.custom-logo {
  width: 76px;
  height: 76px;
  margin-right: 13px;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(31, 173, 215, 0.28);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(1, 21, 54, 0.14);
}

.custom-logo-link {
  display: flex;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--chd-serif);
  font-size: 1.34rem;
  line-height: 1.1;
}

.brand-tagline {
  margin-top: 5px;
  color: var(--chd-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.primary-navigation {
  justify-self: end;
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a {
  position: relative;
  display: block;
  padding: 14px 0;
  color: var(--chd-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--chd-teal);
  content: '';
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--chd-line);
  border-radius: 12px;
}

.menu-toggle-lines,
.menu-toggle-lines span {
  display: block;
}

.menu-toggle-lines span {
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--chd-navy);
  border-radius: 4px;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 720px;
  padding: clamp(74px, 9vw, 118px) 0 98px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(31, 173, 215, 0.32), transparent 32%),
    radial-gradient(circle at 10% 82%, rgba(4, 101, 217, 0.28), transparent 28%),
    linear-gradient(135deg, #011536 0%, #042351 58%, #064f83 100%);
}

.hero-section::after {
  position: absolute;
  right: -30px;
  bottom: -1px;
  left: -30px;
  height: 74px;
  background: var(--chd-white);
  clip-path: ellipse(55% 40% at 50% 100%);
  content: '';
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
}

.hero-copy h1 {
  max-width: 820px;
  color: var(--chd-white);
}

.hero-lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 0;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 650;
  list-style: none;
}

.hero-checks li,
.credential-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--chd-white);
  background: var(--chd-teal);
  border-radius: 50%;
}

.check-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero-card-wrap {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
}

.hero-card {
  position: relative;
  padding: 24px 24px 26px;
  overflow: hidden;
  background: rgba(1, 21, 54, 0.74);
  border: 1px solid rgba(31, 173, 215, 0.42);
  border-radius: 54% 46% 40% 60% / 46% 51% 49% 54%;
  box-shadow: var(--chd-shadow);
  transform: rotate(1deg);
}

.hero-card::before {
  position: absolute;
  inset: 15px;
  z-index: 0;
  border: 1px solid rgba(31, 173, 215, 0.34);
  border-radius: inherit;
  content: '';
}

.hero-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-badge {
  position: absolute;
  right: -28px;
  bottom: 36px;
  z-index: 3;
  display: flex;
  align-items: center;
  max-width: 245px;
  padding: 13px 16px;
  color: var(--chd-navy-deep);
  background: var(--chd-white);
  border-radius: 16px;
  box-shadow: var(--chd-shadow-soft);
  font-size: 0.83rem;
  font-weight: 750;
  line-height: 1.3;
}

.hero-badge-mark {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  margin-right: 11px;
  color: var(--chd-teal);
  background: var(--chd-navy-deep);
  border-radius: 50%;
  font-family: var(--chd-serif);
  place-items: center;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(31, 173, 215, 0.3);
  border-radius: 50%;
}

.hero-orbit-one {
  top: 4%;
  right: -7%;
  width: 600px;
  height: 600px;
}

.hero-orbit-two {
  right: 10%;
  bottom: -25%;
  width: 420px;
  height: 420px;
}

/* Trust strip */
.trust-strip {
  position: relative;
  z-index: 4;
  margin-top: -28px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--chd-white);
  border: 1px solid var(--chd-line);
  border-radius: var(--chd-radius);
  box-shadow: var(--chd-shadow-soft);
}

.trust-grid > div {
  padding: 26px 24px;
  border-right: 1px solid var(--chd-line);
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 5px;
  color: var(--chd-navy-deep);
  font-size: 0.9rem;
}

.trust-grid span {
  color: var(--chd-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Services */
.section-heading {
  max-width: 680px;
  margin-bottom: 50px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading > p:last-child {
  color: var(--chd-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  background: var(--chd-white);
  border: 1px solid var(--chd-line);
  border-radius: var(--chd-radius);
  box-shadow: 0 8px 28px rgba(4, 38, 71, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  border-color: rgba(31, 173, 215, 0.5);
  box-shadow: var(--chd-shadow-soft);
  transform: translateY(-5px);
}

.service-card::after {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 110px;
  height: 110px;
  background: var(--chd-teal-pale);
  border-radius: 50%;
  content: '';
}

.service-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 28px;
  color: var(--chd-navy);
  background: var(--chd-teal-pale);
  border-radius: 20px;
  place-items: center;
}

.service-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.service-icon .icon-cut {
  fill: var(--chd-teal-pale);
}

.service-card p {
  position: relative;
  z-index: 2;
  color: var(--chd-muted);
  font-size: 0.95rem;
}

.service-card h3 {
  position: relative;
  z-index: 2;
}

.service-card a,
.text-link {
  position: relative;
  z-index: 2;
  color: var(--chd-navy);
  font-size: 0.87rem;
  font-weight: 800;
  text-decoration: none;
}

.service-featured {
  color: var(--chd-white);
  background: linear-gradient(145deg, var(--chd-navy-deep), var(--chd-navy));
  border-color: transparent;
}

.service-featured h3,
.service-featured p,
.service-featured a {
  color: var(--chd-white);
}

.service-featured p {
  color: rgba(255, 255, 255, 0.78);
}

.service-featured .service-icon {
  color: var(--chd-white);
  background: rgba(255, 255, 255, 0.12);
}

.service-featured::after {
  background: rgba(31, 173, 215, 0.2);
}

.service-label {
  margin-bottom: 8px;
  color: #a6f4ff !important;
  font-size: 0.69rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Care steps */
.care-section {
  background: var(--chd-cloud);
}

.care-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(50px, 8vw, 112px);
}

.care-visual {
  position: relative;
  display: grid;
  min-height: 510px;
  padding: 60px;
  background:
    radial-gradient(circle at 50% 45%, rgba(31, 173, 215, 0.28), transparent 36%),
    linear-gradient(145deg, var(--chd-navy-deep), var(--chd-navy));
  border-radius: 40px 10px 40px 10px;
  box-shadow: var(--chd-shadow);
  place-items: center;
}

.care-visual::before {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(31, 173, 215, 0.48);
  border-radius: 30px 8px 30px 8px;
  content: '';
}

.care-number {
  position: relative;
  z-index: 2;
  display: grid;
  width: 96px;
  height: 96px;
  color: var(--chd-white);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-family: var(--chd-serif);
  font-size: 1.8rem;
  place-items: center;
}

.care-number:nth-child(1) {
  justify-self: start;
}

.care-number:nth-child(2) {
  justify-self: end;
}

.care-number:nth-child(3) {
  justify-self: center;
}

.care-line {
  position: absolute;
  inset: 20%;
  border: 1px dashed rgba(31, 173, 215, 0.62);
  border-radius: 50%;
}

.care-steps {
  margin-top: 42px;
}

.care-steps > div {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  padding: 0 0 28px 78px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--chd-line);
}

.care-steps > div:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.care-steps span {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--chd-teal);
  font-family: var(--chd-serif);
  font-size: 2rem;
}

.care-steps h3,
.care-steps p {
  grid-column: 2;
}

.care-steps h3 {
  margin-bottom: 6px;
}

.care-steps p {
  margin: 0;
  color: var(--chd-muted);
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(50px, 8vw, 108px);
}

.doctor-portrait {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--chd-teal-pale), #d9efff);
  border-radius: 46% 54% 48% 52% / 42% 45% 55% 58%;
  box-shadow: var(--chd-shadow-soft);
  place-items: center;
}

.doctor-initials {
  position: relative;
  z-index: 2;
  display: grid;
  width: 220px;
  height: 220px;
  color: var(--chd-white);
  background: linear-gradient(145deg, var(--chd-navy), var(--chd-teal));
  border: 12px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: var(--chd-shadow);
  font-family: var(--chd-serif);
  font-size: 4.8rem;
  place-items: center;
}

.doctor-portrait > p {
  position: absolute;
  right: 34px;
  bottom: 35px;
  left: 34px;
  z-index: 3;
  padding: 12px 16px;
  margin: 0;
  color: var(--chd-muted);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}

.doctor-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(45deg, transparent 45%, rgba(4, 35, 81, 0.09) 45%, rgba(4, 35, 81, 0.09) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(31, 173, 215, 0.12) 45%, rgba(31, 173, 215, 0.12) 55%, transparent 55%);
  background-size: 38px 38px;
}

.about-lead {
  color: var(--chd-muted);
  font-size: 1.12rem;
}

.credential-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 30px 0;
  list-style: none;
}

.credential-list li {
  color: var(--chd-ink);
  font-weight: 650;
}

/* FAQ */
.faq-section {
  background: var(--chd-cloud);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(42px, 8vw, 108px);
}

.faq-list details {
  padding: 24px 0;
  border-bottom: 1px solid #cfd9df;
}

.faq-list details:first-child {
  padding-top: 0;
}

.faq-list summary {
  position: relative;
  padding-right: 52px;
  color: var(--chd-navy-deep);
  cursor: pointer;
  font-family: var(--chd-serif);
  font-size: 1.28rem;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--chd-navy);
  background: var(--chd-white);
  border: 1px solid var(--chd-line);
  border-radius: 50%;
  content: '+';
  font-family: var(--chd-sans);
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-50%);
  place-items: center;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  padding-right: 52px;
  margin: 18px 0 0;
  color: var(--chd-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-section {
  position: relative;
  color: var(--chd-white);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(31, 173, 215, 0.24), transparent 28%),
    linear-gradient(120deg, rgba(1, 21, 54, 0.99), rgba(4, 35, 81, 0.97));
}

.contact-section::before {
  position: absolute;
  top: -240px;
  right: -180px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(31, 173, 215, 0.42);
  border-radius: 50%;
  content: '';
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(42px, 8vw, 100px);
}

.contact-copy h2,
.contact-copy p {
  color: var(--chd-white);
}

.contact-copy > p:not(.eyebrow):not(.contact-privacy) {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem;
}

.contact-phone {
  color: var(--chd-white);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-phone:hover {
  color: #a6f4ff;
}

.contact-privacy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.76rem;
}

.contact-card {
  padding: clamp(28px, 5vw, 46px);
  color: var(--chd-ink);
  background: var(--chd-white);
  border-radius: var(--chd-radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.contact-detail {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--chd-line);
}

.contact-detail:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.contact-icon {
  width: 52px;
  height: 52px;
  color: var(--chd-navy);
  background: var(--chd-teal-pale);
  border-radius: 16px;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.contact-detail h3 {
  margin-bottom: 5px;
  font-family: var(--chd-sans);
  font-size: 1rem;
  font-weight: 800;
}

.contact-detail p {
  margin: 0 0 5px;
  color: var(--chd-muted);
  font-size: 0.9rem;
}

.contact-detail a {
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-detail-phone {
  display: block;
  margin-bottom: 5px;
  color: var(--chd-navy);
  font-size: 1.16rem !important;
}

/* Forms */
.contact-form-wrap label,
.comment-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--chd-ink);
  font-size: 0.84rem;
  font-weight: 750;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='search'],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--chd-ink);
  background: var(--chd-white);
  border: 1px solid #cbd6dd;
  border-radius: 10px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--chd-teal);
  box-shadow: 0 0 0 3px rgba(31, 173, 215, 0.18);
  outline: 0;
}

/* Forms and Before & After pages */
.page-hero {
  position: relative;
  padding: clamp(76px, 9vw, 116px) 0;
  overflow: hidden;
  color: var(--chd-white);
  background:
    radial-gradient(circle at 84% 18%, rgba(31, 173, 215, 0.3), transparent 28%),
    linear-gradient(135deg, var(--chd-navy-deep), var(--chd-navy) 62%, #064f83);
}

.page-hero::before {
  position: absolute;
  top: -180px;
  right: -90px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(31, 173, 215, 0.38);
  border-radius: 50%;
  content: '';
}

.page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  min-height: 300px;
  gap: clamp(40px, 8vw, 110px);
}

.page-hero h1,
.page-hero p {
  color: var(--chd-white);
}

.page-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.page-hero-icon {
  display: grid;
  width: 200px;
  height: 200px;
  color: var(--chd-white);
  background: linear-gradient(145deg, rgba(4, 101, 217, 0.84), rgba(31, 173, 215, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 42% 58% 48% 52% / 55% 43% 57% 45%;
  box-shadow: 0 24px 70px rgba(1, 21, 54, 0.35);
  place-items: center;
  transform: rotate(3deg);
}

.page-hero-icon svg {
  width: 92px;
  height: 92px;
  fill: currentColor;
}

.resource-section,
.case-section {
  background: var(--chd-cloud);
}

.page-editor-content,
.case-gallery-content {
  max-width: 980px;
  padding: clamp(28px, 5vw, 52px);
  margin: 0 auto 48px;
  background: var(--chd-white);
  border: 1px solid var(--chd-line);
  border-radius: var(--chd-radius);
  box-shadow: var(--chd-shadow-soft);
}

.form-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-resource-card {
  display: flex;
  min-height: 330px;
  padding: clamp(28px, 4vw, 42px);
  background: var(--chd-white);
  border: 1px solid var(--chd-line);
  border-radius: var(--chd-radius);
  box-shadow: 0 8px 28px rgba(1, 21, 54, 0.05);
  flex-direction: column;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.form-resource-card:hover {
  border-color: rgba(31, 173, 215, 0.52);
  box-shadow: var(--chd-shadow-soft);
  transform: translateY(-4px);
}

.resource-number {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  color: var(--chd-white);
  background: linear-gradient(145deg, var(--chd-blue), var(--chd-teal));
  border-radius: 16px;
  font-family: var(--chd-serif);
  font-size: 1.2rem;
  place-items: center;
}

.form-resource-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.form-resource-card p {
  color: var(--chd-muted);
}

.form-resource-card .button,
.form-resource-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

.practice-notice {
  display: grid;
  grid-template-columns: 62px 1fr;
  max-width: 980px;
  padding: clamp(26px, 5vw, 42px);
  margin: 52px auto 0;
  background: var(--chd-teal-pale);
  border: 1px solid rgba(31, 173, 215, 0.34);
  border-radius: var(--chd-radius);
  gap: 22px;
}

.practice-notice-icon {
  display: grid;
  width: 58px;
  height: 58px;
  color: var(--chd-white);
  background: var(--chd-navy);
  border-radius: 50%;
  font-family: var(--chd-serif);
  font-size: 1.4rem;
  font-weight: 700;
  place-items: center;
}

.practice-notice-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.practice-notice h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.practice-notice p {
  margin: 0;
  color: var(--chd-muted);
  font-size: 0.92rem;
}

.case-gallery-content .wp-block-gallery {
  gap: 24px;
}

.case-gallery-content .wp-block-image img,
.case-gallery-content .blocks-gallery-item img {
  width: 100%;
  border-radius: var(--chd-radius-small);
  box-shadow: var(--chd-shadow-soft);
}

.case-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case-placeholder-grid article {
  position: relative;
  padding: 18px 18px 28px;
  background: var(--chd-white);
  border: 1px solid var(--chd-line);
  border-radius: var(--chd-radius);
  box-shadow: 0 8px 28px rgba(1, 21, 54, 0.05);
}

.case-placeholder-grid article > span {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--chd-white);
  background: rgba(1, 21, 54, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-family: var(--chd-serif);
  place-items: center;
}

.case-placeholder-image {
  display: grid;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 76% 24%, rgba(31, 173, 215, 0.34), transparent 25%),
    linear-gradient(145deg, var(--chd-navy-deep), var(--chd-navy));
  border-radius: 18px;
  place-items: center;
}

.case-placeholder-image svg {
  width: 72px;
  height: 72px;
  fill: currentColor;
}

.case-placeholder-grid h3 {
  margin: 0;
  text-align: center;
}

.result-notice {
  background: var(--chd-white);
  border-left: 5px solid var(--chd-teal);
}

.case-cta {
  max-width: 980px;
  padding: clamp(44px, 8vw, 78px) clamp(24px, 6vw, 72px);
  margin: 32px auto 0;
  color: var(--chd-white);
  background:
    radial-gradient(circle at 88% 14%, rgba(31, 173, 215, 0.28), transparent 26%),
    linear-gradient(135deg, var(--chd-navy-deep), var(--chd-navy));
  border-radius: var(--chd-radius);
  text-align: center;
}

.case-cta h2 {
  color: var(--chd-white);
}

.case-cta .eyebrow {
  color: #a6f4ff;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 72px 0 28px;
  color: rgba(255, 255, 255, 0.68);
  background: #010f29;
}

.footer-pattern {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--chd-blue), var(--chd-teal), #28d7e2, var(--chd-blue));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 64px;
}

.footer-brand {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
}

.footer-brand img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  object-position: center;
  border: 5px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.footer-name {
  margin-bottom: 10px;
  color: var(--chd-white);
  font-family: var(--chd-serif);
  font-size: 1.45rem;
}

.footer-heading {
  margin-bottom: 18px;
  color: var(--chd-white);
  font-family: var(--chd-sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-menu {
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.footer-menu a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-menu a:hover,
.footer-contact a:hover {
  color: var(--chd-white);
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.73rem;
}

.mobile-action-bar {
  display: none;
}

/* Content templates */
.content-shell {
  padding-top: 90px;
  padding-bottom: 110px;
}

.narrow-content {
  max-width: 860px;
}

.page-header {
  max-width: 820px;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
}

.entry-content {
  font-size: 1.04rem;
}

.entry-content > * {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.entry-content > .alignwide {
  max-width: 1080px;
}

.entry-content > .alignfull {
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
}

.entry-content blockquote {
  padding: 24px 30px;
  color: var(--chd-navy-deep);
  background: var(--chd-teal-pale);
  border-left: 5px solid var(--chd-teal);
}

.entry-featured {
  margin-bottom: 44px;
  overflow: hidden;
  border-radius: var(--chd-radius);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.post-card {
  overflow: hidden;
  background: var(--chd-white);
  border: 1px solid var(--chd-line);
  border-radius: var(--chd-radius-small);
  box-shadow: var(--chd-shadow-soft);
}

.post-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 26px;
}

.entry-meta {
  color: var(--chd-muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry-meta a {
  color: inherit;
}

.post-card-title {
  font-size: 1.45rem;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-excerpt {
  color: var(--chd-muted);
  font-size: 0.9rem;
}

.navigation.pagination {
  margin-top: 50px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links .page-numbers {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  color: var(--chd-navy);
  border: 1px solid var(--chd-line);
  border-radius: 9px;
  text-decoration: none;
  place-items: center;
}

.nav-links .current {
  color: var(--chd-white);
  background: var(--chd-navy);
  border-color: var(--chd-navy);
}

.post-navigation {
  margin: 55px 0;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--chd-line);
  border-radius: 12px;
  text-decoration: none;
}

.post-navigation .nav-next {
  text-align: right;
}

.comments-area {
  padding-top: 44px;
  margin-top: 50px;
  border-top: 1px solid var(--chd-line);
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-body {
  padding: 22px;
  margin: 20px 0;
  background: var(--chd-cloud);
  border-radius: 12px;
}

.search-form {
  display: flex;
  max-width: 620px;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

.search-submit {
  min-height: 48px !important;
  padding: 10px 22px !important;
}

.not-found-section {
  display: grid;
  min-height: 70vh;
  padding: 100px 0;
  background: var(--chd-cloud);
  place-items: center;
}

.not-found-inner {
  max-width: 720px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: rgba(31, 173, 215, 0.28);
  font-family: var(--chd-serif);
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 0.8;
}

/* WordPress alignment helpers */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-bottom: 1em;
  margin-left: 1.5em;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
  color: var(--chd-muted);
  font-size: 0.82rem;
}

.bypostauthor {
  display: block;
}

/* Responsive */
@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .primary-navigation {
    position: fixed;
    top: 128px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    display: none;
    padding: 34px 24px;
    background: var(--chd-white);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-width: 680px;
    margin-inline: auto;
  }

  .primary-menu a {
    padding: 18px 0;
    border-bottom: 1px solid var(--chd-line);
    font-size: 1.15rem;
  }

  .primary-menu a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    grid-column: 3;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.78fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid > div:nth-child(2) {
    border-right: 0;
  }

  .trust-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--chd-line);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 90px;
  }

  .site-shell {
    width: min(calc(100% - 34px), var(--chd-shell));
  }

  .topbar-inner {
    min-height: 32px;
  }

  .topbar p {
    display: none;
  }

  .topbar-phone {
    margin-left: auto;
  }

  .header-inner {
    min-height: 76px;
  }

  .primary-navigation {
    top: 108px;
  }

  .brand-logo,
  .custom-logo {
    width: 58px;
    height: 58px;
  }

  .brand-name {
    font-size: 1.14rem;
  }

  .brand-tagline {
    display: none;
  }

  .hero-section {
    padding-top: 68px;
  }

  .hero-grid,
  .care-grid,
  .about-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 58px;
  }

  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) 150px;
    min-height: 250px;
    gap: 34px;
  }

  .page-hero-icon {
    width: 150px;
    height: 150px;
  }

  .page-hero-icon svg {
    width: 70px;
    height: 70px;
  }

  .case-placeholder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .eyebrow,
  .hero-lead {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .hero-checks {
    justify-content: center;
  }

  .hero-card-wrap {
    max-width: 430px;
  }

  .hero-badge {
    right: -5px;
    bottom: 20px;
  }

  .care-visual {
    min-height: 420px;
  }

  .doctor-portrait {
    max-width: 520px;
    min-height: 520px;
    margin-inline: auto;
  }

  .faq-grid .section-heading {
    margin-bottom: 5px;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-action-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 120;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    overflow: hidden;
    background: var(--chd-white);
    border: 1px solid var(--chd-line);
    border-radius: 999px;
    box-shadow: 0 16px 45px rgba(1, 21, 54, 0.25);
  }

  .mobile-action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    color: var(--chd-navy);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-action-bar a:last-child {
    color: var(--chd-white);
    background: var(--chd-navy);
  }

  .site-footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .site-shell {
    width: min(calc(100% - 28px), var(--chd-shell));
  }

  .section {
    padding: 74px 0;
  }

  .brand-copy {
    max-width: 172px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 80px;
  }

  .page-hero {
    padding: 64px 0 72px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-hero p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .page-hero-icon {
    width: 132px;
    height: 132px;
    margin-inline: auto;
  }

  .form-resource-grid,
  .case-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .form-resource-card {
    min-height: 300px;
  }

  .practice-notice {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-checks {
    align-items: flex-start;
    flex-direction: column;
    max-width: 270px;
    margin-inline: auto;
  }

  .hero-card {
    padding: 18px 16px 22px;
  }

  .hero-badge {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 100%;
    margin-top: -20px;
  }

  .trust-grid,
  .service-grid,
  .post-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--chd-line);
  }

  .trust-grid > div:last-child {
    border-bottom: 0;
  }

  .service-card {
    min-height: 0;
  }

  .care-visual {
    min-height: 350px;
    padding: 36px;
  }

  .care-number {
    width: 74px;
    height: 74px;
  }

  .care-steps > div {
    padding-left: 60px;
  }

  .care-steps h3,
  .care-steps p {
    grid-column: 1 / -1;
  }

  .doctor-portrait {
    min-height: 440px;
  }

  .doctor-initials {
    width: 175px;
    height: 175px;
    font-size: 3.8rem;
  }

  .faq-list summary {
    font-size: 1.08rem;
  }

  .contact-card {
    padding: 26px 20px;
  }

  .contact-detail {
    grid-template-columns: 44px 1fr;
    gap: 13px;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
  }

  .footer-grid {
    gap: 36px;
  }

  .footer-brand {
    grid-template-columns: 82px 1fr;
  }

  .footer-brand img {
    width: 82px;
    height: 82px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .search-form {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .primary-navigation,
  .menu-toggle,
  .header-cta,
  .hero-actions,
  .mobile-action-bar,
  .site-footer {
    display: none !important;
  }

  .site-header {
    position: static;
  }

  body {
    color: #000;
    background: #fff;
  }
}
