:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --text: #111111;
  --muted: #666666;
  --accent: #c9a227;
  --card: #ffffff;
  --border: #e7e7e7;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --hero-overlay: linear-gradient(115deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35));
}

body.dark {
  --bg: #101010;
  --bg-soft: #1a1a1a;
  --text: #f7f7f7;
  --muted: #bdbdbd;
  --accent: #e5bf4f;
  --card: #171717;
  --border: #2a2a2a;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  --hero-overlay: linear-gradient(115deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.5));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-head h2 {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.2;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: -1000px;
  top: -1000px;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 99px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: url("https://images.unsplash.com/photo-1539185441755-769473a23570?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 20% 30%, rgba(201, 162, 39, 0.28), transparent 35%);
  z-index: -1;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-content {
  color: #fff;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #eaeaea;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.72rem 1.15rem;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #111;
  box-shadow: var(--shadow);
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}

.stats {
  background: var(--bg-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat-card h2 {
  margin: 0;
  font-size: 2rem;
}

.stat-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.slides-wrapper {
  display: flex;
  transition: transform 0.55s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  height: 510px;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: color-mix(in srgb, #111 70%, transparent);
  color: #fff;
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.slide-content h3 {
  margin: 0 0 0.2rem;
}

.slide-content p {
  margin: 0;
  color: #e3e3e3;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #ffffff55;
  color: #fff;
  background: #0000005e;
  cursor: pointer;
  z-index: 4;
}

.slider-btn.prev {
  left: 0.7rem;
}

.slider-btn.next {
  right: 0.7rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.category-card h3 {
  margin-top: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  overflow: hidden;
}

.product-image img {
  height: 260px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: 1rem;
}

.product-info h3 {
  margin: 0 0 0.3rem;
}

.product-info p {
  margin: 0;
  color: var(--muted);
}

.product-info strong {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--accent);
}

.about {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.about-image img {
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
}

.testimonial-card p {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.newsletter-form input {
  width: 100%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.newsletter-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: var(--accent);
}

#formMessage,
#newsletterMessage {
  min-height: 1.4rem;
  margin: 0.3rem 0 0;
}

.newsletter-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.2rem;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  max-width: 560px;
  margin: 0.9rem auto 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.social-links a {
  color: var(--muted);
}

.social-links a:hover {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .stats-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .contact-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .slide img {
    height: 430px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1rem;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .slide img {
    height: 360px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 4rem 0;
  }

  .stats-grid,
  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 80vh;
  }
}
