/* ===========================================================
   Fleetscaler 360 — Site Stylesheet
   Sections:
     1. Variables & Resets
     2. Buttons
     3. Header & Navigation
     4. Hero
     5. Stats Bar
     6. Products
     7. Team / About
     8. Footer
     9. Toast / Alerts (shared JS component)
    10. Contact Page
    11. Product Modal
    12. Page Header (sub-pages)
    13. Responsive
   =========================================================== */

:root {
  --navy: #0E1B33;
  --blue-deep: #10204A;
  --blue-primary: #1456D6;
  --blue-bright: #2F6FEF;
  --blue-light: #3B8BFF;
  --blue-pale: #EAF1FF;
  --blue-pale-2: #DCE9FF;
  --blue-border: #C9D8F2;
  --ink: #0F1B33;
  --ink-soft: #4B5A78;
  --grey-bg: #F7F9FC;
  --white: #FFFFFF;
  --footer-bg: #00194c;
  --footer-text: #AFC2E8;
  --radius-card: 14px;
  --shadow-card: 0 4px 18px rgba(15, 33, 77, 0.06);
  --container-width: 1180px;
  --success: #1AA260;
  --error: #D6395B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

button { font-family: inherit; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

p { margin: 0; }

:focus-visible {
  outline: 2.5px solid var(--blue-bright);
  outline-offset: 2px;
}

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--blue-primary);
  color: #fff;
}
.btn-primary:hover { background: #0F46B8; }

.btn-outline {
  background: #fff;
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}
.btn-outline:hover { background: var(--blue-pale); }

.btn-primary-sm,
.btn-outline-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
  border-radius: 7px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-sm {
  border: 1.4px solid var(--blue-primary);
  color: var(--blue-primary);
  background: #fff;
}
.btn-outline-sm:hover { background: var(--blue-pale); }

.btn-primary-sm {
  background: var(--blue-primary);
  color: #fff;
}
.btn-primary-sm:hover { background: #0F46B8; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn .spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.85; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== HEADER ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #EDF1F9;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 5px;
  padding-bottom: 5px;
}

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

.logo-img {
  height: 71px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
}

.main-nav a { padding: 4px 0; position: relative; background: none; border: none; cursor: pointer; font-size: inherit; color: inherit; font-weight: inherit; }
.main-nav a:hover { color: var(--blue-primary); }
.main-nav a.active {
  color: var(--blue-primary);
  font-weight: 600;
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -16px;
  height: 2px;
  background: var(--blue-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.4);
  z-index: 90;
}

.mobile-actions { display: none; }

body.nav-locked { overflow: hidden; }

/* ===================== HERO ===================== */

.hero {
  background: linear-gradient(180deg, #F4F8FF 0%, #FFFFFF 100%);
  padding: 20px 0 20px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: #0F1B33;
}

.hero h1 .accent { color: var(--blue-primary); }

.hero-desc {
  margin-top: 18px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-features {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 38px 0 0;
  padding: 0;
  flex-wrap: wrap;
}

.hero-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.3;
  max-width: 70px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art { position: relative; }
.hero-illustration { width: 100%; height: auto; }

/* ===================== STATS BAR ===================== */

.stats-bar {
  background: linear-gradient(90deg, #0E2B82 0%, #1456D6 100%);
  border-radius: 18px;
  margin: 0 auto -54px;
  max-width: var(--container-width);
  position: relative;
  z-index: 5;
  box-shadow: 0 18px 40px rgba(20, 60, 160, 0.22);
}

.stats-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 26px 36px;
  gap: 20px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.stat-text strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-text small {
  font-size: 0.76rem;
  color: #C9DBFF;
}

/* ===================== PRODUCTS ===================== */

.products-section {
  background: var(--grey-bg);
  padding: 72px 0 10px;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 46px;
}

.eyebrow {
  display: inline-block;
  background: var(--blue-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card .tag {
  align-self: flex-start;
  background: var(--blue-pale);
  color: var(--blue-primary);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.product-art {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.product-art img { width: 100%; height: auto; display: block; }

.product-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex-grow: 1;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.learn-more svg { transition: transform 0.15s ease; }
.learn-more:hover svg { transform: translateX(3px); }

/* feature panel spanning remaining grid space */
.feature-panel {
  grid-column: span 3;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 26px 30px;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-panel-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-item strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-item small {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ===================== TEAM / ABOUT ===================== */

.team-section { text-align: center; }
.team-desc { color: var(--ink-soft); margin-top: 10px; font-size: 0.96rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.team-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.team-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
}

.team-card h3 { margin-top: 18px; font-size: 1.18rem; }
.team-card p { color: #64748B; margin-top: 4px; }

/* ===================== FOOTER ===================== */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 50px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #93A6CF;
  max-width: 320px;
}

.footer-logo-spacing { margin-bottom: 18px; }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.18s ease;
}
.social-row a:hover { background: var(--blue-primary); }

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.86rem;
}

.footer-col a { color: #AFC2E8; cursor: pointer; }
.footer-col a:hover { color: #fff; }

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #AFC2E8;
  line-height: 1.5;
}

.footer-contact a { color: #AFC2E8; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #7E91BD;
}

/* ===================== TOAST ===================== */

.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(340px, calc(100vw - 32px));
}

.toast {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 33, 77, 0.18);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  border-left: 4px solid var(--blue-primary);
  animation: toast-in 0.25s ease;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }

.toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0 0 6px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.leaving { animation: toast-out 0.2s ease forwards; }
@keyframes toast-out {
  to { opacity: 0; transform: translateX(20px); }
}

/* ===================== PAGE HEADER (sub-pages) ===================== */

.page-header {
  background: linear-gradient(120deg, #0E2B82 0%, #1456D6 100%);
  padding: 64px 0 56px;
  color: #fff;
}

.page-header .eyebrow { background: rgba(255,255,255,0.16); }

.page-header h1 {
  color: #fff;
  font-size: 2.1rem;
  margin-top: 14px;
}

.page-header p {
  color: #CBDCFF;
  margin-top: 12px;
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #AFC8FF;
}
.breadcrumb a { color: #AFC8FF; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.6; }
.breadcrumb .current { color: #fff; font-weight: 600; }

/* ===================== CONTACT PAGE ===================== */

.contact-section {
  padding: 70px 0 100px;
  background: var(--grey-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  background: linear-gradient(165deg, #0E1B33 0%, #10204A 100%);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  color: #fff;
}

.contact-info-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.contact-info-card > p {
  color: #AEC0E8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
  color: #fff;
}

.contact-info-item span,
.contact-info-item a {
  font-size: 0.86rem;
  color: #AEC0E8;
  line-height: 1.5;
}
.contact-info-item a:hover { color: #fff; }

.contact-info-card .social-row { margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px; }

.contact-hours {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.86rem;
  color: #AEC0E8;
  display: flex;
  justify-content: space-between;
}
.contact-hours strong { color: #fff; }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 38px 36px;
}

.contact-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.contact-form-card .form-intro {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

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

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.form-group label .req { color: var(--error); font-weight: 700; }
.form-group label .optional { font-weight: 400; color: var(--ink-soft); font-size: 0.78rem; }

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--blue-border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px var(--blue-pale);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 9l7 7 7-7' stroke='%234B5A78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-group.has-error .form-control {
  border-color: var(--error);
}
.form-group.has-error .form-control:focus {
  box-shadow: 0 0 0 3px rgba(214, 57, 91, 0.12);
}

.field-error {
  display: none;
  color: var(--error);
  font-size: 0.78rem;
  margin-top: 6px;
}
.form-group.has-error .field-error { display: block; }

.field-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.char-count {
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-align: right;
  margin-top: 5px;
}

.form-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--ink-soft);
  max-width: 320px;
  line-height: 1.5;
}

.submit-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.submit-success.show { display: block; }
.contact-form-card form.hidden { display: none; }

.submit-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E8F8EF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.submit-success h3 { margin-bottom: 8px; }
.submit-success p { color: var(--ink-soft); font-size: 0.92rem; max-width: 380px; margin: 0 auto; line-height: 1.6; }
.submit-success .ref-id { margin-top: 14px; font-size: 0.82rem; color: var(--ink-soft); }
.submit-success .ref-id strong { color: var(--blue-primary); }

.submit-success .btn { margin-top: 22px; }

/* FAQ-style strip under the form */
.contact-map-strip {
  margin-top: 28px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-map-strip .map-info { display: flex; align-items: center; gap: 14px; }
.contact-map-strip .map-info strong { display: block; font-size: 0.95rem; }
.contact-map-strip .map-info span { font-size: 0.84rem; color: var(--ink-soft); }

/* ===================== PRODUCT MODAL ===================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.product-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 70px rgba(10, 20, 40, 0.35);
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grey-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink-soft);
  z-index: 2;
}
.modal-close:hover { background: var(--blue-pale); color: var(--blue-primary); }

.modal-art {
  background: var(--grey-bg);
  padding: 30px 30px 10px;
  border-radius: 16px 16px 0 0;
}
.modal-art img { width: 100%; max-height: 220px; object-fit: contain; margin: 0 auto; }

.modal-body { padding: 26px 30px 32px; }
.modal-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.modal-body p.modal-desc { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; margin-bottom: 18px; }

.modal-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink);
}
.modal-feature-list svg { flex-shrink: 0; margin-top: 2px; }

.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

body.modal-locked { overflow: hidden; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */

/* ---------- Large tablet / small laptop (≤1080px) ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 20px; font-size: 0.88rem; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-panel { grid-column: span 2; grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Tablet / iPad portrait (≤900px) ---------- */
@media (max-width: 900px) {
  /* hide the inline desktop nav + actions, show hamburger */
  .main-nav { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: flex; }

  /* slide-in mobile nav panel */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: #fff;
    padding: 84px 28px 28px;
    box-shadow: -12px 0 32px rgba(15, 33, 77, 0.14);
    z-index: 100;
    font-size: 1rem;
    overflow-y: auto;
  }

  .main-nav.open a {
    padding: 14px 0;
    border-bottom: 1px solid #EDF1F9;
  }

  .main-nav.open a.active::after { display: none; }

  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .mobile-actions .btn { width: 100%; justify-content: center; }

  body.nav-locked .nav-backdrop { display: block; }

  /* hero */
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 70px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-art { order: -1; max-width: 480px; margin: 0 auto 8px; }

  .stats-inner { justify-content: center; }
  .stat { width: 45%; min-width: 200px; justify-content: center; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Mobile (≤640px) ---------- */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .logo-img { height: 34px; }

  /* products */
  .products-section { padding: 90px 0 50px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }

  .feature-panel {
    grid-column: span 1;
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
  }

  /* footer */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: span 1; }

  /* hero feature strip */
  .hero-features { gap: 14px; justify-content: center; }
  .hero-features li { max-width: 84px; }

  /* stats bar: one per row, evenly aligned */
  .stats-bar { border-radius: 14px; margin-bottom: -40px; }
  .stats-inner { padding: 20px; gap: 16px; }
  .stat { width: 100%; min-width: 0; justify-content: flex-start; }

  .team-section { padding: 50px 0; }
  .team-grid { grid-template-columns: 1fr; gap: 20px; }

  .contact-section { padding: 50px 0 70px; }
  .contact-form-card { padding: 28px 22px; }
  .contact-info-card { padding: 28px 22px; }

  .page-header { padding: 48px 0 42px; }
  .page-header h1 { font-size: 1.7rem; }

  .contact-map-strip { flex-direction: column; align-items: flex-start; }

  .toast-stack { left: 16px; right: 16px; width: auto; top: 14px; }
}

/* ---------- Small phones (≤480px) ---------- */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .hero-desc { font-size: 0.94rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .section-head h2 { font-size: 1.5rem; }

  .main-nav.open { width: 86vw; padding: 76px 22px 24px; }

  .form-footer-row { flex-direction: column; align-items: stretch; }
  .form-footer-row .btn { width: 100%; justify-content: center; }

  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
