
/* ===== Crain Bros Inc (projectRESTCON.OS Engine) Master Styles ===== */
:root{
  --bg:#0b1220;
  --surface:#0f1a2c;
  --surface2:#101f36;
  --text:#eef2ff;
  --muted:#b6c2e2;
  --brand:#4f8cff;
  --brand2:#66d9ff;
  --border:rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1100px 600px at 20% -10%, rgba(79,140,255,.35), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(102,217,255,.25), transparent 55%),
              var(--bg);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.small{ font-size:.9rem; }
.muted{ color:var(--muted); }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,18,32,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:40px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.brand-mark{
  width:120px;
  height:60px;
  display:grid;
  place-items:center;
  margin-top: -20px;
}

.brand-logo{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name{ font-weight:800; font-size:1.05rem; line-height:1.1; }
.brand-tagline{ color:var(--muted); font-size:.88rem; }

.nav{
  display:flex;
  align-items:center;
  gap:14px;
}

.nav-link{
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid transparent;
  color: var(--muted);
}

.nav-link:hover{
  border-color: var(--border);
  color: var(--text);
}

.nav-link.active{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding:10px 12px;
}

.hero{ padding: 54px 0 28px; }

.hero h1{
  margin:0 0 12px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 58ch;
}

.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap:12px;
  margin: 14px 0 18px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--muted);
}

.hero-badges{ display:flex; flex-wrap:wrap; gap:10px; }

.section{ padding: 34px 0; }
.section h2{ margin: 0 0 10px; }
.section-accent{
  background: rgba(255,255,255,.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.tile{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.tile h3{ margin: 0 0 8px; }
.tile p{ margin: 0 0 10px; color: var(--muted); }

.text-link{ color: var(--brand2); font-weight: 600; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
}

.btn-block{ width:100%; }

.btn-primary{
  background: linear-gradient(135deg, rgba(79,140,255,1), rgba(102,217,255,.95));
  color:#071021;
}

.btn-secondary{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}

.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}

.site-footer{
  padding: 26px 0 38px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-inner{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.footer-brand{ font-weight:800; }

.footer-heading{ font-weight: 700; margin-bottom: 6px; }

.footer-links a{
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-links a:hover{ color: var(--text); }

.page{ padding: 34px 0 18px; }

.page h1{ margin: 0 0 10px; }

.page-card{
  margin-top: 12px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

/* Responsive */
@media (max-width: 1000px){
  .footer-inner{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .nav-toggle{ display:inline-flex; }
  .nav{ display:none; }
  .nav.open{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    padding:12px;
  }
  .grid-3{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
}

/* Photo Grid (2-per-row) */
.photo-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
  width: 100%;
}

.photo-grid .photo{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  max-height: 320px;
  object-fit: cover;
}
