/* ==========================================================================
   Amanda & Jordan — Global Design System
   Minimal botanical · mobile-first · breakpoints 768px / 1100px
   ========================================================================== */

:root {
  /* Palette */
  --rust: #A44A3F;
  --amber: #D98E32;
  --olive: #6B7F3E;
  --bark: #4A3728;
  --cream: #EfEEE8;
  --cream-light: #F9F9F7;
  --cream-dark: #F4F3eF;
  --text: #2C2118;
  --text-soft: #5E4E40;
  --white: #FFFDF9;

  /* Fonts */
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Pinyon Script", "Brush Script MT", cursive;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Shape & effects */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 6px 24px rgba(74, 55, 40, 0.08);
  --shadow-lift: 0 14px 40px rgba(74, 55, 40, 0.14);
  --border-soft: 1px solid rgba(74, 55, 40, 0.14);
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);

  --container: 1140px;
  --nav-height: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rust); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bark); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
strong, b { font-weight: 500; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--bark);
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 0.85rem; font-family: var(--font-body); font-weight: 400; text-transform: uppercase; letter-spacing: 0.2em; }
p + p { margin-top: 1em; }
em, .italic { font-family: var(--font-heading); font-style: italic; font-weight: 600; }
.script { font-family: var(--font-script); font-weight: 400; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--olive);
  margin-bottom: var(--space-sm);
}
.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 640px; }
.caption, small { font-size: 0.85rem; color: var(--text-soft); }
.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-md); }
.container-narrow { max-width: 780px; }
.section { position: relative; padding: var(--space-xl) 0; overflow: hidden; }
.section-alt { background: var(--cream-light); }
.section-dark { background: var(--bark); color: var(--cream); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark .eyebrow { color: var(--amber); }
.section-olive { background: var(--olive); color: var(--cream); }
.section-olive h2, .section-olive h3 { color: var(--cream); }
.section-olive .eyebrow { color: var(--cream-dark); }

.section-title { text-align: center; margin-bottom: var(--space-lg); }
.section-title h2 { margin-bottom: var(--space-xs); }
.section-title p { color: var(--text-soft); max-width: 620px; margin: 0 auto; }

.grid { display: grid; gap: var(--space-md); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.stack > * + * { margin-top: var(--space-sm); }

/* Page header (non-hero pages) */
.page-header {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at top, var(--cream-light) 0%, var(--cream) 70%);
}
.page-header h1 { margin-bottom: var(--space-sm); }
.page-header .lead { margin: 0 auto; }
.page-header .botanical { opacity: 0.55; }

/* ---------- Utilities: buttons ---------- */
.btn-primary, .btn-outline, .btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--bark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--bark); border-color: var(--bark); }
.btn-outline:hover { background: var(--bark); color: var(--cream); }
.btn-light { background: transparent; color: var(--cream); border-color: rgba(245, 235, 221, 0.7); }
.btn-light:hover { background: var(--cream); color: var(--bark); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin-top: var(--space-md); }

/* ---------- Utilities: tags & badges ---------- */
.tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(107, 127, 62, 0.12);
  color: var(--olive);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tag-rust { background: rgba(164, 74, 63, 0.12); color: var(--rust); }
.tag-amber { background: rgba(217, 142, 50, 0.16); color: #9A5F17; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 400;
}

/* ---------- Utilities: card (base) ---------- */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  border: var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-lg) auto;
  color: var(--olive);
  max-width: 420px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(74, 55, 40, 0.35), transparent);
}
.divider svg { width: 64px; height: auto; flex-shrink: 0; }

/* ---------- Notices ---------- */
.notice {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(217, 142, 50, 0.12);
  border-left: 4px solid var(--amber);
}
.notice-warning { background: rgba(164, 74, 63, 0.1); border-left-color: var(--rust); }
.notice-olive { background: rgba(107, 127, 62, 0.12); border-left-color: var(--olive); }
.notice .notice-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.notice h4 { margin-bottom: 0.3rem; }

/* ---------- Lists ---------- */
.list-leaf li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
}
.list-leaf li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.9rem;
  height: 0.55rem;
  background: var(--olive);
  border-radius: 0 100% 0 100%;
}

/* ---------- Botanical decorations ---------- */
.botanical {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  color: var(--olive);
  opacity: 0.35;
}
.botanical-tl { top: -20px; left: -40px; width: 180px; transform: rotate(-20deg); }
.botanical-tr { top: -10px; right: -40px; width: 200px; transform: rotate(160deg) scaleY(-1); }
.botanical-bl { bottom: -30px; left: -30px; width: 170px; transform: rotate(30deg); color: var(--bark); opacity: 0.2; }
.botanical-br { bottom: -20px; right: -30px; width: 190px; transform: rotate(-150deg); }
.botanical-bark { color: var(--bark); }
.section > .container, .page-header > .container { position: relative; z-index: 1; }

/* ---------- Scroll fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }
.fade-in.delay-1 { transition-delay: 0.12s; }
.fade-in.delay-2 { transition-delay: 0.24s; }
.fade-in.delay-3 { transition-delay: 0.36s; }

/* Lazy images */
img.lazy { opacity: 0; transition: opacity 0.8s ease; }
img.lazy.loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 768px) {
  .section { padding: var(--space-2xl) 0; }
  .container { padding: 0 var(--space-lg); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: var(--space-lg); }
  .botanical-tl, .botanical-tr, .botanical-br { width: 260px; }
}
@media (min-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .botanical-tl, .botanical-tr, .botanical-br { width: 320px; }
}

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  padding: 0.6rem 1rem; background: var(--bark); color: var(--cream); border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--cream); }
