:root {
  --bg: #FFF8F0;
  --primary: #C08552;
  --primary-dark: #8C5A3C;
  --ink: #4B2E2B;
  --white: #ffffff;
  --muted: #6d5249;
  --space-1: 0.5rem;
  --space-2: 0.85rem;
  --space-3: 1.2rem;
  --space-4: 1.8rem;
  --space-5: 2.6rem;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 28px rgba(75, 46, 43, 0.1);
  --text: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  --h1: clamp(2.1rem, 1.5rem + 2.8vw, 4.1rem);
  --h2: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: var(--text);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: 0 0 10px 10px;
  z-index: 60;
}

.skip-link:focus {
  left: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(8px);
  background: rgba(255, 248, 240, 0.92);
  border-bottom: 1px solid rgba(140, 90, 60, 0.15);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.9rem 0;
}

.brand {
  display: block;
}

.brand img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.brand img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.brand:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.main-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(192, 133, 82, 0.18);
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(140, 90, 60, 0.3);
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
}

.hero,
.inner-hero {
  padding: 5.5rem 0 3rem;
}

.minimal-hero h1,
.inner-hero h1 {
  margin: 0;
  font-size: var(--h1);
  line-height: 1.1;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section {
  padding: 2.8rem 0;
}

.alt-bg {
  background: rgba(192, 133, 82, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.card {
  background: var(--white);
  border: 1px solid rgba(140, 90, 60, 0.16);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(75, 46, 43, 0.12);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse>* {
  direction: ltr;
}

.image-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(140, 90, 60, 0.2);
}

.btn {
  margin-top: var(--space-2);
  border: none;
  background: var(--primary);
  color: var(--white);
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(140, 90, 60, 0.45);
}

.text-link {
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--space-2);
}

.breath-box {
  margin-top: var(--space-2);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--primary);
  font-weight: 700;
  transition: transform 4s ease-in-out, background 0.8s ease;
}

.breath-box.expand {
  transform: scale(1.2);
  background: rgba(192, 133, 82, 0.16);
}

.toggle-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.toggle-card {
  border: 1px solid rgba(140, 90, 60, 0.4);
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.toggle-card.active,
.toggle-card:hover {
  border-color: var(--primary);
  background: rgba(192, 133, 82, 0.2);
}

.faq-list {
  display: grid;
  gap: var(--space-2);
}

.faq-item {
  border: 1px solid rgba(140, 90, 60, 0.22);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--white);
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open p {
  max-height: 120px;
  padding: 0 1rem 1rem;
}

.timeline {
  display: grid;
  gap: var(--space-3);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

label,
input,
textarea {
  display: block;
  width: 100%;
}

label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input,
textarea {
  font: inherit;
  border: 1px solid rgba(140, 90, 60, 0.35);
  border-radius: 12px;
  padding: 0.7rem;
  background: var(--white);
  margin-bottom: 0.5rem;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(192, 133, 82, 0.3);
  border-color: var(--primary);
}

.checkline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin: 0.4rem 0;
}

.checkline input {
  width: 18px;
  margin: 0;
}

.error {
  color: #a2342f;
  min-height: 1.1rem;
  display: block;
  margin-bottom: 0.4rem;
}

.map-wrap iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--radius-sm);
}

.site-footer {
  border-top: 1px solid rgba(140, 90, 60, 0.18);
  margin-top: var(--space-4);
}

.footer-line {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.9rem 0;
  font-size: 0.94rem;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(760px, 94vw);
  background: var(--white);
  border: 1px solid rgba(140, 90, 60, 0.26);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-3);
  display: none;
  z-index: 40;
}

.cookie-banner.show {
  display: block;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(75, 46, 43, 0.45);
  display: none;
  place-items: center;
  z-index: 50;
}

.cookie-modal.show {
  display: grid;
}

.cookie-panel {
  width: min(420px, 92vw);
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.cookie-panel label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.6rem 0;
  font-weight: 500;
}

.legal-main,
.thank-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-5) 0;
}

.legal-content {
  width: min(860px, 92vw);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.local-note {
  background: linear-gradient(120deg, rgba(192, 133, 82, 0.14), rgba(255, 248, 240, 0.65));
  border: 1px solid rgba(140, 90, 60, 0.2);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.routine-builder,
.pantry-tool,
.impact-estimator {
  display: grid;
  gap: var(--space-2);
}

select {
  font: inherit;
  border: 1px solid rgba(140, 90, 60, 0.35);
  border-radius: 12px;
  padding: 0.7rem;
  background: var(--white);
}

.contact-note,
.microcopy {
  margin-top: var(--space-2);
  color: var(--muted);
}

.site-header,
.card,
.main-nav a,
.btn,
.toggle-card,
.faq-item,
.cookie-banner,
.cookie-panel {
  animation: gentleIn 0.6s ease both;
}

@keyframes gentleIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(192, 133, 82, 0.2);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(192, 133, 82, 0);
  }
}

.btn:focus-visible,
.toggle-card:focus-visible,
.faq-toggle:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
  animation: softPulse 1.2s ease;
}

@media (max-width: 960px) {

  .card-grid,
  .split,
  .contact-layout,
  .planner-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 63px;
    right: 4vw;
    background: var(--white);
    border: 1px solid rgba(140, 90, 60, 0.28);
    border-radius: 12px;
    padding: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: min(220px, 92vw);
  }

  .main-nav.open {
    display: flex;
  }
}