/*
 * Global styles for VisExperience website
 *
 * This stylesheet defines the colour palette, typography and layout
 * components used throughout the website. The aim is to create a
 * professional, modern interface that reflects the company's travel
 * technology heritage while remaining welcoming and easy to navigate.
 */

:root {
  --primary-color: #004e89; /* deep blue for headings and accents */
  --secondary-color: #00a3e0; /* vibrant cyan for buttons and highlights */
  --accent-color: #ff8c00; /* warm orange for hover states */
  --dark-color: #0b2639; /* dark blue for navigation and footer */
  --light-color: #f7f9fb; /* off‑white background for sections */
  --text-color: #333333; /* dark grey for body text */
  --max-width: 1200px;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  scroll-behavior: smooth;
  padding-top: 70px; /* space for fixed navigation */
}

/* Navigation bar */
nav {
  background-color: var(--dark-color);
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav .logo {
  display: none;
}

/* Brand container for logo + name */
.brand {
  display: flex;
  align-items: center;
}

.brand img {
  /* Slightly enlarge the logo so the brand feels more balanced on the dark nav */
  width: 48px;
  height: 48px;
  margin-right: 0.5rem;
  /* Give the logo a subtle white background with rounded corners so it contrasts nicely on dark nav */
  /* Ensure the logo has no background; the PNG has transparency */
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.brand span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--secondary-color);
}

/* Hero section */
.hero {
  height: 65vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero .hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.7rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero .hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #e0e8ef;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-color);
}

/* Hamburger menu for mobile navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: #ffffff;
  margin-bottom: 4px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color: var(--dark-color);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    display: none;
    padding: 1rem;
    gap: 1rem;
  }
  nav ul.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* Generic section styling */
.section {
  padding: 4rem 1rem;
}

.section:nth-of-type(even) {
  background-color: #ffffff;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: var(--dark-color);
}

.section p.lead {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  color: #555555;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.card .footnote-ref {
  font-size: 0.8rem;
  vertical-align: super;
  margin-left: 4px;
}

/* Card icons for advantages and service highlights */
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.8rem;
}

/* Two-column layout for about and consular pages */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Content blocks with background */
.content-block {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.content-block h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: var(--primary-color);
}

.content-block p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: #dddddd;
  /* Reduce footer padding to make the footer more compact */
  padding: 2rem 1rem;
}

.footer .footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer .footer-section h4 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1.2rem;
}

.footer .footer-section ul {
  list-style: none;
}

.footer .footer-section ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer .footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer .footer-section ul li a:hover {
  color: var(--secondary-color);
}

.footer small {
  display: block;
  /* Reduce spacing above the copyright line */
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #999999;
}

/* Trust badge container */
.trust-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: center;
}

.trust-badges img {
  width: 50px;
  height: 50px;
  /* Mostrar los iconos en sus colores originales. Si los iconos
     son multicolores, no los invertimos para conservar su legibilidad
     sobre el fondo oscuro del pie de página. */
  filter: none;
}

/* Footnotes styling */
.footnotes {
  font-size: 0.75rem;
  color: #666666;
  margin-top: 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.footnotes ol {
  list-style: decimal;
  padding-left: 1.2rem;
}

.footnotes li {
  margin-bottom: 0.4rem;
}

.footnotes a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

/* Utilities */
.text-center {
  text-align: center;
}

.lead {
  font-size: 1.1rem;
  color: #555555;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}