:root {
    --red: #852b23;
    --yellow: #f4b900;
    --bg: #ffffff;
    --text: #1f2933;
    --muted: #6b7280;
    --card: #f9fafb; 
    --border: #e5e7eb; 
  }
  

  html, body {
    height: 100%;
  }

  main {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  /* MAIN LAYOUT SPLIT */
.layout {
  display: grid;
}

body.dark {
  --bg: #1b0808;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --card: ##151515; 
  --border: ##262626; 
}
  
*{box-sizing: border-box;}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}
  
.container { max-width: 1200px; margin: auto; padding: 0 20px; }
.muted { color: var(--muted); line-height: 1.5; text-align: left; }
.small { font-size: 12px; }

/* Accessibility & SEO utility for invisible semantic content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
  
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 2px solid var(--red);
  z-index: 999;
}
  
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
  
.brand { display: flex; gap: 12px; align-items: center; }

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.image-container {
  display: flex;
  align-items: flex-start; /* aligns with header text */
  justify-content: flex-start; /* or center, if you want it centered */
  margin-top: 2rem;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}


/* NAV LINKS */
.nav-item {
  position: relative;
}

.nav-links a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
    
.nav-links a:hover {
  background: rgba(244, 185, 0, 0.15);
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
    
nav {
  display: flex;
  align-items: center;
}

  /* DROPDOWN */
.dropdown-toggle {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  background: none;
  border: none;
  color: var(--text);
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 12px;
  display: block;
  text-align: left;
}
  
.dropdown-toggle:hover {
  background: rgba(244, 185, 0, 0.15);
  color: var(--red);
}
  
.dropdown-menu {
    display: none;
    position: absolute;
    top: auto;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
  }
  
.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-weight: 500;
  }
  
.dropdown-menu a:hover {
    background: rgba(244, 185, 0, 0.12);
    color: var(--red);
  }

.lang-switch {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid var(--border);
  }
  
.dark-toggle {
    border: 1px solid var(--border);
    background: none;
    padding: 6px 8px;
    border-radius: 6px;
}
  
.cta {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--yellow);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
  }

.nav-links .cta:hover {
    background: var(--red);
    color: var(--bg);
  }

/* Dark mode CTA */
body.dark .cta {
  border-color: var(--yellow);
  color: var(--red);
}

body.dark .nav-links .cta:hover {
  background: var(--yellow);
  color: #000;
}

.hamburger {
    display: none;
    font-size: 22px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
  }
  
.hero {
    padding: 60px auto;
    background: linear-gradient(
      180deg,
      rgba(133,43,35,0.08),
      rgba(244,185,0,0.05)
    );
  }
  
.hero-inner {
    display: grid;
    align-items: flex-start;
    grid-template-columns: 1fr minmax(50%,50%);
    gap: 32px;
    align-items: stretch;
    height: 100%;
  }

.hero,
.contact-section {
    min-height: 0;
  }
  
.placeholder-carousel {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center; 
}

section { padding: 56px 0; border-top: 1px solid var(--border); }


.placeholder-carousel {
  flex: 1 1 0;
  min-width: 300px; /* Optional: set a minimum width for carousel */
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  #contact {
    flex-shrink: 0;
  }

.map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 12px;
  }
  
  .contact-info {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
  }
  
  footer {
    border-top: 1px solid var(--red);
    padding: 6px 0;
    margin-top: 24px;
    flex-shrink: 0;
  }
  
  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.2;
  }
  @media (max-width: 900px) {
    .hamburger {
      display: block;
      margin-left: auto;
    }
  
    .nav-links {
      display: none;
      position: absolute;
      top: 72px;
      right: 20px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      width: 220px;
      flex-direction: column;
      gap: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
      z-index: 1000;
    }
  
  .nav-links a,
  .nav-right {
    width: 100%;
  }
  
.nav-right {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

  .hero-inner,
  .about-grid,
  .contact-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .product-hero,
  .resource-hero {
    border-top: none;
    padding: 0;
    height: min(38vw, 420px);
    overflow: hidden;
  }
  
  .product-hero img,
  .resource-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-info,
  .resource-info {
    padding-top: 0;     
    padding-bottom: 56px;
  }

  .company-hero {
    border-top: none;
    padding: 0;
    height: min(calc(100vw * 9 / 16), 500px); /* 16:9 ratio, max 500px */
    overflow: hidden;
    position: relative;
  }

  .company-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
  }

  .hero-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Full screen */
    overflow: hidden;
  }
  
  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .hero-machining {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }

.slide.active {
  opacity: 1;
 }

  /* Video hero */

.design-hero {
    border-top: none;
    padding: 0;
    height: min(calc(100vw * 9 / 16), 500px); /* 16:9 */
    overflow: hidden;
    position: relative;
}

.owl-carousel .owl-item img {
  height: 300px;
  object-fit:fill;
  border-radius: 12px; /* Adjust the value as needed  */
}


  /* Desktop hover */
  @media (min-width: 901px) {
    .dropdown:hover .dropdown-menu {
      display: block;
    }
  }
  
  /* Mobile behavior */
  @media (max-width: 900px) {
    .dropdown-menu {
      position: static;
      box-shadow: none;
      border: none;
      padding-left: 12px;
    }
  }
  
  @media (max-width: 900px), (max-height: 700px) {
    .layout {
      display: block;
    }
  
    .hero,
    .contact-section {
      min-height: auto;
      overflow: visible;
    }
  }
  
