/* Qubik — bespoke styles. Deep navy + electric cyan + pearl. Tech / dairy systems. */
:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --bg-dark: #0a3a5e;
  --bg-darker: #062840;
  --line: rgba(10, 58, 94, 0.10);
  --navy: #0a3a5e;
  --navy-2: #14517f;
  --cyan: #2db8d6;
  --cyan-2: #1ea0bd;
  --pearl: #d8e4ee;
  --text: #0a1f30;
  --text-2: #3b4d5d;
  --text-dim: #738390;
  --text-on-dark: #eef4f9;
  --sans: 'Inter', system-ui, sans-serif;
  --container: 1240px;
  --r: 4px;
  --r-lg: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.accent { color: var(--cyan); }

.topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 14px 28px; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r); background: var(--navy); color: var(--cyan); font-weight: 800; font-size: 22px; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--navy); letter-spacing: -0.01em; }
.nav-primary { display: none; gap: 28px; font-size: 14px; justify-content: flex-end; }
.nav-primary a { color: var(--text-2); font-weight: 500; transition: color .2s; }
.nav-primary a:hover { color: var(--cyan); }
.nav-primary .nav-cta { padding: 10px 20px; background: var(--navy); color: white; border-radius: var(--r); font-weight: 600; transition: background .2s; }
.nav-primary .nav-cta:hover { background: var(--cyan); }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; background: 0; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }
.mobile-menu { position: fixed; top: 70px; left: 0; right: 0; z-index: 25; display: flex; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 28px; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-menu .mobile-cta { color: var(--cyan); }
@media (min-width: 980px) { .nav-primary { display: flex; } .nav-toggle { display: none; } .mobile-menu { display: none !important; } }

.hero { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,58,94,0.55) 0%, rgba(10,58,94,0.92) 100%); }
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 80px 28px 56px; width: 100%; color: var(--text-on-dark); }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.30em; font-size: 12px; color: var(--cyan); margin: 0 0 28px; font-weight: 700; }
.hero-title { font-family: var(--sans); font-size: clamp(48px, 8vw, 108px); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 28px; color: var(--text-on-dark); }
.hero-sub { max-width: 640px; font-size: clamp(16px, 1.5vw, 20px); color: rgba(238, 244, 249, 0.85); margin: 0 0 36px; line-height: 1.55; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.cta-primary, .cta-ghost { display: inline-flex; align-items: center; padding: 14px 28px; border-radius: var(--r); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; transition: background .15s, color .15s, transform .15s; }
.cta-primary { background: var(--cyan); color: var(--navy); }
.cta-primary:hover { background: #44ceeb; transform: translateY(-1px); }
.cta-ghost { color: var(--text-on-dark); border: 1px solid rgba(238,244,249,0.4); }
.cta-ghost:hover { background: rgba(238,244,249,0.08); border-color: var(--cyan); color: var(--cyan); }
.hero-stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-top: 32px; border-top: 1px solid rgba(238,244,249,0.2); max-width: 760px; }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { color: var(--cyan); font-weight: 700; font-size: 20px; }
.hero-stats span { font-size: 12px; color: rgba(238,244,249,0.6); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; }

.section-head { max-width: 800px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 0.30em; font-size: 11px; color: var(--cyan); margin: 0 0 16px; font-weight: 700; }
.section-title { font-family: var(--sans); font-weight: 700; font-size: clamp(30px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--text); }
.section-blurb { font-size: 17px; color: var(--text-2); margin: 0; line-height: 1.55; }

.services { padding: clamp(72px, 9vw, 120px) 28px; max-width: var(--container); margin: 0 auto; }
.cap-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cap { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); transition: border-color .2s, transform .2s, box-shadow .2s; }
.cap:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 58, 94, 0.10); background: white; }
.cap h3 { font-weight: 700; font-size: 19px; margin: 0 0 12px; color: var(--navy); letter-spacing: -0.01em; }
.cap p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.6; }

.products { padding: clamp(72px, 9vw, 120px) 28px; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-grid { max-width: var(--container); margin: 0 auto; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.product { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s, transform .2s; }
.product:hover { border-color: var(--cyan); transform: translateY(-3px); }
.product figure { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: var(--pearl); }
.product img { width: 100%; height: 100%; object-fit: cover; }
.product div { padding: 24px; }
.product h3 { font-weight: 700; font-size: 19px; margin: 0 0 10px; color: var(--navy); letter-spacing: -0.01em; }
.product p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.6; }

.case { padding: clamp(72px, 9vw, 120px) 28px; max-width: var(--container); margin: 0 auto; }
.case-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.case-card { display: flex; flex-direction: column; background: var(--bg-soft); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(10, 58, 94, 0.10); }
.case-card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; background: var(--pearl); }
.case-card img { width: 100%; height: 100%; object-fit: cover; }
.case-card p { padding: 0 24px; color: var(--text-2); font-size: 14px; margin: 0 0 24px; line-height: 1.6; }
.case-name { padding: 24px 24px 8px !important; font-weight: 700; font-size: 19px; color: var(--navy); margin: 0 !important; }

.locations { padding: clamp(72px, 9vw, 120px) 28px; background: var(--navy); color: var(--text-on-dark); }
.locations .section-eyebrow { color: var(--cyan); }
.locations .section-title { color: var(--text-on-dark); }
.locations .section-blurb { color: rgba(238,244,249,0.82); }
.loc-grid { max-width: var(--container); margin: 0 auto; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.loc { padding: 32px 28px; background: var(--bg-darker); border: 1px solid rgba(238,244,249,0.15); border-radius: var(--r-lg); transition: border-color .2s, transform .2s; }
.loc:hover { border-color: var(--cyan); transform: translateY(-3px); }
.loc-eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: 0.24em; font-size: 11px; margin: 0 0 12px; font-weight: 700; }
.loc h3 { font-weight: 600; font-size: 22px; margin: 0 0 16px; color: var(--text-on-dark); letter-spacing: -0.01em; }
.loc-phone { margin: 0 0 6px; font-size: 17px; }
.loc-phone a { color: var(--cyan); border-bottom: 1px solid var(--cyan); padding-bottom: 1px; }
.loc-email { margin: 0; font-size: 14px; }
.loc-email a { color: rgba(238,244,249,0.85); border-bottom: 1px dashed rgba(238,244,249,0.4); }

.contact-strip { padding: clamp(72px, 9vw, 120px) 28px; background: var(--bg-soft); text-align: center; }
.contact-strip-inner { max-width: 760px; margin: 0 auto; }
.contact-strip-title { font-family: var(--sans); font-weight: 700; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 16px 0 18px; color: var(--text); }
.contact-strip-blurb { font-size: 17px; color: var(--text-2); margin: 0 0 32px; }
.contact-strip-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-strip .cta-ghost { color: var(--navy); border-color: var(--navy); }
.contact-strip .cta-ghost:hover { background: var(--navy); color: white; border-color: var(--navy); }

.footer { padding: 56px 28px 24px; background: var(--bg-darker); color: var(--text-on-dark); }
.footer-grid { max-width: var(--container); margin: 0 auto; display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand-mark { width: 44px; height: 44px; background: var(--cyan); color: var(--navy); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; margin: 0 0 12px; }
.footer-name { font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--text-on-dark); }
.footer-blurb { font-size: 14px; color: rgba(238,244,249,0.65); margin: 0; line-height: 1.55; }
.footer-eyebrow { text-transform: uppercase; letter-spacing: 0.26em; font-size: 11px; color: var(--cyan); margin: 0 0 14px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col li, .footer-col a { color: rgba(238,244,249,0.78); transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-base { max-width: var(--container); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(238,244,249,0.15); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(238,244,249,0.55); }
.footer-fineprint a { color: var(--cyan); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 700px) {
  .topbar { padding: 12px 18px; gap: 12px; }
  .hero-inner { padding: 56px 18px 40px; }
  .services, .products, .case, .locations, .contact-strip, .footer { padding-left: 18px; padding-right: 18px; }
  .footer-base { flex-direction: column; gap: 10px; }
}

/* Fix: hidden attribute must override display:flex */
.mobile-menu[hidden] { display: none !important; }
