/* styles.css — D Creations (Light theme, responsive, clean) */
:root {
  --bg: #ffffff;
  --accent: #2a9d3f;
  --muted: #6b6b6b;
  --dark: #162415;
  --container-width: 1140px;
  --radius: 10px;
  --gap: 16px;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  --transition: 0.28s ease;
}

/* Reset + base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 16px;
}
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(4px);
  z-index: 60;
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.brand {
  margin-left: 20px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  font-size: 1.1rem;
}

.brand img.logo {
  height: 70px;
  width: auto;
}

.nav {
  /* position: sticky; */
  display: flex;
  gap: 10px;
  flex: 1;
  align-items: center;
  margin-left: 14px;
}
.nav a {
  color: var(--dark);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
}
.nav a:hover { background: #f5f8f6; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.btn {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-outline {
  background: transparent;
  border-color: #ddd;
  color: var(--dark);
}

/* Mobile toggle */
#nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 20px;
  padding: 6px;
}

/* HERO */
.hero { padding: 48px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
}
.hero-text h1 { font-size: 2rem; margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.hero-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.features {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ABOUT */
.section { padding: 44px 0; }
.section.light { background: #fbfbfb; }
.section-title {
  font-size: 1.25rem;
  margin: 0 0 8px;
  font-weight: 600;
}
.section-sub { color: var(--muted); margin: 0 0 16px; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.about-item {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}
.about-item h4 { margin: 0 0 8px; }

/* PRODUCTS — Homepage slider */
.products-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 18px;
}
.products-viewport {
  overflow: hidden;
  flex: 1;
  margin: 0 48px; /* space for arrows */
}
.products-track {
  display: flex;
  gap: 0;
  align-items: stretch;
  transition: transform 600ms cubic-bezier(.22, .9, .28, 1);
  will-change: transform;
}

/* EXACT 3 cards visible */
.product-card {
  flex: 0 0 calc((100% - 0px) / 3);
  padding: 14px;
  background: #fff;
  text-align: left;
  border-radius: 10px;
  margin: 0;
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}
.product-card h3 { margin: 0; font-size: 1.02rem; }
.product-card .desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.view-btn {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* ARROWS */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--dark);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: all 0.18s ease;
  z-index: 30;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.03);
  background: rgba(0, 0, 0, 0.03);
}
.left-arrow { left: 8px; }
.right-arrow { right: 8px; }

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.process-step {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  text-align: center;
}

/* TESTIMONIALS */
.testimonials { min-height: 120px; }
.testimonial {
  display: none;
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.testimonial.active { display: block; }
.slider-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  align-items: start;
}
.contact-info { padding-right: 8px; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  color: var(--muted);
}
.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-top: 10px;
}
.contact-form-wrap {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.contact-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--dark);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 15px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid #eee;
  padding: 16px 0;
  background: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .product-card img { height: 140px; }
  .products-viewport { margin: 0 40px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  #nav-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .product-card { flex: 0 0 80%; }
  .product-card img { height: 140px; }
  .hero-text h1 { font-size: 1.4rem; }
  .carousel-arrow {
    width: 36px;
    height: 36px;
    border-width: 1.8px;
    font-size: 14px;
  }
  .left-arrow { left: 6px; }
  .right-arrow { right: 6px; }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .products-track { transition: none; animation: none; }
}

/* ---------------- PRODUCT PAGE 2-COLUMN LAYOUT ---------------- */

.product-two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

.product-carousel {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #162415;
  color: #162415;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: 0.25s;
  z-index: 20;
}

.prev-btn { left: 12px; }
.next-btn { right: 12px; }

.carousel-btn:hover {
  background: #162415;
  color: white;
}

/* Product Information */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-title {
  margin-left: 10px;
  font-size: 2rem;
  font-weight: 700;
}
.product-kv {
  /* margin-left: 10px; */
  color: #555;
}
.product-fabric {
  background: #f8f8f8;
  padding: 14px 18px;
  border-left: 4px solid #2a9d3f;
  border-radius: 8px;
}
.product-description {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.connect-btn { margin-top: 20px; }

/* Mobile */
@media (max-width: 880px) {
  .product-two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .carousel-btn {
    padding: 6px 9px;
    font-size: 14px;
  }
}


/* ================== PREMIUM RESPONSIVE NAVBAR ================== */

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--dark);
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Desktop CTA button */
.nav-cta {
  display: inline-flex;
}

/* Hamburger Icon */
#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

#nav-toggle span {
  height: 3px;
  width: 26px;
  background: var(--dark);
  border-radius: 4px;
  transition: 0.3s ease;
}

/* Mobile Dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  width: 100%;
  padding: 14px 0;
  border-top: 1px solid #eee;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 14px 20px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
}

.mobile-menu a:hover {
  background: #f6f6f6;
}

/* Hamburger Animation */
#nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
#nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================== MOBILE RESPONSIVE ================== */
@media (max-width: 820px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  #nav-toggle {
    margin-right: 40px;
    display: flex;
  }
  .product-kv{
    margin-left: 10px;
  }
}

/* ===================== TESTIMONIAL SLIDER ===================== */
.testimonial {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.testimonial.active {
  display: block;
  opacity: 1;
}

.slider-controls button {
  background: white;
  border: 2px solid var(--dark);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.slider-controls button:hover {
  background: var(--dark);
  color: white;
}
