/* ============================================
   Lumar Technologies Group — Modern Static Site
   Static HTML/CSS — no backend required
   ============================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* prevent iOS landscape font zoom */
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;               /* guard against accidental horizontal scroll */
}
button { touch-action: manipulation; }  /* eliminate 300ms tap delay */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', system-ui, sans-serif; color: #0f1b34; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

:root {
  --brand: #2f539a;          /* darker for AA on white at all sizes (was #3a5fa9) */
  --brand-dark: #1b3160;     /* hover / footer heading echo (was #243f75) */
  --brand-light: #eaf0fb;
  --accent: #b7660b;         /* accessible amber for text/icons (was #f5a524 — fails on white) */
  --ink: #0f1b34;
  --muted: #4b5563;          /* AA + AAA on white, was #6b7280 (only 4.83:1) */
  --bg-soft: #f6f8fc;
  --border: #d5ddee;         /* decorative only — interactive borders use --brand */
  --shadow-sm: 0 1px 3px rgba(15,27,52,.08);
  --shadow: 0 10px 30px rgba(15,27,52,.08);
  --radius: 14px;
  --focus-ring: 0 0 0 3px rgba(47,83,154,.45);
}

/* --- Focus visible (WCAG 2.4.7 + 1.4.11 non-text contrast) --- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost:hover { border-color: var(--brand-dark); color: var(--brand); background: var(--brand-light); }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 150px; height: auto; max-width: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 10px 16px; border-radius: 8px;
  color: #1f2937; font-weight: 500;
}
.nav-links a:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav-links a.active { color: var(--brand-dark); background: var(--brand-light); }
.nav-cta { margin-left: 10px; }

.menu-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;   /* a11y-min touch target */
  align-items: center; justify-content: center;
}
.menu-toggle:hover { background: var(--brand-light); }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .25s ease, background .2s ease; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
  transition: transform .25s ease, top .25s ease;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
/* Animated hamburger -> X when menu is open */
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --- Hero --- */
/* Overlay strengthened so white text clears 4.5:1 regardless of photo brightness. */
.hero {
  position: relative;
  padding: 90px 0 110px;
  color: #fff;
  background: linear-gradient(120deg, rgba(10,18,36,.92), rgba(27,49,96,.88)),
              center/cover no-repeat url('../images/hero/hero-home.jpg');
}
.hero-inner { max-width: 760px; }
.hero-eyebrow {
  display: inline-block; padding: 6px 14px;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.75);
  color: #fff;
  border-radius: 999px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: #fff; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero.hero-sub { padding: 70px 0 80px; }
.hero.hero-sub h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

.hero-about   { background: linear-gradient(120deg, rgba(10,18,36,.90), rgba(27,49,96,.82)), center/cover no-repeat url('../images/hero/hero-about.jpg'); }
.hero-services{ background: linear-gradient(120deg, rgba(10,18,36,.90), rgba(27,49,96,.82)), center/cover no-repeat url('../images/hero/hero-services.jpg'); }
.hero-contact { background: linear-gradient(120deg, rgba(10,18,36,.90), rgba(27,49,96,.82)), center/cover no-repeat url('../images/hero/hero-contact.jpg'); }

/* --- Sections --- */
section { padding: 84px 0; }
.section-title { text-align: center; margin-bottom: 14px; }
.section-intro { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 48px; }
.section-alt { background: var(--bg-soft); }

/* --- Feature grid (home services) --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; align-items: center; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d5ec; }
.card .icon {
  width: 56px; height: 56px;
  background: var(--brand-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon img { width: 32px; height: 32px; object-fit: contain; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .93rem; }
.card ul li { margin-bottom: 4px; }

/* --- About split / image+text --- */
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: #f1f4fb;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  display: inline-block; color: var(--brand);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem;
  margin-bottom: 10px;
}
.pillar {
  display: flex; gap: 14px; margin-top: 16px;
}
.pillar-icon {
  flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; color: var(--brand-dark); font-weight: 700;
}
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }

/* --- Stats band --- */
.stats {
  background: linear-gradient(120deg, #16284d, var(--brand-dark));
  color: #fff;
  padding: 54px 0;
}
.stats .grid-3 { gap: 30px; text-align: center; }
.stats .num { font-size: 2.6rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 6px; font-family: 'Poppins', sans-serif; }
.stats .lbl { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; }

/* --- Clients strip --- */
.clients-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: center; margin-top: 30px; }
.clients-strip .logo {
  display: flex; align-items: center; justify-content: center;
  height: 110px; padding: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  filter: grayscale(100%); opacity: .85; transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.clients-strip .logo:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.clients-strip img { max-height: 70px; max-width: 80%; object-fit: contain; }

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(120deg, #16284d, var(--brand-dark));
  color: #fff; text-align: center; padding: 72px 0;
  border-radius: var(--radius);
  margin: 0 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff; max-width: 620px; margin: 0 auto 26px; }

/* --- Services detailed cards --- */
.service-detail { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.service-detail + .service-detail { margin-top: 20px; }
.service-detail .head { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.service-detail .head .icon { width: 48px; height: 48px; background: var(--brand-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.service-detail .head .icon img { width: 28px; height: 28px; object-fit: contain; }
.service-detail h3 { margin: 0; }
.service-detail ul { padding-left: 20px; color: #1f2937; }
.service-detail ul li { margin-bottom: 6px; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.contact-row .ico {
  flex: 0 0 44px; height: 44px; border-radius: 10px;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.contact-row .label { font-size: .78rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.contact-row a, .contact-row span { color: var(--ink); font-weight: 500; }
.contact-map {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3; background: #f1f4fb;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Testimonial --- */
.testimonial {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
  max-width: 760px; margin: 0 auto; text-align: center;
}
.testimonial p.quote { font-size: 1.15rem; font-style: italic; color: var(--ink); }
.testimonial .author { color: var(--muted); font-size: .9rem; }

/* --- Footer --- */
.site-footer {
  background: #0f1b34; color: #e4eaf6;
  padding: 60px 0 24px; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #e4eaf6; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 8px; font-size: .95rem; }
.footer-brand img { width: 250px; max-width: 100%; height: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; color: #e4eaf6; max-width: 320px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.25);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: #e4eaf6;
}

/* ============================================
   Responsive
   Breakpoint ladder:
     >1024px : desktop (default)
     1024px  : large tablet landscape — tighten nav
      900px  : tablet portrait — 2-column grids
      768px  : switch to mobile nav (hamburger)
      560px  : small phones — full-width CTAs, tighter pads
      380px  : very narrow — abbreviated brand
   ============================================ */

/* Tablet landscape — tighten nav spacing, keep desktop layout */
@media (max-width: 1024px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 10px 12px; font-size: .95rem; }
  .brand img { width: 130px; }
  .brand-name { font-size: 1rem; }
  section { padding: 72px 0; }
  .hero { padding: 80px 0 96px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .clients-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .split-img { aspect-ratio: 16/10; max-height: 420px; }
  .contact-map { aspect-ratio: 16/10; }
  .cta-band { padding: 60px 24px; margin: 0; }   /* was margin: 0 24px — caused crowding */
}

/* Mobile + small-tablet: switch nav to hamburger
   Raised from 768 -> 900 so iPad-portrait and smaller tablets get a
   roomier hamburger layout instead of a crammed inline nav. */
@media (max-width: 900px) {
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: flex;                                /* always flex; slide in/out */
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: 10px 16px 16px;
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: max-height .28s ease, opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav-links.open {
    max-height: 80vh; opacity: 1; visibility: visible;
    transform: translateY(0);
    transition: max-height .28s ease, opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
  }
  .nav-links a { padding: 14px 14px; border-radius: 10px; font-size: 1rem; }
  .brand img { width: 110px; }
  .brand-name { font-size: .98rem; }
  .brand-tag  { font-size: .68rem; }
}

/* Small phones */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 72px; }
  .hero.hero-sub { padding: 52px 0 60px; }
  .hero p.lead { font-size: 1.02rem; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; text-align: center; }    /* full-width buttons */

  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .clients-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .clients-strip .logo { height: 90px; padding: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .card { padding: 24px 20px; }
  .service-detail { padding: 24px 20px; }
  .service-detail .head { gap: 14px; }
  .contact-card { padding: 24px 20px; }
  .contact-row { margin-bottom: 16px; }
  .testimonial { padding: 28px 22px; }
  .testimonial p.quote { font-size: 1.02rem; }

  .cta-band { padding: 48px 20px; border-radius: 12px; }
  .cta-band .btn { width: 100%; }

  .stats { padding: 40px 0; }
  .stats .grid-3 { gap: 24px; }
  .stats .num { font-size: 2rem; }
  .stats .lbl { font-size: .85rem; }

  .split-img, .contact-map { aspect-ratio: 4/3; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Very narrow phones — drop the tagline to keep the header clean */
@media (max-width: 380px) {
  .brand-tag { display: none; }
  .brand-name { font-size: .92rem; }
  .brand img { width: 90px; }
  .hero-eyebrow { font-size: .72rem; padding: 5px 10px; }
}

/* Landscape phones — avoid tall hero eating the screen */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 40px 0 48px; }
  .hero.hero-sub { padding: 32px 0 40px; }
}
