/* Minimal, clean styles (no frameworks) */
:root {
  --bg: #0b0d10;
  --panel: #12161c;
  --text: #e6e9ef;
  --muted: #9aa4b2;
  --accent: #5eead4;
  --accent-2: #60a5fa;
  --border: #1f2937;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, rgba(96,165,250,0.15), transparent 60%),
              radial-gradient(900px 500px at 110% 10%, rgba(94,234,212,0.12), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 28px 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo { width: 48px; height: 48px; }
h1 { font-size: 1.25rem; margin: 0; }
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
nav a { color: var(--text); text-decoration: none; margin-left: 16px; opacity: 0.85; }
nav a:hover { opacity: 1; }
.hero h2 { font-size: 2.2rem; margin: 6px 0 6px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); max-width: 60ch; }
.cta-row { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--border); text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.1));
  backdrop-filter: blur(4px);
}
.btn.primary { border-color: transparent; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #061017; font-weight: 600; }
.badges { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.badges span { font-size: 0.85rem; color: var(--muted); background: #0e1218; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; }
h3 { font-size: 1.4rem; margin: 8px 0 16px; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px;
}
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
}
.list { padding-left: 18px; color: var(--muted); }
.contact .contact-box {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
}
footer { color: var(--muted); border-top: 1px solid var(--border); margin-top: 26px; }

/* ==============================
   Header & Navigation
   ============================== */
header.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .75rem;
  flex-wrap: wrap;             /* allow nav to drop under logo on small screens */
}

/* brand area grows so logo can fill space up to the nav */
.brand { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }

/* nav */
header.container nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-left: auto; }
header.container nav a {
  opacity: .9;
  padding: .25rem .5rem;
  border-radius: .5rem;
}
header.container nav a:hover {
  opacity: 1;
  background: rgba(255,255,255,.06);
}

/* LOGO
   Use either:
   - <picture class="logo"> (desktop fills horizontally)
   - <img class="small-picture"> (mobile fallback)
*/
.logo { flex: 1 1 auto; min-width: 0; }

/* DO NOT hard-code width/height on .logo (removed old 48x48 rule) */
.logo img {
  display: block;
  width: auto;          /* avoid forced stretching */
  max-width: 100%;      /* can grow to the container width */
  height: auto;         /* keep aspect ratio */
  object-fit: contain;  /* safety when both axes capped */
}

/* Mobile/Tablet fallback image */
.small-picture {
  display: block;
  height: clamp(32px, 8vw, 56px);   /* tidy on phones */
  width: auto;
}

/* Desktop: let the desktop logo fill horizontally but keep header height sane */
@media (min-width: 1024px) {
  .logo img { max-height: 80px; }   /* adjust to taste (e.g., 72–96px) */
}

/* ==============================
   Optional helpers (safe, non-invasive)
   ============================== */

/* Spacing utilities you can use anywhere */
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: 1rem; }

/* Cards (for your services grid if needed) */
.card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: .75rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #d7dde5;
}
.btn.primary {
  background: linear-gradient(90deg, #52b0ff, #2b8fd8);
  color: #081018;
  border-color: transparent;
}
.btn:hover { filter: brightness(1.05); }
/* === Logo sizing: phone bump + desktop 280 cap === */

/* Base: keep aspect ratio, no forced width */
header.container .logo { flex: 1 1 auto; min-width: 0; }
header.container .logo img {
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  object-fit:contain;
}

/* PHONE: make the logo bigger and let nav drop/center */
@media (max-width: 480px) {
  .brand { flex: 1 1 100%; justify-content:center; }
  header.container nav { width:100%; justify-content:center; }

  /* Bigger phone logo */
  header.container .logo img {
    /* raises the floor and scales with viewport */
    height: clamp(96px, 28vw, 140px) !important;
    max-height: none !important;
  }
}

/* TABLET: comfortable cap */
@media (min-width: 768px) {
  header.container .logo img { max-height: 180px; }
}

/* DESKTOP: step up */
@media (min-width: 1024px) {
  header.container .logo img { max-height: 280px; }
}

/* LARGE DESKTOP: your chosen cap */
@media (min-width: 1440px) {
  header.container .logo img { max-height: 280px; }
}

/* Header layout (unchanged) */
header.container { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; }
.brand { flex:1 1 auto; min-width:0; display:flex; align-items:center; }
header.container nav { margin-left:auto; display:flex; gap:1rem; flex-wrap:wrap; }
@media (max-width:640px){ header.container nav { width:100%; justify-content:center; } }

/* ---- Logo: smooth scale, no jumps ---- */
#logo-wrap { flex:1 1 auto; min-width:0; }
#site-logo{
  display:block;
  width:auto;              /* never force width */
  max-width:100%;          /* can grow with the container */
  height:clamp(120px, 16vw, 280px);  /* phone -> desktop; top cap = 280 */
  object-fit:contain;      /* keep aspect ratio if both axes constrained */
}

/* Optional: center brand + nav on very small phones */
@media (max-width:480px){
  .brand { flex-basis:100%; justify-content:center; }
}

/* === Logo: smooth scale, max 280px === */
#logo-wrap { flex: 1 1 auto; min-width: 0; }
#site-logo{
  display:block;
  width:auto;                 /* never force a width */
  max-width:100%;             /* allow growth as container narrows */
  height:clamp(120px, 16vw, 280px);  /* phone → desktop, top cap 280 */
  object-fit:contain;
}

/* Header layout safety (keeps nav on right, wraps on small screens) */
header.container { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; }
.brand { flex:1 1 auto; min-width:0; display:flex; align-items:center; }
header.container nav { margin-left:auto; display:flex; gap:1rem; flex-wrap:wrap; }
@media (max-width:640px){ header.container nav { width:100%; justify-content:center; } }

/* Nuke any old fixed logo size */
.logo { width:auto !important; height:auto !important; }
