/* ==========================================================================
   Chews Your Health -- warm / local-artisan design system
   ========================================================================== */

:root {
  --cream: #fbf5ec;
  --cream-deep: #f2e8d8;
  --paper: #fffdf8;
  --terracotta: #c1613d;
  --terracotta-deep: #a34e30;
  --sage: #7c8f6e;
  --sage-deep: #5f7052;
  --gold: #d9a441;
  --ink: #3a2f27;
  --ink-soft: #6b5d52;
  --border: #e6d9c3;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 1.5rem;
  --radius-md: 0.9rem;
  --radius-sm: 0.5rem;
  --shadow-soft: 0 10px 30px -12px rgba(58, 47, 39, 0.18);
  --max-width: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--terracotta);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 2.4vw + 1rem, 2.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1.1em;
}

ul {
  padding-left: 1.2em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Skip link (accessibility) ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--terracotta-deep);
}

.btn-light:hover {
  background: var(--cream-deep);
  color: var(--terracotta-deep);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a[aria-current="page"] {
  color: var(--terracotta-deep);
  border-bottom: 2px solid var(--terracotta);
}

.main-nav .nav-cta {
  background: var(--terracotta);
  color: var(--white);
  padding: 0.55em 1.2em;
  border-radius: 999px;
  white-space: nowrap;
}

.main-nav .nav-cta:hover {
  background: var(--terracotta-deep);
  color: var(--white);
}

.nav-crisis-btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--sage-deep);
  background: transparent;
  border: 2px solid var(--sage-deep);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  cursor: pointer;
  white-space: nowrap;
}

.nav-crisis-btn:hover {
  background: var(--sage-deep);
  color: var(--white);
}

/* ---- Resources modal (24/7 support lines) ---- */
.resources-modal[hidden] {
  display: none;
}

.resources-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.resources-modal-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3a2159, #6b4f8f);
}

.resources-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  text-align: center;
  color: var(--white);
  padding: 1rem 1rem 2.5rem;
}

.resources-modal-dialog h2 {
  color: var(--white);
  font-size: 2.4rem;
}

.resources-modal-dialog > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.resources-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.resources-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.resources-list {
  display: grid;
  gap: 1rem;
}

.resources-item {
  display: block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.1em 1.5em;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.resources-item:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.is-open {
    display: block;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.2rem 0 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.85rem;
  }
}

/* ---- Hero ---- */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--sage-deep);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-art {
  position: relative;
}

.hero-art img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-art .symbol {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 90px;
  background: var(--paper);
  border-radius: 50%;
  padding: 0.6rem;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-art .symbol {
    display: none;
  }
}

/* ---- Sections ---- */
section {
  padding: 3.5rem 0;
}

.section-cream {
  background: var(--cream-deep);
}

.section-header {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---- Cards / services grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.service-card .icon {
  font-size: 1.8rem;
}

.service-card h3 {
  margin-bottom: 0.2em;
  color: var(--terracotta-deep);
}

.service-card p {
  color: var(--ink-soft);
  margin-bottom: 0.4em;
  flex-grow: 1;
}

.card-link {
  font-weight: 800;
  color: var(--terracotta-deep);
}

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border-left: 4px solid var(--sage);
  box-shadow: var(--shadow-soft);
}

.testimonial p {
  font-style: italic;
  color: var(--ink);
}

.testimonial cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-weight: 800;
  color: var(--sage-deep);
  font-size: 0.92rem;
}

/* ---- About / bio layout ---- */
.bio {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.bio img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.credential-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.6rem;
}

.credential-list li {
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

@media (max-width: 780px) {
  .bio {
    grid-template-columns: 1fr;
  }
}

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}

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

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin: 0 auto 1.6rem;
}

/* ---- Forms ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--terracotta);
}

.form-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-details {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.8rem;
}

.contact-details dt {
  font-weight: 800;
  color: var(--sage-deep);
  margin-top: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-details dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
}

.social-links a:hover {
  background: var(--sage);
  color: var(--white);
}

/* ---- Blog list ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.6rem;
}

.blog-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.blog-card .blog-card-body {
  padding: 1.2rem 1.4rem 1.5rem;
}

/* ---- Disclaimer ---- */
.disclaimer {
  background: var(--cream-deep);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  color: var(--cream);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: var(--cream-deep);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-badges {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.6rem;
}

.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--cream-deep);
}

.footer-bottom a {
  color: var(--cream-deep);
}

.builder-credit {
  opacity: 0.75;
}

/* ---- Utility ---- */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
