/* Custom Software Solutions - Main Stylesheet */
/* Bootstrap 5 is loaded via CDN in the head template */

/* ==========================================================================
   HTMX Styles
   ========================================================================== */

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-request .htmx-hide-on-request {
  display: none;
}

/* ==========================================================================
   Custom Variables and Brand Colors
   ========================================================================== */

:root {
  /* Brand Colors - Ocom Official Style Guide */
  --primary-color: #1b75bc;        /* Ocom Blue */
  --primary-dark: #145a8f;         /* Darker Blue */
  --primary-light: #2d8fd6;        /* Lighter Blue */
  --secondary-color: #f68e1e;      /* Ocom Orange */
  --accent-color: #1b75bc;         /* Blue Accent */
  --orange-accent: #f68e1e;        /* Orange Accent */
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #06b6d4;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography - Sans Serif */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1.5rem;
  
  /* Border Radius */
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ==========================================================================
   Bootstrap Overrides
   ========================================================================== */

/* Override Bootstrap primary color */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* ==========================================================================
   Global Styles
   ========================================================================== */

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-700);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

/* Enhanced heading styles */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
}

h2::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 20px;
}

h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 16px;
}

h4::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.25rem;
}

h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
  border-radius: 1px;
}

/* Override h5::after for elements with border-0 class */
h5.border-0::after {
  display: none;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Header and Navigation
   ========================================================================== */

.navbar-brand {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Ocom brand name styling - O in orange, com in blue */
.brand-o {
  color: #f68e1e;
  font-weight: 700;
}

.brand-com {
  color: #1b75bc;
  font-weight: 700;
}

.navbar-brand .brand-o,
.navbar-brand .brand-com {
  display: inline;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: var(--white);
  padding: var(--section-padding);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-600);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Cards and Components
   ========================================================================== */

.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-title {
  font-weight: 600;
  color: var(--gray-900);
}

.service-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Buttons and CTAs
   ========================================================================== */

.btn {
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.cta-section {
  background-color: var(--gray-50);
  padding: 4rem 0;
  text-align: center;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-control {
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-300);
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(246, 142, 30, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Timeline (for Process Page)
   ========================================================================== */

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .timeline-marker {
    left: 30px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Ocom brand styling - can be used anywhere */
.ocom-brand {
  font-weight: 700;
}

.ocom-brand .o,
.brand-o {
  color: #f68e1e;
}

.ocom-brand .com,
.brand-com {
  color: #1b75bc;
}

/* For inline text mentions of Ocom */
.ocom-text {
  font-weight: 600;
}

.ocom-text::before {
  content: "O";
  color: #f68e1e;
}

.ocom-text::after {
  content: "com";
  color: #1b75bc;
}

.text-gradient {
  background: linear-gradient(135deg, #ffc107, #ffeb3b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 0 30px rgba(255, 235, 59, 0.3);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.rounded-lg {
  border-radius: var(--border-radius-lg);
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

/* Content area specific heading styles */
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  scroll-margin-top: 100px; /* Account for fixed header */
}

/* Override section title styles for content pages */
.content h2:not(.section-title) {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.content h3:not(.section-title) {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Special styling for section titles in templates */
.section-title {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  text-align: center;
}

.section-title::before {
  display: none !important;
}

/* Statistics section styling */
.stats-card h5,
.statistics h5 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.stats-section .card h5 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

/* Team member cards */
.team-member h5 {
  color: var(--gray-900);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }
  
  h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
  
  h3::before {
    height: 16px;
  }
  
  h4 {
    font-size: 1.125rem;
    padding-left: 14px;
  }
  
  h4::before {
    font-size: 1.25rem;
  }
  
  h5 {
    font-size: 1rem;
  }
  
  h5::after {
    width: 25px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  
  h3 {
    font-size: 1.125rem;
    padding-left: 16px;
  }
  
  h3::before {
    width: 3px;
    height: 14px;
  }
  
  h4 {
    font-size: 1rem;
    padding-left: 12px;
  }
  
  h4::before {
    font-size: 1.125rem;
  }
  
  h5 {
    font-size: 0.9rem;
  }
  
  h5::after {
    width: 20px;
    height: 1.5px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .navbar,
  .footer,
  .btn,
  .cta-section {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}