/* style.css */
:root {
  --primary: #ff3b00;
  --primary-hover: #ff5c2d;
  --accent: #ffd700;
  --dark: #0a0a0a;
  --surface: #161616;
  --gray: #1e1e1e;
  --border: #2c2c2c;
  --text: #eee;
  --text-muted: #a3a3a3;
  --radius: 14px;
  --nav-height: 68px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
}

.logo-img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.brand-name {
  letter-spacing: 0.02em;
}

.nav-links {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

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

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-link:last-child {
  border-bottom: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-button {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  min-height: 88vh;
  padding-top: calc(var(--nav-height) + 1.5rem);
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)), url('images/glasses-hero.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-title {
  font-size: clamp(2.1rem, 8vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 320px;
  margin: 1.75rem auto 0;
}

.btn-primary, .btn-secondary {
  padding: 15px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 59, 0, 0.35);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid var(--accent);
}

.hero-image {
  max-width: 260px;
  width: 60%;
}

.hero-image img {
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.5));
}

.flame-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ===== TRUST BAR ===== */
.trust-bar {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.9rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.trust-bar::-webkit-scrollbar {
  display: none;
}

.trust-item {
  flex: 0 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== SHOP ===== */
.shop-section {
  padding: 3.5rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.product-card {
  position: relative;
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 10, 10, 0.85);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 50px;
  z-index: 1;
}

.product-image-wrap {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 1.25rem;
}

.product-image-wrap img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.product-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.product-blurb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.product-price {
  font-family: var(--font-heading, inherit);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.add-to-cart-btn.added {
  background: #2e7d32;
}

/* ===== TECHNOLOGY ===== */
.tech-section {
  background: var(--surface);
}

.tech-section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 2rem;
}

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

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

.tech-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.tech-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.tech-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ===== SAFETY ===== */
.safety-section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 2rem;
}

.safety-content {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  align-items: center;
}

.safety-text ul {
  list-style: none;
  margin: 1.25rem 0;
}

.safety-text li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
  color: var(--text-muted);
}

.safety-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.safety-text small {
  display: block;
  margin-top: 1rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.safety-image {
  max-width: 320px;
  width: 100%;
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials h2 {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 2rem;
}

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

.testimonial {
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial cite {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== COMMUNITY ===== */
.community-section {
  background: var(--surface);
}

.community-section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.application-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-grid textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.application-form > .btn-primary {
  width: 100%;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.footer-logo {
  height: 32px;
  margin: 0 auto 0.75rem;
  border-radius: 6px;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid h4 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-grid a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

.footer-grid a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===== CART MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 1.75rem 1.5rem 2rem;
}

.modal-content h2 {
  margin-bottom: 1.25rem;
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0;
}

.cart-confirmation {
  color: var(--accent);
  text-align: center;
  padding: 1.5rem 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.cart-subtotal {
  text-align: right;
  font-weight: 600;
  padding-top: 0.9rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qty-controls button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--gray);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
  flex-shrink: 0;
}

.modal-content .btn-secondary {
  margin-top: 0.75rem;
}

/* ===== TABLET / DESKTOP ===== */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: none;
    padding: 0;
    gap: 2rem;
  }

  .nav-link {
    border-bottom: none;
    padding: 0;
  }

  .logo-img {
    height: 42px;
  }

  .hero-content {
    flex-direction: row-reverse;
    text-align: left;
    align-items: center;
    gap: 3rem;
  }

  .hero-text {
    flex: 1;
  }

  .hero-subtitle {
    margin: 0 0 1.5rem;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: flex-start;
    margin: 0;
    max-width: none;
  }

  .btn-primary, .btn-secondary {
    width: auto;
  }

  .hero-image {
    flex: 1;
    max-width: 380px;
    width: 100%;
  }

  .trust-bar {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .safety-content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    text-align: left;
  }

  .safety-text {
    flex: 1;
  }

  .safety-image {
    flex: 1;
    max-width: 380px;
  }

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

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    text-align: left;
  }

  .footer-logo {
    margin: 0 0 0.75rem;
  }

  .modal {
    align-items: center;
  }

  .modal-content {
    border-radius: 20px;
  }
}

@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
  }
}
