/* BESTBAY TRADING - Warm Industrial Theme - Distinct Layout */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --cream: #fdf8f3;
  --navy: #1a2f4a;
  --coral: #e07a5f;
  --coral-dark: #c76a52;
  --sand: #edddd4;
  --gray-600: #6b7280;
  --gray-800: #374151;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Header - Transparent overlay style */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-menu a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--coral); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }
.site-header.page-header {
  position: relative;
  background: var(--navy);
  padding: 1rem 3rem;
}
.site-header.page-header .logo,
.site-header.page-header .nav-menu a { color: rgba(255,255,255,0.95); }
.site-header.page-header .nav-menu a:hover,
.site-header.page-header .nav-menu a.active { color: var(--coral); }
.site-header.page-header .menu-toggle { color: white; }

/* Hero - Split asymmetric layout */
.hero-split {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 85vh;
}
.hero-content-wrap {
  background: var(--cream);
  padding: 8rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-content-wrap .tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--coral);
  margin-bottom: 1rem;
}
.hero-content-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero-content-wrap p {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 420px;
  margin-bottom: 2rem;
}
.hero-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--coral);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.3s;
  width: fit-content;
}
.hero-btn:hover { background: var(--coral-dark); }

.hero-visual {
  position: relative;
  overflow: hidden;
}
.hero-carousel {
  position: relative;
  height: 85vh;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(253,248,243,0.3) 0%, transparent 50%);
}
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.hero-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dots span.active {
  background: var(--coral);
  transform: scale(1.2);
}

/* Section common */
section { padding: 5rem 3rem; }
.container-narrow { max-width: 1200px; margin: 0 auto; }
.sect-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--coral);
  margin-bottom: 0.5rem;
}
.sect-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 2rem;
}

/* Products - Masonry-style staggered */
.products-section { background: white; }
.products-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.prod-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}
.prod-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 320px; }
.prod-item:nth-child(5) { grid-column: span 2; }
.prod-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.prod-item:hover img { transform: scale(1.08); }
.prod-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(26,47,74,0.9));
  color: white;
}
.prod-caption h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.prod-caption p { font-size: 0.85rem; opacity: 0.9; }

/* About - Image left, text right */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}
.about-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.about-gallery .main-img {
  grid-row: span 2;
  height: 100%;
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
}
.about-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.about-gallery .sub-img {
  border-radius: 8px;
  overflow: hidden;
  height: 135px;
}
.about-gallery .sub-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.about-text .hero-btn { margin-top: 0.5rem; }

/* Testimonials - Quote blocks style */
.testimonials-section { background: var(--sand); }
.testimonial-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.testimonial-quote {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-left: 4px solid var(--coral);
}
.testimonial-quote .quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--coral);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -1.5rem;
}
.testimonial-quote p {
  color: var(--gray-600);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-name { font-weight: 600; color: var(--navy); }
.testimonial-role { font-size: 0.85rem; color: var(--gray-600); }
.testimonial-stars { color: #f59e0b; margin-top: 0.5rem; }

/* Message form - Minimal inline */
.message-section {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4a6f 100%);
  color: white;
}
.message-section .sect-tag { color: var(--sand); }
.message-section .sect-title { color: white; }
.message-form {
  max-width: 560px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.5); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.btn-send {
  padding: 1rem 2.5rem;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-send:hover { background: var(--coral-dark); }

/* Footer */
.site-footer {
  background: var(--navy);
  padding: 4rem 3rem 2rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}
.footer-desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  max-width: 280px;
  line-height: 1.6;
}
.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 1rem;
}
.footer-nav ul { list-style: none; }
.footer-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--coral); }
.footer-contact p,
.footer-contact a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--coral); }
.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.3s;
}
.footer-social-links a:hover { background: var(--coral); }
.footer-copy {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s;
  z-index: 999;
}
.back-top:hover { opacity: 1; }

/* About page */
.page-hero {
  height: 45vh;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,47,74,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.about-content { padding: 4rem 3rem; max-width: 1000px; margin: 0 auto; }
.about-content h2 { font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 1.5rem; }
.about-content p { color: var(--gray-600); margin-bottom: 1rem; }
.about-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.about-img-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }

/* Contact page */
.contact-page {
  padding: 8rem 3rem 5rem;
  max-width: 800px;
  margin: 0 auto;
}
.contact-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 2rem;
  text-align: center;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-left: 4px solid var(--coral);
}
.contact-card .icon {
  width: 56px; height: 56px;
  background: var(--sand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--coral);
}
.contact-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 0.5rem; }
.contact-card p, .contact-card a { color: var(--gray-600); text-decoration: none; }
.contact-card a:hover { color: var(--coral); }

/* Responsive */
@media (max-width: 1100px) {
  .products-masonry { grid-template-columns: repeat(2, 1fr); }
  .prod-item:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1; min-height: auto; }
  .prod-item:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 968px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-content-wrap { padding: 7rem 2rem 3rem; order: 1; }
  .hero-visual { order: 2; height: 50vh; }
  .hero-carousel { height: 50vh; }
  .about-split { grid-template-columns: 1fr; }
  .testimonial-quote-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .products-masonry { grid-template-columns: 1fr; }
  .prod-item:nth-child(1), .prod-item:nth-child(5) { grid-column: 1; aspect-ratio: 4/3; }
}
@media (max-width: 768px) {
  .site-header { padding: 1rem 1.5rem; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }
  .nav-menu.open { right: 0; }
  .menu-toggle { display: block; z-index: 101; }
  section { padding: 3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-desc { max-width: none; }
  .footer-social-links { justify-content: center; }
  .contact-cards { grid-template-columns: 1fr; }
  .about-img-grid { grid-template-columns: 1fr; }
}
