/* The Cascade Holistic Care — site styles */
:root {
  --navy: #1E3A5F;
  --blue: #2B6CB0;        /* primary button color (replaces old gold) */
  --blue-dark: #1F5592;   /* button hover */
  --sky: #63B3ED;
  --teal: #4FA3C7;
  --mist: #EAF3FB;
  --ink: #23303F;
  --muted: #5A6B7D;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(30, 58, 95, .10);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); line-height: 1.65; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 100; }

/* Buttons — blue */
.btn { display: inline-block; background: var(--blue); color: var(--white); padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid var(--blue); cursor: pointer; font-size: 1rem;
  transition: background .2s, border-color .2s, transform .2s; }
.btn:hover, .btn:focus-visible { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--mist); border-color: var(--mist); color: var(--navy); }

/* Top bar */
.topbar { background: var(--navy); color: var(--white); font-size: .9rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: space-between; padding: .5rem 0; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .contact { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); box-shadow: 0 2px 12px rgba(30,58,95,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; gap: 1rem; }
.logo img { height: 64px; width: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; white-space: nowrap; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--blue); border-bottom: 2px solid var(--sky); }
.nav .btn { padding: .6rem 1.3rem; color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.8rem; color: var(--navy); cursor: pointer; }
@media (max-width: 1140px) { .nav ul { gap: 1.1rem; } }

@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; padding: 1rem 4%; gap: 1rem; }
  .logo img { height: 52px; }
}

/* Hero */
.hero { position: relative; color: var(--white); min-height: min(78vh, 680px); display: flex; align-items: center;
  background: linear-gradient(110deg, rgba(30,58,95,.92) 0%, rgba(43,108,176,.72) 55%, rgba(99,179,237,.35) 100%),
              url("../assets/img/hero.jpg") center/cover no-repeat, var(--navy); }
.hero.page { min-height: min(46vh, 400px); }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: #CFE6FA; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.hero .badge { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
  padding: .3rem .9rem; border-radius: 999px; font-size: .9rem; margin-bottom: 1rem; }
.hero-about { background-image: linear-gradient(110deg, rgba(30,58,95,.92), rgba(43,108,176,.6)), url("../assets/img/about.jpg"); }
.hero-services { background-image: linear-gradient(110deg, rgba(30,58,95,.92), rgba(43,108,176,.6)), url("../assets/img/services.jpg"); }
.hero-contact { background-image: linear-gradient(110deg, rgba(30,58,95,.92), rgba(43,108,176,.6)), url("../assets/img/contact.jpg"); }

/* Sections */
section { padding: 5rem 0; }
.alt { background: var(--mist); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: .6rem; display: block; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card .body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card .body p { color: var(--muted); flex: 1; }
.card .more { font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* Image slots: show a soft blue placeholder until a real photo is added */
.photo { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--mist), #CFE3F5); background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 2.4rem; }
.photo.tall { aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: var(--shadow); }

.icon { width: 52px; height: 52px; border-radius: 50%; background: var(--mist); color: var(--blue); display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { padding: .7rem 0 .7rem 2.2rem; position: relative; border-bottom: 1px solid #DCE8F3; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: .65rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--blue); color: var(--white); font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.checklist strong { color: var(--navy); }

.numbered { font-family: var(--serif); font-size: 2.4rem; color: var(--sky); font-weight: bold; line-height: 1; margin-bottom: .6rem; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--navy), var(--blue)); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 680px; margin: 0 auto 1.6rem; color: #DCEBF8; }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .3rem; font-size: .95rem; }
input, textarea, select { width: 100%; padding: .8rem 1rem; border: 1px solid #C5D6E6; border-radius: 8px; font: inherit; margin-bottom: 1rem; background: var(--white); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--sky); border-color: var(--blue); }
textarea { min-height: 140px; resize: vertical; }
.form-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }

.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-list .icon { margin: 0; flex: none; width: 44px; height: 44px; font-size: 1.2rem; }

.map { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.site-footer { background: var(--navy); color: #C9D8E8; padding: 4rem 0 0; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a { color: #C9D8E8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .logo img { height: 72px; margin-bottom: 1rem; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding: 1.2rem 0; text-align: center; font-size: .85rem; }

.form-note { font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 1rem; font-weight: 600; color: var(--blue); }

/* --- Sections added from old-site content --- */
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.actions.center { justify-content: center; }
.btn-outline.on-dark { color: var(--white); border-color: var(--white); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--navy); }
.narrow { max-width: 820px; text-align: center; }
.split.top { align-items: start; }
@media (min-width: 861px) { .split.reverse > :first-child { order: 2; } }

.mission { background: linear-gradient(180deg, var(--white), var(--mist)); }
.mission-text { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--navy); line-height: 1.5; margin-bottom: 2rem; }

.quotes { columns: 3 300px; column-gap: 1.6rem; }
.quote { break-inside: avoid; margin: 0 0 1.6rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.8rem 1.8rem 1.4rem; border-top: 4px solid var(--sky); }
.quote blockquote { margin: 0 0 1rem; font-style: italic; color: var(--ink); }
.quote figcaption { font-weight: 600; color: var(--blue); font-size: .9rem; }

.ticks { list-style: none; padding: 0; margin: 0; columns: 2 200px; column-gap: 1.5rem; }
.ticks li { break-inside: avoid; padding: .3rem 0 .3rem 1.5rem; position: relative; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.grid-pair { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .grid-pair { grid-template-columns: 1fr; } }
.photo.wide { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Gallery */
.hero-gallery { background-image: linear-gradient(110deg, rgba(30,58,95,.92), rgba(43,108,176,.55)), url("../assets/img/gallery/08.jpg"); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; color: var(--white); font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(30,58,95,.85)); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(15, 30, 50, .9); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 8px; margin: 0 auto; }
.lightbox figcaption { color: var(--white); margin-top: .8rem; }
.lightbox button { position: fixed; background: rgba(255,255,255,.15); color: var(--white); border: 0; font-size: 2.2rem; width: 52px; height: 52px;
  border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: var(--blue); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* "The" accent in headings — echoes the logo's "THE" */
.the { font-style: italic; font-weight: inherit; color: var(--blue); }
.eyebrow .the { color: var(--navy); }
.hero .the, .cta-band .the { color: #A9D3F5; }

/* Homepage hero slideshow: 4 photos crossfade, 6s each (24s loop) */
.hero-home { background: var(--navy); overflow: hidden; }
.hero-home::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(30,58,95,.92) 0%, rgba(43,108,176,.72) 55%, rgba(99,179,237,.35) 100%); }
.hero-home .container { position: relative; z-index: 2; }
.hero-slides, .hero-slides div { position: absolute; inset: 0; }
.hero-slides div { background-size: cover; background-position: center; opacity: 0; animation: heroFade 24s infinite; }
.hero-slides div:nth-child(1) { animation-delay: -1.2s; } /* already visible on page load */
.hero-slides div:nth-child(2) { animation-delay: 4.8s; }
.hero-slides div:nth-child(3) { animation-delay: 10.8s; }
.hero-slides div:nth-child(4) { animation-delay: 16.8s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.08); }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  31%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides div { animation: none; }
  .hero-slides div:first-child { opacity: 1; }
}

/* FAQ */
.hero-faq { background-image: linear-gradient(110deg, rgba(30,58,95,.92), rgba(43,108,176,.6)), url("../assets/img/hero-3.jpg"); }
.faq-wrap { max-width: 860px; }
.faq { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 3.5rem 1.2rem 1.5rem; position: relative;
  font-family: var(--serif); font-size: 1.15rem; font-weight: bold; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--mist); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font: 700 1.3rem var(--sans); }
.faq[open] summary::after { content: "–"; background: var(--blue); color: var(--white); }
.faq summary:hover { color: var(--blue); }
.faq .answer { padding: 0 1.5rem 1.3rem; color: var(--ink); }
.faq .answer p { margin: 0; }

/* Photos as real <img> elements (indexable, with alt text) */
img.photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
img.photo.tall { aspect-ratio: 4 / 5; }
img.photo.wide { aspect-ratio: 4 / 3; }

/* Homepage H1: small kicker line + large tagline */
.hero h1 .badge { display: table; font-family: var(--sans); font-size: .9rem; font-weight: 400; line-height: 1.4; margin-bottom: 1rem; }
.hero h1 .h1-main { display: block; }

.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; }
.faq .answer p + p, .faq .answer ul + p, .faq .answer p + ul { margin-top: .7rem; }
.faq .answer ul { margin: 0; padding-left: 1.2rem; }
.faq .answer li { margin-bottom: .45rem; }
