/*
 * Custom stylesheet for Boleta.cl.
 *
 * This file defines the colour palette, typography and layout helpers
 * used throughout the site. It builds on top of Bootstrap to give the
 * pages a unique look and feel that reflects the spirit of the
 * platform: modern, approachable and professional. All variables are
 * defined at the root for easy customisation. Media queries ensure
 * responsive behaviour on mobile and large screens.  
 */

/* Colour palette */
:root {
  --primary-color: #00ADEF;    /* sky blue for CTAs and highlights */
  --secondary-color: #01C675;  /* mint green for secondary accents */
  --dark-color: #024B8F;       /* deep blue for footer and headings */
  --light-color: #F7FAFC;      /* very light grey background */
  --text-color: #333333;       /* default text colour */
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: var(--light-color);
  margin: 0;
  padding-top: 80px; /* space for fixed navbar */
}

/* Navbar styling */
.navbar {
  transition: background-color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link {
  font-weight: 500;
  margin-left: 1rem;
  color: var(--dark-color);
}

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

/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 7rem 0;
  margin-top: -80px; /* pull hero up behind navbar */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

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

/* Slightly dim the primary button on hover */
.btn-primary:hover {
  filter: brightness(0.9);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #ffffff;
}

/* Slightly dim the secondary button on hover */
.btn-secondary:hover {
  filter: brightness(0.9);
  color: #ffffff;
}

/* Section styling */
.section {
  padding: 4rem 0;
}

.section.bg-light {
  background-color: #ffffff;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-color);
  font-weight: 700;
}

/* Cards for benefits and features */
.feature-card {
  background-color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555555;
}

/* Table styling for SLA page */
.sla-table thead {
  background-color: var(--dark-color);
  color: #ffffff;
}

.sla-table tbody tr:nth-child(even) {
  background-color: #f3f6f8;
}

.sla-table th,
.sla-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

/* Accordion styles for FAQ */
.accordion-button:not(.collapsed) {
  color: #ffffff;
  background-color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: #ffffff;
  padding: 2rem 0;
}

.footer a {
  color: #ffffff;
  margin-right: 1rem;
}

.footer a:hover {
  text-decoration: underline;
}

/* Utility classes */
.text-primary-custom {
  color: var(--primary-color);
}

.text-secondary-custom {
  color: var(--secondary-color);
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-content p {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .navbar-light .navbar-nav .nav-link {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
  .hero {
    padding: 5rem 0;
  }
}