/* pages/product/*.html */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    background-image: url('../images/beton-design.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: rgb(255, 123, 65);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    image-rendering: optimizeQuality;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product section */
.product-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.product-container {
  max-width: 1200px;
  margin: 0 auto;
}

.product-title {
  font-size: 32px;
  color: #2e2e2e;
  margin-bottom: 20px;
}

.product-description {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 30px;
}

.product-list h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.product-list ul {
  padding-left: 20px;
  list-style-type: disc;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product-gallery-blocks {
    margin-bottom: 30px;
}

.product-gallery img {
  width: calc(33.333% - 13.33px);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

@media (max-width: 768px) {
  .product-gallery img {
    width: 100%;
  }
}

.btn-div {
    margin-bottom: 30px;
    text-align: center;
}

.btn-products {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 18px;
    background: linear-gradient(90deg, rgb(255, 123, 65), #c70039);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.btn-products:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(199, 0, 57, 0.4);
}

.intro-image {
    margin: 30px 0px;
    max-width: 100%;
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    padding: 20px 40px;
    background-color: #333;
    color: white;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
}

.footer-link {
    color: rgb(255, 123, 65);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* for animation */
.product-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:nth-child(1).visible { transition-delay: 0.1s; }
.product-card:nth-child(2).visible { transition-delay: 0.3s; }
.product-card:nth-child(3).visible { transition-delay: 0.5s; }
.product-card:nth-child(4).visible { transition-delay: 0.1s; }
.product-card:nth-child(5).visible { transition-delay: 0.3s; }
.product-card:nth-child(6).visible { transition-delay: 0.5s; }
.product-card:nth-child(7).visible { transition-delay: 0.1s; }
.product-card:nth-child(8).visible { transition-delay: 0.3s; }
.product-card:nth-child(9).visible { transition-delay: 0.5s; }

.orange {
    color: rgb(255, 123, 65);
    font-weight: bold;
}

/* TABLE pages/product/concrete-pipes.html */
.table-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  overflow-x: auto;
}

.custom-table {
    width: 70%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.custom-table th,
.custom-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.custom-table thead {
    background-color: rgb(255, 123, 65);
    color: white;
}

.custom-table tbody tr:nth-child(even) {
    background-color: rgba(255, 122, 65, 0.226);
}

.custom-table td[colspan] {
    background-color: #faf0e6;
    font-weight: bold;
}