/* =============================================================================
   IEPBA Corporate Styling
   Color Palette: Navy (#1E3A8A), Charcoal (#333333), Soft Gray (#F8FAFC), Accent Emerald (#50C878)
   Typography: Montserrat (headings), Open Sans (body)
   ============================================================================= */

/* CSS Custom Properties */
:root {
  --primary-navy: #1e3a8a;
  --primary-charcoal: #333333;
  --primary-soft-gray: #f8fafc;
  --accent-emerald: #50c878;
  --text-dark: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --background-light: #ffffff;
  --background-section: #f8fafc;
  --border-light: #e5e7eb;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-heavy: rgba(0, 0, 0, 0.25);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  margin: 0;
  padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

a {
  color: var(--accent-emerald);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-navy);
}

/* Layout */
.main-content {
  padding-top: 80px; /* Account for fixed header */
  min-height: calc(100vh - 80px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Navigation */
.site-header {
  background-color: var(--primary-navy);
  box-shadow: 0 2px 10px var(--shadow-medium);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  background-color: var(--primary-navy) !important;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--accent-emerald) !important;
  transform: scale(1.05);
}

.textual-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.logo-main {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, white 0%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.logo-tagline {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
  margin-top: -2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.navbar-brand:hover .logo-main {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, white 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(80, 200, 120, 0.3);
}

.navbar-brand:hover .logo-tagline {
  color: var(--accent-emerald);
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-emerald) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-emerald);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

.dropdown-menu {
  background-color: var(--background-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow-light);
  margin-top: 0.5rem;
}

.dropdown-item {
  color: var(--text-dark);
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-soft-gray);
  color: var(--accent-emerald);
}

/* Footer */
.site-footer {
  background-color: var(--primary-charcoal);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-section h5 {
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section h6 {
  color: var(--accent-emerald);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: #cccccc;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-navy);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent-emerald);
  color: white;
  transform: translateY(-2px);
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #cccccc;
}

.contact-info i {
  margin-right: 0.5rem;
  color: var(--accent-emerald);
  width: 16px;
}

.contact-info a {
  color: #cccccc;
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--accent-emerald);
}

.footer-bottom {
  border-top: 1px solid #555555;
  padding-top: 2rem;
  margin-top: 2rem;
  color: white !important;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: white !important;
}

.site-credit {
  font-size: 0.875rem;
  color: white;
  margin-bottom: 0;
}

.credit-link {
  color: var(--accent-emerald);
  text-decoration: none;
  transition: color 0.3s ease;
}

.credit-link:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer-bottom .row > div {
    margin-bottom: 0.5rem;
  }

  .footer-bottom .row > div:last-child {
    margin-bottom: 0;
  }
}

/* Buttons */
.btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: white;
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.btn-outline-primary:hover {
  background-color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-secondary {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: white;
}

.btn-secondary:hover {
  background-color: transparent;
  border-color: var(--primary-navy);
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-light);
}

/* Cards */
.card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--shadow-light);
  transition: all 0.3s ease;
  background-color: white;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.card-header {
  background-color: var(--primary-soft-gray);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem;
  border-radius: 12px 12px 0 0;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--primary-navy);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--background-section);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-navy) 0%,
    var(--primary-charcoal) 100%
  );
  color: white;
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Form Styles */
.form-control {
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 0.2rem rgba(80, 200, 120, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Utilities */
.text-accent {
  color: var(--accent-emerald);
}

.text-navy {
  color: var(--primary-navy);
}

.bg-soft-gray {
  background-color: var(--primary-soft-gray);
}

.border-accent {
  border-color: var(--accent-emerald);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 0.625rem 1.5rem;
  }

  .logo-main {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .logo-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .logo-main {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
  }

  .logo-tagline {
    font-size: 0.5rem;
    letter-spacing: 0.2px;
  }
}
