/* ==========================================================================
   CSS Variables - Design Tokens
   ========================================================================== */

:root {
  --bg: #ffffff;
  --border: #e6eef2;
  --muted: #5b6b75;
  --primary: #005b8f;
  --primary-600: #004a74;
  --text: #0b1f2a;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

/* Reset box-sizing for all elements */
* {
  box-sizing: border-box;
}

/* Base typography and layout */
html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  margin: 0;
  padding: 0;
}

/* Container for centered content with max-width */
.container {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 16px;
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Sticky header with gradient background */
.site-header {
  backdrop-filter: blur(8px);
  background: linear-gradient(90deg, #ffffff 0%, #f4fbff 50%, #eef7ff 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Inner header container */
.header-inner {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 64px;
}

/* Brand logo and title */
.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.brand .logo {
  display: inline-block;
  height: 34px;
  width: auto;
}

.brand-title {
  color: var(--primary);
  font-weight: 700;
}

/* Main navigation links */
.main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.main-nav a,
.dropbtn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  padding: 10px 12px;
  text-decoration: none;
}

.main-nav a:hover,
.dropbtn:hover {
  background: #eef7ff;
  border-color: #e0edf7;
}

/* Active navigation state */
.main-nav a.is-active {
  background: var(--primary);
  color: #fff;
}

/* Dropdown menu */
.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-content {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  min-width: 220px;
  overflow: hidden;
  position: absolute;
}

.dropdown-content a {
  color: var(--text);
  display: block;
  padding: 10px 12px;
  text-decoration: none;
}

.dropdown-content a:hover {
  background: #f6fbfe;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Language switcher - Google Translate Dropdown */
.lang-switch {
  display: flex;
  gap: 6px;
  position: relative;
}

/* Hide all Google Translate UI elements including banner */
#google_translate_element,
#google_translate_element *,
.goog-te-banner-frame,
.goog-te-banner-frame *,
.goog-te-balloon-frame,
.goog-te-combo,
.goog-te-menu-frame,
.goog-te-banner,
[class*="goog-te"],
[id*="google_translate"],
iframe[src*="translate.google"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
}

/* Specifically hide the Google Translate banner at top of page */
body > div[style*="position: fixed"][style*="top: 0"],
body > div[style*="position:fixed"][style*="top:0"],
body > div[style*="z-index"][style*="top"],
body > div[style*="top"],
iframe[id*="google"],
iframe[src*="translate.google"],
div[id*="google"][style*="position"],
div[id*="google"][style*="fixed"],
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-banner,
[class*="skiptranslate"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  pointer-events: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove space taken by hidden banner */
body {
  top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Google Translate Dropdown */
.translate-dropdown {
  position: relative;
}

.translate-dropdown-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  transition: all 0.2s;
}

.translate-dropdown-btn:hover {
  background: #f6fbfe;
  border-color: var(--primary);
}

.translate-dropdown-btn .flag {
  font-size: 18px;
  line-height: 1;
}

.translate-dropdown-btn .lang-code {
  font-size: 13px;
  font-weight: 600;
}

.translate-dropdown-menu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: none;
  max-height: 400px;
  min-width: 200px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1000;
}

.translate-dropdown-menu.show {
  display: block;
}

.translate-dropdown-item {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  transition: background 0.2s;
}

.translate-dropdown-item:hover {
  background: #f6fbfe;
}

.translate-dropdown-item .flag {
  font-size: 20px;
  line-height: 1;
  width: 24px;
}

.translate-dropdown-item .lang-name {
  color: var(--text);
  flex: 1;
  font-size: 14px;
}

.translate-dropdown-item .lang-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

/* Hero grid layout */
.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.8fr;
  padding: 56px 0;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px 0;
}

.hero p {
  color: var(--muted);
  margin: 0 0 20px 0;
}

.hero .hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

/* Hero with background image */
.hero.hero--image {
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

/* Background image layer */
.hero.hero--image::before {
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
  filter: saturate(0.9);
  inset: 0;
  position: absolute;
  transform: scale(1.02);
}

/* Overlay gradient */
.hero.hero--image::after {
  background: linear-gradient(
    90deg,
    rgba(10, 20, 30, 0.7) 0%,
    rgba(10, 20, 30, 0.35) 45%,
    rgba(10, 20, 30, 0.1) 100%
  );
  content: "";
  inset: 0;
  position: absolute;
}

.hero.hero--image > * {
  position: relative;
  z-index: 1;
}

.hero.hero--image > div:first-child {
  color: #fff;
  padding: 48px;
}

.hero.hero--image h1 {
  color: #fff;
  font-size: 40px;
}

.hero.hero--image p {
  color: #e7eef3;
}

/* Contrast cards for hero images */
.hero-card--contrast {
  background: rgba(8, 18, 28, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.hero-card--contrast h3,
.hero-card--contrast p {
  color: #ffffff !important;
}

/* ==========================================================================
   Grid System
   ========================================================================== */

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ==========================================================================
   Card Components
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.card h3 {
  font-size: 18px;
  margin: 0 0 6px 0;
}

.card p {
  color: var(--muted);
  margin: 0;
}

/* Card with image */
.card.img {
  overflow: hidden;
  padding: 0;
}

.card.img img {
  display: block;
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.card.img .content {
  padding: 14px 16px;
}

.card.img:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Team images larger in alt sections */
.section.alt .card.img img {
  height: 280px;
}

/* Badge component */
.badge {
  background: #e8f3ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #0b1f2a;
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
}

/* ==========================================================================
   Sections & Content
   ========================================================================== */

.section {
  padding: 36px 0;
}

.section h2 {
  font-size: 24px;
  margin: 0 0 12px 0;
}

/* Alternate section background */
.section.alt {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

/* Muted text color */
.muted {
  color: var(--muted);
}

/* Page intro badge container */
.page-intro {
  background: linear-gradient(90deg, #eaf6ff, #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
}

/* Stats grid */
.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.stat .num {
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
}

/* Steps counter */
.steps {
  counter-reset: s;
  display: grid;
  gap: 12px;
}

.steps .step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.steps .step::before {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  content: counter(s);
  counter-increment: s;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  margin-right: 8px;
  width: 28px;
  height: 28px;
}

/* Pill badge */
.pill {
  background: #eef7ff;
  border: 1px solid #e0edf7;
  border-radius: 999px;
  color: #0b1f2a;
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  padding: 10px 14px;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  transition: transform 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-600);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #fafcfd;
  border-top: 1px solid var(--border);
  margin-top: 36px;
}

.footer-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}

.footer-links {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
}

/* ==========================================================================
   Cookie Consent
   ========================================================================== */

.cookie-consent {
  bottom: 0;
  left: 0;
  padding: 12px;
  position: fixed;
  right: 0;
  z-index: 60;
}

.cookie-inner {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 12px;
  margin: 0 auto;
  max-width: 1120px;
  padding: 14px;
}

.cookie-actions {
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

/* Form grid layout */
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.form-grid textarea {
  grid-column: 1 / -1;
}

/* Large input fields */
.input-large {
  background: #f7fbff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  padding: 12px 14px;
}

.input-large:focus {
  background: #ffffff;
  border-color: #b6e0ff;
  box-shadow: 0 0 0 4px rgba(0, 91, 143, 0.12);
  outline: none;
}

/* Form accent card */
.card.form-accent {
  background: linear-gradient(180deg, #ffffff 0%, #f1f8ff 100%);
  border-color: #dbeafe;
}

/* Google Maps iframe */
.map-card iframe {
  border: 0;
  border-radius: 10px;
  height: 260px;
  width: 100%;
}

/* ==========================================================================
   Responsive Design - Media Queries
   ========================================================================== */

@media (max-width: 900px) {
  /* Stack hero columns on mobile */
  .hero {
    grid-template-columns: 1fr;
  }

  .hero.hero--image > div:first-child {
    padding: 28px;
  }

  /* Stack grid columns on mobile */
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  /* Stack header elements on mobile */
  .header-inner {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
  }

  /* Stack form grid on mobile */
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile optimizations for small screens */
@media (max-width: 768px) {
  /* Container padding on mobile */
  .container {
    padding: 0 12px;
  }

  /* Header optimizations */
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-title {
    font-size: 14px;
    line-height: 1.3;
  }

  /* Navigation on mobile */
  .main-nav {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .main-nav a,
  .dropbtn {
    font-size: 14px;
    padding: 8px 10px;
  }

  /* Language switcher on mobile */
  .lang-switch {
    margin-left: auto;
  }

  .translate-dropdown-btn {
    padding: 6px 10px;
  }

  /* Hero section mobile */
  .hero {
    padding: 32px 0;
  }

  .hero.hero--image > div:first-child {
    padding: 24px 16px;
  }

  .hero.hero--image h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .hero.hero--image p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .hero-card {
    padding: 14px;
  }

  .hero-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .hero-card p {
    font-size: 13px;
  }

  /* Buttons on mobile */
  .btn {
    font-size: 14px;
    padding: 10px 16px;
    width: 100%;
    justify-content: center;
  }

  /* Section padding */
  .section {
    padding: 24px 0;
  }

  .section h2 {
    font-size: 20px;
  }

  /* Cards on mobile */
  .card {
    padding: 14px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 14px;
  }

  /* Stats grid on mobile */
  .stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat {
    padding: 12px;
  }

  .stat .num {
    font-size: 24px;
  }

  /* Footer on mobile */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  /* Even smaller padding */
  .container {
    padding: 0 10px;
  }

  /* Brand title - show only PPZ on very small screens */
  .brand-title {
    display: none;
  }

  /* Hero text even smaller */
  .hero.hero--image h1 {
    font-size: 20px;
  }

  .hero.hero--image > div:first-child {
    padding: 20px 12px;
  }

  /* Navigation smaller */
  .main-nav a,
  .dropbtn {
    font-size: 13px;
    padding: 6px 8px;
  }

  /* Section headings */
  .section h2 {
    font-size: 18px;
  }

  /* Page intro */
  .page-intro {
    padding: 10px 12px;
  }
}
