/* Kairos Customer Template – minimal, predictable layout */

:root{
  --brand: #1e40af;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(0,0,0,.08);

  /* injected by template.php */
  --panel-bg: var(--card);
  --header-bg: #ffffff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{color:inherit}
a:hover{opacity:.9}

/* Header (no banner needed) */
.topbar{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding:18px 22px;
  background:var(--header-bg);
  border-bottom:1px solid var(--border);
}
.brand__name{font-weight:800;font-size:20px;line-height:1.1}
.brand__slogan{color:var(--muted);margin-top:4px;font-size:14px}

.lang a{
  display:inline-block;
  padding:6px 10px;
  border-radius:10px;
  text-decoration:none;
  border:1px solid var(--border);
  margin-left:6px;
  color:var(--muted);
  background:rgba(255,255,255,.55);
}
.lang a.active{color:var(--text);border-color:rgba(0,0,0,.18);background:rgba(0,0,0,.03)}

/* Banner: full width, fixed-ish height */
.banner{
  width:100%;
  height:25vh;
  min-height:180px;
  max-height:360px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Menu */
.menu{
  min-height: var(--menu-bar-height, 56px);
  display:flex;
  align-items:center;
}

/* inner row must stretch full width for align to work */
.menu__inner{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  padding:10px 18px;
}

/* Alignment */
.menu--left .menu__inner{justify-content:flex-start}
.menu--center .menu__inner{justify-content:center}
.menu--right .menu__inner{justify-content:flex-end}

/* Hard reset: menu links must never use generic <a> styles */
.menu .menu__item{
  text-decoration:none !important;
  border:none !important;
  border-bottom:none !important;
  margin:0 !important;
  background:transparent;
  color:var(--muted);
  padding:10px 14px;
  border-radius:12px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

/* BAR style: pills */
.menu--bar{
  background:var(--panel-bg);
  border-bottom:1px solid var(--border);
}
.menu--bar .menu__item{
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.menu--bar .menu__item:hover{
  background:rgba(0,0,0,.04);
  color:var(--text);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.menu--bar .menu__item.active{
  color:var(--text);
  background:rgba(0,0,0,.06);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
}

/* INLINE style: no menubar, separators */
.menu--inline{
  background:transparent;
  border-bottom:0;
}
.menu--inline .menu__inner{
  gap:0;
  padding:8px 18px;
}
.menu--inline .menu__item{
  padding:8px 0;
  border-radius:0;
  box-shadow:none;
}

/* subtle underline (not browser underline) */
.menu--inline .menu__item{
  position:relative;
}
.menu--inline .menu__item::before{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:2px;
  height:2px;
  background:transparent;
  border-radius:2px;
  transform:scaleX(.0);
  transform-origin:left;
  transition: transform .18s ease, background .18s ease;
}
.menu--inline .menu__item:hover{
  color:var(--text);
}
.menu--inline .menu__item:hover::before{
  background:rgba(0,0,0,.18);
  transform:scaleX(1);
}
.menu--inline .menu__item.active{
  color:var(--text);
  font-weight:700;
}
.menu--inline .menu__item.active::before{
  background:rgba(0,0,0,.28);
  transform:scaleX(1);
}

/* separator */
.menu--inline .menu__item:not(:last-child)::after{
  content:"|";
  display:inline-block;
  padding:0 12px;
  color:rgba(0,0,0,.25);
  font-weight:400;
}



/* BAR hover */
.menu--bar .menu__item:hover{
  color: var(--text);
  background: rgba(0,0,0,.035);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.menu--bar .menu__item.active:hover{
  background: rgba(0,0,0,.05);
}

/* INLINE hover: no background bar, just a clean underline cue */
.menu--inline .menu__item{
  position: relative;
}
.menu--inline .menu__item:hover{
  color: var(--text);
}
.menu--inline .menu__item::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-6px;
  height:2px;
  background: transparent;
  border-radius:2px;
  transition: background-color .15s ease;
}
.menu--inline .menu__item:hover::before{
  background: rgba(30,64,175,.45);
}
.menu--inline .menu__item.active::before{
  background: rgba(30,64,175,.65);
}


/* Main 3-column layout: sidebars touch viewport edges; content stays readable */
.layout{
  width:100%;
  margin:0;
  padding:0;
  display:grid;
  gap:18px;
  grid-template-columns:1fr;
  min-height:calc(100vh - 160px);
}

.layout.has-left{grid-template-columns:260px 1fr;}
.layout.has-right{grid-template-columns:1fr 260px;}
.layout.has-left.has-right{grid-template-columns:260px 1fr 260px;}

.sidebar{
  background:var(--panel-bg);
  padding:18px;
  border-right:1px solid var(--border);
}
.sidebar--right{
  border-right:none;
  border-left:1px solid var(--border);
}
.content{
  width:100%;
  max-width:900px;
  justify-self:center;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  min-width:0;
}

/* Sidebar readable boxes (always white) */
.sidebar-box{
  background:#ffffff;
  border-radius:14px;
  padding:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  margin-bottom:14px;
}
.sidebar-box:last-child{margin-bottom:0}
.sidebar-box h3{margin-top:0}


/* Contact form */
form.contact{
  margin-top: 18px;
}
form.contact label{
  display:block;
  font-weight: 600;
  margin: 0 0 6px;
}
form.contact .row{
  display:flex;
  gap: 14px;
}
form.contact .row > div{
  flex: 1 1 0;
  min-width: 0;
}
form.contact input, form.contact textarea{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
form.contact textarea{
  min-height: 140px;
  resize: vertical;
}
form.contact small{
  display:block;
  margin-top: 8px;
  color: var(--muted);
}
form.contact button[type="submit"]{
  margin-top: 14px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color:#fff;
  font-weight: 700;
  cursor:pointer;
  transition: opacity .15s ease, transform .15s ease;
}
form.contact button[type="submit"]:hover{ opacity:.92; }
form.contact button[type="submit"]:active{ transform: translateY(1px); }

@media (max-width: 760px){
  form.contact .row{ flex-direction: column; }
}


/* Footer */
.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 22px;
  color:var(--muted);
  border-top:1px solid var(--border);
}
.footer__links a{margin-left:12px;text-decoration:none;color:var(--muted)}

.footer{
  gap: 12px;
  flex-wrap: wrap;
}
.footer__credit a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.18);
  padding-bottom: 1px;
}
.footer__credit a:hover{
  color: var(--text);
  border-bottom-color: rgba(30,64,175,.45);
}

/* Responsive */
@media (max-width:1100px){
  .layout.has-left.has-right{grid-template-columns:260px 1fr;}
  .sidebar--right{grid-column:1/-1;border-left:none;border-top:1px solid var(--border);}
  .content{justify-self:stretch;max-width:none;border-radius:0}
}
@media (max-width:760px){
  .layout.has-left,.layout.has-right,.layout.has-left.has-right{grid-template-columns:1fr;}
  .sidebar{border-right:none;border-left:none;border-top:1px solid var(--border);}
  .content{max-width:none;border-radius:0}
}
