/* =========================================================
   MITTEN WEB WORKS — DESIGN SYSTEM
   Palette:  paper (bg), ink (text), lake (primary), cherry (accent)
   Type:     Fraunces (display), Inter (body)
========================================================= */

:root {
  --paper: #F7F2E7;
  --paper-2: #EFE7D3;
  --ink: #1B2A22;
  --ink-soft: #4B5A50;
  --lake: #1D5C74;
  --lake-deep: #123241;
  --cherry: #B5402F;
  --cherry-light: #D96B57;
  --line: rgba(27, 42, 34, 0.14);
  --line-strong: rgba(27, 42, 34, 0.28);
  --shadow: 0 18px 40px rgba(18, 32, 24, 0.10);
  --radius: 12px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--lake); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

p { line-height: 1.7; margin: 0 0 1em; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cherry);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--cherry);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 18px;
}

.section-lede {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* =========================================================
   SKIP LINK
========================================================= */
.skip-link {
  position: absolute;
  top: -50px;
  left: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 999;
  border-radius: 8px;
}
.skip-link:focus { top: 10px; }

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--lake);
  color: var(--paper);
  box-shadow: 0 10px 26px rgba(29, 92, 116, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29, 92, 116, 0.36); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-cherry {
  background: var(--cherry);
  color: var(--paper);
  box-shadow: 0 10px 26px rgba(181, 64, 47, 0.3);
}
.btn-cherry:hover { transform: translateY(-2px); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.navbar.scrolled {
  background: rgba(247, 242, 231, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  height: 72px;
}

.navbar-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img { height: 120px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--cherry);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 28px 26px;
    box-shadow: 0 12px 24px rgba(18,32,24,0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 12px 0; width: 100%; }
}

main { padding-top: var(--nav-h); }

/* =========================================================
   HERO
========================================================= */
.hero {
  /* Pulled up under the fixed navbar so the photo shows behind the menu too */
  min-height: 100vh;
  margin-top: calc(-1 * var(--nav-h));
  display: flex;
  align-items: center;
  padding: calc(60px + var(--nav-h)) 0 60px;
  /* Photo: Mission Point, Grand Traverse Bay, by Shelby (Unsplash License)
     https://unsplash.com/photos/lSewP5TwC48
     Cream wash is heaviest behind the text (left) and lighter behind the map (right). */
  background:
    linear-gradient(180deg, rgba(247, 242, 231, 0.55) 0, rgba(247, 242, 231, 0) calc(var(--nav-h) + 50px)),
    linear-gradient(90deg, rgba(247, 242, 231, 0.85) 0%, rgba(247, 242, 231, 0.78) 40%, rgba(247, 242, 231, 0.64) 100%),
    url('../images/hero-bg.webp') 60% 50% / cover no-repeat,
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
@media (max-width: 900px) {
  /* Stacked layout on phones: text sits over the photo too, so wash it evenly */
  .hero {
    background:
      linear-gradient(180deg, rgba(247, 242, 231, 0.55) 0, rgba(247, 242, 231, 0) calc(var(--nav-h) + 50px)),
      linear-gradient(180deg, rgba(247, 242, 231, 0.70) 0%, rgba(247, 242, 231, 0.82) 55%, rgba(247, 242, 231, 0.85) 100%),
      url('../images/hero-bg.webp') 60% 50% / cover no-repeat,
      var(--paper);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
}

.hero-title {
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  margin-bottom: 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--lake);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 34px;
}

@media (max-width: 900px) {
  .hero-sub { margin-left: auto; margin-right: auto; }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-actions { align-items: center; }
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  align-self: center;
  border-radius: 50%;
  color: var(--ink-soft, var(--ink));
  opacity: 0.7;
  transition: opacity .2s, color .2s, transform .2s;
}
.btn-call:hover { opacity: 1; color: var(--cherry); transform: translateY(-2px); }

@media (max-width: 900px) {
  .hero-actions { justify-content: center; }
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.mitten-hero {
  width: min(100%, 380px);
  overflow: visible;
}

.mitten-outline {
  fill: none;
  stroke: var(--lake);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-dasharray: 950;
  stroke-dashoffset: 950;
  animation: drawMitten 2.1s cubic-bezier(.4,0,.2,1) forwards 0.2s;
}

@keyframes drawMitten {
  to { stroke-dashoffset: 0; }
}

.mitten-pin {
  transform-origin: center;
  opacity: 0;
  animation: pinIn 0.6s ease forwards 1.9s;
}
@keyframes pinIn {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}
.mitten-pin circle { fill: var(--cherry); }
.mitten-pin-ring {
  fill: none;
  stroke: var(--cherry);
  stroke-width: 1.4;
  opacity: 0.5;
  animation: pinRing 2.4s ease-out infinite 2.4s;
}
@keyframes pinRing {
  0% { r: 6; opacity: 0.55; }
  100% { r: 20; opacity: 0; }
}

.mitten-label {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  fill: var(--ink-soft);
}

/* =========================================================
   REVEAL ON SCROLL (single system, used everywhere)
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   SERVICES / INFO GRID
========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  /* Outer frame lives on the grid itself, so card backgrounds can never cover it */
  border: 1px solid var(--line);
  margin-top: 48px;
}
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-item {
  padding: 34px 28px;
}
/* Each card draws the divider on its own leading edge. Column widths are often
   fractional pixels, and a neighbor's background could paint over a divider
   that belonged to the previous card. */
.grid-3 .grid-item + .grid-item { border-left: 1px solid var(--line); }
@media (max-width: 800px) {
  .grid-3 .grid-item + .grid-item { border-left: 0; border-top: 1px solid var(--line); }
}

.grid-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.grid-item p { color: var(--ink-soft); margin-bottom: 0; }

.grid-mark {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
}
.grid-mark path {
  fill: none;
  stroke: var(--cherry);
  stroke-width: 2.2;
  stroke-linejoin: round;
}

/* Photo behind "Three things, done well" (Unsplash License) */
#services {
  background:
    linear-gradient(180deg, rgba(247, 242, 231, 0.96) 0%, rgba(247, 242, 231, 0.80) 45%, rgba(247, 242, 231, 0.92) 100%),
    url('../images/services-bg.webp') center / cover no-repeat;
}
#services .grid-item {
  background: rgba(247, 242, 231, 0.78);
}

/* =========================================================
   STATS BAND
========================================================= */
.stats-band {
  background: var(--lake-deep);
  color: var(--paper);
  padding: 70px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 700px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--paper);
}
.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247,242,231,0.7);
  margin-top: 6px;
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonial-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  min-height: 180px;
  position: relative;
}
.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.testimonial.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}
.testimonial blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 20px;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--cherry);
  font-size: 0.9rem;
}
.testimonial-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.testimonial-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line-strong);
  cursor: pointer;
  padding: 0;
}
.testimonial-dots button.active { background: var(--cherry); }

/* =========================================================
   CONTACT / CTA BAND
========================================================= */
.contact-band {
  /* Photo behind "Get in touch" (Unsplash License) */
  /* Cream glow behind the text, photo shows clearly toward the edges */
  background:
    radial-gradient(ellipse 42% 75% at 50% 50%, rgba(239, 231, 211, 0.90) 0%, rgba(239, 231, 211, 0.72) 60%, rgba(239, 231, 211, 0.30) 100%),
    url('../images/contact-bg-desk.webp') 75% 45% / cover no-repeat;
  text-align: center;
  padding: 64px 0;
}
@media (max-width: 640px) {
  .contact-band { padding: 48px 0; }
}
.contact-email {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--lake);
  display: inline-block;
  margin: 6px 0 28px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
}
.contact-email:hover { color: var(--cherry); border-color: var(--cherry); }
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 6px 0 28px;
}
.contact-links .contact-email { margin: 0; }

/* =========================================================
   ABOUT PAGE
========================================================= */
.page-header {
  padding: 150px 0 60px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.page-header .section-lede { margin: 0 auto; }
.page-header.text-center { text-align: center; }
.page-header .eyebrow { justify-content: center; }
.page-header.text-center .eyebrow::before { display: none; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}
.two-col h3 { font-size: 1.35rem; margin-bottom: 12px; }
.two-col p { color: var(--ink-soft); }

/* About page: process steps, values band, FAQ */
.about-intro { max-width: 640px; margin-bottom: 44px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--line-strong); padding-top: 18px; }

/* "How a project goes" sits on a dark band so it reads as its own section */
.steps-band { background: var(--lake-deep); color: var(--paper); }
.steps-band .section-title,
.steps-band .step h3 { color: var(--paper); }
.steps-band .section-lede,
.steps-band .step p { color: rgba(247, 242, 231, 0.74); }
.steps-band .step { border-top-color: rgba(247, 242, 231, 0.28); }
.steps-band .step::before { color: var(--cherry-light); }

/* FAQ follows "Rooted up north" on the same background, so give it a top rule */
.faq-section > .container { border-top: 1px solid var(--line); padding-top: 90px; }
.faq-section { padding-top: 0; }
@media (max-width: 640px) { .faq-section > .container { padding-top: 56px; } }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--cherry);
  margin-bottom: 8px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin-bottom: 0; }

.values-band { background: var(--paper-2); }
.values-band .grid-3 { margin-top: 0; }
.values-band .grid-item { background: var(--paper); }

.local-note { font-size: 1.08rem; }
.local-note p { color: var(--ink-soft); }

.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  color: var(--cherry);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 0 0 20px; padding-right: 36px; }

.team-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
@media (max-width: 700px) {
  .team-row { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
}
.team-card { text-align: center; }
.team-photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 3px solid var(--paper);
  box-shadow: var(--shadow);
}
.team-card h4 { font-size: 1.1rem; margin-bottom: 6px; }
.team-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}
@media (max-width: 800px) {
  .work-grid { grid-template-columns: 1fr; }
}
.work-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  border: 1px solid var(--line);
}
.work-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-item:hover img { transform: scale(1.04); }
.work-caption {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* =========================================================
   PRICING PAGE
========================================================= */
.pricing-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .pricing-row { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}
.pricing-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.pricing-card.popular {
  border-color: var(--cherry);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--cherry);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.pricing-note {
  max-width: 680px;
  margin: 36px auto 0;
  text-align: center;
  color: var(--ink-soft);
}
.pricing-note strong { color: var(--ink); }

.pricing-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.pricing-price {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 10px 0 6px;
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.pricing-desc { color: var(--ink-soft); margin-bottom: 22px; }
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  flex-grow: 1;
}
.pricing-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
}
.pricing-list li::before {
  content: '';
  min-width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lake);
  margin-top: 6px;
}

/* =========================================================
   REQUEST QUOTE FORM
========================================================= */
.form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .form-card { padding: 28px; }
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--lake);
  box-shadow: 0 0 0 3px rgba(29, 92, 116, 0.14);
}
.form-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }

/* field-level validation errors — shown before submission so a single
   bad field never costs the visitor everything else they typed */
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--cherry);
  box-shadow: 0 0 0 3px rgba(181, 64, 47, 0.14);
}
.field-error {
  display: none;
  color: var(--cherry);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
}
.field-error:not(:empty) { display: block; }

/* honeypot field - hidden from real users, visible name to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  display: none;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-message.show { display: block; }
.form-message.success { background: rgba(29,92,116,0.1); color: var(--lake-deep); }
.form-message.error { background: rgba(181,64,47,0.1); color: var(--cherry); }

/* =========================================================
   MAKE A PAYMENT
========================================================= */
.pay-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.pay-tab {
  flex: 1;
  padding: 14px 10px;
  border: none;
  background: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.pay-tab:hover { color: var(--ink); }
.pay-tab.active { color: var(--lake); border-bottom-color: var(--lake); }

.plan-options { display: grid; gap: 12px; }
.plan-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  background: var(--paper);
}
.plan-option.selected,
.plan-option:has(input:checked) {
  border-color: var(--lake);
  box-shadow: 0 0 0 3px rgba(29, 92, 116, 0.14);
  background: white;
}
.plan-option input { width: auto; margin: 0; accent-color: var(--lake); }

/* Order confirmation number on the payment-success page */
.confirmation-box {
  display: inline-block;
  margin: 24px auto 0;
  padding: 14px 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.confirmation-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.confirmation-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lake-deep);
  letter-spacing: 0.02em;
  word-break: break-all;
}

/* =========================================================
   BLOG INDEX (blog.php)
========================================================= */
.blog-header { padding: 150px 0 60px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
/* Photo behind the post cards (Unsplash License) */
.blog-posts {
  padding: 60px 0 100px;
  background:
    linear-gradient(180deg, rgba(239, 231, 211, 0.97) 0%, rgba(247, 242, 231, 0.80) 14%, rgba(247, 242, 231, 0.80) 86%, rgba(247, 242, 231, 0.96) 100%),
    url('../images/blog-bg.webp') center / cover no-repeat;
}
@media (min-width: 900px) and (hover: hover) {
  .blog-posts { background-attachment: scroll, fixed; }
}
@media (max-width: 640px) {
  .blog-posts { padding: 40px 0 64px; }
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 20px;
}
@media (max-width: 800px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card h3 {
  font-size: 1.28rem;
  line-height: 1.2;
  margin-bottom: 10px;
}
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--lake); }
.blog-excerpt { color: var(--ink-soft); margin-bottom: 18px; flex-grow: 1; }
.blog-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
}
.blog-readmore {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--lake);
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card:hover .blog-readmore { color: var(--cherry); }

/* =========================================================
   BLOG POSTS (blog/*.php) — shared by every post page so a
   style tweak only has to happen in one place, not sixteen
========================================================= */
.post-header { padding: 150px 0 40px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 24px; }
.back-link:hover { color: var(--cherry); }
.post-title { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 780px; margin-bottom: 16px; }
.post-meta { color: var(--ink-soft); font-size: 0.92rem; }
.post-meta span:not(:last-child)::after { content: '\00b7'; margin: 0 8px; }
.post-body { max-width: 720px; margin: 0 auto; padding-top: 50px; }
.post-body h2 { font-size: 1.55rem; margin: 46px 0 16px; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.post-body p { color: var(--ink-soft); font-size: 1.05rem; }
.post-body ul, .post-body ol { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; padding-left: 22px; margin: 0 0 1.2em; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--ink); }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-callout { background: white; border: 1px solid var(--line); border-left: 4px solid var(--lake); border-radius: 8px; padding: 20px 24px; margin: 30px 0; color: var(--ink); font-size: 1rem; }
.post-callout strong { color: var(--lake-deep); }
.post-topics { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }
.post-topic-category { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: white; background: var(--cherry); border-radius: 999px; padding: 7px 15px; }
.post-tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--lake); background: var(--paper-2); border-radius: 999px; padding: 7px 15px; }
.post-source-cta { margin: 4px 0 40px; padding: 30px 32px; background: white; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.post-source-cta p { margin-bottom: 18px; color: var(--ink-soft); }
.post-source-cta .btn { text-decoration: none; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--lake-deep);
  color: rgba(247,242,231,0.75);
  padding: 56px 0 36px;
  text-align: center;
}
.footer-inner { max-width: 640px; margin: 0 auto; padding: 0 28px; }
.mitten-mini { width: 34px; height: 36px; margin: 0 auto 16px; }
.mitten-mini path { fill: rgba(247,242,231,0.55); }
.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--paper);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.footer-copy { font-size: 0.88rem; margin-bottom: 6px; }
.footer-contact a { color: rgba(247,242,231,0.85); }
.footer-contact a:hover { color: white; }

/* =========================================================
   MOTION SAFETY
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mitten-outline { stroke-dashoffset: 0; }
}
