@font-face {
    font-family: 'Aleo';
    src: url('../fonts/aleo.ttf') format('truetype');
}

:root{
  --wrapper-max: 1140px;
  --sidebar-w: 270px;
  --gap: 24px;

  --light-yellow: #F2CF68;
  --light-brown: #9E6F23;
  --dark-brown: #765524;
  --yellow: #EEC216;
  --outer-bg: #f2f2f2;
  --inner-bg: #ffffff;
  --text: #111111;
  --muted: #666666;
}

/* Outer area (outside wrapper) */
body{
  margin:0;
  background: var(--outer-bg);
  color: var(--text);
  font-family: 'Aleo', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

/* Wrapper */
.site {
  max-width: var(--wrapper-max);
  margin: 0 auto;
  background: var(--inner-bg);
  min-height: 100vh;
}

.site a {
  text-decoration: none;
}

/* HERO / Header */
.site-header{
  position: relative;
}

.hero{
  position: relative;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

/* Mobile menu button on hero (right side) */
.menu-toggle{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 30;
  border: 0;
  padding: 10px 12px;
  background: rgba(0,0,0,.55);
  color: var(--inner-bg);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle:focus{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Layout */
.site-main{
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: var(--gap);
  padding: 24px;
}

/* Sidebar */
.site-sidebar{
  position: sticky;
  top: 16px;
  align-self: start;
}

.sidebar-inner{
/*
  border-right: 1px solid rgba(0,0,0,.08);
*/
  padding-right: 16px;
}

.sidebar-menu{
  margin: 0 0 16px 0;
  padding: 0;
  list-style: none;
}

.sidebar-menu a{
  display: block;
  padding: 8px 6px;
  text-decoration: none;
  color: var(--text);
}

/* Collapsible submenu */
.sidebar-menu .sub-menu{
  display: none;
  padding: 0 0 0 20px;
  list-style: none;
}

/* Open state */
.sidebar-menu .menu-item.is-open > .sub-menu{
  display: block;
}

/* Parent link */
.sidebar-menu .menu-item-has-children > a{
  position: relative;
  padding-right: 36px; /* space for chevron */
  cursor: pointer;
}

/* Chevron icon (CSS-based, nicer & bigger) */
.sidebar-menu .menu-item-has-children > a::after{
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  transition: transform .25s ease;
  opacity: .7;
}

/* Open = chevron up */
.sidebar-menu .menu-item.is-open > a::after{
  transform: translateY(-40%) rotate(-135deg);
}

/* Widgets under the menu */
.sidebar-block-area .widget{
  margin-top: 14px;
}

.sidebar-block-area .widget-title{
  margin: 0 0 8px 0;
  font-size: 14px;
}

/* Active menu items */
.sidebar-menu .current-menu-item > a,
.sidebar-menu .current-menu-ancestor > a,
.sidebar-menu .menu-item.is-open > a{
  color: var(--light-brown);
}

/* Active indicator (optional subtle background) */
.sidebar-menu .current-menu-item > a{
  border-radius: 4px;
}

/* Content */
.content-area h1{
  margin-top: 0;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer-inner > :first-child{ margin-top: 0; }
.footer-inner > :last-child{ margin-bottom: 0; }

.footer-widget{ margin: 0; }
.footer-widget-title{
  margin: 0 0 8px 0;
  font-size: 14px;
}

/* Off-canvas (mobile) */
.offcanvas{
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: min(320px, 86vw);
  background: #fff;
  transform: translateX(-105%);
  transition: transform .25s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: auto;
}

.offcanvas.is-open{
  transform: translateX(0);
}

.offcanvas-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 999;
}

.offcanvas-backdrop.is-open{
  opacity: 1;
  pointer-events: auto;
}

.offcanvas-header{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.offcanvas-close{
  border:0;
  background: rgba(0,0,0,.06);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.offcanvas-body{
  padding: 14px;
}

.page-title {
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px){
  .site-main{
    grid-template-columns: 1fr;
  }

  /* Mobile: hide desktop sidebar; use off-canvas menu */
  .site-sidebar{
    display: none;
  }

  .hero{
    min-height: 280px;
  }
}

@media (min-width: 901px){
  /* Desktop: hide hero menu button */
  .menu-toggle{
    display: none;
  }
}
