/* ============================================
   PROMED MEDICAL LOGISTICS — Design System
   ============================================ */

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

:root {
  /* Brand colors */
  --navy: #0a2540;
  --navy-light: #163a5f;
  --navy-dark: #061829;
  --red: #c8102e;
  --red-dark: #a00d24;
  --teal: #2d7a8c;
  --teal-light: #4a9fb3;
  --gold: #d4a017;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f7f9fb;
  --gray-50: #f3f5f8;
  --gray-100: #e5e9ef;
  --gray-200: #cdd4de;
  --gray-400: #8a95a5;
  --gray-600: #4a5568;
  --gray-800: #1e2733;
  --black: #0a0e14;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.1);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.15);
  --shadow-xl: 0 30px 80px rgba(10, 37, 64, 0.2);

  /* Typography */
  --font-display: 'Inter', -apple-system, sans-serif;
  --font-body: 'Manrope', -apple-system, sans-serif;

  /* Layout */
  --container: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; }
h4 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 700; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}

/* ============================================
   LAYOUT
   ============================================ */

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

section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  max-width: 720px;
  margin-bottom: 4rem;
}

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

.section-header p {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-top: 1.25rem;
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.2s ease;
}

.btn-arrow:hover {
  gap: 0.85rem;
}

.btn-arrow svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.nav-logo-mark {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--red);
  border-radius: 8px;
  transform: translate(3px, 3px);
  z-index: -1;
}

.nav-logo-mark svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

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

.nav-logo-text .brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-logo-text .sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: color 0.2s;
  position: relative;
}

.nav-menu a:hover {
  color: var(--red);
}

.nav-menu a.active {
  color: var(--navy);
  font-weight: 600;
}

.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--red-dark);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: 0.3s;
}

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

.footer {
  background: var(--navy-dark);
  color: var(--gray-200);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, var(--gold) 33%, var(--gold) 66%, var(--teal) 66%);
}

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

.footer-brand h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--gray-200);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer h5 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer ul a {
  color: var(--gray-200);
  opacity: 0.75;
  font-size: 0.92rem;
  transition: all 0.2s;
}

.footer ul a:hover {
  opacity: 1;
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-bottom a {
  margin-left: 1.5rem;
}

/* ============================================
   UTILITIES
   ============================================ */

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-gray { background: var(--off-white); }

.grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .nav-menu a {
    padding: 1rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  section {
    padding: 3.5rem 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-bottom a {
    margin: 0 0.75rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
