/* Sequim Health and Chiropractic — private HTML preview (not published)
   Palette: Olympic forest + coast neutrals, soft lilac accent */

:root {
  /* Core */
  --bg: #f4f6f3;
  --bg-warm: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #eef2ef;
  --text: #1a2b24;
  --text-muted: #4a5c54;
  --text-on-dark: #f2f6f4;

  /* Forest / coast accents */
  --forest: #1f4d3d;
  --forest-deep: #16382d;
  --teal: #2a6b5a;
  --teal-soft: #3d8a74;
  --coast: #3a6b7a;
  --sand: #e8dfd0;
  --sage: #c5d4c8;
  --mist: #dce8e3;

  /* Soft lilac accent (secondary highlights, not primary CTA) */
  --lilac: #8b7aa8;
  --lilac-soft: #e8e2f0;
  --lilac-deep: #6b5b8a;

  /* UI */
  --accent: var(--forest);
  --accent-hover: var(--forest-deep);
  --accent-soft: var(--mist);
  --border: #cfd9d3;
  --border-soft: #e2e9e4;
  --shadow: 0 4px 20px rgba(26, 43, 36, 0.07);
  --shadow-sm: 0 2px 8px rgba(26, 43, 36, 0.05);
  --shadow-lg: 0 12px 40px rgba(26, 43, 36, 0.1);

  /* Banner */
  --banner-bg: #f5f0e6;
  --banner-text: #5a4a2e;
  --banner-border: #d4c4a8;

  --focus: #3d8a74;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --max: 1080px;
  --content: 720px;
  --tap: 48px;
  --header-h: 4.5rem;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", "Palatino Linotype", Palatino, serif;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--forest-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Preview banner ——— */
.preview-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--banner-bg);
  color: var(--banner-text);
  border-bottom: 1px solid var(--banner-border);
  text-align: center;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.preview-banner::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #b8892a;
  vertical-align: middle;
}

/* ——— Header / sticky nav ——— */
.site-header {
  position: sticky;
  top: 2rem; /* below preview banner approx */
  z-index: 150;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  min-width: 0;
  flex: 1 1 auto;
}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--forest-deep);
  letter-spacing: -0.01em;
}

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

.site-title a:hover {
  color: var(--teal);
}

.tagline-header {
  display: none;
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 28rem;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .tagline-header {
    display: block;
  }
}

/* CSS-only mobile nav (checkbox hack) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.nav-toggle-label .hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-label .hamburger span {
  display: block;
  height: 2px;
  background: var(--forest);
  border-radius: 1px;
}

.nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-toggle:checked ~ nav .nav {
  display: flex;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--accent-soft);
  color: var(--forest);
  border-color: var(--sage);
}

.nav a[aria-current="page"] {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.nav a[aria-current="page"]:hover {
  background: var(--forest-deep);
  color: #fff;
}

@media (min-width: 780px) {
  .nav-toggle-label {
    display: none;
  }

  .nav {
    display: flex;
    width: auto;
    flex: 0 1 auto;
  }
}

/* ——— Main ——— */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.page-main {
  padding-top: 2rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--forest-deep);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.55rem);
  margin: 2.25rem 0 0.85rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font);
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

ul,
ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--text);
}

li {
  margin-bottom: 0.45rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.section-intro {
  max-width: var(--content);
}

/* ——— Hero (Home) ——— */
.hero {
  margin: 1.5rem 0 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(31, 77, 61, 0.92) 0%, rgba(42, 107, 90, 0.88) 45%, rgba(58, 107, 122, 0.9) 100%),
    var(--forest);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(139, 122, 168, 0.28) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.hero h1 {
  color: #fff;
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
}

.hero .hero-tagline {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  color: rgba(242, 246, 244, 0.92);
  font-family: var(--font-display);
  font-style: italic;
}

.hero .cta {
  margin: 0 0 0.25rem;
  background: #fff;
  color: var(--forest-deep) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero .cta:hover,
.hero .cta:focus-visible {
  background: var(--sand);
  color: var(--forest-deep) !important;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: rgba(242, 246, 244, 0.85);
}

/* Quick contact pills */
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.contact-pills a,
.contact-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.55rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-pills a:hover,
.contact-pills a:focus-visible {
  border-color: var(--teal);
  color: var(--forest);
  box-shadow: var(--shadow);
}

.pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--lilac-soft);
  color: var(--lilac-deep);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ——— Cards / grids ——— */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card h2:first-child,
.card h3:first-child {
  margin-top: 0;
}

.card-accent {
  border-left: 4px solid var(--lilac);
}

.info-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-grid > li,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.info-grid strong,
.info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lilac-deep);
  margin-bottom: 0.35rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-soft);
  margin: 0;
}

.info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list li:first-child {
  padding-top: 0;
}

.info-list strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lilac-deep);
  margin-bottom: 0.2rem;
}

/* Services card grid */
.services-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 520px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services-grid > li {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.services-grid > li:hover {
  box-shadow: var(--shadow);
  border-color: var(--sage);
  transform: translateY(-2px);
}

.services-grid .service-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--mist), var(--lilac-soft));
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.services-grid strong {
  display: block;
  font-size: 1.02rem;
  color: var(--forest-deep);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.services-grid p,
.services-grid .service-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ——— About / headshot ——— */
.about-hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin: 0 0 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .about-hero {
    grid-template-columns: minmax(220px, 300px) 1fr;
    padding: 1.75rem;
    gap: 2rem;
  }
}

.headshot-frame {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
}

.headshot-frame::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--sage), var(--lilac-soft));
  z-index: 0;
}

.headshot {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
}

.about-hero .lead {
  margin-bottom: 1.25rem;
}

.about-sections {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .about-sections {
    grid-template-columns: 1fr 1fr;
  }

  .about-sections .span-full {
    grid-column: 1 / -1;
  }
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.25rem;
  margin: 0;
  border-left: 2px solid var(--sage);
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lilac);
  border: 2px solid var(--surface);
}

/* ——— CTA ——— */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.75rem 1.6rem;
  margin: 0.35rem 0 1rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 77, 61, 0.25);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 77, 61, 0.3);
}

.cta-secondary {
  background: transparent;
  color: var(--forest) !important;
  border: 2px solid var(--forest);
  box-shadow: none;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  background: var(--mist);
  color: var(--forest-deep) !important;
  box-shadow: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0.5rem 0 1.5rem;
}

.cta-row .cta {
  margin: 0;
}

/* ——— Map ——— */
.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 380px;
  margin: 1rem 0 1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ——— Forms ——— */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  max-width: 32rem;
}

.form-note {
  background: linear-gradient(135deg, var(--mist), var(--lilac-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.form-note p:last-child {
  margin-bottom: 0;
}

.form-preview-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--banner-text);
  background: var(--banner-bg);
  border: 1px solid var(--banner-border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 1.15rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.65rem 0.95rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-group input:hover,
.form-group select:hover {
  border-color: var(--teal-soft);
}

.form-group input:focus,
.form-group select:focus {
  background: var(--surface);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61, 138, 116, 0.2);
}

.form-group select {
  cursor: pointer;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-actions .cta {
  width: 100%;
  max-width: 100%;
}

.form-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.2rem 0;
  color: var(--forest);
  text-decoration: none;
}

.phone-link:hover {
  color: var(--teal);
}

/* Split layout for contact / new patients */
.split-layout {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 780px) {
  .split-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ——— Content sections ——— */
.section-block {
  margin: 2rem 0;
}

.section-block > h2:first-child {
  margin-top: 0;
}

.insurance-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(120deg, var(--mist) 0%, var(--lilac-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.insurance-banner p {
  margin: 0;
  font-weight: 600;
  color: var(--forest-deep);
}

/* ——— Footer ——— */
.site-footer {
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: rgba(242, 246, 244, 0.88);
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.5rem;
  color: rgba(242, 246, 244, 0.85);
}

.site-footer strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.site-footer a {
  color: #c8e0d6;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.35rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
}

.disclaimer {
  font-size: 0.82rem;
  max-width: 560px;
  margin: 1.15rem auto 0;
  color: rgba(242, 246, 244, 0.7);
  line-height: 1.5;
}

.footer-preview {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: rgba(232, 226, 240, 0.75);
}

/* Utility */
.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;
}

.narrow {
  max-width: var(--content);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta,
  .services-grid > li,
  .contact-pills a {
    transition: none;
  }

  .services-grid > li:hover,
  .cta:hover {
    transform: none;
  }
}
