/* mobile.css - full mobile layout (<= 900px)
   - Logo square placed top-left inside header bar
   - Nav items to the right of logo
   - Hero stacked and centered under header
   - All page areas (services, architecture, contact, footer) included
*/

/* Root variables tuned for mobile */
:root{
  --header-height: 75px;        /* header / logo square height on mobile */
  --logo-extra: 50px;    /* extra width/height added to the square */
  --gutter: 4vw;
  --qcp-white:#FFFFFF;
  --qcp-offwhite:#F7F7F5;
  --qcp-blue:#052253;
  --qcp-gold:#FAC106;
  --qcp-gray:#F2F2F2;
  --font-main:"Segoe UI Semibold","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}

/* Reset / base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height:100%; width:100%; -webkit-text-size-adjust:100%; }
body {
  font-family: var(--font-main);
  background: var(--qcp-offwhite);
  color: var(--qcp-blue);
  line-height: 1.45;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Header with logo top-left ---------- */
.header-wrap { height: var(--header-height) ; }
.qcp-logo-block {
  position: absolute ;
  left: 0 ;
  top: 0 ;
  width: calc(var(--header-height) + var(--logo-extra));
  height: calc(var(--header-height) + var(--logo-extra));
  border: 4px solid #fff ;
  padding: 0;
  display: flex ;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 9999;
  background: var(--qcp-offwhite);
}
/* Force the image to fill the square */
.qcp-logo-block img {
  width: 100% ;
  height: 100% ;
  max-width: none ;
  max-height: none ;
  object-fit: contain ;
  display: block ;
}
/* ---------- Top banner / hero ---------- */
.top-banner {
  width: 100%;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  background-color: var(--qcp-gray);
  padding-top: calc(var(--header-height) + 12px); /* ensure hero sits below header */
  box-sizing: border-box;
}
.top-banner .bg {
  position: absolute;
  inset: 0;
  background: url("quantum_project_consulting_llc_cover.jpeg") center/cover no-repeat;
  background-size: cover;
  opacity: 0.95;
  transform: translateZ(0);
  z-index: 0;
  pointer-events: none;
}

/* Nav sits to the right of the logo inside the header */
.primary-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: calc(var(--header-height) + 0.75rem); /* avoid logo overlap */
  height: var(--header-height);
  z-index: 2;
  background: var(--qcp-blue);
    color: var(--qcp-offwhite);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position:relative;
    z-index:5;
}

.nav-inner {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding-right: var(--gutter);
}
.nav-inner a {
  color: var(--qcp-offwhite);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}
.nav-inner a:hover { color: var(--qcp-gold); background: rgba(255,255,255,0.03); }


/* Hero content stacked and centered */
.hero-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 2rem;
  box-sizing: border-box;
  text-align: center;
  background: transparent;
  z-index: 10;
}

/* Headline block */
.hero-headlines {
  display: block;
  margin: 0 auto;
  padding: 0.5rem 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  z-index: 12;
}
.hero-line-1 {
  font-size: 28px;
  letter-spacing: 0.12em;
  color: var(--qcp-blue);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  line-height: 1.05;
}
.hero-line-2 {
  font-size: 36px;
  letter-spacing: 0.08em;
  color: var(--qcp-blue);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  line-height: 1.02;
}
.hero-tagline {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--qcp-gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Supporting paragraph and CTAs */
.hero-paragraph {
  margin: 0.6rem auto;
  color: var(--qcp-blue);
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0 6vw;
}
.hero-ctas {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  min-height: 44px;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--qcp-gold); color: #1b1400; border-color: var(--qcp-gold); }
.btn-ghost { background: transparent; color: var(--qcp-blue); border-color: rgba(5,34,83,0.08); }

/* Rocket card stacks below hero */
.hero-right {
  width: 100%;
  max-width: 520px;
  margin: 1.25rem auto 0;
  padding: 0 6vw;
  box-sizing: border-box;
}
.rocket-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(2,15,43,0.96), rgba(2,15,43,0.92));
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(250,193,6,0.28);
  box-shadow: 0 20px 60px rgba(2,15,43,0.35);
  color: var(--qcp-offwhite);
}
  .rocket-icon { width:72px; height:auto; display:block; margin-bottom:1rem; }
  .rocket-eyebrow { color:var(--qcp-gold); font-size:0.85rem; letter-spacing:0.16em; text-transform:uppercase; margin-bottom:0.45rem; }
  .rocket-title { font-size:1.25rem; color:var(--qcp-white); margin-bottom:0.6rem; }
  .rocket-copy { color:rgba(215,222,239,0.95); font-size:0.95rem; line-height:1.4; }
  
/* ---------- Main content areas (stacked) ---------- */
main { background: var(--qcp-offwhite); }
section { padding: 1.5rem var(--gutter); box-sizing: border-box; }
.section-heading { font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--qcp-blue); margin-bottom: 0.5rem; }
.section-sub { color: #3b4760; max-width: 100%; margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.5; }

/* Services grid -> single column */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.service {
  background: var(--qcp-white);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e6e9f0;
  box-shadow: 0 8px 20px rgba(5,34,83,0.04);
}
.service .label { color: var(--qcp-gold); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.service h3 { color: var(--qcp-blue); margin-bottom: 0.4rem; font-size: 1.05rem; }
.service p { color: #4a5670; font-size: 0.95rem; line-height: 1.45; }

/* Architecture area stacked */
.architecture { background: linear-gradient(135deg,#fdfbf4 0,#f7f7f5 40%,#eef3fb 100%); border-top: 1px solid #e9edf5; border-bottom: 1px solid #e9edf5; padding: 1.25rem var(--gutter); }
.architecture-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--qcp-blue); color: var(--qcp-offwhite); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; }

/* Contact area stacked */
.contact { background: var(--qcp-blue); color: var(--qcp-offwhite); padding: 1.25rem var(--gutter); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.contact a { color: var(--qcp-gold); text-decoration: underline; }

/* Footer stacked */
footer {
  background: #020f2b;
  color: #9aa7c6;
  padding: 1rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.9rem;
}
footer .footer-row { width: 100%; display:flex; justify-content:space-between; gap:1rem; align-items:center; flex-wrap:wrap; }
footer a { color: #9aa7c6; }

/* ---------- Small adjustments for very small screens ---------- */
@media (max-width: 420px) {
  :root { --header-height: 56px; }
  .hero-line-2 { font-size: 28px; }
  .hero-line-1 { font-size: 22px; }
  .hero-paragraph { font-size: 0.95rem; padding: 0 5vw; }
  .btn { padding: 0.6rem 0.95rem; font-size: 0.9rem; }
  .rocket-card { padding: 1rem; border-radius: 12px; }
  section { padding: 1rem 4vw; }
}
