/* Global styles for Packagepro website */
/* Import a professional sans‑serif typeface from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Define CSS variables for colors and fonts */
:root {
  /* Brand colours */
  --primary-color: #0d3b66; /* deep navy blue for a corporate look */
  --secondary-color: #f4a261; /* warm orange accent */
  --tertiary-color: #2a9d8f; /* complementary green for subtle highlights */
  --text-color: #2f2f2f; /* dark grey for high contrast */
  --bg-color: #f8f9fb; /* very light grey for the site background */
  --light-bg: #ffffff;
  --dark-overlay: rgba(0, 0, 0, 0.55); /* slightly lighter overlay */
  --max-width: 1200px;
  --header-height: 72px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  transition: background-color 0.3s, color 0.3s;
}

/* Generic container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 1.25rem;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.5px;
}

header .logo img {
  /* Display the full horizontal logo proportionally */
  height: 40px;
  width: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem 0.1rem;
}

nav a:hover,
nav a.active {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Language selector */
.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.language-switcher button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.language-switcher button.active,
.language-switcher button:hover {
  background-color: var(--secondary-color);
  color: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('https://images.pexels.com/photos/4483610/pexels-photo-4483610.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260');
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-overlay);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 80%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: #e99542;
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 3rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.card-grid {
  /* Use flexbox instead of CSS grid so that the last card can be centered */
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Set a fixed base width for cards inside a card grid so that
   when there are fewer cards on the last row they can be centered */
.card-grid .card {
  flex: 0 0 300px;
}

.card {
  background: var(--light-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.card p {
  margin-bottom: 0.5rem;
  /* Slightly increase line-height for improved readability */
  line-height: 1.7;
}

/* Icon wrapper for cards */
.card .icon-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}

.card .icon-wrapper img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Star rating styling used in testimonials on the home page */
.stars {
  /* Use the secondary accent colour for a warm golden feel */
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Lists inside cards */
.card ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.card ul li {
  margin-bottom: 0.35rem;
  list-style: disc;
}

/* Contact form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background-color: #0b2e6d;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

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

footer .footnotes {
  font-size: 0.75rem;
  color: #e1e1e1;
  margin-bottom: 1rem;
}

/* Language specific styles: hide all language blocks by default */
.lang-nl,
.lang-en,
.lang-es {
  display: none;
}

body[data-lang='nl'] .lang-nl,
body[data-lang='en'] .lang-en,
body[data-lang='es'] .lang-es {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* Section headings underline */
section h2 {
  position: relative;
  margin-top: 0;
  text-align: center;
}
section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.5rem auto 1rem;
  background-color: var(--secondary-color);
  border-radius: 2px;
}