
/* =====================================================
   HOLISTIC HEALTH AND WELLNESS
   Companion Website — Bruce Goldwell
   https://www.mykindlebooks.net/holistic-health/
   ===================================================== */

/* ---------- Theme ---------- */

:root {
  --primary: #167c73;
  --primary-dark: #105b55;
  --primary-light: #e5f5f0;
  --secondary: #698d61;
  --accent: #dba84a;

  --background: #f6f9f7;
  --surface: #ffffff;
  --surface-soft: #eef5f1;

  --text: #263a35;
  --text-light: #5c7069;
  --border: #d9e6df;

  --shadow: 0 8px 28px rgba(28, 74, 61, .08);
  --radius: 16px;
  --max-width: 1160px;
}

/* ---------- Reset ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--background);
}

img, svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */

.container {
  width: min(92%, var(--max-width));
  margin-inline: auto;
}

main {
  min-height: 60vh;
}

section {
  padding: 55px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-white {
  background: var(--surface);
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 35px;
  text-align: center;
}

.section-heading p {
  color: var(--text-light);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-light);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  color: var(--primary-dark);
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1.25rem;
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: .5rem;
}

small, .small {
  font-size: .88rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
}

.highlight {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.site-logo,
.site-brand {
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.site-logo:hover,
.site-brand:hover {
  text-decoration: none;
}

.site-tagline {
  display: block;
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---------- Navigation ---------- */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.main-nav a {
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--primary);
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, #e8f5ed 0%, #f9fbf8 65%, #e9f2ed 100%);
  padding: 75px 0;
}

.hero-inner,
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 55px;
}

.hero-content h1 {
  margin-bottom: 22px;
}

.hero-content p {
  max-width: 650px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
}

.hero-image,
.hero-visual {
  text-align: center;
}

.hero-image img,
.hero-visual img {
  display: block;
  width: min(100%, 440px);
  margin: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Book Cover ---------- */

.book-cover {
  display: block;
  width: min(100%, 350px);
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .15);
}

.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 25px;
}

.book-info {
  max-width: 850px;
  margin: auto;
}

/* ---------- Buttons ---------- */

.btn,
.button,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.btn:hover,
.button:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  background: var(--secondary);
}

.btn-secondary:hover {
  background: #4d7047;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: var(--primary-dark);
}

.btn-light:hover {
  background: #eaf4ee;
  color: var(--primary-dark);
}

.btn-small {
  padding: 9px 17px;
  font-size: .9rem;
}

/* ---------- Cards ---------- */

.card-grid,
.wellness-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card,
.wellness-card,
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 27px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.card:hover,
.wellness-card:hover,
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(28, 74, 61, .12);
}

.card h3,
.wellness-card h3,
.resource-card h3 {
  margin-bottom: 12px;
}

.card p,
.wellness-card p,
.resource-card p {
  color: var(--text-light);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 17px;
  border-radius: 13px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.5rem;
}

.card-link {
  font-weight: 700;
}

/* ---------- Wellness Wheel ---------- */

.wellness-wheel-section {
  background: var(--surface);
}

.wellness-wheel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.wellness-wheel-image {
  display: block;
  width: min(100%, 520px);
  margin: 0 auto;
}

.wellness-wheel-frame {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.wellness-wheel-caption {
  color: var(--text-light);
  font-size: .9rem;
  text-align: center;
  margin-top: 12px;
}

/* ---------- Article Pages ---------- */

.page-header {
  padding: 60px 0;
  background: linear-gradient(135deg, #e6f3ed, #f7faf8);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  max-width: 750px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.1rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 45px;
  align-items: start;
}

.article-content {
  min-width: 0;
  max-width: 800px;
}

.article-content h2 {
  margin-top: 38px;
}

.article-content h3 {
  margin-top: 28px;
}

.article-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar h3 {
  font-size: 1.15rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.sidebar li:last-child {
  border-bottom: 0;
}

/* ---------- Information Boxes ---------- */

.info-box,
.tip-box,
.callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 22px 25px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}

.warning-box {
  background: #fff6e8;
  border-left: 4px solid #c58a2e;
  padding: 22px 25px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}

.info-box p:last-child,
.tip-box p:last-child,
.warning-box p:last-child {
  margin-bottom: 0;
}

/* ---------- Assessment ---------- */

.assessment-container,
.assessment-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 35px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.assessment-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.assessment-item:last-child {
  border-bottom: 0;
}

.assessment-item label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.assessment-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.assessment-row input[type="range"] {
  flex: 1;
}

input[type="range"] {
  accent-color: var(--primary);
}

.score-value {
  min-width: 45px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
}

.assessment-result {
  background: var(--surface-soft);
  padding: 25px;
  border-radius: var(--radius);
  margin-top: 30px;
  text-align: center;
}

.assessment-result strong {
  color: var(--primary-dark);
}

/* ---------- Forms ---------- */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bacdc3;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Resource Downloads ---------- */

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-card .btn {
  margin-top: 15px;
}

.resource-category {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 14px;
  background: var(--primary-light);
  border-radius: 30px;
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 700;
}

/* ---------- Personal Wellness Plan ---------- */

.plan-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 25px;
}

.step-number {
  flex: 0 0 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.plan-step h3 {
  margin-bottom: 7px;
}

/* ---------- Call to Action ---------- */

.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  text-align: center;
  padding: 65px 0;
}

.cta-section h2,
.cta-section h3 {
  color: #ffffff;
}

.cta-section p {
  max-width: 750px;
  margin: 0 auto 25px;
  color: #eaf8f3;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-size: .9rem;
  color: var(--text-light);
  padding: 18px 0;
}

.breadcrumbs a {
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #183d35;
  color: #e4f1ea;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.site-footer h3,
.site-footer h4 {
  color: #ffffff;
}

.site-footer a {
  color: #d2f1e4;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 35px;
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  color: #c2d9cd;
}

/* ---------- Medical Disclaimer ---------- */

.disclaimer {
  font-size: .88rem;
  color: var(--text-light);
  background: #edf3ef;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 30px 0;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

th, td {
  padding: 12px 15px;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--primary-light);
  color: var(--primary-dark);
}

tr:nth-child(even) {
  background: #f7faf8;
}

/* ---------- Responsive ---------- */

@media (max-width: 950px) {
  .hero-inner,
  .hero-grid,
  .wellness-wheel-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .book-links {
    justify-content: center;
  }

  .card-grid,
  .wellness-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  section {
    padding: 38px 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .main-nav {
    width: 100%;
    gap: 10px 16px;
  }

  .main-nav a {
    font-size: .9rem;
  }

  .hero {
    padding: 45px 0;
  }

  .card-grid,
  .wellness-grid,
  .resource-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .wellness-card,
  .resource-card {
    padding: 22px;
  }

  .assessment-container,
  .assessment-card {
    padding: 20px;
  }

  .assessment-row {
    gap: 10px;
  }

  .page-header {
    padding: 40px 0;
  }

  .book-links .btn {
    width: 100%;
  }
}

/* ---------- Print ---------- */

@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .site-header,
  .main-nav,
  .site-footer,
  .btn,
  .cta-section {
    display: none !important;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .card,
  .assessment-container,
  .assessment-card {
    box-shadow: none;
  }

  a {
    color: black;
  }

  h2, h3 {
    break-after: avoid;
  }

  .card,
  .assessment-item {
    break-inside: avoid;
  }
}
