/* ============================================================
   GRINDY GEAR – Main Stylesheet
   Colour palette:
     Black:      #1a1a1a
     Yellow:     #f5c518  (brand accent)
     White:      #ffffff
     Light grey: #f7f7f7
     Mid grey:   #e5e5e5
     Text grey:  #555555
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ---------- UTILITY ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.section-sub {
  color: #555;
  margin-bottom: 32px;
  font-size: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-dark {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.btn-amazon {
  background: #f5c518;
  color: #1a1a1a;
  border-color: #f5c518;
  font-weight: 700;
}

.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

.btn-full { width: 100%; }

/* ---------- ANNOUNCEMENT BAR ---------- */
.announcement-bar {
  background: #1a1a1a;
  color: #ffffff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}

.logo-link { flex-shrink: 0; }

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover {
  border-bottom-color: #f5c518;
  color: #1a1a1a;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding: 40px 24px;
  max-width: 680px;
  width: 100%;
}

/* Reduced size and weight vs original */
.hero-content h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* ---------- TRUST BADGES ---------- */
.trust-badges {
  background: #f7f7f7;
  padding: 36px 0;
  border-bottom: 1px solid #e5e5e5;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.badge-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.badge-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.badge-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.badge-item p {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
}

/* ---------- PRODUCTS ---------- */
.products-section {
  padding: 64px 0;
  background: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.product-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  flex: 1;
}

.product-count {
  font-size: 0.76rem;
  color: #777;
  margin-bottom: 6px;
}

.stars {
  color: #f5c518;
  font-size: 0.88rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.view-all-wrap {
  text-align: center;
}

/* ---------- REVIEWS ---------- */
.reviews-section {
  padding: 64px 0;
  background: #f7f7f7;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.rating-label { font-size: 1rem; font-weight: 600; }

.rating-score {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a1a;
}

.stars-big { color: #f5c518; font-size: 1.3rem; letter-spacing: 2px; }

.rating-count { font-size: 0.88rem; color: #555; }

/* Carousel */
.reviews-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.review-card {
  min-width: calc(33.333% - 14px);
  width: calc(33.333% - 14px);
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 22px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.review-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 8px 0 10px;
}

.review-card p {
  font-size: 0.86rem;
  color: #444;
  line-height: 1.55;
  margin-bottom: 14px;
}

.reviewer {
  font-size: 0.8rem;
  font-weight: 600;
  color: #777;
}

.carousel-controls {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.carousel-btn:hover { background: #1a1a1a; color: #fff; }

/* ---------- GALLERY ---------- */
.gallery-section {
  padding: 64px 0;
  background: #ffffff;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 8px;
  margin-top: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.gallery-grid img:hover { opacity: 0.88; }

/* ---------- FEATURES ---------- */
.features-section {
  padding: 64px 0;
  background: #f7f7f7;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }

.feature-img img {
  border-radius: 8px;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.feature-text h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-text p {
  color: #444;
  margin-bottom: 24px;
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about-section {
  padding: 72px 0;
  background: #ffffff;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.about-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: #1a1a1a;
}

.about-text p {
  font-size: 0.93rem;
  color: #444;
  line-height: 1.7;
}

.about-img img {
  border-radius: 8px;
  width: 100%;
  height: 340px;
  object-fit: cover;
  margin-bottom: 20px;
}

.about-badge {
  background: #f7f7f7;
  border-left: 4px solid #f5c518;
  padding: 18px 22px;
  border-radius: 4px;
}

.about-badge p { font-size: 0.88rem; color: #444; line-height: 1.6; }
.about-badge p:first-child { margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-section {
  padding: 64px 0;
  background: #f7f7f7;
}

.faq-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: #888;
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:hover { background: #f7f7f7; }

.faq-item p {
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.7;
}

/* ---------- WHOLESALE ---------- */
.wholesale-section {
  padding: 72px 0;
  background: #ffffff;
}

.wholesale-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.wholesale-text p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}

.wholesale-text .btn {
  margin-top: 8px;
}

.wholesale-highlights {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.wholesale-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.wholesale-icon {
  width: 52px;
  height: 52px;
  background: #f7f7f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1a1a1a;
}

.wholesale-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.wholesale-item p {
  font-size: 0.86rem;
  color: #555;
  line-height: 1.5;
}

/* ---------- CONTACT ---------- */
.contact-section {
  padding: 72px 0;
  background: #f7f7f7;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.contact-info > p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a1a1a;
  padding: 7px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  transition: background 0.15s, border-color 0.15s;
}

.social-link:hover { background: #f7f7f7; border-color: #ccc; }

.amazon-cta-box {
  margin-top: 24px;
  background: #fffbea;
  border: 1px solid #f5c518;
  border-radius: 8px;
  padding: 20px 22px;
}

.amazon-cta-box p {
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: #333;
}

/* Contact Form */
.contact-form-wrap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.form-group label span { color: #e53e3e; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.76rem;
  color: #888;
  margin-top: 10px;
  text-align: center;
}

/* ---------- NEWSLETTER ---------- */
.newsletter-section {
  background: #1a1a1a;
  color: #ffffff;
  padding: 56px 0;
  text-align: center;
}

.newsletter-inner h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.newsletter-inner p {
  font-size: 0.93rem;
  color: #ccc;
  margin-bottom: 26px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #2a2a2a;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  min-width: 0;
}

.newsletter-form input::placeholder { color: #888; }

.newsletter-form input:focus { border-color: #f5c518; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  padding: 52px 20px 36px;
}

.footer-logo img {
  height: 42px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline {
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #1a1a1a;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  font-size: 0.86rem;
  color: #555;
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: #1a1a1a; }

.footer-amazon { margin-top: 18px; }

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  padding: 14px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.76rem;
  color: #888;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large tablet (1024px) */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner .footer-col:first-child { grid-column: 1 / -1; }
  .wholesale-inner { gap: 36px; }
}

/* Tablet / Mobile (768px) */
@media (max-width: 768px) {

  /* --- Announcement bar --- */
  .announcement-bar { font-size: 0.74rem; padding: 8px 12px; }

  /* --- Nav --- */
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    z-index: 99;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    border-left: none;
    font-size: 0.97rem;
    width: 100%;
  }

  .main-nav a:hover { border-bottom-color: #f0f0f0; background: #f7f7f7; }

  /* --- Hero --- */
  .hero { min-height: 380px; }
  .hero-content { padding: 36px 20px; }
  .hero-content h1 { font-size: clamp(1.4rem, 5vw, 2.2rem); margin-bottom: 22px; }

  /* --- Trust badges --- */
  .badges-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .badge-item { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .badge-item img { width: 40px; height: 40px; }

  /* --- Products --- */
  .products-section { padding: 48px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: 0.82rem; }

  /* --- Reviews --- */
  .reviews-section { padding: 48px 0; }
  .review-card { min-width: calc(82% - 14px); width: calc(82% - 14px); }
  .rating-summary { gap: 8px; }
  .rating-score { font-size: 1.4rem; }

  /* --- Gallery --- */
  .gallery-section { padding: 48px 0; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 6px;
  }
  .gallery-grid img { height: 160px; }

  /* --- Features --- */
  .features-section { padding: 48px 0; }
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
    margin-bottom: 48px;
  }
  .feature-img img { height: 240px; }
  .feature-text { text-align: center; }
  .feature-text .btn { display: block; width: fit-content; margin: 0 auto; }

  /* --- About --- */
  .about-section { padding: 52px 0; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-img img { height: 260px; }

  /* --- FAQ --- */
  .faq-section { padding: 48px 0; }
  .faq-item summary { font-size: 0.88rem; padding: 14px 16px; }
  .faq-item p { padding: 0 16px 16px; }

  /* --- Wholesale --- */
  .wholesale-section { padding: 52px 0; }
  .wholesale-inner { grid-template-columns: 1fr; gap: 36px; }
  .wholesale-text { text-align: center; }
  .wholesale-text .btn { margin: 8px auto 0; display: block; width: fit-content; }

  /* --- Contact --- */
  .contact-section { padding: 52px 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-info { text-align: center; }
  .amazon-cta-box { text-align: center; }
  .amazon-cta-box .btn { display: block; width: fit-content; margin: 0 auto; }

  /* --- Newsletter --- */
  .newsletter-section { padding: 44px 0; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input,
  .newsletter-form .btn { width: 100%; }

  /* --- Footer --- */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 28px; }
  .footer-inner .footer-col:first-child { grid-column: auto; }
  .footer-col { text-align: center; }
  .footer-logo img { margin: 0 auto 14px; }
  .social-links { justify-content: center; }
  .footer-amazon { text-align: center; }
}

/* Small mobile (480px) */
@media (max-width: 480px) {

  /* --- Hero --- */
  .hero { min-height: 320px; }
  .hero-content h1 { font-size: 1.35rem; }
  .hero-content { padding: 28px 16px; }

  /* --- Trust badges --- */
  .badges-grid { grid-template-columns: 1fr; gap: 14px; }

  /* --- Products --- */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info h3 { font-size: 0.78rem; }
  .product-info { padding: 10px; }

  /* --- Reviews --- */
  .review-card { min-width: calc(94% - 14px); width: calc(94% - 14px); }

  /* --- Gallery --- */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 200px; }

  /* --- FAQ --- */
  .faq-item summary { font-size: 0.84rem; }

  /* --- Wholesale --- */
  .wholesale-item { flex-direction: column; align-items: center; text-align: center; }
  .wholesale-icon { margin: 0 auto; }

  /* --- Section titles --- */
  .section-title { font-size: 1.3rem; }

  /* --- Buttons --- */
  .btn { padding: 11px 22px; font-size: 0.9rem; }

  /* --- Container padding --- */
  .container { padding: 0 14px; }
}
