/* ========================================
   MULTISYS WEBSITE - MASTER STYLESHEET
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary-red: #b32025;
  --dark-red: #8e1b1f;
  --light-gray: #fdfdfd;
  --text-dark: #2a2a2a;
  --text-muted: #666;
  --bg-light: #f7f8fa;
  --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 32px rgba(0,0,0,0.2);
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ---------- Reset & Base Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #ffffff, var(--bg-light));
  color: var(--text-dark);
  line-height: 1.6;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid #ddd;
  background: #fff;
  flex-wrap: wrap;
  gap: 20px;
}

header img {
  height: 90px;
  width: auto;
}

.logo-link img {
  height: 90px;
  width: auto;
  transition: transform 0.2s ease;
}

.logo-link:hover img {
  transform: scale(1.03);
}

.contact-info {
  text-align: right;
  font-size: 0.9em;
  color: var(--text-dark);
  line-height: 1.8;
}

.contact-info a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
nav {
  background: var(--primary-red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 16px;
  cursor: pointer;
}

.mobile-menu-close {
  display: none;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

nav li {
  position: relative;
}

nav a {
  display: block;
  padding: 16px 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

nav li:hover > a,
nav li:focus-within > a {
  background-color: var(--dark-red);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: var(--shadow);
  z-index: 110;
  border-radius: 0 0 8px 8px;
}

.dropdown li a {
  color: var(--text-dark);
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background-color: #f8f9fa;
  color: var(--primary-red);
}

nav li:hover .dropdown,
nav li:focus-within .dropdown {
  display: block;
}

/* ---------- STANDARDIZED HERO SECTION ---------- */
/* ALL PAGES USE THESE EXACT DIMENSIONS */
.hero {
  margin: 30px 0;
  background: var(--bg-light);
}

.hero-box {
  /* Background image set inline per page */
  color: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 60px;
  min-height: 400px;
  height: 600px;
  overflow: hidden;
}

.hero-text-panel {
  background: rgba(0,0,0,0.55);
  border-radius: 12px;
  padding: 40px 45px;
  max-width: 600px;
  border-left: 6px solid var(--primary-red);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.hero-text-panel h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text-panel p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* ---------- Sections & Content ---------- */
.platforms-section,
.content-section {
  margin-bottom: 80px;
}

.platforms-section {
  margin: 50px 0;
  padding: 60px 30px;
  background: linear-gradient(135deg, #e8e9ea, #f1f2f3, #e8e9ea);
  border-radius: 12px;
  border: 2px solid var(--primary-red);
  position: relative;
  overflow: hidden;
}

.platforms-section h2,
.content-section h2 {
  color: var(--primary-red);
  font-size: 2rem;
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---------- Grid Layouts ---------- */
.platforms-grid,
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* ---------- Cards ---------- */
.platform-card,
.capability-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover,
.capability-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Clickable cards */
a.platform-card,
a.capability-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.platform-card:hover,
a.capability-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.platform-card h3,
.capability-card h3 {
  color: var(--primary-red);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Remove link styling inside cards */
.platform-card h3 a,
.capability-card h3 a {
  color: var(--primary-red);
  text-decoration: none;
}

.platform-card p,
.capability-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.platform-card img,
.capability-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ---------- Lists ---------- */
.platform-features,
.capability-list {
  list-style: none;
  padding-left: 0;
}

.platform-features li,
.capability-list li {
  color: var(--text-muted);
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.platform-features li:before,
.capability-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, #f7f8fa 0%, #e8eaf0 100%);
  padding: 60px 40px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
}

.cta-section h3 {
  color: var(--primary-red);
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

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

.btn-primary:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
  background: var(--primary-red);
  color: #fff;
}

/* ---------- Footer ---------- */
footer {
  background: var(--primary-red);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

/* ---------- Page Header (for pages without hero) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  text-align: center;
  padding: 80px 30px 60px;
  margin: 0 0 50px 0;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-header p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary-red);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Team Section ---------- */
.team-section {
  margin: 60px 0;
}

.team-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 200px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.stat-label {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
}

.team-member {
  background: white;
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.member-header {
  margin-bottom: 20px;
}

.member-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 5px;
}

.member-title {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
}

.member-bio {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.member-expertise {
  list-style: none;
  padding-left: 0;
}

.member-expertise li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text-muted);
}

.member-expertise li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
}

/* ---------- Partnership Logos ---------- */
.partnership-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin: 50px 0;
  align-items: center;
}

.partner-logo {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.partner-logo:hover {
  transform: translateY(-5px);
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

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

@media (max-width: 768px) {
  /* Header */
  header {
    flex-direction: column;
    text-align: center;
  }

  /* Navigation */
  .mobile-menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-red);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 60px 0 0 0;
    overflow-y: auto;
  }

  nav ul.mobile-menu-open {
    display: flex;
  }

  .mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    display: block;
  }

  nav li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  nav a {
    padding: 18px 20px;
    font-size: 1.1rem;
  }

  .dropdown {
    position: static;
    min-width: auto;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.mobile-dropdown-open {
    max-height: 300px;
    display: block;
  }

  .dropdown li a {
    color: rgba(255,255,255,0.9);
    padding: 15px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
  }

  .dropdown li:last-child a {
    border-bottom: none;
  }

  .dropdown li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
  }

  .mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .mobile-dropdown-toggle::after {
    content: "▼";
    font-size: 0.8rem;
    margin-right: 20px;
    transition: transform 0.3s ease;
  }

  .mobile-dropdown-toggle.open::after {
    transform: rotate(180deg);
  }

  /* Hero adjustments for mobile */
  .hero-box {
    padding: 60px 30px;
    /*height: 500px;*/
    height: 100%;
    min-height: 350px;
  }

  .hero-text-panel {
    padding: 30px 25px;
  }

  /* Sections */
  .platforms-section {
    padding: 40px 20px;
  }

  /* Cards */
  .platforms-grid,
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .team-stats {
    flex-direction: column;
  }

  /* CTA */
  .cta-section {
    padding: 40px 20px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}
