:root{
  --header-bg:#0a0a23;
  --padY:14px;
  --padX:20px;
  --logoH:90px;               /* reduced by 25% from 120px */
  --menuW:240px;

  --card-bg:#ffffff;
  --text:#333;
  --brand:#4cafef;

  --radius:12px;
  --shadow:0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg:0 10px 24px rgba(0,0,0,0.35);

  /* page gutters (for sections that need it) */
  --pageX: clamp(16px, 5vw, 40px);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial, sans-serif;
  background:#f4f4f9;
  color:var(--text);
}

/* ---------- Header + Logo ---------- */
header{
  position:relative;
  background:var(--header-bg);
  color:#fff;
  padding:var(--padY) var(--padX);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.logo{
  max-height:var(--logoH);
  display:block;
  height:auto;
  width:auto;
}

/* ---------- Hamburger ---------- */
.menu-toggle{
  font-size:2rem;
  line-height:1;
  cursor:pointer;
  background:none;
  border:0;
  color:#fff;
  padding:6px 8px;
  border-radius:8px;
}
.menu-toggle:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }

/* ---------- Dropdown Nav ---------- */
.menu-panel{
  display:none;
  position:absolute;
  right:var(--padX);
  top:calc(var(--padY)*2 + var(--logoH));
  background:var(--header-bg);
  width:var(--menuW);
  padding:14px 16px;
  border-radius:12px;
  box-shadow:var(--shadow-lg);
  flex-direction:column;
  gap:12px;
  z-index:1000;
}
.menu-panel a{
  color:#fff;
  text-decoration:none;
  font-weight:bold;
  padding:8px 6px;
  border-radius:8px;
}
.menu-panel a:hover{ color:var(--brand); }
.menu-panel.show{ display:flex; }
.menu-panel a.active{ color:var(--brand); }

/* ---------- IT Services Banner ---------- */
.it-banner{
  background:#130828;
  text-align:center;
  padding:0;
}
.it-banner img{ max-width:100%; height: 400px; display:block; margin:0 auto; }

/* ---------- Hero (index only) ---------- */
.hero{
  text-align:center;
  padding:25px var(--pageX);
  background:linear-gradient(to right, #0a0a23, #1f3b73);
  color:#fff;
}
.hero h2{ font-size:2.2rem; margin:0 0 10px; }
.hero .subtext{ font-size:1.05rem; color:#e0e0e0; margin-top:4px; }

/* ---------- Services (index only) ---------- */
.services{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:20px;
  padding:40px 20px; /* cards unchanged */
}
.service-card{
  display:block;
  background:var(--card-bg);
  padding:20px;
  border-radius:10px;
  box-shadow:var(--shadow);
  width:200px;
  text-align:center;
  text-decoration:none;
  color:inherit;
  transition:transform .2s ease, box-shadow .2s ease;
  cursor:pointer;
}
.service-card:hover{ transform:translateY(-5px); box-shadow:0 6px 12px rgba(0,0,0,.2); }
.service-card h3{ margin:0 0 6px; color:#0a0a23; }
.service-card p{ margin:0; }

/* ---------- Services Note + Button (index) ---------- */
.note-cta{
  display:grid;
  grid-template-columns:0.7fr 0.3fr;    /* Service Note 70% | Button 30% */
  gap:14px;
  align-items:center;
  padding:22px var(--pageX) 32px;
  width:100%;
  margin:0 auto;
}
@media (min-width:901px){
  .note-cta{ max-width:70%; }           /* cap the whole section to 70% of screen on desktop */
}

/* Service Note: plain text, uses full 70% column */
.note-cta .services-note{
  background:transparent;
  border:0;
  box-shadow:none;
  border-radius:0;
  padding:0;
  margin:0;
  color:#333;
  max-width:none;
}
.note-cta .services-note p{
  margin:0;
  line-height:1.6;
}

/* Button-only column: no box, centered */
.quote-only{
  background:transparent;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ---------- Primary button (50% larger, shifted 40px right on desktop) ---------- */
.btn-primary{
  display:inline-block;
  padding:18px 27px;           /* 1.5× padding */
  border-radius:15px;          /* larger radius matches scale */
  background:var(--brand);
  color:#fff;
  font-weight:bold;
  font-size:1.5rem;            /* 1.5× text */
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, background .2s ease;
  box-shadow:0 4px 10px rgba(0,0,0,.15);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,.22); }
.btn-primary:active{ transform:translateY(0); }
@media (min-width:901px){
  .quote-only .btn-primary{ margin-left:40px; } /* shift 40px to the right on desktop */
}

/* ---------- Contact Page ---------- */
.contact{
  max-width:1100px;
  margin:16px auto 10px;      /* space above main, tight below */
  padding:0 var(--pageX);
}
.contact h1{ margin:0 0 6px; font-size:1.9rem; color:#0a0a23; }
.contact .lead{ margin:0 0 16px; color:#555; }

.contact-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:10px;
  align-items:start;           /* keep items only as tall as content */
}

/* Form wrapper (also anchor target) */
.embed-wrap{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  padding:12px 18px 0;         /* top + sides; bottom 0 */
  margin:0;
  align-self:start;            /* ensure the form card doesn't stretch */
  scroll-margin-top: 24px;     /* nicer anchor jump for #quote */
}
.embed-wrap iframe{
  display:block;
  width:100%;
  border:0;
  margin:0;
}

/* Contact info card */
.contact-info{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}
.contact-info h2{ margin:0 0 8px; color:#0a0a23; }
.contact-info ul{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.contact-info a{ color:#0a66c2; text-decoration:none; }
.contact-info a:hover{ text-decoration:underline; }

/* Loading/error states (contact email) */
.loading{ opacity:.75; font-style:italic; }
.error{ color:#a33; font-style:italic; }

/* ---------- Footer ---------- */
footer{
  background:#0a0a23; color:#fff; text-align:center;
  padding:12px; margin-top:6px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}
footer p{ margin:0; font-size:0.9rem; }
footer .back-to-top{
  display:inline-block; margin-top:6px; color:#4cafef;
  text-decoration:none; font-weight:bold;
}
footer .back-to-top:hover{ text-decoration:underline; }

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .contact-grid{ grid-template-columns:1fr; }
  .note-cta{ grid-template-columns:1fr; }   /* stack note & button on smaller screens */
  .embed-wrap{ padding:12px 14px 0; }
  .quote-only{ justify-content:flex-start; }  /* align button left when stacked */
}
@media (max-width:768px){
  :root{ --logoH:81px; --menuW:220px; }     /* reduced by 25% from 108px */
  .services{ gap:16px; }
  .hero h2{ font-size:1.9rem; }
}
