:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --background: #fbf9f5;
  --foreground: #382c26;
  --ink: #382c26;
  --sand: #f2ece3;
  --card: #ffffff;
  --card-foreground: #382c26;
  
  --primary: #9b3d1f;
  --primary-hover: #823218;
  --primary-foreground: #faf8f5;
  
  --secondary: #eee7dc;
  --secondary-foreground: #47372e;
  --secondary-hover: #e3d9cc;
  
  --muted: #f2ece3;
  --muted-foreground: #766960;
  
  --accent: #257873;
  --accent-foreground: #faf8f5;
  
  --border: #e2d7cb;
  --border-light: rgba(226, 215, 203, 0.6);
  --input: #ded3c5;
  --ring: #9b3d1f;

  --gradient-warm: linear-gradient(140deg, #faf4ea 0%, #f4eae0 100%);
  --shadow-soft: 0 18px 40px -24px rgba(70, 45, 30, 0.28);
  --shadow-card: 0 4px 20px -2px rgba(70, 45, 30, 0.06);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  --container-max: 72rem; /* 1152px */
  --container-narrow: 56rem; /* 896px */
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  color: var(--foreground);
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

p {
  line-height: 1.7;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(251, 249, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-badge {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Nav Menu */
.header-nav-wrap {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .header-nav-wrap {
    display: flex;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
  transition: all 0.2s ease;
}

@media (min-width: 1200px) {
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

.nav-link:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.nav-link.active,
.current-menu-item > .nav-link,
.current_page_item > .nav-link {
  background-color: var(--secondary);
  color: var(--foreground);
  font-weight: 700;
}

.header-cta-btn {
  white-space: nowrap;
  font-size: 0.8125rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(155, 61, 31, 0.22);
  flex-shrink: 0;
}

.header-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(155, 61, 31, 0.32);
}

.mobile-menu-toggle {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background-color: var(--muted);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding: 0.75rem 1rem 1.25rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s ease;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--primary);
}

.mobile-nav-cta {
  margin-top: 1rem;
  padding-top: 0.5rem;
}

/* Panels & Backgrounds */
.warm-panel {
  background-image: var(--gradient-warm);
}

.soft-shadow {
  box-shadow: var(--shadow-soft);
}

.card-shadow {
  box-shadow: var(--shadow-card);
}

/* Sections */
.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-muted {
  background-color: rgba(242, 236, 227, 0.5);
}

.section-border-bottom {
  border-bottom: 1px solid var(--border);
}

/* Page Hero */
.page-hero {
  border-bottom: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.page-hero-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 3rem;
  }
}

.page-hero-intro {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .page-hero-intro {
    font-size: 1.125rem;
  }
}

/* Typography elements */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}

.hero-title {
  font-size: 2rem;
  line-height: 1.15;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-desc {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 36rem;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.125rem;
  }
}

.section-heading {
  font-size: 1.5rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 1.875rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-align: center;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-xl);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-foreground);
}

.footer-appeal-btn {
  box-shadow: 0 4px 14px rgba(155, 61, 31, 0.2);
}

.footer-appeal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(155, 61, 31, 0.3);
}

.btn-outline {
  background-color: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--secondary);
  border-color: var(--border);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Grids */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.grid-gallery {
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .grid-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .card-lg {
    padding: 2.5rem 3rem;
  }
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge-active {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.status-badge-inactive {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* Bullets List */
.bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bullets-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .bullets-item {
    font-size: 1rem;
  }
}

.bullet-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  margin-top: 0.625rem;
  flex-shrink: 0;
}

/* Forms */
.form-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background-color: var(--card);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(155, 61, 31, 0.2);
}

.form-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.form-checkbox {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  cursor: pointer;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-status.error {
  display: block;
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* Definition lists / Key-value */
.info-dl {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.info-dl dt {
  font-weight: 600;
  color: var(--foreground);
}

.info-dl dd {
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background-color: rgba(242, 236, 227, 0.6);
}

.footer-top {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

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

.footer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Callout Banner */
.cta-banner {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 3.5rem 2.5rem;
  }
}

/* Generic Post / Article Page content */
.page-content {
  font-size: 1rem;
  line-height: 1.8;
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content p {
  margin-bottom: 1.25rem;
  color: var(--muted-foreground);
}

.page-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

/* Responsive utilities */
.order-first-mobile {
  order: 1;
}

.order-second-mobile {
  order: 2;
}

@media (min-width: 1024px) {
  .lg-order-1 {
    order: 1 !important;
  }
  .lg-order-2 {
    order: 2 !important;
  }
}

.rounded-img {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  object-fit: cover;
  width: 100%;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

/* ==========================================================================
   Modal Popup Styles
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 25, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 60px -15px rgba(45, 25, 15, 0.4);
  padding: 2.25rem 2rem;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.modal-overlay.is-open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--sand);
  color: var(--foreground);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--border);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 1.5rem;
  padding-right: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-display);
}

.modal-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Thank You Page Styles
   ========================================================================== */
.thank-you-section {
  padding: 4rem 1rem 5rem;
  min-height: calc(80vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .thank-you-card {
    padding: 4rem 3.5rem;
  }
}

.success-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.success-checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--primary);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--primary);
  animation: fillCircle 0.4s ease-in-out 0.4s forwards, scaleCheck 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--primary);
  fill: none;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--primary);
  animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCircle {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes strokeCheck {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scaleCheck {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.08, 1.08, 1);
  }
}

.thank-you-title {
  font-size: 1.875rem;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .thank-you-title {
    font-size: 2.25rem;
  }
}

.thank-you-desc {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.thank-you-links-box {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: left;
}

.thank-you-links-heading {
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.thank-you-grid {
  align-items: stretch;
}

.thank-you-tile {
  background-color: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  text-decoration: none;
}

.thank-you-tile:hover {
  background-color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.tile-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tile-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
  font-family: var(--font-display);
}

.tile-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.thank-you-footer-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}
