/* =============================================
   Crystal Analytical — style.css
   ============================================= */

/* ---- Design Tokens ---- */
:root {
  --navy:       #1C3F6E;
  --navy-dark:  #122843;
  --navy-mid:   #2A5298;
  --teal:       #00B4AE;
  --teal-light: #E6F7F7;
  --light-bg:   #F4F7FB;
  --text-dark:  #1A2E48;
  --text-body:  #4A5568;
  --text-muted: #7A8BA0;
  --white:      #FFFFFF;
  --border:     #E2EAF3;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-body);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.25;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ---- Section Typography ---- */
.section-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 0;
}

/* ---- Buttons ---- */
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: background .2s, transform .15s;
}
.btn-teal:hover { background: #009892; border-color: #009892; color: var(--white); transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: background .2s, color .2s;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: background .2s;
}
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.btn-white-outline:hover { background: var(--white); color: var(--teal); }

/* =============================================
   NAVBAR
   ============================================= */
#mainNav {
  padding: 0.75rem 0;
  z-index: 1030;
}

#mainNav .navbar-brand img {
  height: 44px;
  width: auto;
}

#mainNav .nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
#mainNav .nav-link:hover { color: var(--teal); background: var(--teal-light); }

/* =============================================
   HERO
   ============================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url('img/hero.webp') center 30% / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28, 63, 110, 0.88) 0%,
    rgba(28, 63, 110, 0.60) 50%,
    rgba(28, 63, 110, 0.20) 100%
  );
}

.hero-content { position: relative; padding: 5rem 0; }

.hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* =============================================
   TRUST STRIP
   ============================================= */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }

.trust-icon {
  font-size: 1.5rem;
  color: var(--teal);
  flex-shrink: 0;
}

.trust-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  line-height: 1.2;
}

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

/* =============================================
   SECTION BACKGROUNDS
   ============================================= */
.section-white { background: var(--white); }
.section-light { background: var(--light-bg); }

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(28, 63, 110, 0.08);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(28, 63, 110, 0.14); }

.service-card--featured {
  border: 2px solid var(--teal);
}

.service-card-photo {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,63,110,0.25) 0%, rgba(28,63,110,0.1) 100%);
}

.service-card-icon {
  position: absolute;
  bottom: -22px;
  left: 1.5rem;
  z-index: 2;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 6px;
}
.service-card-icon img { width: 34px; height: 34px; object-fit: contain; }

.service-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--teal);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  z-index: 2;
}

.service-card-body {
  padding: 2.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.service-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
}
.service-list li {
  font-size: 0.875rem;
  color: var(--text-body);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-img {
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(28, 63, 110, 0.12);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-text {
  color: var(--text-body);
  margin-bottom: 1rem;
}
.about-text em {
  color: var(--navy);
  font-style: italic;
  font-weight: 500;
}

.stat-box {
  background: var(--white);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(28, 63, 110, 0.07);
  border: 1px solid var(--border);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =============================================
   PROCESS SECTION
   ============================================= */
.process-section {
  background: url('img/moodboard2.webp') center / cover no-repeat;
  position: relative;
}
.process-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 46, 72, 0.88);
}
.process-section .container { position: relative; }

.text-white-70 { color: rgba(255,255,255,0.7); }
.text-teal-light { color: var(--teal); }

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.process-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.process-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.process-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0;
}

.process-connector {
  color: var(--teal);
  font-size: 1.1rem;
  opacity: 0.5;
  padding-top: 0.5rem;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.75rem;
}

/* =============================================
   SUPPLIES
   ============================================= */
.product-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(28, 63, 110, 0.06);
  transition: box-shadow .2s, transform .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 8px 32px rgba(28, 63, 110, 0.12); transform: translateY(-3px); }

.product-img-wrap {
  height: 200px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 1rem;
}

.product-img-wrap--icon {
  background: var(--teal-light);
}
.product-icon-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

/* =============================================
   SHIPPING CTA
   ============================================= */
.shipping-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.shipping-icon {
  font-size: 3rem;
  color: var(--teal);
}

.shipping-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.shipping-text {
  font-size: 0.925rem;
  color: rgba(255,255,255,0.8);
}
.shipping-text strong { color: var(--white); }

/* =============================================
   CONTACT
   ============================================= */
.contact-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(28, 63, 110, 0.06);
}

.contact-card-header {
  background: var(--navy);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
}

.contact-card-body { padding: 1.25rem; }

.contact-address {
  font-size: 0.925rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-body);
}
.contact-detail i { color: var(--teal); margin-top: 2px; flex-shrink: 0; }
.contact-detail a { color: var(--text-body); }
.contact-detail a:hover { color: var(--teal); }

.hours-table { border-collapse: collapse; }
.hours-table td { padding: 0.35rem 0; font-size: 0.875rem; }
.hours-table td:first-child { font-weight: 500; color: var(--text-dark); width: 110px; }
.hours-table td:last-child { color: var(--text-muted); }
.closed-row td { color: var(--text-muted); opacity: 0.6; }

.hours-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-logo { filter: brightness(0) invert(1); opacity: 0.9; }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  line-height: 1.6;
}

.footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.footer-links a { color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-links a:hover { color: var(--teal); }

.border-footer { border-color: rgba(255,255,255,0.1) !important; }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.wicked-fast-link { text-decoration: none; }
.wf-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .2s, color .2s;
}
.wf-badge:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.wf-badge strong { color: var(--white); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .process-connector { display: none; }
  .process-step { max-width: 320px; width: 100%; }

  .about-img { height: 360px; }
}

@media (max-width: 575.98px) {
  /* 2×2 grid for trust strip */
  .trust-item { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .trust-item:nth-child(2n) { border-right: none; }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 767.98px) {
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-content { padding: 3rem 0; }
  .hero-title { font-size: 2rem; }
  .shipping-cta .shipping-icon { display: none; }
  .footer-logo { height: 38px; }
}

@media (max-width: 575.98px) {
  .trust-item { border-right: 1px solid var(--border); border-bottom: none; }
  .trust-item:nth-child(2n) { border-right: none; }
}
