/* ==========================================================
   Custom Styles — Nexaco
   Warm, friendly dark theme
   Color Palette: #1B3C53 #234C6A #456882 #D2C1B6
   ========================================================== */

:root {
  --primary-dark: #234C6A;
  --primary: #456882;
  --primary-light: #D2C1B6;
  --primary-glow: rgba(210, 193, 182, 0.10);
  --bg: #111e29;
  --bg-warm: #152533;
  --bg-card: #1a2d3b;
  --bg-elevated: #1f3645;
  --text: #e0dbd7;
  --text-soft: #a09892;
  --white: #ffffff;
  --border: rgba(210, 193, 182, 0.10);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --transition: 0.3s ease;
  --dark: #1B3C53;
}

/* --- Base --- */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--primary);
  transition: color var(--transition);
}

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

/* --- Navbar --- */
.navbar {
  background: rgba(16, 28, 18, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar .navbar-brand img {
  height: 30px;
  width: auto;
}

.navbar .navbar-brand:hover {
  color: var(--primary-light);
}

.navbar .nav-link {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.navbar .nav-link:hover {
  color: var(--white);
  background: var(--primary-glow);
}

.navbar .nav-link.active {
  color: var(--primary-light);
  background: var(--primary-glow);
}

.navbar-toggler {
  border-color: var(--border);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23D2C1B6' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Section --- */
.hero-section {
  padding: 6rem 0 5rem;
  background: radial-gradient(ellipse at 30% 50%, rgba(35, 76, 106, 0.2) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 30%, rgba(210, 193, 182, 0.08) 0%, transparent 60%);
}

.hero-section .col-lg-6.text-lg-start {
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-glow);
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(210, 193, 182, 0.15);
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-section .lead {
  color: var(--text-soft);
  font-size: 1.2rem;
  max-width: 550px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.8;
}

/* --- Hero Image --- */
.hero-img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* --- About Section --- */
.about-section {
  padding: 5rem 0;
}

.about-section .about-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}

.about-section .about-text .highlight {
  color: var(--primary-light);
  font-weight: 600;
}

.about-section .about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.values-badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary-glow);
  color: var(--primary-light);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  margin-top: 1.25rem;
  border: 1px solid rgba(210, 193, 182, 0.12);
}

/* --- Section Headings --- */
.section-title {
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 45px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --- Service Cards --- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card .service-icon i {
  font-size: 1.4rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card h5 {
  color: var(--white);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 0;
  line-height: 1.7;
}

.service-card ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.service-card ul li {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* --- Page Header / Cover --- */
.page-header {
  background: radial-gradient(ellipse at 20% 60%, rgba(35, 76, 106, 0.25) 0%, transparent 60%),
              var(--bg-warm);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 550px;
}

.page-header-with-img {
  text-align: left;
}

.page-header-img {
  max-height: 260px;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* --- Documentation Content --- */
.doc-content {
  max-width: 800px;
  margin: 0 auto;
}

.doc-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.doc-content h4 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.doc-content p {
  line-height: 1.9;
  color: var(--text);
  font-size: 0.95rem;
}

.doc-content .doc-list {
  list-style: none;
  padding: 0;
}

.doc-content .doc-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.doc-content .doc-list li:last-child {
  border-bottom: none;
}

.doc-content .doc-list li strong {
  color: var(--primary-light);
}

/* --- Advantage Cards --- */
.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.advantage-card .advantage-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.advantage-card .advantage-icon i {
  font-size: 1.2rem;
  color: var(--primary);
}

.advantage-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.advantage-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--primary-dark);
}

.timeline-item strong {
  color: var(--primary-light);
}

/* --- Client Access Cards --- */
.access-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.access-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.access-card .access-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.access-card .access-icon i {
  font-size: 1.75rem;
  color: var(--primary);
}

.access-card h4 {
  color: var(--white);
  font-size: 1.15rem;
}

.access-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

/* --- CTA Section --- */
.cta-section {
  background: radial-gradient(ellipse at center, rgba(35, 76, 106, 0.3) 0%, var(--bg-card) 100%);
  color: var(--white);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3.5rem 0;
  border: 1px solid var(--border);
}

.cta-section h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.cta-section li {
  color: var(--text);
}

/* --- Stats / Trusted Banner --- */
.trusted-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: 0.35rem;
}

/* --- Contact Info Card --- */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item + .contact-item {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon i {
  color: var(--primary);
  font-size: 1rem;
}

.contact-item-text {
  flex: 1;
}

.contact-item-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.contact-item-text p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 0;
  line-height: 1.5;
}

.contact-item-text a {
  color: var(--primary-light);
}

.contact-item-text a:hover {
  color: var(--white);
}

/* --- Map Section --- */
.map-section {
  padding: 3.5rem 0;
}

.map-section iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --- Cards & Panels --- */
.card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* --- Icon Cards --- */
.icon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.icon-card i {
  color: var(--primary) !important;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.icon-card:hover i {
  color: var(--primary-light) !important;
}

.icon-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0;
}

/* --- Buttons --- */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  color: var(--dark);
  transition: all var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(210, 193, 182, 0.3);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  transition: all var(--transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
  transform: translateY(-1px);
}

.btn-light {
  background-color: var(--primary);
  color: var(--dark);
  border-radius: 50px;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-color: var(--primary);
}

.btn-light:hover {
  background-color: var(--primary-light);
  color: var(--dark);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-color: rgba(210, 193, 182, 0.4);
  color: var(--primary-light);
  border-radius: 50px;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
}

.btn-outline-light:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.05rem;
}

/* --- Alerts --- */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.9rem;
}

.alert-info {
  background-color: var(--primary-glow);
  color: var(--primary-light);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.12);
  color: #f08a93;
}

/* --- Footer --- */
.footer {
  background: #0d1820 !important;
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

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

.footer p,
.footer li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.45rem;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.35rem;
}

.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

.footer .footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(210, 193, 182, 0.08);
  color: var(--primary);
  transition: all var(--transition);
}

.footer .social-link:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-2px);
}

/* --- Error Pages --- */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.error-page .error-code {
  font-size: 7rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h2 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-soft);
  max-width: 400px;
  margin: 0 auto 2rem;
}

/* --- Utility --- */
.bg-app {
  background-color: var(--bg);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
  }

  .hero-section .col-lg-6.text-lg-start {
    text-align: center;
  }

  .hero-section .lead {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-section .lead {
    font-size: 1rem;
  }

  .hero-img {
    max-width: 280px;
    margin-top: 2rem;
  }

  .page-header {
    padding: 3rem 0 2rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-header-with-img {
    text-align: center;
  }

  .page-header-img {
    max-height: 180px;
    margin-top: 1.25rem;
  }

  .card-modern,
  .service-card {
    padding: 1.5rem;
  }

  .about-section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .trusted-banner {
    padding: 2rem 1rem;
  }

  .cta-section {
    padding: 2.5rem 1.5rem;
  }

  .footer {
    padding: 2.5rem 0 1rem;
  }
}
