/* SOURCE-OF-TRUTH */
:root{
  --bg:#0c1412;        /* dark spruce */
  --panel:#101c18;     /* slightly lighter spruce panel */
  --text:#f3f5f4;
  --muted:#b9c6c1;
  --line:rgba(255,255,255,.14);
  --accent:#ffffff;
  --shadow: 0 16px 50px rgba(0,0,0,.35);
  --radius: 20px;
  --max: 1120px;
  --narrow: 720px;
  --speed: 160ms;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(70,120,95,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(40,90,70,.14), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{color:inherit}
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size:.95em
}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.narrow{max-width:var(--narrow)}

/* ---------------- Topbar / Nav ---------------- */
/* Header aliases (template uses .siteheader...) */
.siteheader{
  position:sticky; top:0; z-index:50;
  background: rgba(12,20,18,.72);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.siteheader__inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height:64px;
}

/* Brand text alias */
.brand__name{font-weight:700; letter-spacing:.2px}

.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(12,20,18,.72);          /* spruce-tinted */
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height:64px;
}

.brand{display:flex; align-items:center; gap:10px; text-decoration:none}

.brand__mark{
  width:40px;
  height:40px;
  border-radius:10px;

  display:grid;
  place-items:center;

  padding:0;
  line-height:1;
  font-weight:800;
  font-size:16px;
  letter-spacing:.2px;

  color:#0c1412;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.20));
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

.brand__text{font-weight:700; letter-spacing:.2px}
.brand__lite{font-weight:400; color:var(--muted)}

.nav{display:flex; align-items:center; gap:18px}
.nav__link{
  text-decoration:none;
  color:var(--muted);
  padding:10px 12px;
  border-radius:12px;
  transition: background var(--speed), color var(--speed);
}
.nav__link:hover{background:rgba(255,255,255,.07); color:var(--text)}
.nav__link.is-active{background:rgba(255,255,255,.10); color:var(--text)}

/* Hamburger button */
.navtoggle{
  display:none;
  background:transparent;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;

  /* important for the 3-line layout */
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;

  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.navtoggle__line{
  display:block;
  width:22px;
  height:2px;
  background: currentColor;
  border-radius:2px;
  margin:0;            /* gap handles spacing */
  opacity:.9;
}

.navtoggle:active{ transform: translateY(1px); }

.navtoggle[aria-expanded="true"]{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
}

@media (max-width: 880px){
  .navtoggle{display:inline-flex}
}

@media (max-width: 880px){
  .nav{
    right: 12px;
    top: 60px;
    min-width: min(240px, calc(100vw - 24px));
  }
}

/* ---------------- Hero ---------------- */

.hero{padding:54px 0 32px}
.hero__inner{display:block}
.hero__copy{max-width: var(--max)}

.hero__headline{
  font-size: clamp(30px, 4vw, 52px);
  line-height:1.06;
  margin:0 0 12px;
}
.hero__sub{
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.6;
  margin:0 0 18px
}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
  transition: transform var(--speed), background var(--speed), border-color var(--speed);
}
.btn:hover{
  transform: translateY(-1px);
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.30)
}
.btn--ghost{background:transparent}

.hero__visual{
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero__img{width:100%; height:auto; display:block}

/* ---------------- Sections ---------------- */

.sectiontitle{margin:0 0 8px; font-size:1.3rem}
.sectionlead{margin:0 0 18px; color:var(--muted); line-height:1.6}
.gallery{padding: 14px 0 50px}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.tile{
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.tile img{width:100%; height:auto; display:block}

.pagehead{padding: 36px 0 10px}
.pagehead h1{margin:0 0 8px; font-size:2.2rem}

.content{padding: 12px 0 50px}

.bullets{
  margin:0; padding:0 0 0 18px;
  color:var(--text);
  line-height:1.75;
}
.bullets li{margin: 10px 0}

.callout{
  margin-top: 22px;
  padding:18px;
  border-radius: 22px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
}
.callout__title{font-weight:700; margin-bottom:6px}
.callout__body{color:var(--muted); margin-bottom:12px}

/* ---------------- Forms ---------------- */

.form{
  padding:18px;
  border-radius: 22px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.field{margin: 0 0 14px}
label{display:block; font-size:.92rem; margin: 0 0 7px; color: var(--muted)}
input, textarea{
  width:100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.25);
  color: var(--text);
  padding: 12px 12px;
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(255,255,255,.35)}
.err{margin-top:6px; color:#ffb4b4; font-size:.92rem}
.formhint{margin:12px 0 0}

/* ---------------- Footer ---------------- */

.footer{
  border-top:1px solid var(--line);
  background: rgba(12,20,18,.55);          /* spruce-tinted */
  padding: 22px 0 30px;
}
.footer__inner{
  display:flex;
  gap:22px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
}
.footer__title{font-weight:700; margin-bottom:8px}
.footer__item{color:var(--text); margin: 6px 0}
.footer__col--right{margin-left:auto; text-align:right}
.muted{color:var(--muted)}

/* ---------------- Flash messages ---------------- */

.flashwrap{padding-top:14px}
.flash{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 12px 14px;
  margin: 10px 0;
}
.flash--success{border-color: rgba(180,255,180,.25)}
.flash--error{border-color: rgba(255,180,180,.25)}

/* ---------------- Accessibility ---------------- */

.skiplink{
  position:absolute; left:-9999px; top:0;
  background:#000; color:#fff;
  padding:8px 12px; z-index:1000
}
.skiplink:focus{left:12px; top:12px}

/* ---------------- Responsive ---------------- */

@media (max-width: 880px){
  .grid{grid-template-columns: repeat(2, 1fr)}
  .footer__col--right{margin-left:0; text-align:left}

  .navtoggle{display:inline-flex}
  .nav{
    position:absolute;
    right:18px; top:64px;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:10px;
    min-width: 180px;
    border-radius: 18px;
    border:1px solid var(--line);
    background: rgba(12,20,18,.92);        /* spruce mobile menu */
    box-shadow: var(--shadow);
    display:none;
  }
  .nav.is-open,
  .nav.nav--open{display:flex}
}

/* ---------------- Carousel (3-up) ---------------- */

.carousel{
  --gap: 16px;
  position: relative;
}

.carousel__viewport{
  overflow: hidden;
  width: 100%;
  padding: 0 54px; /* room for overlay arrows */
}

.carousel__track{
  display: flex;
  gap: var(--gap);
  list-style: none;
  padding: 0;
  margin: 0;
  transition: transform 250ms ease;
  will-change: transform;
}

.carousel__slide{
  flex: 0 0 calc((100% - (2 * var(--gap))) / 3);
}

.carousel__slide img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.carousel__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.carousel__btn--prev{ left: 8px; }
.carousel__btn--next{ right: 8px; }

.carousel__btn:disabled{ opacity: 0.35; cursor: not-allowed; }

@media (max-width: 900px){
  .carousel__slide{ flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 600px){
  .carousel__viewport{ padding: 0 48px; }
  .carousel__slide{ flex-basis: 100%; }
  .carousel__slide img{ height: 260px; }
}

/* Anti-spam honeypot */
.hp-field{
  position:absolute;
  left:-10000px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Defensive divider patch */
[data-controller="SectionDivider"] svg path,
.section-border svg path,
.section-divider svg path {
  stroke: none !important;
  stroke-dasharray: none !important;
}
[data-controller="SectionDivider"],
.section-border,
.section-divider {
  outline: none !important;
  border: none !important;
}


/* ---------------- Lightbox ---------------- */

.lb__thumb{
  display:block;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  width:100%;
}

.lightbox[hidden]{ display:none; }

.lightbox{
  position:fixed;
  inset:0;
  z-index:2000;
}

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.75);
}

.lightbox__panel{
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.lightbox__img{
  max-width:min(1200px, 96vw);
  max-height:90vh;
  width:auto;
  height:auto;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.15);
  box-shadow: 0 18px 60px rgba(0,0,0,.6);
  background:rgba(0,0,0,.2);
}

.lightbox__close{
  position:absolute;
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.45);
  color:#fff;
  font-size:22px;
  cursor:pointer;
}

