/*
 * Global styles for PW‑Trans website
 *
 * The colour palette is based on RAL 5002 (Ultramarinblau).
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Segoe+UI:wght@400;700&display=swap');

:root {
  --primary-color: #003399; /* Ultramarine blue */
  --secondary-color: #f5f5f5;
  --accent-color: #0066cc;
  --text-color: #1a1a1a;
  --light-text: #ffffff;
  --font-sans: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--secondary-color);
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

header {
  position: relative;
  background-color: var(--primary-color);
  color: var(--light-text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-img {
  /* Increase logo size for better visibility */
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--light-text);
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav a:hover,
.nav a:focus {
  opacity: 0.8;
}

/* Call‑to‑action button within the navigation bar */
.nav .cta-nav {
  padding: 0.4rem 0.8rem;
  background-color: var(--accent-color);
  color: var(--light-text);
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.nav .cta-nav:hover,
.nav .cta-nav:focus {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* Standalone hero text that appears beneath the slideshow */
.hero-text {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--secondary-color);
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-color);
}

/* --- Hero section inspired by the TransConnect reference design --- */
.hero-section {
  background-color: var(--secondary-color);
  padding: 4rem 1rem;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text-col {
  flex: 1 1 400px;
}

.hero-image-col {
  flex: 1 1 400px;
  text-align: center;
}

.hero-image-col img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-features {
  list-style: none;
  margin-top: 1rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.check-icon {
  color: var(--accent-color);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-image-col img {
    max-width: 90%;
  }
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.language-switcher .lang-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
}

.language-switcher img {
  height: 24px;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  /* Make the slideshow taller so it occupies about 60% of the viewport height */
  height: 60vh;
  overflow: hidden;
  background-color: var(--primary-color);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Cover ensures the photo fills the entire container width while maintaining aspect ratio */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Remove any inherited image sizing for slides (we no longer use <img> elements) */

.slide.active {
  opacity: 1;
}

.slideshow-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--light-text);
  padding: 1rem;
  backdrop-filter: saturate(140%) brightness(90%);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.slideshow-overlay h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.slideshow-overlay p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--accent-color);
  color: var(--light-text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s ease;
}

.button:hover,
.button:focus {
  background-color: #004d99;
}

.section {
  padding: 3rem 1rem;
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.services-section {
  background-color: #ffffff;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  flex: 1 1 250px;
  background-color: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.note {
  margin-top: 1.5rem;
  font-style: italic;
}

.about-section {
  background-color: var(--secondary-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p + p {
  margin-top: 1rem;
}

.team-section {
  background-color: #ffffff;
}

.team-grid {
  max-width: 800px;
  margin: 0 auto;
}

.team-text p + p {
  margin-top: 1rem;
}

.team-text .slogan {
  font-weight: 700;
  margin-top: 1.5rem;
  color: var(--primary-color);
}

/* Team members grid */
.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  flex: 1 1 180px;
  max-width: 220px;
}

.team-member img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-member h4 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.team-member p {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Responsive adjustments for mobile/tablet */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
  }
  .slideshow {
    /* On small screens we let the slideshow occupy around half the viewport height */
    height: 50vh;
  }
  .slideshow-overlay h1 {
    font-size: 1.5rem;
  }
  .slideshow-overlay p {
    font-size: 1rem;
  }
  .services-grid, .contact-container {
    flex-direction: column;
  }
  .team-members {
    justify-content: center;
  }
  .team-member {
    flex: 1 1 100%;
    max-width: 200px;
  }
}

.contact-section {
  background-color: var(--secondary-color);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-form {
  flex: 1 1 300px;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 51, 153, 0.2);
}

.map-container {
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 1rem;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--light-text);
  font-size: 0.9rem;
}

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 51, 153, 0.9);
  color: var(--light-text);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.cookie-banner p {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .slideshow-overlay h1 {
    font-size: 1.5rem;
  }
  .nav {
    display: none; /* Could later be replaced with a burger menu */
  }
  .contact-container {
    flex-direction: column;
  }
}