/* ============================================
   MIDDLE SIS INC. — Corporate Logistics Site
   Clean, professional, white-dominant
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Bebas+Neue&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --navy: #0d1f3c;
  --navy-mid: #1a3560;
  --blue: #1456cc;
  --blue-light: #e8f0fb;
  --blue-mid: #2563eb;
  --white: #ffffff;
  --off-white: #f8fafd;
  --gray-50: #f3f6fb;
  --gray-100: #e8edf5;
  --gray-300: #c4cdd9;
  --gray-500: #6b7a99;
  --gray-700: #374151;
  --text: #0d1f3c;
  --text-mid: #3d4f6e;
  --text-light: #6b7a99;
  --border: #e2e8f4;
  --shadow-sm: 0 1px 3px rgba(13,31,60,0.08);
  --shadow-md: 0 4px 16px rgba(13,31,60,0.10);
  --shadow-lg: 0 12px 40px rgba(13,31,60,0.13);
  --radius: 3px;
  --max-width: 1200px;
  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.15;
  font-weight: 600;
}

.display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.0;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); }

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text span:first-child {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--navy);
  line-height: 1;
}

.nav-logo-text span:last-child {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-mid);
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy) !important; color: var(--white) !important; }

/* ---- PAGE OFFSET ---- */
.page-content { padding-top: 82px; }

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(135deg, rgba(20,86,204,0.15) 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 60px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7ab0e8;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 78px;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-accent {
  width: 48px;
  height: 3px;
  background: var(--blue);
  margin: 24px 0;
}

.hero p {
  font-size: 17px;
  color: #a8c0dc;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 36px 32px;
  border-radius: 4px;
}

.hero-card-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 20px;
  display: block;
}

.hero-card-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-card-item:last-child { margin-bottom: 0; }

.hero-card-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.hero-card-item p {
  font-size: 14px;
  color: #c0d4ec;
  margin: 0;
  line-height: 1.5;
}

/* ---- CREDENTIALS STRIP ---- */
.creds-strip {
  background: var(--blue);
  padding: 14px 0;
}

.creds-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.creds-strip span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.creds-strip .dot {
  color: rgba(255,255,255,0.4);
}

/* ---- SECTIONS ---- */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- SERVICE CARDS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.service-card {
  background: var(--white);
  padding: 40px 36px;
  transition: var(--transition);
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 36px; right: 36px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover { background: var(--off-white); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--blue);
}

.service-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.service-link:hover { gap: 10px; }

/* ---- SPLIT SECTION ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.split-content {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.split-accent {
  width: 40px;
  height: 3px;
  background: var(--blue);
  margin-bottom: 20px;
}

.split-content p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 14px;
}

.split-visual {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  min-height: 420px;
}

/* ---- CHECKLIST ---- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mid);
}

.checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 2px solid var(--blue);
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
}

.checklist li::after {
  display: none;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-icon svg {
  width: 10px;
  height: 10px;
  color: var(--blue);
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

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

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

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: var(--blue);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ---- CONTACT FORM ---- */
.contact-section {
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info .accent { width: 40px; height: 3px; background: var(--blue); margin: 20px 0 24px; }

.contact-info p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-detail {
  margin-bottom: 20px;
}

.contact-detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
  display: block;
}

.contact-detail p {
  font-size: 14px;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
}

.form-card {
  background: var(--white);
  padding: 48px 44px;
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-md);
}

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

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20,86,204,0.1);
  background: var(--white);
}

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

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.form-submit:hover { background: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---- CTA STRIP ---- */
.cta-strip {
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
}

.cta-strip h2 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 14px;
  font-weight: 700;
}

.cta-strip p {
  font-size: 16px;
  color: #8aaacb;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  padding: 64px 0 0;
  border-top: 3px solid var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px 48px;
}

.footer-brand p {
  font-size: 13px;
  color: #607a9a;
  line-height: 1.7;
  margin: 14px 0 20px;
  max-width: 280px;
}

.footer-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--white);
}

.footer-creds {
  font-size: 11px;
  color: #4a6280;
  letter-spacing: 1px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 13px;
  color: #607a9a;
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--white); }

.footer-address p {
  font-size: 13px;
  color: #607a9a;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #3d5270;
}

/* ---- PAGE HEROES ---- */
.page-hero {
  background: var(--navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 40px,
    rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px
  );
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: var(--white);
  letter-spacing: 0.02em;
  margin: 16px 0 20px;
  line-height: 1.0;
}

.page-hero p {
  font-size: 17px;
  color: #8aaacb;
  max-width: 560px;
  line-height: 1.7;
}

.page-hero-accent {
  width: 40px;
  height: 3px;
  background: var(--blue);
  margin: 20px 0;
}

/* ---- SERVICES PAGE ---- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.service-block-content {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-block-content h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 16px 0 12px;
}

.service-block-content p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 24px;
}

.service-block-visual {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.service-block-icon {
  opacity: 0.15;
  color: var(--white);
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.service-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
}

.service-bullets li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- ABOUT PAGE ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  transition: var(--transition);
}

.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.value-icon {
  width: 44px;
  height: 44px;
  color: var(--blue);
  margin-bottom: 18px;
}

.value-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- FAQ ---- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.faq-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

/* ---- MOBILE ---- */
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); }

@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav-inner { padding: 0 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 80px 32px; }
  .hero-card { display: none; }
  .hero h1 { font-size: 60px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 32px 40px; }
  .stats-grid { padding: 0 32px; }
  .split { grid-template-columns: 1fr; }
  .split-visual { min-height: 280px; }
  .service-block { grid-template-columns: 1fr; }
  .service-block-visual { min-height: 200px; }
  .faq-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 82px; left: 0; right: 0; background: var(--white); padding: 20px 32px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); gap: 20px; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .hero h1 { font-size: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-item { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .split-content { padding: 48px 32px; }
  .service-block-content { padding: 48px 32px; }
  .page-hero h1 { font-size: 44px; }
  .creds-strip-inner { gap: 6px; }
}
