/* ==========================================
   PiCaSSo Global Styles
   ========================================== */

/* CSS Variables */
:root {
  --primary-color: #171fb2;
  --secondary-color: #191f8f;
  --accent-color: #2935d9;
  --dark-text: #2c3e50;
  --light-text: #545b61;
  --bg-light: #f1f3f5ef;
  --bg-white: #ffffff;
  --border-color: #e9ecef;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --footer-bg: #d3daeb;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--bg-white);
  overflow-x: hidden;
  padding-top: 90px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-text);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Bar */
.navbar {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: var(--transition);
  background: white;
  padding: 1.5rem 0;
}

.navbar-brand img {
  margin: -10px 0 0 -25px;
}

.nav-link {
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  margin: 0 0.5rem;
  color: var(--dark-text);
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(21, 31, 178, 0.25);
}

.navbar-collapse {
  background: var(--bg-white);
}

/* Footer */
footer.footer-primary {
  background: var(--footer-bg) !important;
  color: var(--dark-text) !important;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-contact {
  flex: 1;
  text-align: left;
}

.footer-contact-text {
  font-size: 1rem;
  color: var(--dark-text) !important;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.footer-contact-text svg {
  color: var(--dark-text) !important;
}

.footer-contact-text .link-body-emphasis {
  color: var(--dark-text) !important;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.footer-contact-text .link-body-emphasis:hover,
footer a:hover {
  color: var(--dark-text) !important;
  text-decoration: underline;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-logo-link {
  display: inline-block;
  transition: var(--transition);
}

.footer-logo-link img {
  opacity: 0.9;
  transition: var(--transition);
  object-fit: contain;
}

.footer-logo-link:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-copyright p {
  color: var(--light-text) !important;
  margin-bottom: 0;
}

footer a {
  color: var(--primary-color) !important;
  transition: var(--transition);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-large {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark-text);
  margin-bottom: 0;
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* Responsive Typography */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .container {
    padding: 0 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-contact {
    text-align: center;
  }
  
  .footer-contact-text {
    justify-content: center;
  }
  
  .footer-logos {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.3rem; }
  
  body {
    padding-top: 70px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-contact-text {
    font-size: 0.9rem;
  }
  
  .footer-logos {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-logo-link img {
    width: 110px;
    height: 55px;
  }
  
  .navbar-collapse {
    align-items: flex-start;
  }
}

@media (min-width: 768px) {
  .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-collapse {
    align-items: center;
  }
}