/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto+Slab:wght@400;600&display=swap');

/* Root Variables */
:root {
  --font-primary: 'Montserrat', sans-serif;
  --font-accent: 'Roboto Slab', serif;

  --text-base: 16px;
  --text-h1: 2.25rem;
  --text-h2: 1.75rem;
  --text-h3: 1.375rem;
  --line-height: 1.6;

  --color-primary: #ffffff;
  --color-secondary: #050B1E;
  --color-accent: #315381;

  --text-light: #fff;
  --text-dark: #111;

  --bg-light: #ffffff;
  --bg-dark: #050B1E;
}

/* Global Styles */
body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--line-height);
  color: var(--color-secondary);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.25;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p { margin-bottom: 1em; }

/* Blockquote */
blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 3px solid #ccc;
}

/* Section Base */
section {
  padding: 60px 20px;
  position: relative;
  background-color: var(--bg-light);
  color: var(--color-secondary);
  overflow: hidden;
}

section.dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

/* ======================
   Parallax Backgrounds
   ====================== */
.parallax-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 1;
}

.parallax-bg img,
.parallax-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(0);
  will-change: transform;
  display: block;
}

/* ======================
   Logistics Section Fix
   ====================== */
#logistics {
  min-height: 30vh;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--bg-dark);
}
#logistics .parallax-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
#logistics .parallax-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
}
#logistics::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5, 11, 30, 0.4);
  z-index: 1;
}
#logistics .container {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  height: 100%;
}

/* ======================
   Buttons
   ====================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}
.btn-primary:hover {
  background-color: var(--color-accent);
  color: var(--text-light);
}

.btn-secondary {
  background-color: var(--color-accent);
  color: var(--text-light);
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

.btn-light {
  background-color: var(--bg-light);
  color: var(--color-secondary);
}
.btn-light:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

/* Utilities */
.text-light { color: var(--text-light); }
.text-dark { color: var(--text-dark); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.bg-primary { background-color: var(--color-primary); }
.bg-accent { background-color: var(--color-accent); }
.shadow { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* ======================
   Navbar
   ====================== */
.navbar {
  background-color: rgba(5, 11, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0; left: 0;
  width: 100%; z-index: 1000;
}
.navbar .container {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; padding: 1rem 20px;
}
.navbar .logo-img { height: 60px; }
.navbar nav { display: flex; gap: 1.5rem; }
.navbar nav a {
  font-weight: 600;
  color: var(--text-light) !important;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s;
}
.navbar nav a:hover { color: var(--color-primary) !important; }
.menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.5rem;
  color: var(--text-light) !important;
  cursor: pointer;
}
.navbar .container nav .social-icons {
  display: flex; gap: 1rem;
  align-items: center; margin-left: 2rem;
}
.navbar .container nav .social-icons a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.navbar .container nav .social-icons a:hover {
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .navbar .container nav {
    display: none;
    position: absolute; top: 100%; right: 0;
    background-color: var(--bg-light);
    flex-direction: column;
    width: 200px; padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .navbar .container nav.active { display: flex; }
  .navbar .container nav a {
    padding: 0.75rem 0;
    color: var(--color-secondary) !important;
  }
}

/* ======================
   Popup
   ====================== */
.popup-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; justify-content: center; align-items: center;
  z-index: 2000;
}
.popup-overlay.active { display: flex; }

.popup {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 500px; width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.3s ease;
}
.popup h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
  font-weight: 700;
}
.popup .close-btn {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: none;
  font-size: 1.25rem; cursor: pointer;
  color: #666; transition: color 0.2s ease;
}
.popup .close-btn:hover { color: var(--color-accent); }

/* Shared Form Styling */
#contact-form,
#popup-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#contact-form input, #contact-form textarea,
#popup-contact-form input, #popup-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#contact-form input:focus, #contact-form textarea:focus,
#popup-contact-form input:focus, #popup-contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 6px rgba(49, 83, 129, 0.3);
}
#contact-form textarea, #popup-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
#contact-form button,
#popup-contact-form button {
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
#contact-form button:hover,
#popup-contact-form button:hover {
  background: var(--color-secondary);
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ======================
   Footer
   ====================== */
.footer-logo {
  height: 60px; width: auto;
  display: block; margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px; align-items: start;
}
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-brand, .footer-nav, .footer-services, .footer-contact { text-align: left; }
  .footer-logo { margin-left: 0; }
}

/* ======================
   Products Section
   ====================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 2rem;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); }
.product-card img {
  width: 100%; height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}
@media (max-width: 992px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ======================
   About Section Cards
   ====================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px; margin-top: 2rem;
}
.about-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.about-card:hover { transform: translateY(-5px); }
.about-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.about-card p { font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 1200px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ======================
   Footer bottom links
   ====================== */
.footer-bottom a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}
.footer-bottom a:hover { color: var(--color-accent); }

/* ======================
   Cookie Banner
   ====================== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0;
  width: 100%;
  background: var(--bg-dark); color: var(--text-light);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 15px 20px;
  padding-bottom: calc(15px + env(safe-area-inset-bottom));
  z-index: 3000;
  font-size: 0.9rem; text-align: center;
  box-sizing: border-box;
}
.cookie-banner p { margin: 0 0 10px 0; }
.cookie-banner a { color: var(--color-primary); text-decoration: underline; }
.cookie-banner button {
  background: var(--color-accent);
  color: var(--text-light);
  border: none; padding: 10px 20px;
  border-radius: 6px; cursor: pointer;
  font-weight: 600; transition: background 0.3s ease;
  min-width: 100px;
}
.cookie-banner button:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row; gap: 20px; text-align: left;
  }
  .cookie-banner p { margin: 0; }
}
