/* modern.css - lightweight facelift for OTS static site */

/* ---- Base ---- */
:root{
  --bg: #fcfbf7;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #1f6f4a;   /* deep green */
  --brand2: #0f4c81;  /* blue accent */
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* ---- Layout container (works with your existing 980px style) ---- */
.page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

/* ---- Top bar ---- */
.topbar{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}

.brand img{
  max-height: 44px;
  height:auto;
  width:auto;
}

.brand .tagline{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

/* ---- Nav ---- */
.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.nav a{
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover{
  background: #f3f4f6;
  text-decoration:none;
}

.nav .cta{
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
}
.nav .cta:hover{
  background: #185d3f;
}

/* ---- Mobile menu ---- */
.menuBtn{
  display:none;
  border:1px solid var(--border);
  background: #f9fafb;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}

@media (max-width: 860px){
  .menuBtn{ display:block; }
  .nav{
    display:none;
    width:100%;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
    justify-content:flex-start;
  }
  .nav.open{ display:flex; }
  .topbar{ flex-wrap: wrap; }
  .brand{ width:100%; justify-content:space-between; }
}

/* ---- Hero ---- */
.hero{
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(31,111,74,.10), rgba(15,76,129,.10));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
}

.hero .content{
  padding: 28px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
}

.hero p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.hero .actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display:inline-block;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 800;
  font-size: 14px;
}
.btn.primary{
  background: var(--brand);
  border-color: var(--brand);
  color:#fff;
}
.btn.primary:hover{ background:#185d3f; text-decoration:none; }
.btn.secondary:hover{ background:#f3f4f6; text-decoration:none; }

.hero .image{
  background-size: cover;
  background-position: center;
  min-height: 260px;
}

@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 28px; }
  .hero .image{ min-height: 220px; }
}

/* ---- Content cards ---- */
.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card h3{
  margin: 0 0 8px;
  font-size: 16px;
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
}

/* ---- Main content section ---- */
.section{
  margin-top: 18px;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.section h2{ margin:0 0 10px; }
.section p{ margin:0 0 12px; color: var(--text); }
.section .muted{ color: var(--muted); }

/* ---- Footer ---- */
.footer{
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align:center;
}