
:root{
  --green:#0B3B34;
  --green-dark:#062621;
  --orange:#D56A2A;
  --gray:#6B7280;
  --offwhite:#F7F7F5;
  --card:#ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.18);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#0b1b18;

  /* Real brick wall (user provided) + readability overlay */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.10), rgba(0,0,0,0.26)),
    url("/assets/img/brick.jpg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 820px auto;
  background-position: center, top left;
  background-attachment: fixed, fixed;
}

@media (max-width: 768px){
  body{
    background-attachment: scroll, scroll;
    background-size: cover, 720px auto;
  }
}

a{ color:inherit; text-decoration:none; }
.container{ max-width:1180px; margin:0 auto; padding:16px; }

.app-shell{
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
}

/* Header */
.header{
  position: sticky; top: 0; z-index: 50;
  background: var(--green);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 16px;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{ height:44px; width:auto; }

.nav-desktop{ display:none; gap:18px; align-items:center; }
.nav-desktop a{ font-size:14px; opacity:.92; }
.nav-desktop a:hover{ opacity:1; }

.header-actions{ display:flex; gap:10px; align-items:center; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight:700;
  font-size:14px;
  border:1px solid rgba(0,0,0,.08);
}
.btn-orange{ background: var(--orange); color: #fff; border-color: rgba(0,0,0,.08); }
.btn-orange:hover{ filter: brightness(.96); }
.btn-ghost{ background: rgba(255,255,255,.10); color:#fff; border-color: rgba(255,255,255,.18); }
.icon-btn{
  width:42px; height:42px; border-radius: 12px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
  font-size:18px;
}

/* Mobile menu */
.mobile-panel{
  overflow:hidden;
  border-top: 1px solid rgba(255,255,255,.10);
}
.mobile-panel-inner{ padding: 12px 16px 16px; }
.mobile-item{
  display:block;
  padding: 12px 12px;
  border-radius: 12px;
  color:#fff;
  font-size:14px;
}
.mobile-item:hover{ background: rgba(255,255,255,.10); }

.accordion{
  border:1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  overflow:hidden;
}
.accordion button{
  width:100%;
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 12px;
  background: transparent;
  border:0;
  color:#fff;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}
.accordion .panel{
  max-height:0;
  transition: max-height 280ms ease, opacity 200ms ease;
  opacity: 0;
}
.accordion.open .panel{
  max-height: 320px;
  opacity: 1;
}
.accordion .panel a{
  display:block;
  padding: 10px 16px;
  font-size:14px;
  color:#fff;
  opacity:.92;
}
.accordion .panel a:hover{ background: rgba(255,255,255,.10); opacity:1; }

/* Layout blocks */
.hero{
  position:relative;
  min-height: 340px;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: var(--green-dark);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.18), transparent 55%);
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.22), transparent 70%);
}
.hero-content{
  position:relative; z-index:2;
  padding: 26px;
  display:flex; flex-direction:column; justify-content:center;
  height:100%;
  color:#fff;
}
.hero h1{ margin:0; font-size: 38px; line-height:1.05; letter-spacing:.4px; }
.hero h1 span{ color: var(--orange); }
.hero p{ margin: 12px 0 0; max-width: 560px; opacity:.92; }
.hero-actions{ margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; }

.quick-links{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  background: rgba(255,255,255,.92);
  padding: 10px;
}
.card{
  background: var(--offwhite);
  border:1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 14px;
}
.card:hover{ background:#fff; }

.section-strip{
  margin-top: 16px;
  border-radius: var(--radius);
  background: var(--green);
  color:#fff;
  box-shadow: var(--shadow);
  padding: 18px 18px;
}
.section-strip h2{ margin:0; font-size: 24px; }
.section-strip p{ margin: 8px 0 0; opacity:.92; }
.section-strip .btn{ margin-top: 12px; }

.grid-2{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
.panel{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.panel h3{ margin:0; color: var(--green); font-size: 18px; }
.panel-head{ display:flex; justify-content:space-between; align-items:end; gap:8px; }
.panel-head a{ color: var(--orange); font-weight:800; font-size: 13px; }

.news-item{ display:flex; gap:12px; margin-top: 14px; }
.thumb{ width:96px; height:64px; border-radius: 12px; background: rgba(0,0,0,.10); flex: 0 0 auto; overflow:hidden; }
.thumb img{ width:100%; height:100%; object-fit:cover; }
.meta{ font-size:12px; color: var(--gray); margin-top: 2px; }
.desc{ margin-top: 6px; font-size: 13px; color: rgba(0,0,0,.72); }

.events{
  margin-top: 14px;
  border:1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  overflow:hidden;
}
.event-row{
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 12px;
  background: rgba(255,255,255,.80);
  border-top: 1px solid rgba(0,0,0,.08);
}
.event-row:first-child{ border-top:0; }
.event-date{ font-weight:900; color: var(--orange); font-size: 13px; }
.event-title{ color: var(--green); font-size: 14px; font-weight:700; }

.tiles{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
.tile{
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border:1px solid rgba(0,0,0,.08);
}
.tile.orange{ background: var(--orange); color:#fff; }
.tile.green{ background: var(--green); color:#fff; }
.tile.white{ background: rgba(255,255,255,.92); color: var(--green); }

.footer{
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(10, 30, 26, .88);
  color: rgba(255,255,255,.92);
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer small{ opacity:.9; }

/* Install prompt */
.install-prompt{
  position: fixed;
  left: 0; right: 0; bottom: 18px;
  z-index: 80;
  display:none;
  padding: 0 14px;
}
.install-card{
  max-width: 520px;
  margin: 0 auto;
  border-radius: 18px;
  background: rgba(15, 15, 15, .88);
  color:#fff;
  padding: 14px;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.12);
}
.install-row{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.install-title{ font-weight:900; font-size: 14px; }
.install-text{ opacity:.92; margin-top: 6px; font-size: 13px; }
.install-actions{ margin-top: 12px; display:flex; gap:10px; }
.install-actions .btn{ flex:1; border:0; }
.btn-light{ background: rgba(255,255,255,.92); color:#0b1b18; }
.btn-dark{ background: rgba(255,255,255,.10); color:#fff; border: 1px solid rgba(255,255,255,.14); }
.close-x{ cursor:pointer; opacity:.9; font-size:16px; padding: 4px 8px; }

/* Chat widget */
.chat-fab{
  position: fixed;
  right: 16px;
  bottom: 90px;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: rgba(11,59,52,.92);
  color:#fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  z-index: 90;
}
.chat-window{
  position: fixed;
  right: 16px;
  bottom: 160px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 420px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
  z-index: 90;
}
.chat-head{
  background: var(--green);
  color:#fff;
  padding: 10px 12px;
  display:flex; justify-content:space-between; align-items:center;
  gap:10px;
}
.chat-head .title{ font-weight:900; font-size: 14px; }
.chat-body{
  padding: 10px;
  height: 320px;
  overflow:auto;
  background: linear-gradient(to bottom, rgba(255,255,255,.90), rgba(255,255,255,.98));
}
.msg{ margin: 10px 0; display:flex; }
.msg.user{ justify-content:flex-end; }
.bubble{
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.25;
  border: 1px solid rgba(0,0,0,.08);
}
.msg.user .bubble{
  background: rgba(213,106,42,.16);
}
.msg.bot .bubble{
  background: rgba(11,59,52,.08);
}
.chat-input{
  display:flex; gap:8px;
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.98);
}
.chat-input input{
  flex:1;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  padding: 10px 12px;
  font-size: 14px;
}
.chat-input button{
  border-radius: 14px;
  background: var(--orange);
  color:#fff;
  border:0;
  padding: 10px 12px;
  font-weight:900;
  cursor:pointer;
}

@media (min-width: 900px){
  .nav-desktop{ display:flex; }
  .icon-btn{ display:none; }
  .quick-links{ grid-template-columns: repeat(3, 1fr); }
  .grid-2{ grid-template-columns: 1fr 1fr; }
  .tiles{ grid-template-columns: repeat(3, 1fr); }
}



/* App-like feel (iOS/Android) */
html, body { height: 100%; }
body { overscroll-behavior: none; }

@supports (padding: max(0px)) {
  .app-shell { padding-bottom: env(safe-area-inset-bottom); }
}



/* =======================
   APP MODE CHROME (iOS/Android installed)
   - Top bar + Bottom tabs
   - Only on mobile OR display-mode: standalone
   ======================= */

:root{
  --app-topbar-h: 58px;
  --app-bottombar-h: 70px;
}

.app-topbar{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 999;
  background: rgba(11,59,52,.98);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-top: env(safe-area-inset-top);
}

.app-topbar-inner{
  height: var(--app-topbar-h);
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 0 12px;
}

.app-topbar-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 44px;
}

.app-topbar-logo{
  height: 34px;
  width: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  border: 2px solid rgba(255,255,255,.30);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  object-fit: cover;
}

.app-topbar-title{
  flex: 1;
  text-align:center;
  color:#fff;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar-right{
  display:flex;
  justify-content:flex-end;
  min-width: 96px;
}

.app-topbar-pay{
  background: var(--orange);
  color:#fff;
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
}

.app-bottombar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(11,59,52,.98);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-bottom: env(safe-area-inset-bottom);
}

.app-bottombar-inner{
  height: var(--app-bottombar-h);
  display:flex;
  align-items:center;
  justify-content:space-around;
  padding: 8px 10px 10px;
  gap: 6px;
}

.app-tab{
  flex:1;
  min-width: 0;
  text-align:center;
  color: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1px solid transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 6px;
}
.app-tab svg{ width: 22px; height: 22px; opacity: .95; }
.app-tab.active{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
}

/* Content spacing so it doesn't hide behind bars */
.app-content{
  padding-top: calc(var(--app-topbar-h) + 12px + env(safe-area-inset-top));
  padding-bottom: calc(var(--app-bottombar-h) + 24px + env(safe-area-inset-bottom));
}

/* Default: hide app chrome on desktop browser */
@media (min-width: 900px){
  .app-topbar, .app-bottombar{ display:none; }
  .app-content{ padding-top: 0; padding-bottom: 20px; }
}

/* Mobile browser: show app chrome, hide desktop header row */
@media (max-width: 899px){
  .header-inner{ display:none !important; }
  .nav-desktop{ display:none !important; }
  .app-topbar, .app-bottombar{ display:block; }
}

/* Installed app (standalone): always show chrome, even on larger widths */
@media (display-mode: standalone){
  .app-topbar, .app-bottombar{ display:block; }
  .header-inner{ display:none !important; }
}
