/* ============================================
   Kiara — Naturopathic Nutrition
   Shared stylesheet
   ============================================ */

:root {
  --parchment: #F5F0E6;
  --parchment-deep: #EBE2D0;
  --forest: #6B4A38;
  --forest-deep: #3D2A1F;
  --clay: #6B7A4F;
  --clay-deep: #4F5B39;
  --rose: #E4E8D6;
  --ink: #2A2419;
  --ink-soft: #5C5245;
  --line: rgba(42, 36, 25, 0.14);
  --white: #FFFDF9;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --reading-width: 680px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.prose {
  max-width: var(--reading-width);
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--forest-deep);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1.2em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: 0.9em;
  display: inline-block;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 0;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

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

.btn-ghost {
  background: transparent;
  color: var(--forest-deep);
  border-color: var(--forest-deep);
}
.btn-ghost:hover { background: var(--forest-deep); color: var(--white); }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.6em;
}

.link-arrow {
  font-weight: 600;
  color: var(--clay-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--rose);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.link-arrow:hover { border-color: var(--clay-deep); }

/* ---------- Header / Nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest-deep);
  border-bottom: 1px solid rgba(245, 240, 230, 0.14);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--parchment);
}
.brand-subtitle {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #B9C4A5;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--forest-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--parchment);
  position: relative;
  padding: 4px 0;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--rose);
}

.nav-cta {
  background: var(--clay);
  color: var(--white) !important;
  padding: 13px 26px !important;
  border-radius: 0;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  white-space: nowrap;
}
.nav-cta:hover { background: #5A6842 !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--parchment);
}

@media (max-width: 780px) {
  .nav-links { 
    position: fixed;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--forest-deep);
    padding: 24px 32px 32px;
    border-bottom: 1px solid rgba(245, 240, 230, 0.14);
    display: none;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Wave divider (signature element) ---------- */

.wave-divider {
  display: flex;
  justify-content: center;
  padding: 16px 0 56px;
}
.wave-divider svg { width: 148px; height: 174px; }
.wave-divider svg ellipse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pebble-sway 4s ease-in-out infinite;
}
.wave-divider svg ellipse:nth-child(1) { animation-delay: 0s; animation-duration: 4s; }
.wave-divider svg ellipse:nth-child(2) { animation-delay: 0.35s; animation-duration: 4.6s; }
.wave-divider svg ellipse:nth-child(3) { animation-delay: 0.7s; animation-duration: 3.8s; }
.wave-divider svg ellipse:nth-child(4) { animation-delay: 1.05s; animation-duration: 4.3s; }

@keyframes pebble-sway {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-1.5deg); }
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.section-alt {
  background: var(--white);
}

.section-forest {
  background: var(--forest-deep);
  color: var(--parchment);
}
.section-forest h2, .section-forest h3 { color: var(--parchment); }
.section-forest .eyebrow { color: var(--rose); }
.section-forest p { color: rgba(245, 240, 230, 0.86); }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

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

.hero-portrait {
  aspect-ratio: 4/5;
  border-radius: 0;
  overflow: hidden;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Bullet / familiar list ---------- */

.familiar-list {
  list-style: none;
  margin: 1.6em 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.familiar-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.familiar-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 0;
  background: var(--clay);
  margin-top: 9px;
}

/* ---------- Issues grid ---------- */

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  margin-top: 48px;
}

.issue-card {
  background: var(--white);
  padding: 38px 28px;
}

.issue-icon {
  width: 84px; height: 84px;
  margin-bottom: 20px;
  color: var(--clay);
}
.issue-icon svg { width: 100%; height: 100%; }

.issue-card h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.issue-card p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* ---------- Services cards ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

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

.price-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--clay);
  box-shadow: 0 20px 40px -20px rgba(168, 92, 63, 0.35);
  position: relative;
}
.price-card.featured::before {
  content: "Most support";
  position: absolute;
  top: -13px; left: 30px;
  background: var(--clay);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0;
}

.price-card h3 { font-size: 1.5rem; margin-bottom: 0.2em; }
.price-meta {
  font-size: 0.92rem;
  color: var(--clay-deep);
  font-weight: 600;
  margin-bottom: 1em;
}
.price-tag {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--forest-deep);
  margin-bottom: 1em;
}
.price-tag span {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: 6px;
}

.price-card p { color: var(--ink-soft); font-size: 0.96rem; }

.included-list {
  list-style: none;
  padding: 0;
  margin: 1em 0 1.4em;
  display: grid;
  gap: 10px;
  flex: 1;
}
.included-list li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}
.included-list li::before {
  content: "✓";
  color: var(--forest);
  font-weight: 700;
  flex: none;
}

.best-for {
  font-size: 0.86rem;
  color: var(--forest-deep);
  font-weight: 600;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}

.best-for-top {
  font-size: 0.9rem;
  color: var(--forest-deep);
  font-weight: 600;
  margin-bottom: 1.2em;
  line-height: 1.5;
}

.discovery-strip {
  background: var(--rose);
  border-radius: 0;
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.discovery-strip h3 { margin-bottom: 4px; }
.discovery-strip p { margin: 0; color: var(--ink); }

/* ---------- From / To ---------- */

.from-to {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}
@media (max-width: 700px) {
  .from-to { grid-template-columns: 1fr; }
}
.from-to ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.from-to li { font-size: 0.98rem; display: flex; gap: 12px; align-items: flex-start; }
.from-to li::before {
  flex: none;
  font-weight: 700;
  margin-top: 1px;
}
.from-col li::before { content: "–"; color: var(--ink-soft); }
.to-col li::before { content: "→"; color: var(--clay-deep); }
.from-col h4 { color: var(--ink-soft); font-family: var(--sans); font-weight: 700; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.1em; margin-bottom: 1em;}
.to-col h4 { color: var(--forest); font-family: var(--sans); font-weight: 700; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.1em; margin-bottom: 1em;}

/* ---------- Testimonial placeholder ---------- */

.testimonial-placeholder {
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: 0;
  padding: 48px;
  text-align: center;
  margin-top: 40px;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 100px 0;
}

/* ---------- Footer ---------- */

footer {
  background: var(--forest-deep);
  color: var(--parchment);
  padding: 56px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.16);
}
footer .logo { color: var(--parchment); }
footer .brand-name { color: var(--parchment); }
footer .brand-subtitle { color: #B9C4A5; }
footer a { text-decoration: none; color: rgba(245, 240, 230, 0.8); font-size: 0.92rem; }
footer a:hover { color: var(--rose); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bottom {
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(245, 240, 230, 0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- About page specifics ---------- */

.about-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
  padding: 72px 0;
}
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } }

.credentials-strip {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.credential-item {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.credential-item strong {
  display: block;
  font-family: var(--serif);
  color: var(--forest-deep);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-detail .icon {
  width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--clay);
}
.contact-detail a, .contact-detail span { font-size: 1rem; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-deep);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: 0;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--clay);
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* ---------- Scribble underline ---------- */

.scribble {
  position: relative;
  display: inline-block;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.08em;
  height: 0.32em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 10 2, 18 12, 26 6 S 42 2, 50 8 S 66 12, 74 4 S 90 2, 98 7' fill='none' stroke='%236B7A4F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.scribble.scribble-forest::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 10 2, 18 12, 26 6 S 42 2, 50 8 S 66 12, 74 4 S 90 2, 98 7' fill='none' stroke='%233D2A1F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.scribble.scribble-parchment::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 10 2, 18 12, 26 6 S 42 2, 50 8 S 66 12, 74 4 S 90 2, 98 7' fill='none' stroke='%23F5F0E6' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Utility ---------- */

.section-highlight {
  background: var(--rose);
}

.content-image {
  width: 100%;
  border-radius: 0;
  margin: 2.5rem 0;
  display: block;
  object-fit: cover;
  object-position: center 12%;
}
.content-image.portrait {
  aspect-ratio: 4/5;
  max-width: 420px;
}

.content-banner {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.substack-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2em;
}
@media (max-width: 780px) {
  .substack-feed { grid-template-columns: 1fr; }
}
.substack-feed-loading {
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 2em 0;
}
.substack-post-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  display: block;
  background: var(--forest-deep);
}
.substack-post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.substack-post-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.85);
}
.substack-post-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 18px;
  background: linear-gradient(to top, rgba(30,22,15,0.88) 0%, rgba(30,22,15,0.35) 60%, rgba(30,22,15,0) 100%);
}
.substack-post-title {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}
.substack-post-date {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
}

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.placeholder-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--rose);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 0;
  margin-bottom: 12px;
}
