/* ============================================================
   BioChem Technology, Inc. — Main Stylesheet
   Water Reclamation Biological Process Optimization Experts
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --blue:        #0075BA;
  --blue-dark:   #005a8e;
  --blue-mid:    #0093d0;
  --blue-light:  #e8f4fb;
  --dark:        #1e2d3d;
  --dark-alt:    #15202b;
  --gray:        #6c757d;
  --gray-light:  #e9ecef;
  --light:       #f8f9fa;
  --white:       #ffffff;
  --text:        #333333;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
  --shadow:      0 4px 24px rgba(0,0,0,0.11);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.15);
  --transition:  all 0.3s ease;
  --radius:      6px;
  --radius-lg:   12px;
  --max-width:   1180px;
  --nav-height:  72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-dark); }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.section        { padding: 5rem 0; }
.section-sm     { padding: 3rem 0; }
.section-alt    { background: var(--light); }
.section-blue   { background: var(--blue); color: var(--white); }
.section-dark   { background: var(--dark); color: var(--white); }
.text-center    { text-align: center; }
.text-blue      { color: var(--blue); }
.text-white     { color: var(--white); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 3rem;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header.left { text-align: left; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 680px;
  margin: 0 auto;
}
.section-header.left p { margin: 0; }
.section-line {
  width: 56px; height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}
.section-header.left .section-line { margin-left: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 50px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
  border-radius: var(--radius);
  transition: var(--transition);
}
.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 210px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
  border-top: 3px solid var(--blue);
}
.main-nav > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}
.dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--blue);
  padding-left: 1.6rem;
}

/* Hamburger Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(15,30,50,0.82) 0%, rgba(0,117,186,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
  animation: fadeInUp 0.8s ease both;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(0,117,186,0.75);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  max-width: 820px;
}
.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page Hero (shorter) */
.page-hero {
  min-height: 320px;
}
.page-hero .hero-content {
  padding: 4rem 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,117,186,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.75rem; }
.card-body h3 { color: var(--blue); margin-bottom: 0.75rem; }
.card-body p  { color: var(--gray); font-size: 0.95rem; margin-bottom: 0; }

/* Feature Card */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--blue);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 58px; height: 58px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg {
  width: 28px; height: 28px;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 { color: var(--dark); margin-bottom: 0.75rem; }
.feature-card p  { color: var(--gray); font-size: 0.95rem; margin-bottom: 0; }

/* ============================================================
   HIGHLIGHT / CALLOUT
   ============================================================ */
.highlight-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.highlight-box p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--dark);
  font-style: italic;
}
.highlight-box strong { color: var(--blue); }

/* ============================================================
   STYLED LIST
   ============================================================ */
.styled-list { padding: 0; }
.styled-list li {
  padding: 0.45rem 0 0.45rem 1.75rem;
  position: relative;
  color: var(--text);
  font-size: 0.97rem;
}
.styled-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--dark);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-mid);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   VISION / MISSION CARDS
   ============================================================ */
.vm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue);
}
.vm-card h3 {
  color: var(--blue);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.vm-card p { color: var(--text); margin-bottom: 0; }

/* ============================================================
   PRODUCT SECTIONS
   ============================================================ */
.product-block {
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.product-block:last-child { border-bottom: none; }

.product-tag {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.product-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.product-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.product-feature-item {
  background: var(--light);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.product-feature-item::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid transparent;
}
.service-item:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--blue);
  transform: translateX(4px);
}
.service-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-light);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  min-width: 48px;
  padding-top: 0.2rem;
}
.service-content h3 { color: var(--blue); margin-bottom: 0.4rem; font-size: 1.1rem; }
.service-content p  { color: var(--gray); font-size: 0.95rem; margin: 0; }

/* ============================================================
   DOWNLOADS
   ============================================================ */
.download-group { margin-bottom: 3rem; }
.download-group h3 {
  color: var(--dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blue-light);
}
.download-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 0.75rem;
}
.download-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--blue);
}
.download-icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.download-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-info { flex: 1; }
.download-info h4 { color: var(--dark); margin-bottom: 0.2rem; font-size: 0.98rem; }
.download-info p  { color: var(--gray); font-size: 0.84rem; margin: 0; }
.download-link {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.88rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { color: var(--blue); margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-icon {
  width: 42px; height: 42px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.contact-icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail-text h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 0.2rem;
  font-family: 'Montserrat', sans-serif;
}
.contact-detail-text p,
.contact-detail-text a {
  color: var(--text);
  margin: 0;
  font-size: 1rem;
}

/* Map */
.map-container { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-container iframe { width: 100%; height: 370px; border: none; display: block; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,117,186,0.1); }
.form-control::placeholder { color: #adb5bd; }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================================
   INFO BANNER (CTA)
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}
@media (max-width: 600px) {
  .cta-banner .btn { display: block; margin: 0.75rem auto; width: fit-content; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-alt);
  color: rgba(255,255,255,0.65);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand .brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand .brand-name span { color: var(--blue-mid); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 0; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  font-family: 'Montserrat', sans-serif;
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col p   { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-bottom: 0.5rem; line-height: 1.6; }
.footer-col a   { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate.visible { opacity: 1; transform: translateY(0); }

/* Stagger */
.animate:nth-child(2) { transition-delay: 0.1s; }
.animate:nth-child(3) { transition-delay: 0.2s; }
.animate:nth-child(4) { transition-delay: 0.3s; }
.animate:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  /* Mobile Nav */
  .main-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 2rem;
    box-shadow: var(--shadow);
    gap: 0;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .main-nav > li > a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-light);
    border-radius: 0;
    font-size: 0.95rem;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    padding: 0 0 0.5rem 1rem;
    display: none;
  }
  .main-nav > li.dropdown-open .dropdown-menu { display: block; }
  .nav-toggle { display: flex; }

  .hero { min-height: 420px; }
  .page-hero { min-height: 260px; }
  .section { padding: 3.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .service-item { flex-direction: column; gap: 0.5rem; }
  .service-num { font-size: 1.5rem; min-width: auto; }
  .grid-2 { gap: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  h2 { font-size: 1.5rem; }
}
