/* TOP WEALTH TRADING - Plastic/Rubber Products Website */
/* Card layout, minimal, big images, responsive */

:root {
  --primary: #1a365d;
  --accent: #2c5282;
  --light: #f7fafc;
  --dark: #1a202c;
  --text: #2d3748;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  background: var(--dark);
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
  color: white;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}

.hero-content p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots span.active {
  background: white;
  transform: scale(1.2);
}

/* Section */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: #718096;
  font-size: 1.1rem;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .card-content {
  padding: 1.5rem;
}

.product-card h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.product-card p {
  color: #718096;
  font-size: 0.95rem;
}

/* About Section - Cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about-img-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.about-img-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.about-text {
  padding: 1rem 0;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.about-text p {
  color: #4a5568;
  margin-bottom: 1rem;
}

/* Customer Feedback (Testimonials) - Carousel */
.testimonial-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.testimonial-section .section-title {
  margin-bottom: 2.5rem;
}

.testimonial-carousel-wrap {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-carousel {
  overflow: hidden;
  border-radius: 16px;
}

.testimonial-slide {
  display: none;
  animation: testimonialFade 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

@keyframes testimonialFade {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(26, 54, 93, 0.06);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
}

.testimonial-info h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.testimonial-info span {
  font-size: 0.9rem;
  color: #718096;
}

.testimonial-content {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.75;
}

.testimonial-stars {
  color: #ecc94b;
  margin-top: 1rem;
  font-size: 1rem;
}

.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e2e8f0;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.testimonial-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.testimonial-prev { left: -60px; }
.testimonial-next { right: -60px; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e0;
  cursor: pointer;
  transition: all 0.3s;
}

.testimonial-dots span.active {
  background: var(--primary);
  transform: scale(1.25);
}

@media (max-width: 900px) {
  .testimonial-prev { left: 10px; }
  .testimonial-next { right: 10px; }
  .testimonial-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* User Message Form */
.message-section {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #1a365d 0%, #2c5282 100%);
}

.message-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.message-form-wrapper h2 {
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.message-form-wrapper .form-desc {
  color: #718096;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.message-form .form-group {
  margin-bottom: 1.25rem;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.message-form input:focus,
.message-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.message-form textarea {
  min-height: 120px;
  resize: vertical;
}

.message-form .submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.message-form .submit-btn:hover {
  background: var(--accent);
}

/* Contact Page */
.contact-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.contact-card {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.contact-card h1 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.contact-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.9rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
  font-size: 1.1rem;
  color: var(--dark);
}

.contact-item a:hover {
  color: var(--accent);
}

/* About Page - Full width images */
.about-hero {
  height: 50vh;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-gallery .gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.about-gallery .gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.about-intro h2 {
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.about-intro p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand .footer-logo:hover {
  color: white;
  opacity: 0.9;
}

.footer-brand .footer-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: white;
}

.footer-contact p,
.footer-contact a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-contact a:hover {
  color: white;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.footer-social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s;
}

.footer-social-links a:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.footer-social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    height: 50vh;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social-links {
    justify-content: center;
  }
}
