@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand: #12344D;
  --brand-light: #1B4A6B;
  --alt-brand: #2EA8E6;
  --accent: #EA6A1A;
  --accent-light: #FF8A42;
  --paper: #FAFAF8;
  --paper-dim: #F0EFEA;
  --ink: #16242E;
  --ink-soft: #4A5A66;
  --line: rgba(18, 52, 77, 0.12);
  --white: #ffffff;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
.container, .header-inner, .hero-inner, .split > *, .cta-band, .cat-card, .contact-info-card, .contact-form-card { min-width: 0; }
p, h1, h2, h3, h4, a, span, li, address { overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.site-shell { width: 100%; max-width: 100%; overflow-x: clip; }
body.nav-open { overflow: hidden; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand);
}

/* ===== Molecule decoration ===== */
.molecule-dot {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--alt-brand);
  opacity: 0.35;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link img { height: 52px; width: auto; }

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand);
  line-height: 1.15;
}

.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

nav.main-nav a:hover { color: var(--brand); background: var(--paper-dim); }
nav.main-nav a.active { color: var(--brand); font-weight: 600; }

.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: min(260px, calc(100vw - 40px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(18, 52, 77, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 0.87rem;
  border-radius: 6px;
  color: var(--ink-soft);
}

.dropdown a:hover { background: var(--paper-dim); color: var(--brand); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand);
  margin: 5px 0;
  transition: 0.25s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(234, 106, 26, 0.28);
}

.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--line);
}

.btn-outline:hover { border-color: var(--brand); background: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--brand);
}
.btn-light:hover { transform: translateY(-2px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--brand) 0%, #0C2436 100%);
  color: var(--white);
  overflow: clip;
  padding: 96px 0 104px;
}

.hero-modern {
  min-height: calc(100vh - 81px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: 54px;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
}

.hero-note {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 12px 34px rgba(0,0,0,0.18);
}

.note-one { left: -18px; top: 18%; }
.note-two { right: -10px; top: 44%; }
.note-three { left: 12%; bottom: -16px; }

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: min(480px, 80vw);
  height: min(480px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 168, 230, 0.25), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--alt-brand);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--alt-brand);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.45rem, 5vw, 4.6rem);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--alt-brand);
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-flask {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(280px, 24vw);
  opacity: 0.9;
  z-index: 1;
}

/* ===== Stats strip ===== */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ===== Section generic ===== */
section { padding: 96px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.18;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.bg-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-brand { background: var(--brand); color: var(--white); }
.bg-brand .section-head h2 { color: var(--white); }
.bg-brand .section-head p { color: rgba(255,255,255,0.72); }

/* ===== Category cards (homepage) ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(18, 52, 77, 0.1);
  border-color: var(--alt-brand);
}

.cat-card .cat-index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--alt-brand);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  display: block;
}

.cat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.cat-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.cat-card .cat-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-card .cat-link svg { transition: transform 0.2s ease; }
.cat-card:hover .cat-link svg { transform: translateX(4px); }

.cat-card .subcount {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--paper-dim);
  z-index: 0;
}

/* ===== About teaser / split ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-media {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
  padding-bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.split-media img { width: 70%; }

.timeline-badge {
  position: absolute;
  bottom: -18px;
  left: 32px;
  background: var(--accent);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 24px rgba(234, 106, 26, 0.3);
  z-index: 2;
}

.split h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 18px; }
.split p { color: var(--ink-soft); margin-bottom: 16px; }

.value-list { margin-top: 28px; display: grid; gap: 14px; }
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--ink);
}
.value-list .dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(46, 168, 230, 0.14);
  color: var(--alt-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ===== References / logos ===== */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.ref-item {
  background: var(--white);
  padding: 36px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
}

.ref-item img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.25s ease;
}

.ref-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.04);
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--brand), #0C2436);
  color: var(--white);
  border-radius: 8px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,106,26,0.22), transparent 70%);
  right: -60px;
  bottom: -100px;
}

.cta-band h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.7); }
.cta-text { position: relative; z-index: 1; max-width: 460px; }
.cta-actions { position: relative; z-index: 1; }

/* ===== Footer ===== */
footer {
  background: #0C2436;
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; color: rgba(255,255,255,0.55); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--alt-brand); }

.footer-col address { font-style: normal; font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(165deg, var(--brand) 0%, #0C2436 100%);
  color: var(--white);
  padding: 70px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 168, 230, 0.2), transparent 70%);
}

.breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a:hover { color: var(--alt-brand); }

.page-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  max-width: 680px;
}

.page-hero p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-top: 14px;
  font-size: 1.02rem;
}

/* ===== Products listing ===== */
.product-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.subcat-list {
  display: grid;
  gap: 14px;
}

.subcat-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.subcat-item:hover { border-color: var(--alt-brand); transform: translateX(4px); }

.subcat-item .num {
  font-family: var(--font-display);
  color: var(--alt-brand);
  font-weight: 600;
  font-size: 0.85rem;
  margin-right: 16px;
}

.subcat-item-main { display: flex; align-items: center; flex: 1; }

.subcat-item h4 { font-size: 1.02rem; color: var(--ink); font-weight: 600; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
}

.contact-info-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-row:last-child { border-bottom: none; }

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(46, 168, 230, 0.12);
  color: var(--alt-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-row h4 { font-size: 0.86rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 4px; }
.contact-info-row p, .contact-info-row a { font-size: 0.96rem; color: var(--ink); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }

.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group label { font-size: 0.86rem; font-weight: 600; color: var(--brand); }

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--alt-brand);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.alert {
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.alert-success { background: rgba(46, 168, 230, 0.1); color: var(--brand); border: 1px solid rgba(46,168,230,0.3); }
.alert-error { background: rgba(234, 106, 26, 0.1); color: #9a3f0e; border: 1px solid rgba(234,106,26,0.3); }

.map-embed {
  margin-top: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===== About page extras ===== */
.founder-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}
.founder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.founder-card h4 { font-size: 1.05rem; margin-bottom: 3px; }
.founder-card span { font-size: 0.86rem; color: var(--ink-soft); }

.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.vision-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}
.vision-card .icon-box {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(234,106,26,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.vision-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.vision-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .cat-grid, .product-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { padding: 12px 20px; }
  .logo-link { max-width: calc(100% - 52px); }
  .logo-link img { height: 44px; }
  .logo-text { font-size: 0.94rem; }
  .logo-sub { font-size: 0.6rem; }
  .nav-toggle { display: flex !important; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
  nav.main-nav {
    display: none;
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  nav.main-nav.open { display: flex !important; }
  nav.main-nav a { padding: 14px 16px; font-size: 1rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }
  .header-actions .btn span { display: none; }

  .container { padding: 0 18px; }
  section { padding: 64px 0; }
  .hero { padding: 54px 0 66px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(2.08rem, 10.5vw, 3rem); }
  .hero-visual img { aspect-ratio: 1.08 / 1; }
  .hero-note { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 220px; justify-content: center; }
  .hero-flask { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .product-cat-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 22px; flex-direction: column; text-align: center; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .split-media { padding: 32px 24px; padding-bottom: 60px; overflow: visible; }
  .timeline-badge { left: 20px; right: 20px; text-align: center; bottom: -16px; }
  .subcat-item { align-items: flex-start; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--alt-brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: none; }
  .cat-card { padding: 26px 22px; }
  .contact-form-card, .contact-info-card { padding: 26px 20px; }
  .ref-grid { grid-template-columns: 1fr; }
}


/* ===== Scroll-changing homepage visual ===== */
.scroll-showcase {
  background: #0C2436;
  color: var(--white);
  overflow: clip;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 58px;
  align-items: start;
}

.showcase-copy {
  min-width: 0;
}

.showcase-copy h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.showcase-copy > p {
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin-bottom: 28px;
}

.showcase-steps {
  display: grid;
  gap: 14px;
}

.showcase-step {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255,255,255,0.06);
  cursor: default;
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.showcase-step.active {
  background: rgba(46,168,230,0.18);
  border-color: rgba(46,168,230,0.5);
  transform: translateX(6px);
}

.showcase-step span {
  display: block;
  color: var(--accent-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.showcase-step h3 {
  color: var(--white);
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.showcase-step p {
  color: rgba(255,255,255,0.68);
  font-size: 0.94rem;
}

.showcase-visual {
  position: sticky;
  top: 112px;
  min-width: 0;
  aspect-ratio: 1.08 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 90px rgba(0,0,0,0.28);
  background: #082033;
}

.showcase-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s ease, transform 0.65s ease;
}

.showcase-visual img.active {
  opacity: 1;
  transform: scale(1);
}

.visual-panel {
  overflow: hidden;
  padding: 0;
  background: #0C2436;
}

.visual-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .hero-grid, .showcase-grid { grid-template-columns: 1fr; }
  .showcase-visual { position: relative; top: auto; order: -1; }
}

@media (max-width: 760px) {
  html, body { overflow-x: clip; max-width: 100%; }
  .showcase-step.active { transform: none; }
  .showcase-visual { aspect-ratio: 1 / 0.78; }
  .visual-panel img { min-height: 260px; }
}
