/* ==========================================================================
   Oakland Chemical - Clean, Modern, Lightweight Stylesheet
   Pure vanilla CSS - Zero external framework bloat
   ========================================================================== */

:root {
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --color-primary: #0f172a;       /* Deep slate/navy */
  --color-primary-light: #1e293b;
  --color-accent: #0284c7;        /* Vibrant tech blue */
  --color-accent-hover: #0369a1;  /* Darker tech blue */
  --color-accent-bg: #e0f2fe;     /* Ice blue badge background */
  --color-accent-subtle: #f0f9ff;
  --color-text: #1e293b;          /* High contrast text */
  --color-muted: #64748b;         /* Secondary text */
  --color-border: #e2e8f0;        /* Subtle border */
  --color-bg-page: #f8fafc;
  --color-bg-white: #ffffff;
  --color-dark-navy: #0b132b;
  --color-dark-surface: #1c2541;

  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px -4px rgba(15, 23, 42, 0.12);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--color-accent-bg);
  color: var(--color-accent-hover);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.nav-link {
  color: var(--color-primary);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 700;
}

.nav-phone svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.btn-chemcom-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.btn-chemcom-nav:hover {
  background: #dcfce7;
  color: #166534;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--color-bg-white);
  padding: 60px 0 70px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
}

.hero-bullet-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-contact-card {
  background-color: var(--color-accent-subtle);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-contact-info strong {
  display: block;
  font-size: 15px;
  color: var(--color-primary);
}

.hero-contact-info span {
  font-size: 14px;
  color: var(--color-muted);
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrap img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  max-height: 520px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   Full Width Panoramic Banner
   ========================================================================== */
.banner-section {
  width: 100%;
  background-color: var(--color-primary);
  line-height: 0;
}

.banner-section img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   What We Do Section (Centered & Symmetrical)
   ========================================================================== */
.what-we-do-section {
  background-color: var(--color-bg-white);
  padding: 90px 0;
  border-bottom: 1px solid var(--color-border);
}

.what-we-do-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 30px;
}

.capability-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background-color: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition);
}

.capability-pill:hover {
  background-color: var(--color-accent-subtle);
  border-color: #bae6fd;
  color: var(--color-accent-hover);
}

.capability-pill svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ChemCom Spotlight Box */
.chemcom-spotlight {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  border: 1px solid #334155;
}

.chemcom-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--color-accent);
  color: #ffffff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.chemcom-spotlight h3 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.chemcom-spotlight p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-accent);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.schematic-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.schematic-card img {
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.schematic-caption {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
  margin-top: 12px;
}

/* ==========================================================================
   Technical Services & Laboratory Tools
   ========================================================================== */
.services-section {
  background-color: var(--color-bg-page);
  padding: 90px 0;
  border-bottom: 1px solid var(--color-border);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.service-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color-accent);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent-subtle);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
}

.service-card-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.service-subgroup {
  margin-bottom: 24px;
}

.service-subgroup:last-child {
  margin-bottom: 0;
}

.service-subgroup-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-hover);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-subgroup-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.service-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-item-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.service-item-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-item-pill.custom-inquiry {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
  font-style: italic;
}

.service-item-pill.custom-inquiry::before {
  background-color: #16a34a;
}


/* ==========================================================================
   Case Studies Carousel (Pure Vanilla JS)
   ========================================================================== */
.carousel-section {
  background-color: var(--color-bg-white);
  padding: 90px 0;
  border-bottom: 1px solid var(--color-border);
}

.carousel-wrapper {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.carousel-slides {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 40px;
  padding: 44px;
  background-color: #ffffff;
}

.slide-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-image-col img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  max-height: 380px;
  width: 100%;
  object-fit: cover;
}

.slide-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background-color: var(--color-accent-bg);
  color: var(--color-accent-hover);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.slide-content-col h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 16px;
}

.slide-content-col p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.slide-content-col p:last-child {
  margin-bottom: 0;
}

.slide-result-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}

.slide-result-pill svg {
  width: 16px;
  height: 16px;
  color: #15803d;
}

/* Carousel Arrow Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

.carousel-nav-btn:hover {
  background-color: #ffffff;
  color: var(--color-accent);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.carousel-nav-btn.prev {
  left: -24px;
}

.carousel-nav-btn.next {
  right: -24px;
}

.carousel-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--color-accent);
  width: 28px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Contact Hub & ChemCom Portal Link
   ========================================================================== */
.contact-section {
  background-color: var(--color-bg-page);
  padding: 90px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-portal-box {
  background-color: #ffffff;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px auto;
}

.contact-portal-box h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.contact-portal-box p {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto 28px auto;
}

.contact-portal-box .btn-primary {
  font-size: 16px;
  padding: 14px 36px;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent-subtle);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-word;
}

.contact-value a {
  color: var(--color-primary);
}

.contact-value a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Mission Statement & Footer
   ========================================================================== */
.footer-section {
  background: linear-gradient(135deg, var(--color-dark-navy) 0%, var(--color-dark-surface) 100%);
  color: #ffffff;
  padding: 80px 0 40px 0;
  text-align: center;
}

.mission-box {
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.mission-badge {
  display: inline-block;
  padding: 4px 14px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  margin-bottom: 16px;
}

.mission-title {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.mission-text {
  font-size: 17px;
  color: #e2e8f0;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 500;
}

.footer-nav a {
  color: #94a3b8;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-nav a.highlight {
  color: #38bdf8;
  font-weight: 700;
}

.footer-copy {
  color: #64748b;
  font-size: 13px;
}

/* ==========================================================================
   Floating Scroll-to-Top Button
   ========================================================================== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
}

#back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .what-we-do-grid,
  .services-grid,
  .carousel-slide {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .carousel-slide {
    padding: 32px 24px;
  }

  .carousel-nav-btn.prev {
    left: 8px;
  }

  .carousel-nav-btn.next {
    right: 8px;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .capabilities-grid,
  .service-items-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }
}
