/* ==========================================================================
   DBKS Life Sciences - Production Stylesheet
   Brand Colors: Deep Navy (#012151) & Leaf Green (#448707)
   Tagline: Science for Better Living
   ========================================================================== */

:root {
  /* Brand Palette */
  --navy-950: #01122a;
  --navy-900: #01193d;
  --navy-800: #012151;
  --navy-700: #052c6b;
  --navy-100: #e7effb;
  --navy-50:  #f0f5fc;

  --green-800: #2c5905;
  --green-700: #387006;
  --green-600: #448707;
  --green-500: #57a80b;
  --green-400: #68b812;
  --green-100: #eaf8dc;
  --green-50:  #f4fbe9;

  /* Neutrals */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(1, 33, 81, 0.05);
  --shadow-md: 0 4px 10px rgba(1, 33, 81, 0.06), 0 1px 3px rgba(1, 33, 81, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(1, 33, 81, 0.08), 0 4px 8px -2px rgba(1, 33, 81, 0.04);
  --shadow-xl: 0 20px 30px -8px rgba(1, 33, 81, 0.12);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-fast);
}

.site-header.scrolled .brand-logo-img {
  height: 44px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-800);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-600);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-actions .btn {
  padding: 0.6rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: #ffffff !important;
}

.nav-actions .btn span {
  color: #ffffff !important;
}

.nav-actions .btn svg {
  stroke: #ffffff !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-600);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(68, 135, 7, 0.25);
}

.btn-primary span {
  color: #ffffff !important;
}

.btn-primary svg {
  stroke: #ffffff !important;
}

.btn-primary:hover {
  background: var(--green-700);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(68, 135, 7, 0.35);
}

.btn-navy {
  background: var(--navy-800);
  color: #ffffff !important;
}

.btn-navy:hover {
  background: var(--navy-700);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--navy-800);
  color: var(--navy-800) !important;
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy-800);
  color: #ffffff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 20px;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--navy-800);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%);
  border-bottom: 1px solid var(--slate-200);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--green-50);
  border: 1px solid rgba(68, 135, 7, 0.25);
  border-radius: var(--radius-full);
  color: var(--green-800);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green-600);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 1.25rem;
}

.hero-title .highlight-green {
  color: var(--green-600);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.pillar-item {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-800);
  background: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

.pillar-sep {
  color: var(--green-600);
  font-weight: bold;
}

/* Hero Right Summary Card */
.hero-overview-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  position: relative;
}

.hero-card-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1.5rem;
}

.hero-card-brand img {
  height: 48px;
  width: auto;
}

.hero-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(68, 135, 7, 0.2);
}

.hero-feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.hero-feature-points li svg {
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 3px;
}

.hero-feature-points li strong {
  color: var(--navy-900);
}

.hero-card-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card-footer-text {
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* ==========================================================================
   Services Section (The 7 Core Services)
   ========================================================================== */

.services-section {
  padding: 5.5rem 0;
  background-color: var(--slate-50);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid rgba(68, 135, 7, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-600);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid rgba(68, 135, 7, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.service-card:hover .service-icon {
  background: var(--green-600);
  color: var(--white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.service-desc {
  font-size: 0.925rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-bullets {
  list-style: none;
  margin-bottom: 1.5rem;
  border-top: 1px dashed var(--slate-200);
  padding-top: 1rem;
}

.service-bullets li {
  font-size: 0.85rem;
  color: var(--slate-700);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.service-bullets li svg {
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-action {
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
}

.service-action .inquire-btn,
.inquire-btn:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-700);
  transition: gap var(--transition-fast);
}

.service-action .inquire-btn:hover,
.inquire-btn:not(.btn):hover {
  color: var(--green-800);
  gap: 0.65rem;
}

/* Service 7 Full Width */
.service-card.full-width {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, var(--white) 0%, var(--green-50) 100%);
  border-color: rgba(68, 135, 7, 0.3);
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
  padding: 5.5rem 0;
  background-color: var(--white);
  border-top: 1px solid var(--slate-200);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
}

.contact-info-panel {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.contact-panel-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.contact-panel-desc {
  font-size: 0.925rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--navy-100);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-900);
}

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

.nda-notice {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--green-600);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font-size: 0.8rem;
  color: var(--slate-600);
}

/* Contact Form Card */
.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-900);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(68, 135, 7, 0.12);
}

.form-control.field-highlight {
  border-color: var(--green-600) !important;
  box-shadow: 0 0 0 4px rgba(68, 135, 7, 0.28) !important;
  background-color: var(--green-50) !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-toast {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-500);
  align-items: center;
  gap: 0.75rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Form Success & Reset State */
.form-success-state {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem;
  background: var(--green-50);
  border: 2px solid var(--green-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
}

.success-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.success-desc {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: var(--slate-300);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 46px;
  width: auto;
  margin-bottom: 0.75rem;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--green-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-300);
}

.footer-nav a:hover {
  color: var(--green-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--slate-400);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group, .hero-pillars {
    justify-content: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--slate-200);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-actions {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-main, .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
