/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colors — matched to logo: blue "Clean", red "Tech", sky-blue swirl */
  --color-primary: #0047AB;
  --color-primary-light: #2196F3;
  --color-primary-dark: #002D6B;
  --color-sky: #42B4F4;
  --color-accent: #D32F2F;
  --color-accent-hover: #B71C1C;
  --color-white: #ffffff;
  --color-gray-50: #f8f9fa;
  --color-gray-100: #e9ecef;
  --color-gray-200: #dee2e6;
  --color-gray-600: #6c757d;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;
  --color-placeholder-bg: #fff8e1;
  --color-placeholder-border: #ffc107;

  /* Typography */
  --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --line-height: 1.6;

  /* Layout */
  --container-max: 1140px;
  --nav-height: 72px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-nav: 0 2px 8px rgba(0,0,0,0.1);

  /* Transitions */
  --transition: 300ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: var(--line-height);
  color: var(--color-gray-800);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary); }

/* ============================================
   SKIP LINK (Accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0.5rem;
  color: var(--color-white);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gray-900);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-nav);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
}
.nav-logo:hover { color: var(--color-primary); }

.nav-logo img {
  max-height: 48px;
  width: auto;
}

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

.nav-link {
  color: var(--color-gray-800);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-light);
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  transition: transform var(--transition), opacity 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);
}

/* Mobile nav */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-sky) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 80px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-video {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-video video {
  width: 100%;
  display: block;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-main);
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(211,47,47,0.3);
}

/* ============================================
   CARD GRID
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-sky), var(--color-primary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-white);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* Placeholder content styling */
.placeholder {
  background: var(--color-placeholder-bg);
  border-left: 3px solid var(--color-placeholder-border);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #856404;
  font-size: 0.9rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-chemicals {
  background: var(--color-gray-50);
  padding: 5rem 0;
}

/* Chemical card color coding */
.card--sanitation {
  background: #f1f8f1;
  border-left: 3px solid #2E7D32;
}
.card--sanitation .card-icon {
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
}

.card--degreaser {
  background: #fff8f1;
  border-left: 3px solid #E65100;
}
.card--degreaser .card-icon {
  background: linear-gradient(135deg, #E65100, #BF360C);
}

.card--defoaming {
  background: #f0f7ff;
  border-left: 3px solid #0047AB;
}
.card--defoaming .card-icon {
  background: linear-gradient(135deg, var(--color-sky), var(--color-primary));
}

.section-scrubbers {
  background: var(--color-white);
  padding: 5rem 0;
}

.section-scrubbers .card-icon {
  background: linear-gradient(135deg, var(--color-accent), #8B0000);
}

.section-contact {
  background: var(--color-gray-50);
  padding: 5rem 0;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-gray-800);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  text-align: center;
}

.form-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-gray-600);
}

.form-note a {
  font-weight: 600;
}

.form-message {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.footer a:hover { color: var(--color-white); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .hero-content h1 { font-size: 3rem; }
  .section-title { font-size: 2.25rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-group-full { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .hero-content h1 { font-size: 3.5rem; }
  .section-title { font-size: 2.5rem; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
