/* ITSO Systems - Global Styles */
/* Version: 1.1 - ITSO Branding Update */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Color Palette */
:root {
  /* Text Colors */
  --text-white: #ffffff;
  --text-dark: #1d1f21;
  --text-secondary: #4b5563;
  --text-muted: #9d9fa2; /* ITSO Brand Gray */

  /* ITSO Brand Colors */
  --itso-red: #ef4136; /* Primary brand color: RGB(239, 65, 54) */
  --itso-red-hover: #d63527; /* Darker red for hover states */
  --itso-gray: #9d9fa2; /* Secondary brand color: RGB(157, 159, 162) */

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fa;
  --bg-card: #ffffff;

  /* Border & Divider */
  --border-color: rgba(157, 159, 162, 0.25);

  /* Spacing */
  --container-max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700; /* Bold */
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
  letter-spacing: 0.5px; /* Slight letter spacing for Bebas Neue */
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--itso-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--itso-red-hover);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

/* Header & Navigation */
header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 1px;
}

.logo:hover {
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
  background-color: var(--itso-red-hover);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Content */
main {
  flex: 1;
  padding: var(--spacing-xl) 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--itso-red) 0%, var(--itso-red-hover) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-white);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-white);
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
}

/* Content Section */
.content-section {
  margin-bottom: var(--spacing-xl);
}

.content-section h2 {
  border-bottom: 2px solid var(--itso-red);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

/* Card Styles */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card h3 {
  color: var(--itso-red);
  margin-bottom: var(--spacing-sm);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--itso-red);
  color: var(--text-white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--itso-red-hover);
  transform: translateY(-1px);
  color: var(--text-white);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--itso-red);
  color: var(--itso-red);
}

.btn-secondary:hover {
  background-color: var(--itso-red);
  color: var(--text-white);
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--itso-red);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--itso-red);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
