/* ==========================================================================
   PERITER Corporate Website - Master Stylesheet
   Pure Modern CSS (No Frameworks, No Build Tools)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
/* Self-Hosted Local WOFF2 Fonts */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/montserrat-800.woff2') format('woff2');
}

:root {
  /* Color Palette */
  --color-primary: #35abf1;
  --color-primary-dark: #208bc7;
  --color-navy-dark: #303745;
  --color-navy-deep: #1e2532;
  --color-bg-light: #dae8f2;
  --color-bg-card: #f8fafc;
  --color-text-dark: #222222;
  --color-text-muted: #555555;
  --color-text-light: #747a87;
  --color-white: #ffffff;
  --color-border: #e9eaee;
  
  /* Typography */
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  /* Spacing Tokens */
  --container-max-width: 1200px;
  --header-height: 90px;
  --header-height-sticky: 70px;
  --section-padding: 90px;
  --section-padding-mobile: 50px;
  
  /* Animations & Shadows */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-header: 0 2px 15px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   2. Reset & Box Sizing
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  line-height: var(--line-height-base);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.system-title,
.product-name,
.page-banner-title,
.nav-link,
.contact-company,
button {
  font-family: var(--font-heading);
}

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

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

ul, ol {
  list-style: none;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-header);
  transition: height var(--transition-normal), background-color var(--transition-normal);
}

.site-header.is-scrolled {
  height: var(--header-height-sticky);
  background-color: #ffffff;
}

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

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  max-height: 55px;
  width: auto;
  transition: max-height var(--transition-normal);
}

.site-header.is-scrolled .site-logo img {
  max-height: 45px;
}

/* Navigation List */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-navy-dark);
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-item.is-active .nav-link::after {
  width: 100%;
}

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

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-white);
  min-width: 220px;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1100;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy-dark);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-link:hover {
  background-color: rgba(53, 171, 241, 0.08);
  color: var(--color-primary);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-navy-dark);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------------------
   4. Hero Sections
   -------------------------------------------------------------------------- */
.hero {
  min-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  padding: calc(var(--header-height) + 60px) 20px 80px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 480px;
  width: 100%;
  margin: 0 auto 35px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.hero-text {
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Individual Hero Backgrounds */
.hero--flir {
  background-image: url('../images/flirbg.jpg');
}

.hero--damen {
  min-height: 90vh;
  background-image: url('../images/damenbg.jpg');
}

/* --------------------------------------------------------------------------
   5. Systems Categories Grid (Under FLIR)
   -------------------------------------------------------------------------- */
.systems-overview {
  padding: 70px 0 80px;
  background-color: var(--color-white);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.system-column {
  background-color: var(--color-bg-card);
  border-radius: 8px;
  padding: 30px 24px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.system-column:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.system-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 12px;
}

.system-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.system-list {
  margin-top: 20px;
}

.system-list li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  transition: color var(--transition-fast);
}

.system-list li:last-child {
  border-bottom: none;
}

.system-list li:hover {
  color: var(--color-primary);
}

.system-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 44px;
  margin: 24px auto 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  text-align: center;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(53, 171, 241, 0.2);
}

.system-btn:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2.5px);
  box-shadow: 0 5px 15px rgba(32, 139, 199, 0.35);
}

.system-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(32, 139, 199, 0.25);
}

/* --------------------------------------------------------------------------
   6. About Us Section
   -------------------------------------------------------------------------- */
.section-about {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg-light);
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy-dark);
  margin-bottom: 30px;
}

.about-text-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.about-paragraph {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.85;
  color: #4a5568;
  margin-bottom: 24px;
}

.about-paragraph:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. Quality Certificates Section
   -------------------------------------------------------------------------- */
.section-quality {
  padding: var(--section-padding) 0;
  background-color: var(--color-white);
  text-align: center;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.certificate-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.certificate-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--color-white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   8. Partners Section
   -------------------------------------------------------------------------- */
.section-partners {
  padding: 60px 0;
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.partners-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.partner-logo {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 35px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-copyright {
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .systems-grid,
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .partners-flex {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: var(--shadow-card);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  /* Fix lang-switcher: desktop uses display:flex on <li> which
     makes .nav-link and .dropdown-menu share row width, clipping text.
     On mobile the <li> must stack children vertically like all other nav-items. */
  .nav-item.lang-switcher {
    display: block;
  }

  .dropdown-menu,
  .nav-item.has-dropdown:hover .dropdown-menu,
  .nav-item.has-dropdown:focus-within .dropdown-menu,
  .nav-item.has-dropdown.is-expanded .dropdown-menu {
    position: relative;
    top: auto;
    left: 0 !important;
    right: auto;
    transform: none !important;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    padding-left: 20px;
    overflow: visible;
    z-index: auto;
  }

  .dropdown-menu {
    display: none;
  }

  .nav-item.has-dropdown.is-expanded .dropdown-menu {
    display: block;
  }

  /* Ensure lang-switcher dropdown items never clip their text */
  .lang-switcher .dropdown-link {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    width: auto;
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
    min-height: 75vh;
  }

  .hero-logo {
    max-width: 320px;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .systems-grid,
  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .partners-flex {
    flex-direction: column;
    gap: 30px;
  }
}

/* --------------------------------------------------------------------------
   11. Subpage Banner & Product Showcase Layout
   -------------------------------------------------------------------------- */
.page-banner {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 50px;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-deep) 100%);
  color: var(--color-white);
  text-align: center;
}

.page-banner-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--color-white);
  margin: 0;
}

.product-showcase {
  padding: 80px 0;
  background-color: var(--color-white);
}

.product-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 70px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--color-border);
}

.product-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.product-row.reverse {
  flex-direction: row-reverse;
}

.product-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-media:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.product-media img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.product-info {
  flex: 1;
}

.product-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.product-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.product-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.product-desc p {
  margin-bottom: 16px;
}

.product-desc p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .product-row,
  .product-row.reverse {
    flex-direction: column;
    gap: 30px;
  }

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

  .product-name::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

/* --------------------------------------------------------------------------
   12. Dedicated Contact Us Section
   -------------------------------------------------------------------------- */
.section-contact {
  padding: var(--section-padding) 0;
  background-color: var(--color-white);
  text-align: center;
}

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 30px;
  background-color: var(--color-bg-card);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.contact-company {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  margin-bottom: 15px;
}

.contact-address {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-navy-dark);
}

.contact-details a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-details a:hover {
  text-decoration: underline;
}


