/* assets/styles.css */

:root{
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --radius: 18px;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --focus: 0 0 0 4px rgba(37,99,235,.22);
  --max: 1120px;
}

/* Reset-ish */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{ margin: 0; }
img{ max-width: 100%; display: block; }

/* Sticky footer layout (footer always at bottom) */
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(900px 500px at 50% -10%, rgba(37,99,235,.08), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(99,102,241,.08), transparent 60%),
              var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
a:focus{ outline: none; box-shadow: var(--focus); border-radius: 10px; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,248,251,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,.7);
}

.header-inner{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-logo{
  width: 42px; height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand-title{
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Nav */
.nav{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link{
  padding: 10px 12px;
  border-radius: 12px;
  color: #0b1220;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}

.nav-link:hover{
  text-decoration: none;
  background: rgba(15,23,42,.04);
  border-color: rgba(226,232,240,.7);
}

.nav-link.active{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.25);
  color: var(--primary-2);
}

.nav-cta{
  background: var(--primary);
  color: white;
  border-color: rgba(37,99,235,.35);
}

.nav-cta:hover{
  background: var(--primary-2);
}

/* Mobile toggle */
.nav-toggle{
  display:none;
  margin-left:auto;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.75);
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  cursor: pointer;
}

.nav-toggle span{
  display:block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  margin: 4px auto;
  border-radius: 10px;
}

.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  z-index: 40;
}

/* Main */
main{
  flex: 1;                 /* important for sticky footer */
  padding: 28px 0 42px;
}

/* Cards / sections */
.card{
  background: var(--card);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-pad{ padding: 22px; }

.page-title{
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.page-subtitle{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.muted{ color: var(--muted); font-size: 13px; }

/* Footer */
.site-footer{
  margin-top: auto; /* keep footer at bottom even with short pages */
  border-top: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr 1.2fr;
  gap: 18px;
  padding: 26px 0;
}

.site-footer h3{
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #0f172a;
}

.site-footer ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a{
  color: #0b1220;
  text-decoration: none;
}

.site-footer a:hover{
  text-decoration: underline;
}

.footer-contact p{
  margin: 0 0 10px;
  color: var(--muted);
}

.footer-bottom{
  padding: 14px 0;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.footer-mini a{ color: var(--muted); }

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

@media (max-width: 840px){
  .nav-toggle{ display: inline-block; }

  .nav{
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 45;
  }

  .nav.open{ display:flex; }

  .nav-link{
    width: 100%;
    text-align: left;
  }

  .nav-cta{
    width: 100%;
    text-align: center;
  }
}
