:root {
  --bg-color: #FDFAF6;
  --bg-subtle: #F5F0EA;
  --text-primary: #1A1A1A;
  --text-secondary: #3D3D3D;
  --text-tertiary: #6B6B6B;
  --accent-color: #2A7B6F;
  --accent-hover: #1F5F56;
  --accent-warm: #C4663A;
  --border-color: #E8E2DA;
  --spacing-unit: 2rem;
}

* {
  box-sizing: border-box;
}

/* Accessibility: keyboard focus ring */
*:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── Container System ── */
.main-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem; /* Standardized GAP between major sections */
}

/* Modifiers for different content widths */
.main-container--narrow { max-width: 800px; }
.main-container--medium { max-width: 1100px; }

@media (max-width: 768px) {
  .main-container {
    padding: 80px 1.5rem 3rem;
    gap: 3rem;
  }
}

/* Material Symbols Outlined - Icon Fix */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════ */
/* Header & Nav                                       */
/* ═══════════════════════════════════════════════════ */
.site-header {
  width: 100%;
  padding: 1rem clamp(1rem, 5vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.site-header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

/* Offset for pages with fixed header */
.header-offset {
  margin-top: 90px; /* Safe header height + breathing room */
}

@media (max-width: 768px) {
  .header-offset {
    margin-top: 110px; /* Mobile header is taller */
  }
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: height 0.2s ease;
}

/* ── Menu Toggle ── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 1100;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover {
  background-color: var(--bg-subtle);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 20;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600; /* Slightly lighter than bold for clean look */
  color: var(--text-tertiary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

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

.nav-link--btn {
  background-color: var(--accent-color);
  color: white !important;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(42, 123, 111, 0.15);
}

/* ── Mobile Header Redesign ── */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
    flex-direction: row; /* Ensure horizontal layout */
    justify-content: space-between;
    align-items: center;
  }

  .site-logo {
    height: 28px;
  }

  .site-title span {
    font-size: 0.95rem; /* Scale down brand text */
    white-space: nowrap;
  }

  .menu-toggle {
    display: flex; /* Show hamburger on mobile */
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent squashing */
  }

  /* Navigation Overlay */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 100px 2rem;
    gap: 1.5rem;
    align-items: flex-start;
    transform: translateX(101%); /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    border-left: 1px solid var(--border-color);
    z-index: 1050;
  }

  .site-nav.is-active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link--btn {
    margin-top: 1rem;
    width: auto;
    text-align: center;
    padding: 0.75rem 2rem;
    border-bottom: none;
  }
}

.nav-link--btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 123, 111, 0.2);
}

/* ═══════════════════════════════════════════════════ */
/* Breadcrumbs                                        */
/* ═══════════════════════════════════════════════════ */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.breadcrumb-link {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--accent-color);
}

.breadcrumb-separator {
  color: var(--border-color);
  font-size: 14px;
}

.breadcrumb-current {
  color: var(--accent-color);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════ */
/* Hero Section                                       */
/* ═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════ */
/* Homepage Composition Rebuild                      */
/* ═══════════════════════════════════════════════════ */

.home-composition {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.home-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 2.5rem);
}

@media (min-width: 1024px) {
  .home-composition {
    min-height: calc(100vh - 128px); /* Full visible height minus header/footer */
    display: flex;
    align-items: center;
  }

  .home-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Slightly more balanced proportions */
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center; /* Vertical center both columns */
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Header Adjustments for Home */
.home-page .site-header {
  height: 64px;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border-color);
}

.home-page .header-offset {
  margin-top: 64px;
}

/* Left Block: Hero + Tagline */
.home-hero-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Grouped tightly */
}

.hero-image-container {
  width: 100%;
  max-width: 600px; /* Scale down image */
  margin: 0 auto;
  background-color: var(--bg-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  line-height: 0;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-tagline h1 {
  font-size: clamp(1.3rem, 2.2vw, 1.95rem); /* Slightly smaller tagline */
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
}

.hero-tagline h1 span {
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Right Block: Nav stack */
.home-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 1023px) {
  .home-container {
    padding-top: 2rem;
    gap: 3rem;
  }
}

.nav-tile {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.4rem; /* More compact tiles */
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.nav-tile:hover {
  background-color: var(--bg-subtle);
  border-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(42, 123, 111, 0.06);
  transform: translateY(-1px);
}

.tile-icon {
  font-size: 1.8rem; /* Smaller icons */
  color: var(--accent-color);
  flex-shrink: 0;
}

.tile-content {
  flex: 1;
}

.tile-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.2rem 0;
  color: var(--text-primary);
}

.tile-content p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.4;
}

.tile-arrow {
  font-size: 1.25rem;
  color: var(--border-color);
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-tile:hover .tile-arrow {
  color: var(--accent-color);
  transform: translateX(4px);
}


.entry-block:last-child {
  border-right: 1px solid var(--border-color);
}

.entry-block:hover {
  background-color: var(--bg-subtle);
  border-color: var(--accent-color);
  box-shadow: 0 2px 12px rgba(42, 123, 111, 0.08);
}



/* ── Layout & Spacing Utilities                          */
/* ═══════════════════════════════════════════════════ */
.content-section {
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .content-section {
    padding: 3rem 0;
    gap: 2rem;
  }
}

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.5rem 0;
}

/* ═══════════════════════════════════════════════════ */
/* Global Site Footer                                 */
/* ═══════════════════════════════════════════════════ */
.site-footer {
  width: 100%;
  padding: 1rem 0;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0;
}

.footer-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background-color: var(--accent-color);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Footer Navigation Buttons (Standardized) ── */
.page-actions-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.action-btn--primary {
  background-color: var(--accent-color);
  color: #fff;
  border: 1px solid var(--accent-color);
}

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

.action-btn--secondary {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.action-btn--secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.action-btn .material-symbols-outlined {
  font-size: 18px;
}


/* ═══════════════════════════════════════════════════ */
/* RESPONSIVE — must come AFTER all base styles       */
/* ═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════ */
/* RESPONSIVE                                         */
/* ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-header {
    flex-direction: row; /* Horizontal layout on mobile */
    justify-content: space-between;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0;
  }

  .home-page .header-offset {
    margin-top: 80px; /* Refined offset for single-line header */
  }

  .home-container {
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    gap: 3.5rem; /* Increased gap for better breathing room */
  }

  .hero-tagline h1 {
    font-size: 1.75rem;
    text-align: center;
  }

  .nav-tile {
    padding: 1rem;
  }

  .actions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .action-btn {
    width: 100%;
  }
}