:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#2563eb;
  --container:1200px;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;color:#0f172a;background:var(--bg);-webkit-font-smoothing:antialiased}
.container{max-width:var(--container);margin:0 auto;padding:1rem}

.site-header{background:linear-gradient(90deg, #fff 0%, #fbfdff 100%);border-bottom:1px solid rgba(15,23,42,0.06);position:sticky;top:0;z-index:40;height:140px}
.header-inner{display:flex;align-items:flex-end;gap:1rem;padding:1rem 0;justify-content:space-between;padding-left:0;height:100%;padding-bottom:0.5rem}
.brand{font-weight:700;color:var(--accent);text-decoration:none;font-size:1.1rem;margin-left:0}
.site-nav{margin-left:auto;display:flex;gap:2rem;align-items:center}
.site-nav a{color:#0f172a;text-decoration:none;padding:0.5rem;border-radius:6px}
.site-nav a:hover{background:rgba(37,99,235,0.06);color:var(--accent)}
.site-header.custom .brand{color:#fff !important}
.site-header.custom .brand span{color:#fff !important}
.site-header.custom .brand-wrap span{color:#fff !important}
.site-header.custom .site-nav a{color:#fff}
.site-header.custom .site-nav a:hover{background:rgba(255,255,255,0.1);color:#fff}
.nav-icon{margin-right:0.25rem;font-size:1.43rem;display:inline-block;vertical-align:baseline;line-height:1}
.nav-toggle{display:none;background:transparent;border:0;font-size:1.25rem}

.hero{padding:2.5rem 0 1rem}
.hero h1{margin:0;font-size:2rem}
.lede{color:var(--muted);margin-top:0.5rem}

.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;padding:1rem 0 3rem}
.card{background:var(--card);border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,0.06);display:flex;flex-direction:column}
.card img{width:100%;height:auto;display:block}
.card-body{padding:1rem;flex:1;display:flex;flex-direction:column}
.card h3{margin:0 0 0.5rem;font-size:1.05rem}
.card p{margin:0 0 1rem;color:var(--muted);flex:1}
.card-actions{display:flex;justify-content:flex-end}
.card-actions button{background:var(--accent);color:#fff;border:0;padding:0.5rem 0.9rem;border-radius:8px;cursor:pointer}
.card-actions button:hover{background:#1e40af}

.site-footer{padding:1rem 0;border-top:1px solid rgba(15,23,42,0.04);color:var(--muted);text-align:center}

/* Responsive */
@media (max-width:1000px){
  .card-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .nav-toggle{display:inline-block;margin-left:auto}
  .site-nav{position:absolute;top:64px;right:1rem;background:var(--card);padding:0.5rem;border-radius:8px;box-shadow:0 6px 18px rgba(15,23,42,0.08);flex-direction:column;display:none}
  .site-nav.open{display:flex}
  .card-grid{grid-template-columns:1fr;gap:0.9rem}
  .container{padding:0.75rem}
  .form{max-width:100%;padding:0}
  .hero h1{font-size:1.5rem}
}

/* Page-specific layout: left sidebar + main */
.page {display:flex;min-height:calc(100vh - 120px);position:relative}
.sidebar{width:320px;padding:1rem;padding-top:60px;background:#1e293b;color:#fff;position:fixed;left:0;top:140px;bottom:0;z-index:45;overflow-y:auto}
.sidebar a{color:#cbd5e1;text-decoration:none;display:block;padding:0.75rem 0;border-radius:6px;font-size:1.1rem}
.sidebar a:hover{color:#fff;background:rgba(255,255,255,0.03)}
.sidebar a.active{color:#fff;background:rgba(37,99,235,0.3);font-weight:600}
.sidebar .nav-icon{font-size:1.25rem}
.submenu{padding-left:0.75rem;font-size:1.05rem;color:#cbd5e1}
.main{flex:1;padding:2rem;margin-left:320px;transition:margin-left 0.3s}
.sidebar.collapsed ~ .main{margin-left:0}
.site-header.custom {background:#08306b;color:#fff}
.brand-wrap{display:flex;align-items:center;gap:0.75rem;margin-left:-1rem}
.brand-wrap img{height:110px;width:auto}
.brand-wrap > span{font-size:1.3rem;font-weight:700}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.hero-card{background:#fff;border-radius:12px;padding:1.25rem;box-shadow:0 8px 20px rgba(2,6,23,0.06)}
.services-toggle{cursor:pointer;user-select:none;display:flex;align-items:center;justify-content:space-between;padding:0.75rem 0;color:#cbd5e1;border-radius:6px;font-size:1.1rem}
.services-toggle:hover{color:#fff;background:rgba(255,255,255,0.03)}
.services-toggle .arrow{transition:transform 0.2s;display:inline-block}
.services-toggle.open .arrow{transform:rotate(90deg)}
.submenu-container{max-height:0;overflow:hidden;transition:max-height 0.3s ease-out}
.submenu-container.open{max-height:500px}
.hamburger{display:none;position:fixed;top:144px;left:1rem;z-index:50;background:#1e293b;color:#fff;border:0;padding:0.75rem;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,0.15);border-radius:8px;transition:all 0.3s;width:60px;height:50px;justify-content:center;align-items:center;flex-direction:column}
.hamburger:hover{background:#334155}
.hamburger span{display:block;width:24px;height:2px;background:#fff;margin:4px 0;transition:all 0.3s}
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(5px, 5px)}
.hamburger.active span:nth-child(2){opacity:0}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(7px, -6px)}
.sidebar{transition:transform 0.3s;box-shadow:2px 0 8px rgba(0,0,0,0.1);top:140px}
.sidebar.collapsed{transform:translateX(-100%)}
@media (max-width:800px){.hamburger{display:flex}.page{flex-direction:column}.hero-grid{grid-template-columns:1fr}.main{margin-left:0!important}.sidebar{width:100%;max-width:300px;transform:translateX(-100%)}.sidebar.collapsed{transform:translateX(0)}}

/* Form row layout */
.form-row{display:block;margin-bottom:1.5rem}
.form-row label{display:block;margin-bottom:0.5rem;font-weight:500;color:#374151}
.form-row label .required{color:#dc2626;margin-left:2px}
.form-row input, .form-row select, .form-row textarea{width:100%;padding:0.75rem;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:1rem;box-sizing:border-box}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,0.1)}
.form-row .btn{background:var(--accent);color:#fff;border:0;padding:0.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:600;transition:background 0.2s;width:100%;max-width:200px;margin-top:0.5rem}
.form-row .btn:hover{background:#1e40af}
.btn-secondary{background:#6b7280 !important}
.btn-secondary:hover{background:#4b5563 !important}
.form-link{color:var(--accent);text-decoration:none;font-size:0.95rem}
.form-link:hover{text-decoration:underline}

@media (max-width:640px){
  .form-row input, .form-row select, .form-row textarea{font-size:16px;padding:0.65rem}
  .form-row .btn{width:100%;max-width:100%}
}
