/* ==========================================================================
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1.  Design Tokens (CSS variables)
   2.  Base / Reset
   3.  Typography
   4.  Links
   5.  Utilities
   6.  Header & Navigation
   7.  Buttons
   8.  Hero
   9.  Page Title & Breadcrumbs
   10. Sections & Bands
   11. Panels
   12. Check List
   13. Topic Cards
   14. Numbered List
   15. Sidebar
   16. Forms
   17. Media (framed images, video)
   18. Promo Block
   19. Footer
   20. Accessibility & Motion
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   Brand palette, shared transition, and Bootstrap variable overrides.
   ========================================================================== */
:root {
  /* Brand palette */
  --sage: #ced4b0;
  --cream: #fefae1;
  --clay: #dda477;
  --brown: #644531;
  --sand: #ead4bd;

  /* Shared transition */
  --transition: 300ms all linear;

  /* Bootstrap overrides */
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--brown);
  --bs-body-bg: var(--cream);
  --bs-link-color: var(--brown);
  --bs-link-hover-color: var(--brown);
}


/* ==========================================================================
   2. BASE / RESET
   Document-level defaults and sticky-footer layout.
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* offsets anchor jumps for the fixed header */
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--brown);
  background: var(--cream);

  /* Sticky footer: body fills the viewport, <main> grows to fill space */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


/* ==========================================================================
   3. TYPOGRAPHY
   Headings and paragraphs.
   ========================================================================== */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--brown);
}

h1 { font-size: clamp(2.4rem, 6vw, 3.25rem); margin-bottom: 1.5rem; }
h1 small { font-size: clamp(0.4rem, 6vw, 1.75rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; }
h4 { font-size: 1.1rem; font-weight: 700; margin: 2rem 0 .75rem; }

/* Paragraphs: limit line length for readability... */
p { max-width: 70ch; }

/* ...except inside columns and panels, which control their own width */
.col-lg-6 p,
.panel p {
  max-width: none;
}


/* ==========================================================================
   4. LINKS
   Default link style, hover state, and heading-link variants.
   ========================================================================== */
a {
  color: var(--brown);
  text-decoration-color: var(--brown);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: var(--transition);
}

a:hover {
  color: var(--clay);
  text-decoration-color: var(--clay);
}

/* Links inside headings: no underline until hover */
h2 a, h3 a { text-decoration: none; }
h2 a:hover, h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--clay);
}

/* "Read more" style link with a clay bottom border */
.link-more {
  display: inline-block;
  margin-top: .5rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid var(--clay);
}
.link-more:hover { border-bottom-color: var(--brown); }


/* ==========================================================================
   5. UTILITIES
   Single-purpose helper classes.
   ========================================================================== */
.bg-cream {
  background-color: var(--cream) !important;
}


/* ==========================================================================
   6. HEADER & NAVIGATION
   Site header, brand, nav links, mobile toggler, and dropdown menus.
   ========================================================================== */
.site-header {
  background: var(--sage);
  border-bottom: 3px solid var(--brown);
  z-index: 1030;
}

/* Brand / logo text */
.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brown);
  letter-spacing: -0.02em;
}
.navbar-brand:hover { color: var(--brown); }

/* Nav links */
.navbar-nav {
  --bs-nav-link-color: var(--brown);
  --bs-nav-link-hover-color: var(--brown);
  gap: 0 .25rem;
}

.nav-link {
  font-size: .9rem;
  font-weight: 600;
  padding: .5rem .6rem !important;
}

.nav-link:hover,
.nav-link.show,
.nav-link.active {
  background: var(--sand);
  border-radius: .4rem;
}

/* Mobile menu toggle */
.navbar-toggler { border-color: var(--brown); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--clay); }

/* Dropdown menus */
.dropdown-menu {
  background: var(--cream);
  border: 2px solid var(--brown);
  border-radius: .5rem;
  padding: .4rem;
}

.dropdown-item {
  color: var(--brown);
  font-weight: 600;
  font-size: .92rem;
  border-radius: .35rem;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background: var(--sand);
  color: var(--brown);
}


/* ==========================================================================
   7. BUTTONS
   Primary (brown) and accent (clay) pill buttons.
   ========================================================================== */

/* Primary buttons */
.btn-contact,
.btn-main {
  background: var(--brown);
  color: var(--cream);
  font-weight: 700;
  border: 2px solid var(--brown);
  border-radius: 999px;
  padding: .5rem 1.4rem;
}

.btn-contact:hover,
.btn-main:hover {
  background: var(--clay);
  border-color: var(--brown);
  color: var(--brown);
}

/* Larger variant for main calls-to-action */
.btn-main {
  padding: .8rem 2rem;
  font-size: 1.05rem;
}

/* Accent button (used on dark backgrounds) */
.btn-clay {
  background: var(--clay);
  color: var(--brown);
  font-weight: 700;
  border: 2px solid var(--clay);
  border-radius: 999px;
  padding: .45rem 1.3rem;
}

.btn-clay:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--brown);
}


/* ==========================================================================
   8. HERO
   Large intro banner with a decorative clay circle.
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 5rem) 0;
  background: var(--sand);
  border-bottom: 3px solid var(--brown);
}

/* Decorative circle on the right edge */
.hero::after {
  content: "";
  position: absolute;
  right: -12rem;
  top: 50%;
  width: 26rem;
  height: 26rem;
  transform: translateY(-50%);
  background: var(--clay);
  border-radius: 50%;
  opacity: .55;
  pointer-events: none;
}

/* Keep content above the decorative circle */
.hero .container {
  position: relative;
  z-index: 1;
}

.hero .lead {
  font-size: 1.2rem;
  max-width: 50ch;
  margin-bottom: 1rem;
}


/* ==========================================================================
   9. PAGE TITLE & BREADCRUMBS
   Header band used on inner pages.
   ========================================================================== */
.page-title {
  background: var(--sand);
  border-bottom: 3px solid var(--brown);
  padding: 2.5rem 0;
}

.page-title h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
}

.breadcrumb-nav {
  font-size: .85rem;
  margin-bottom: .5rem;
}
.breadcrumb-nav a { text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: underline; }


/* ==========================================================================
   10. SECTIONS & BANDS
   Vertical rhythm and background color bands.
   ========================================================================== */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.band-sage { background: var(--sage); }
.band-soft { background: var(--sand); }


/* ==========================================================================
   11. PANELS
   Bordered content boxes.
   ========================================================================== */
.panel {
  background: var(--sand);
  border: 2px solid var(--brown);
  border-radius: 1rem;
  padding: 1.75rem;
}

.panel h3 { margin-top: 0; }


/* ==========================================================================
   12. CHECK LIST
   Unordered list with a custom clay checkmark.
   ========================================================================== */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .6rem;
  font-weight: 600;
}

/* Checkmark drawn with borders */
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 1.1rem;
  height: .6rem;
  border-left: 3px solid var(--clay);
  border-bottom: 3px solid var(--clay);
  transform: rotate(-45deg) translateY(-30%);
}


/* ==========================================================================
   13. TOPIC CARDS
   Responsive grid of cards: 1 column on mobile, 2 from 768px up.
   ========================================================================== */
.topic-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.topic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--sand);
  border: 2px solid var(--brown);
  border-radius: 1rem;
}

.topic h3 { margin: 0 0 .75rem; }

/* Paragraph grows so "read more" links align at the card bottom */
.topic p {
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.topic .link-more { justify-self: start; }

@media (min-width: 768px) {
  .topic-list { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   14. NUMBERED LIST
   Ordered list styled as cards with a numbered badge (01, 02, ...).
   Usage: <ol class="num-list">
   ========================================================================== */
ol.num-list {
  list-style: none;
  counter-reset: custom-counter;
  padding: 0;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* List item card */
ol.num-list li {
  counter-increment: custom-counter;
  position: relative;
  background: #faf8f4;
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 22px 24px 22px 82px; /* left padding makes room for the badge */
  color: var(--brown);
  line-height: 1.7;
  transition: all 0.25s ease;
}

/* Number badge */
ol.num-list li::before {
  content: counter(custom-counter, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: var(--brown);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

ol.num-list li strong {
  color: var(--brown);
  font-weight: 700;
}

/* Subtle hover lift */
ol.num-list li:hover {
  background: var(--sand);
  border-color: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(100, 69, 49, 0.08);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  ol.num-list { gap: 12px; }

  ol.num-list li {
    padding: 18px 16px 18px 66px;
    border-radius: 12px;
    font-size: 15px;
  }

  ol.num-list li::before {
    width: 36px;
    height: 36px;
    left: 16px;
    top: 18px;
    font-size: 13px;
  }
}


/* ==========================================================================
   15. SIDEBAR
   Sticky sidebar with boxed widgets (default, sand, and brown variants).
   ========================================================================== */
.sidebar {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Base box */
.side-box {
  background: var(--cream);
  border: 2px solid var(--brown);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
}
.side-box h3 { font-size: 1.05rem; margin: 0 0 .75rem; }

/* Sand variant */
.side-box-sand { background: var(--sand); }

/* Brown variant (dark, with call-to-action) */
.side-box-brown { background: var(--brown); border-color: var(--brown); }
.side-box-brown h3 { color: var(--cream); font-size: 1.2rem; }
.side-box-brown p { color: var(--sage); font-size: .95rem; margin-bottom: 1rem; }

/* Link list inside a side box */
.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li { border-bottom: 1px solid rgba(100, 69, 49, .25); }
.side-list li:last-child { border-bottom: 0; }

.side-list a {
  display: block;
  padding: .45rem 0;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}
.side-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--clay);
}


/* ==========================================================================
   16. FORMS
   Labels and text inputs.
   ========================================================================== */
.form-label {
  font-weight: 700;
  margin-bottom: .35rem;
}

.form-control {
  background-color: #fff;
  color: var(--brown);
  border: 2px solid var(--brown);
  border-radius: .65rem;
  padding: .65rem .9rem;
}

.form-control:focus {
  background-color: #fff;
  color: var(--brown);
  border-color: var(--brown);
  box-shadow: 0 0 0 .2rem var(--clay);
}


/* ==========================================================================
   17. MEDIA
   Framed images and responsive 16:9 video embeds.
   ========================================================================== */

/* Image with border and offset clay shadow */
.img-framed {
  border: 2px solid var(--brown);
  border-radius: 1rem;
  box-shadow: 10px 10px 0 var(--clay);
}

/* Responsive video wrapper (16:9) */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2rem 0 3rem 0;
  background: var(--brown);
  border: 2px solid var(--brown);
  border-radius: 1rem;
  box-shadow: 10px 10px 0 var(--clay);
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ==========================================================================
   18. PROMO BLOCK
   Poster-style graphic: angled title banner, two circular images, and text.
   ========================================================================== */
.promo {
  position: relative;
  aspect-ratio: 1 / 1.1;
  background: var(--cream);
  border: 2px solid var(--brown);
  border-radius: 1rem;
  overflow: hidden;
}

/* Angled title banner (clipped on the right edge) */
.promo-title {
  position: absolute;
  left: 0;
  top: 20%;
  width: 120%;
  padding: 1.1rem 1.5rem 1.1rem 1.25rem;
  background: var(--brown);
  color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.2rem);
  line-height: 1.05;
}
.promo-title span:last-child {
  display: block;
  color: var(--clay);
}

/* Circular image frames */
.promo-circle {
  position: absolute;
  border: 6px solid var(--cream);
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand);
}

.promo-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Large circle: top right */
.promo-circle-lg {
  width: 56%;
  aspect-ratio: 1;
  top: -9%;
  right: -14%;
}

/* Small circle: bottom right */
.promo-circle-sm {
  width: 40%;
  aspect-ratio: 1;
  bottom: 3%;
  right: -6%;
  outline: 2px solid var(--brown);
  outline-offset: -2px;
}

/* Body text: bottom left */
.promo-text {
  position: absolute;
  left: 6%;
  bottom: 10%;
  width: 56%;
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
  font-weight: 500;
}


/* ==========================================================================
   19. FOOTER
   Main footer, link styles, and copyright bar.
   ========================================================================== */
.site-footer {
  background: var(--brown);
  color: var(--sand);
  padding: 4rem 0;
}

.site-footer a {
  color: var(--cream);
  text-decoration-color: var(--clay);
  transition: var(--transition);
}
.site-footer a:hover { color: var(--clay); }

.footer-title {
  color: var(--cream);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.footer-links li { margin-bottom: .4rem; }

/* Bottom copyright strip */
.copyright {
  background: var(--brown);
  color: var(--sage);
  font-size: .9rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(206, 212, 176, .3);
}


/* ==========================================================================
   20. ACCESSIBILITY & MOTION
   Focus indicators and reduced-motion preferences.
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
