/* ─────────────────────────────────────────────────────────────────────────────
   main.css — Sealants and More Inc.
   Design system: dark navy + construction orange
───────────────────────────────────────────────────────────────────────────── */

/* 1. Custom Properties
───────────────────────────────────────────────────────────────────────────── */
:root {
  --navy:         #0D1B2A;
  --navy-mid:     #1B2A3E;
  --navy-light:   #243450;
  --orange:       #E87722;
  --orange-dark:  #C5611A;
  --orange-light: #FF9547;
  --white:        #FFFFFF;
  --grey-light:   #F4F5F7;
  --grey-border:  #DDE1E7;
  --grey-text:    #6B7280;
  --stripe-blue:  #635BFF;
  --stripe-hover: #4F47E5;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.12);
  --shadow-card: 0 4px 20px rgba(0,0,0,.18);
  --transition: 0.18s ease;

  --max-width: 1280px;
  --section-pad: 5rem 1.5rem;
}

/* 2. Global / Typography
───────────────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  background: var(--grey-light);
  color: var(--navy);
  line-height: 1.6;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* 3. Header & Navigation
───────────────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: var(--white);
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
}
.logo-text span { color: var(--orange); }

.main-nav { display: flex; gap: 0.25rem; align-items: center; }

.nav-link {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* 4. Hero Section
───────────────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(232,119,34,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(99,91,255,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1.2rem; }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  max-width: 480px;
}

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

.btn-primary {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,.3);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
  display: inline-block;
}
.btn-secondary:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.05); }

.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap img {
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.5));
}

/* 5. Trust Bar
───────────────────────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--navy-mid);
  padding: 2.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .trust-bar-inner { grid-template-columns: repeat(3, 1fr); }
}

.trust-item { color: var(--white); }
.trust-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.trust-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* 6. Products Section
───────────────────────────────────────────────────────────────────────────── */
.products-section {
  padding: var(--section-pad);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.section-header h2 { margin-bottom: 0.6rem; }
.section-sub { color: var(--grey-text); font-size: 1rem; }

/* 7. Filter Bar
───────────────────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  color: var(--grey-text);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* 8. Product Grid
───────────────────────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 540px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* 9. Product Card
───────────────────────────────────────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.product-card[hidden] { display: none; }

.card-img-wrap {
  background: #f8f9fb;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--grey-border);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-body {
  padding: 1.1rem 1.1rem 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brand-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: fit-content;
}
.brand-asi   { background: #E8F0FE; color: #1A56DB; }
.brand-tytan { background: #FEF3C7; color: #B45309; }
.brand-ge    { background: #ECFDF5; color: #047857; }

.card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.83rem;
  color: var(--grey-text);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.card-price-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--grey-text);
  margin-left: 0.25rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Quantity stepper — card grid */
.qty-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--grey-text);
  font-weight: 600;
}
.qty-stepper {
  display: flex;
  align-items: center;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--grey-border);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--transition);
}
.qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-btn:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-btn:hover { background: #f0f2f5; }
.qty-input {
  width: 36px;
  height: 26px;
  text-align: center;
  border: 1.5px solid var(--grey-border);
  border-left: none;
  border-right: none;
  font-size: 0.85rem;
  font-weight: 600;
  -moz-appearance: textfield;
  background: #fff;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-details {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border: 1.5px solid var(--grey-border);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
  min-width: 80px;
}
.btn-details:hover { border-color: var(--navy); }

.buy-btn {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  background: var(--stripe-blue);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
  border: none;
  min-width: 80px;
}
.buy-btn:hover { background: var(--stripe-hover); }
.buy-btn--pending {
  background: var(--grey-border);
  color: var(--grey-text);
  cursor: not-allowed;
  pointer-events: none;
}

/* 10. Brands Section
───────────────────────────────────────────────────────────────────────────── */
.brands-section {
  background: var(--navy-mid);
  padding: 4rem 1.5rem;
  color: var(--white);
}

.brands-section .section-header h2 { color: var(--white); }
.brands-section .section-sub { color: rgba(255,255,255,.6); }

.brands-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }

.brand-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.brand-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem;
  margin: 0 auto 1rem;
}
.brand-icon-asi   { background: #1A56DB; color: #fff; }
.brand-icon-tytan { background: #B45309; color: #fff; }
.brand-icon-ge    { background: #047857; color: #fff; }

.brand-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--white); }
.brand-card p { font-size: 0.88rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* 11. About Section
───────────────────────────────────────────────────────────────────────────── */
.about-section { padding: var(--section-pad); }

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .about-inner { grid-template-columns: 1fr 1fr; } }

.about-content h2 { margin-bottom: 1rem; }
.about-content p { color: var(--grey-text); margin-bottom: 1rem; line-height: 1.7; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .stat-n { font-size: 1.8rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-card .stat-l { font-size: 0.8rem; color: var(--grey-text); margin-top: 0.25rem; }

/* 12. Contact Section
───────────────────────────────────────────────────────────────────────────── */
.contact-section {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-pad);
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.contact-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.contact-section p { color: rgba(255,255,255,.65); margin-bottom: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}
.contact-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.55);
  margin-bottom: 0.4rem;
}
.contact-card a, .contact-card address {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  font-style: normal;
  text-decoration: none;
}
.contact-card a:hover { color: var(--orange); }

/* 13. Footer
───────────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #080F17;
  color: rgba(255,255,255,.5);
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-nav { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }

/* 14. Responsive
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    gap: 0.25rem;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 0.6rem 0.8rem; }
  .nav-toggle { display: flex; }
}
