/* 
   PalletPro - Pallet Storage & Warehousing Website 
   Theme: Industrial, Professional, Modern
*/

:root {
  /* Color Palette */
  --primary-color: #0d253f; /* Dark Blue */
  --primary-light: #163a63;
  --accent-color: #e65100; /* Industrial Orange */
  --accent-hover: #ff6d00;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #121212;
  --text-main: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --border-color: #e0e0e0;

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Shadows & Radius */
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* --- RESET & BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-white);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* Typography Helpers */
h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin-top: 0.5rem;
}

.text-center {
  text-align: center;
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  color: var(--text-light);
  font-size: 1.1rem;
}

.text-light {
  color: var(--text-white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-white);
}

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

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--text-white);
  color: var(--text-white);
}

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

.btn-block {
  display: block;
  width: 100%;
}

/* --- HEADER --- */
.header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.logo .highlight {
  color: var(--accent-color);
}

.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--primary-color);
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link.btn-link {
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-link.btn-link:hover {
  background-color: var(--primary-light);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
  background-color: var(--primary-color);
  background-image:
    linear-gradient(rgba(13, 37, 63, 0.85), rgba(13, 37, 63, 0.85)),
    url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); /* Placeholder Warehouse Image */
  background-size: cover;
  background-position: center;
  color: var(--text-white);
  padding: 8rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 3rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* --- ABOUT SECTION --- */
.about {
  background-color: var(--bg-white);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-image-placeholder {
  flex: 1;
  height: 350px;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-image: url('https://images.unsplash.com/photo-1553413077-190dd305871c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80');
  background-size: cover;
  background-position: center;
  box-shadow: var(--box-shadow);
}
.about-image-placeholder .img-box {
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--primary-color);
}

.lead-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.about-list {
  margin-top: 1.5rem;
}

.about-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 25px;
  color: var(--text-main);
  font-weight: 500;
}

.about-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* --- SERVICES SECTION --- */
.services {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  border-top-color: var(--accent-color);
}

.icon-box {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- WHY CHOOSE US SECTION --- */
.why-us {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.feature-item h3 {
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* --- CONTACT SECTION --- */
.contact {
  background-color: var(--bg-white);
}

.contact-wrapper {
  display: flex;
  gap: 4rem;
}

.contact-info,
.contact-form-container {
  flex: 1;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.25rem;
}

.info-item span {
  color: var(--text-light);
}

.contact-form {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: var(--radius-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(13, 37, 63, 0.1);
}

.mb-4 {
  margin-bottom: 1rem;
}

/* --- FOOTER --- */
.footer {
  background-color: #081a2e; /* Darker than primary */
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.compliance-link {
  display: block;
  max-width: 160px;
  transition: var(--transition);
  margin-left: 0 !important; /* Override the previous generic link margin */
}

.compliance-link:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.compliance-link img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about-list {
    display: inline-block;
    text-align: left;
  }

  .about-image-placeholder {
    width: 100%;
    height: 400px; /* Increased from 300px to be larger/taller */
    min-height: 400px;
  }

  .contact-wrapper {
    flex-direction: column;
  }

  .contact-info {
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links a {
    margin: 0 1rem;
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 5rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .nav-list {
    display: none; /* In a real app, you'd add JS toggle logic */
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* --- GALLERY / CAROUSEL --- */
.gallery {
  background-color: var(--bg-light);
  padding-bottom: 2rem;
}

.carousel-container {
  position: relative;
  height: 500px;
  width: 100%;
  margin: 0 auto;
  max-width: 1000px;
}

.carousel-track-container {
  background: var(--bg-white);
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
}

.carousel-track {
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  background: #f0f0f0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-white);
  padding: 1rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-button:hover {
  background: var(--text-white);
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button--left {
  left: -20px;
}

.carousel-button--right {
  right: -20px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  padding: 15px 0;
  gap: 10px;
}

.carousel-indicator {
  border: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-indicator.current-slide {
  background: var(--accent-color);
}

@media (max-width: 768px) {
  .carousel-container {
    height: 350px;
  }

  .carousel-button--left {
    left: 10px;
  }

  .carousel-button--right {
    right: 10px;
  }
}

/* --- NAVIGATION WRAPPER --- */
.nav-wrapper {
  display: flex;
  align-items: center;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-color);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
  transform: scale(1.1);
}

.lang-btn svg {
  display: block;
  width: 24px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Language Visibility Logic */
/* Default is RO (Romanian) - so hide EN by default */
.lang-en {
  display: none;
}

/* When body has class 'en', hide RO and show EN */
body.en .lang-ro {
  display: none;
}

body.en .lang-en {
  display: inline; /* Default to inline for text */
}

/* For block level elements if needed, we can override or just let them wrap */
div.lang-en,
p.lang-en,
h1.lang-en,
h2.lang-en,
h3.lang-en {
  display: block;
}
body.en div.lang-en,
body.en p.lang-en,
body.en h1.lang-en,
body.en h2.lang-en,
body.en h3.lang-en {
  display: block;
}

@media (max-width: 768px) {
  .nav-wrapper {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-white);
    width: 250px;
    padding: 1.5rem;
    box-shadow: -2px 5px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-top: none;
  }

  .nav-wrapper.active {
    display: flex; /* Shown when toggled */
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    display: flex; /* Always flex inside the wrapper */
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    width: 100%;
    justify-content: center;
  }
}
