/* Thriving Differently — calm, whimsical, and easy to scan */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #243d3e;
  background: var(--td-cream, #fbf7ef);
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--td-teal); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--td-peach); outline-offset: 4px; border-radius: .25rem; }
::selection { background: color-mix(in srgb, var(--td-lavender) 42%, white); color: #18393b; }

h1, h2, h3, h4 {
  color: var(--td-teal);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.3vw, 5.25rem); letter-spacing: -.035em; margin: 0 0 1.2rem; }
h2 { font-size: clamp(2rem, 3.3vw, 3.25rem); margin: 0 0 .9rem; }
h3 { font-size: 1.35rem; margin: 0 0 .55rem; }
p { margin: 0 0 1rem; }

.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(780px, 100%); }
.article-width { width: min(820px, calc(100% - 2rem)); }
.centered { text-align: center; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .75rem 1rem; background: white; border: 2px solid var(--td-teal); border-radius: .7rem; font-weight: 700; }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 50; background: rgba(251,247,239,.94); border-bottom: 1px solid rgba(23,79,85,.11); backdrop-filter: blur(12px); }
.site-header.is-sticky { position: sticky; top: 0; box-shadow: 0 8px 30px rgba(38,64,61,.08); }
.header-inner { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 210px; height: auto; }
.brand-note { color: #6f7772; font-size: .78rem; letter-spacing: .03em; margin-left: 4.25rem; margin-top: -.7rem; }
.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-list { display: flex; align-items: center; gap: 1.55rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { position: relative; color: #284344; text-decoration: none; font-weight: 650; font-size: .95rem; padding-block: .65rem; }
.nav-list a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: .25rem; height: 2px; background: var(--td-peach); transition: left .2s ease, right .2s ease; }
.nav-list a:hover::after, .nav-list a.is-active::after { left: 0; right: 0; }
.nav-toggle { display: none; border: 0; background: transparent; width: 48px; height: 48px; padding: 11px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--td-teal); border-radius: 5px; transition: transform .2s ease, opacity .2s ease; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.25rem; border: 2px solid var(--td-teal); border-radius: 999px; color: white; background: var(--td-teal); font-weight: 750; text-decoration: none; box-shadow: 0 8px 20px rgba(23,79,85,.13); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 11px 25px rgba(23,79,85,.18); }
.button-outline { color: var(--td-teal); background: rgba(255,255,255,.63); border-color: color-mix(in srgb, var(--td-peach) 70%, var(--td-teal)); box-shadow: none; }
.button-outline:hover { background: white; }
.button-small { min-height: 42px; padding: .56rem 1rem; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.65rem; }
.text-link { font-weight: 750; color: var(--td-teal); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.home-hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6.5rem) 0 4.5rem; background: linear-gradient(180deg, #fffdf8 0%, var(--td-cream) 88%); }
.home-hero::before, .home-hero::after { content: ""; position: absolute; border-radius: 50%; opacity: .34; filter: blur(1px); }
.home-hero::before { width: 340px; height: 340px; left: -170px; top: 90px; background: var(--td-sage); }
.home-hero::after { width: 270px; height: 270px; right: -110px; top: 20px; background: var(--td-peach); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-copy { padding-block: 1rem; }
.hero-copy h1 { max-width: 10ch; }
.hero-text { max-width: 580px; font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: #4e6060; }
.pill { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.2rem; padding: .42rem .8rem; border: 1px solid color-mix(in srgb, var(--td-peach) 80%, white); border-radius: 999px; background: #fffaf4; color: #845947; font-size: .85rem; font-weight: 750; }
.pill::before { content: "♡"; color: #bd6d59; font-size: 1.1em; }
.reassurance { color: #6e6a64; margin-top: 1.1rem; font-size: .92rem; }
.hero-art { position: relative; }
.hero-art::before { content: "✦"; position: absolute; z-index: 2; left: 4%; top: 4%; color: var(--td-peach); font-size: 1.6rem; transform: rotate(-9deg); }
.hero-art img { width: 100%; filter: drop-shadow(0 24px 35px rgba(59,68,55,.13)); }
.hero-landscape { position: absolute; inset: auto 0 0; height: 105px; opacity: .48; background: radial-gradient(110% 130% at 15% 140%, var(--td-sage) 0 49%, transparent 50%), radial-gradient(100% 120% at 82% 155%, color-mix(in srgb, var(--td-sage) 78%, white) 0 52%, transparent 53%); }

.feature-strip { position: relative; z-index: 3; margin-top: -1.25rem; padding-bottom: 5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.feature-card { min-height: 230px; display: grid; grid-template-columns: 72px 1fr; gap: 1rem; padding: 1.65rem; border: 1px solid rgba(23,79,85,.1); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 14px 35px rgba(46,72,68,.08); }
.feature-card h2 { font-size: 1.55rem; }
.feature-card p { color: #526362; }
.icon-bubble { width: 64px; height: 64px; display: inline-grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--td-sage) 36%, white); color: var(--td-teal); }
.tone-2 .icon-bubble { background: color-mix(in srgb, var(--td-lavender) 38%, white); }
.tone-3 .icon-bubble { background: color-mix(in srgb, var(--td-peach) 40%, white); }
.icon-bubble.small { width: 56px; height: 56px; }
.td-icon { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.friendly-section { padding: 5.5rem 0; background: #fffdf9; border-block: 1px solid rgba(23,79,85,.08); }
.section-heading { margin-bottom: 2.6rem; }
.section-heading > p:not(.eyebrow) { max-width: 680px; margin-inline: auto; color: #61706f; }
.eyebrow { margin-bottom: .55rem; color: #8b6b5c; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.friendly-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.friendly-item { padding: 1.2rem; text-align: center; }
.friendly-item .icon-bubble { margin: 0 auto 1rem; }
.friendly-item p { color: #5b6a69; font-size: .95rem; }

.blog-preview, .blog-listing { padding: 5.5rem 0 6rem; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.blog-card { overflow: hidden; border: 1px solid rgba(23,79,85,.1); border-radius: 24px; background: #fff; box-shadow: 0 12px 28px rgba(47,70,67,.07); }
.blog-card-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #eee8dc; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.025); }
.blog-card-copy { padding: 1.45rem; }
.blog-card-copy h3 { font-size: 1.55rem; }
.blog-card-copy h3 a { color: inherit; text-decoration: none; }
.blog-card-copy > p:not(.eyebrow) { color: #5e6c6b; }

.page-hero { position: relative; padding: clamp(4.2rem, 8vw, 8rem) 0 4.5rem; overflow: hidden; background: linear-gradient(180deg, #fffdf8, #f6f1e7); }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 230px; right: -80px; bottom: -90px; border-radius: 50%; background: color-mix(in srgb, var(--td-sage) 35%, transparent); }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.75rem); }
.lede { color: #536665; font-size: clamp(1.08rem, 1.7vw, 1.28rem); }
.content-section { padding: 4.5rem 0 6rem; background: #fffdf9; }
.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.8em; }
.prose blockquote { margin-inline: 0; padding: 1rem 1.4rem; border-left: 4px solid var(--td-lavender); border-radius: 0 14px 14px 0; background: color-mix(in srgb, var(--td-lavender) 12%, white); }
.prose img { border-radius: 20px; }

.blog-hero { padding-bottom: 5rem; }
.article-page { padding-bottom: 6rem; background: #fffdf9; }
.article-header { padding: 5rem 0 2.5rem; background: linear-gradient(180deg, #fffdf8, #f7f1e8); }
.article-header h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.back-link { display: inline-block; margin-bottom: 2rem; font-weight: 750; text-decoration: none; }
.tag-list { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tag-list li { padding: .38rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--td-sage) 25%, white); font-size: .85rem; }
.article-image { margin-top: 2.5rem; }
.article-image img { width: 100%; border-radius: 26px; }
.article-page > .prose { padding-top: 3rem; }

.two-column-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.client-note { position: relative; z-index: 2; padding: 1.5rem; border: 1px solid rgba(23,79,85,.1); border-radius: 22px; background: rgba(255,255,255,.75); }
.client-note .icon-bubble { margin-bottom: 1rem; }
.client-section { padding: 5rem 0 6rem; background: #fffdf9; }
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.client-card { padding: 1.7rem; border: 1px solid rgba(23,79,85,.1); border-radius: 22px; background: white; }
.client-card .icon-bubble { margin-bottom: 1.1rem; }
.client-content { padding-top: 4rem; }

.error-page { min-height: 70vh; display: grid; place-items: center; padding: 5rem 0; background: linear-gradient(180deg, #fffdf8, #eff1e8); }
.error-page img { margin: 0 auto 1rem; }

.site-footer { position: relative; overflow: hidden; padding-top: 6rem; color: #294748; background: #e7ebdf; }
.footer-hills { position: absolute; inset: 0 0 auto; height: 115px; background: radial-gradient(80% 120% at 12% 110%, #cdd7c4 0 50%, transparent 51%), radial-gradient(90% 120% at 75% 115%, #d9dfcf 0 55%, transparent 56%); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.35fr .75fr 1fr 1.15fr; gap: 2rem; padding-bottom: 3.5rem; }
.footer-brand img { width: 190px; }
.footer-brand p { max-width: 28ch; }
.site-footer h2 { font-family: inherit; font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .45rem; }
.footer-links a, .footer-contact a, .footer-parent a { color: inherit; }
.privacy-note { margin-top: 1rem; font-size: .8rem; color: #637372; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 1.4rem; border-top: 1px solid rgba(23,79,85,.13); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; left: 1rem; right: 1rem; display: none; align-items: stretch; flex-direction: column; gap: .6rem; padding: 1rem; border: 1px solid rgba(23,79,85,.1); border-radius: 18px; background: #fffdf9; box-shadow: 0 18px 35px rgba(31,59,57,.14); }
  .primary-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: .8rem; }
  .nav-cta { align-self: stretch; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-text { margin-inline: auto; }
  .button-row { justify-content: center; }
  .feature-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: 1 / -1; }
  .friendly-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: .98rem; }
  .shell { width: min(100% - 1.25rem, 1180px); }
  .header-inner { min-height: 86px; }
  .brand img { width: 175px; }
  .brand-note { margin-left: 3.55rem; font-size: .67rem; }
  .home-hero { padding-top: 2.5rem; }
  .hero-copy h1 { max-width: none; }
  .button-row { flex-direction: column; }
  .button-row .button { width: 100%; }
  .feature-grid, .blog-grid, .client-grid, .footer-grid, .two-column-intro { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 58px 1fr; padding: 1.25rem; }
  .feature-card:last-child { grid-column: auto; }
  .friendly-grid { grid-template-columns: 1fr; }
  .friendly-item { display: grid; grid-template-columns: 56px 1fr; text-align: left; column-gap: 1rem; }
  .friendly-item .icon-bubble { grid-row: 1 / 3; margin: 0; }
  .friendly-item h3, .friendly-item p { grid-column: 2; }
  .split-heading { align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}

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

@media (prefers-contrast: more) {
  body { color: #152f30; }
  .feature-card, .blog-card, .client-card { border-color: rgba(23,79,85,.4); }
  .button-outline { border-color: var(--td-teal); }
}
