/* Logo styling */
.logo-img {
  width: 300px;   /* Adjust as needed */
  height: auto;   /* Keeps proportions */
}

/* Header logo sizing */
header .logo img,
.logo img,
.logo-img {
  height: 48px;   /* try 48–64px */
  width: auto;
}

/* --------- Base / Reset --------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root{
  --bg:#0b0b0b;           /* site background */
  --surface:#131313;      /* card/section bg */
  --text:#e8e8e8;         /* body text */
  --muted:#b9b9b9;        /* secondary text */
  --brand:#00bfff;        /* theme blue */
  --brand-dk:#009acd;     /* hover blue */
  --border:#222;          /* subtle borders */
  --radius:12px;
  --maxw:1200px;
}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

/* --------- Layout helpers --------- */
.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 20px;
}

.section{
  padding:64px 0;
  border-top:1px solid var(--border);
}
.section--tight{ padding:36px 0; }

.grid{
  display:grid;
  gap:20px;
}
.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
}

h1,h2,h3{ line-height:1.25; margin:0 0 16px; }
h1{ font-size:clamp(28px, 4.5vw, 44px); }
h2{ font-size:clamp(22px, 3.2vw, 32px); }
h3{ font-size:clamp(18px, 2.6vw, 24px); }
p{ margin:0 0 12px; color:var(--text); }

/* --------- Buttons & links --------- */
a{ color:var(--brand); text-decoration:none; }
a:hover{ color:var(--brand-dk); }
.btn{
  display:inline-block;
  padding:10px 18px;
  background:var(--brand);
  color:#fff;
  border-radius:8px;
  border:1px solid transparent;
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
  text-align:center;
}
.btn:hover{ background:var(--brand-dk); transform:translateY(-2px); }

/* --------- Header / Nav --------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,11,11,.85);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--border);
}
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px 0;
}
.logo{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-weight:700;
  margin-left:0;   /* keep it left */
}

.logo-img{ max-width:120px; height:auto; display:block; }
.nav-links{
  display:flex; flex-wrap:wrap; gap:14px;
}
.nav-links a{
  color:var(--text);
  padding:8px 10px;
  border-radius:8px;
}
.nav-links a:hover{ background:#1a1a1a; }

/* Small-screen nav (checkbox hamburger, no JS) */
.nav-toggle{ display:none; }
.nav-burger{ display:none; cursor:pointer; padding:8px 10px; border:1px solid var(--border); border-radius:8px; }
.nav-burger span{ display:block; width:22px; height:2px; background:var(--text); margin:5px 0; }

/* --------- Hero --------- */
.hero{
  display:grid; gap:20px; align-items:center;
  grid-template-columns: 1.2fr .8fr;
}
.hero .hero-img{
  width:100%; height:auto; border-radius:var(--radius);
  border:1px solid var(--border);
}

/* --------- “Services / About / Work” cards --------- */
.item{
  display:flex; flex-direction:column; gap:8px;
}
.item h3{ margin-bottom:6px; }
.item p{ color:var(--muted); }

/* --------- Contact --------- */
.form{
  display:grid; gap:12px;
}
.input, .textarea{
  width:100%;
  padding:12px 14px;
  background:#0f0f0f;
  border:1px solid var(--border);
  border-radius:8px; color:var(--text);
}
.textarea{ min-height:120px; resize:vertical; }

/* --------- Footer --------- */
footer{
  border-top:1px solid var(--border);
  background:#0c0c0c;
}
.footer-content{
  display:flex; gap:24px; justify-content:space-between; align-items:flex-start;
}
.footer-col{ flex:1; min-width:240px; }
.footer-bottom{
  border-top:1px solid var(--border);
  margin-top:24px; padding-top:16px;
  color:var(--muted); text-align:center;
}
.useful-links .link-buttons{
  display:flex; flex-wrap:wrap; gap:10px;
}
.btn-link{
  display:inline-block; padding:10px 16px;
  background:var(--brand); color:#fff; border-radius:8px;
  transition:background .2s ease, transform .2s ease;
}
.btn-link:hover{ background:var(--brand-dk); transform:translateY(-2px); }

/* --------- Responsive Breakpoints --------- */

/* <= 1024px: 3→2 columns, hero stacks nicer */
@media (max-width: 1024px){
  .grid-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero{ grid-template-columns: 1fr; }
  .hero .hero-img{ order:2; }
}

/* <= 768px: tighten paddings, 2→1 columns, footer stacks, mobile nav */
@media (max-width: 768px){
  .section{ padding:44px 0; }
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
  .footer-content{ flex-direction:column; text-align:center; }
  .logo-img{ max-width:96px; }

  /* Hamburger appears */
  .nav-burger{ display:block; }
  .nav-links{
    display:none; flex-direction:column;
    width:100%; padding:10px 0; border-top:1px solid var(--border);
  }
  .nav-toggle:checked ~ .nav-links{ display:flex; }
}

/* <= 480px: bigger tap targets, full‑width buttons */
@media (max-width: 480px){
  .btn, .btn-link{ width:100%; }
  .container{ padding:0 16px; }
  .logo-img{ max-width:84px; }
}

/* =========================================================
   Compat layer for the new index.html (drawer + grids)
   Keeps your existing look & feel, adds missing selectors.
   =======================================================*/

/* Header (keeps menu left, logo right) */
.site-header{
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,11,11,.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav{ display:flex; align-items:center; justify-content:flex-start; gap:16px; padding:12px 0; }
.menu-btn{
  display:none; cursor:pointer; padding:8px 12px;
  border:1px solid var(--border); border-radius:8px; color:var(--text); background:transparent;
}
.logo{ display:flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; margin-left:auto; }
.logo img{ height:48px; width:auto; display:block; } /* respects your logo sizing */

/* Show inline nav on desktop; mobile uses drawer */
.navlinks{ display:flex; flex-wrap:wrap; gap:14px; }
.navlinks a{ color:var(--text); padding:8px 10px; border-radius:8px; }
.navlinks a:hover{ background:#1a1a1a; }
@media (max-width:880px){
  .menu-btn{ display:inline-flex; align-items:center; gap:.5rem; }
  .navlinks{ display:none; }
}

/* Buttons to match your palette */
.btn{ display:inline-block; padding:10px 18px; border-radius:8px; border:1px solid transparent;
      transition:transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn-primary{ background:var(--brand); color:#fff; }
.btn-primary:hover{ background:var(--brand-dk); transform:translateY(-2px); }
.btn-outline{ background:transparent; border:1px solid var(--border); color:var(--text); }
.btn-outline:hover{ background:#1a1a1a; }

/* Hero details */
.pill{ display:inline-block; font-size:.85rem; color:var(--muted);
       background:#0f0f0f; border:1px solid var(--border); padding:.28rem .6rem; border-radius:999px; margin-bottom:.6rem; }
.lead{ color:var(--muted); max-width:65ch; }
.badges{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; opacity:.9; }
.badges img{ height:28px; width:auto; }

/* Cards & grids used on Services/Work */
.cards{ display:grid; gap:20px; }
@media (min-width:600px){ .cards{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width:992px){ .cards{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; }

.workgrid{ display:grid; gap:20px; }
@media (min-width:600px){ .workgrid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width:992px){ .workgrid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
.work{ border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.work .meta{ padding:16px; }
.work h4{ margin:0 0 6px; font-size:1rem; }
.work p{ margin:0; color:var(--muted); }

/* Contact form (align with your existing inputs) */
.contact{ display:grid; gap:20px; }
@media (min-width:768px){ .contact{ grid-template-columns:1.2fr .8fr; } }
.form{ display:grid; gap:12px; }
.form input, .form textarea{ width:100%; padding:12px 14px; background:#0f0f0f; border:1px solid var(--border); border-radius:8px; color:var(--text); }

/* Left slide-in drawer menu */
.backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:55;
}
.backdrop.show{ opacity:1; pointer-events:auto; }
.drawer{
  position:fixed; top:0; left:0; height:100dvh; width:min(88vw, 320px);
  background:var(--surface); border-right:1px solid var(--border);
  transform:translateX(-100%); transition:transform .25s ease; z-index:56; display:flex; flex-direction:column;
}
.drawer.open{ transform:translateX(0); }
.drawer header{ display:flex; align-items:center; justify-content:space-between; padding:1rem; border-bottom:1px solid var(--border); }
.drawer nav{ display:flex; flex-direction:column; padding:.5rem; }
.drawer a{ padding:.9rem 1rem; border-radius:8px; color:var(--text); }
.drawer a:hover, .drawer a:focus{ background:#1a1a1a; }
@media (min-width:881px){ .backdrop, .drawer{ display:none; } }

/* ---- Layout density tweaks ---- */

/* 1) Let content breathe wider on desktop */
:root{
  --container: 1280px;     /* was ~1200; try 1280–1440 if you want even wider */
}

/* 2) Reduce top/bottom section padding a bit */
.section{ padding-block: 1.25rem; }           /* default */
@media (min-width: 768px){ .section{ padding-block: 1.75rem; } }
@media (min-width: 992px){ .section{ padding-block: 2rem; } }  /* was 2.5rem+ */

/* 3) Hero: use more width and less unused height */
.hero{
  min-height: 38vh;            /* was ~46–55vh; shorten the “tall empty” feel */
  align-items: center; 
}
@media (min-width: 992px){
  .hero{
    grid-template-columns: 1.2fr 0.8fr;   /* give the text column more space */
    gap: 2rem;
    min-height: 48vh;
  }
}

/* 4) Headline size & wrapping — slightly smaller on huge screens */
.hero h1{
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); /* was up to 3rem */
  margin-bottom: .75rem;
}
.lead{ max-width: 72ch; }

/* 5) Buttons/badges tighten up */
.cta-row{ gap: .75rem; margin-top: .9rem; }
.badges{ gap: 1.25rem; margin-top: 1rem; flex-wrap: wrap; }

/* 6) Cards grid: show 3-up earlier so there’s less dead space */
@media (min-width: 900px){ .cards{ grid-template-columns: repeat(3,1fr); } }

/* 7) Work tiles: balanced aspect and less vertical padding */
.work .meta{ padding: .85rem; }

/* 8) Header spacing (nav) a bit tighter */
.nav{ gap: .75rem; }
.navlinks a{ padding: .4rem .25rem; }

/* 9) Optional: slightly larger container on very big screens */
@media (min-width: 1440px){
  .container{ width: min(100% - 2rem, 1400px); }
}

/* ==== Header height + alignment ==== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7,11,15,.78);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  width: 100%;
  height: 64px;                 /* fixed vertical height */
}

.site-header .container{
  height: 64px;                 /* make inner row match header */
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: space-between;
  padding-inline: 1rem;
}

/* Nav links spacing for the taller header */
.navlinks a{
  padding: 0.5rem 0.8rem;
  line-height: 1;
}

/* ==== Header logo sizing (only in header) ==== */
.site-header .logo img{
  height: 40px;                 /* try 40–48px; stays inside 64px header */
  width: auto;
}

/* Remove any auto-right push so it stays on the left */
.logo{ margin-left: 0; }

/* ==== Mobile menu button aligns in taller header ==== */
.menu-btn{
  padding: .45rem .7rem;
  line-height: 1;
}

/* ==== Scope big logo elsewhere (e.g., hero) without touching header) ==== */
/* If you still want a wide logo in non-header places, scope the width there: */
.hero .logo-img{ width: 300px; height: auto; }   /* ONLY in hero */
