
/* Container & Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  background: var(--primary-navy);
  color: #e0f2fe;
  font-size: 0.825rem;
  padding: 0.45rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.header-main {
  padding: 1rem 0;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.logo-badge {
  background: linear-gradient(135deg, var(--primary-teal), var(--accent-cyan));
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 2px 5px rgba(14, 165, 233, 0.3);
}

.brand-info h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

.brand-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.header-search {
  flex: 1;
  max-width: 500px;
  display: flex;
}

.header-search input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 2px solid var(--border-color);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.header-search input:focus {
  border-color: var(--primary-teal);
}

.header-search button {
  background: var(--primary-teal);
  color: white;
  border: none;
  padding: 0 1.25rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-action-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-action-item strong {
  font-size: 0.95rem;
  color: var(--primary-navy);
}

.btn-primary {
  background: var(--primary-teal);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-navy);
  border: 2px solid var(--border-color);
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--primary-navy);
  background: #f1f5f9;
}

/* Category Nav Ribbon */
.nav-ribbon {
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.6rem 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu a:hover {
  color: var(--primary-teal);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(14, 47, 68, 0.92), rgba(14, 47, 68, 0.94)), url('https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
  padding: 4rem 0 3.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-content h2 span {
  color: #38bdf8;
}

.hero-content p {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.badge-item svg {
  color: #38bdf8;
}

.hero-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  color: var(--text-main);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.hero-card h3 {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.hero-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Trust Bar */
.trust-bar {
  background: #ffffff;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e0f2fe;
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.95rem;
  color: var(--primary-navy);
  margin-bottom: 0.15rem;
}

.trust-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Product Catalog Showcase */
.catalog-section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.25rem;
}

.section-header h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevated-shadow);
  border-color: #cbd5e1;
}

.product-badge-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-img-wrapper {
  background: #f8fafc;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.product-img-wrapper img {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary-teal);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.product-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

/* Pricing Grid in Card */
.pricing-matrix {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.price-row-retail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.retail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-single {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.bulk-tier-banner {
  background: #ecfdf5;
  border-left: 3px solid var(--success-green);
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  color: #065f46;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bulk-tier-banner span {
  font-weight: 800;
  color: var(--success-green);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  text-align: center;
  justify-content: center;
}

/* Bulk Order Calculator Section */
.bulk-calculator-section {
  background: #ffffff;
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calculator-wrapper {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calc-form-group {
  margin-bottom: 1.25rem;
}

.calc-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.calc-form-group select,
.calc-form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #ffffff;
  outline: none;
}

.calc-result-box {
  background: var(--primary-navy);
  color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.calc-stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.calc-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #38bdf8;
  margin: 0.5rem 0 1.25rem 0;
}

.calc-savings-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #059669;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Institutional & Compliance Banner */
.compliance-section {
  padding: 4rem 0;
  text-align: center;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.compliance-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 1.75rem 1.25rem;
  border-radius: 10px;
}

.compliance-card h4 {
  color: var(--primary-navy);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

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

/* Footer */
.site-footer {
  background: #091e2b;
  color: #cbd5e1;
  padding: 4rem 0 1.5rem 0;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Quick Order Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .hero-grid, .calculator-wrapper, .trust-grid, .compliance-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-wrapper {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    max-width: 100%;
  }
}
