:root {
  --c-light: #ffffff;
  --c-fog: #f4f6f4;
  --c-sage: #455a45;
  --c-sage-hover: #2e3d2e;
  --c-dark: #0a0e0a;
  --c-border: #d0d6d0;
  --r-soft: 8px;
  --space-10: 10px;
  --space-20: 20px;
  --space-30: 30px;
  --space-40: 40px;
  --max-width: 1410px;
}

/* ensure full-height layout so footer can be pinned to viewport bottom */
html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--c-dark);
  margin: 0;
  background-color: var(--c-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

main {
  flex: 1;
}

/* Base typography */
h1,
h2,
h3 {
  font-weight: 600;
  margin: 0 0 var(--space-20) 0;
}

p {
  margin: 0 0 var(--space-20) 0;
}

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

/* Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-20);
}

/* Req 10 & 11 base fixes */
img[loading="lazy"] {
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Header styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--c-border);
  height: 80px;
  display: flex;
  align-items: center;
  padding: 12px 10px;
}

.light-bg {
  background-color: var(--c-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-20);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-dark);
}

.logo-link svg {
  height: 30px;
  width: auto;
}

.brand-name {
  letter-spacing: -0.5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: var(--c-dark);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.desktop-nav .nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-30);
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  font-weight: 500;
  color: var(--c-dark);
}

.desktop-nav a:hover,
.footer-links a:hover,
.legal-links a:hover,
.contact-link:hover {
  color: var(--c-sage);
}

/* Active navigation link — use this class directly in HTML (no scripts, no @apply) */
.active_link {
  color: var(--c-sage);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Components Bordered */
.cta-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-sage);
  color: var(--c-light);
  padding: var(--space-10) var(--space-20);
  border-radius: var(--r-soft);
  font-weight: 600;
  border: 1px solid var(--c-sage);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cta-button:hover,
.submit-button:hover {
  background-color: var(--c-sage-hover);
  border-color: var(--c-sage-hover);
  color: var(--c-light);
}

/* Generic button utilities (use as `class="btn btn-primary"`) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  padding: var(--space-10) var(--space-20);
  border-radius: var(--r-soft);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(69, 90, 69, 0.08);
}

.btn[disabled],
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Primary variant */
.btn-primary {
  background-color: var(--c-sage);
  color: var(--c-light);
  border-color: var(--c-sage);
}

.btn-primary:hover {
  background-color: var(--c-sage-hover);
  border-color: var(--c-sage-hover);
  color: var(--c-light);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Mobile Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 10, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--c-light);
  z-index: 1000;
  padding: var(--space-20);
  border-right: 1px solid var(--c-border);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.mobile-drawer.active {
  left: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-dark);
  padding: 5px;
}

.drawer-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.mobile-nav-links a {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: var(--space-40) 0;
  border-top: 1px solid var(--c-border);
}

.fog-bg {
  background-color: var(--c-fog);
}

.footer-grid {
  gap: var(--space-40);
  padding-bottom: var(--space-40);
  border-bottom: 1px solid var(--c-border);
}

.footer-brand {
  font-size: 1.5rem;
  margin-bottom: var(--space-10);
}

.footer-tagline {
  font-weight: 600;
  color: var(--c-sage);
}

.footer-heading {
  font-size: 1.125rem;
  margin-bottom: var(--space-20);
}

.footer-links,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.contact-list a {
  color: var(--c-sage);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.form-input {
  padding: var(--space-10);
  border: 1px solid var(--c-border);
  border-radius: var(--r-soft);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--c-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--c-sage);
}

.footer-bottom {
  padding-top: var(--space-30);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  font-size: 0.875rem;
}

.legal-links {
  list-style: none;
  display: flex;
  gap: var(--space-20);
  padding: 0;
  margin: 0;
}

/* Grid layout classes required by user */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Responsive Header */
@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* footer extras */
.footer__extras {
  margin-top: 16px;
}

.footer__extrasInner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}

.footer-social__icon {
  display: block;
}

.footer__poemWrap {
  max-width: 520px;
}

.footer-poem {
  opacity: 0.9;
  font-size: 0.95em;
  line-height: 1.35;
}

/* --- injected by logo step --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex: 0 0 auto
}

.brand-logo * {
  vector-effect: non-scaling-stroke
}

/* --- /injected by logo step --- */
.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (max-width: 767px) {
  .sur {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {

  /* Layout utilities for large screens (lg) */
  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:w-1\/2 {
    width: 50%;
  }
}
