/* ==========================================================================
   HR ASSOCIATE – THE COMPLETE WASTE MANAGEMENT SOLUTION
   Official Stylesheet & Industrial Corporate Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-dark-blue: #102B4E;
  --color-deep-navy: #081B33;
  --color-navy-darker: #051324;
  --color-primary-red: #D72638;
  --color-black: #111111;
  --color-text-body: #2B2D42;
  --color-text-muted: #5C677D;
  --color-light-grey: #F4F6F8;
  --color-border: #E2E8F0;
  --color-white: #FFFFFF;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20BD5A;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(16, 43, 78, 0.08);
  --shadow-md: 0 4px 16px rgba(16, 43, 78, 0.1);
  --shadow-lg: 0 12px 32px rgba(16, 43, 78, 0.14);
  --shadow-xl: 0 20px 48px rgba(8, 27, 51, 0.2);
  --shadow-glow: 0 0 24px rgba(16, 43, 78, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark-blue);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-body);
}

p:last-child {
  margin-bottom: 0;
}

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

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

ul, ol {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Color Classes */
.bg-white { background-color: var(--color-white); }
.bg-light-grey { background-color: var(--color-light-grey); }
.bg-dark-blue { background-color: var(--color-dark-blue); }
.bg-deep-navy { background-color: var(--color-deep-navy); }
.text-white { color: var(--color-white); }
.text-dark-blue { color: var(--color-dark-blue); }
.text-deep-navy { color: var(--color-deep-navy); }
.text-primary-red { color: var(--color-primary-red); }
.text-muted { color: var(--color-text-muted); }

/* Section Header Typography */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark-blue);
  background-color: rgba(16, 43, 78, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-badge-light {
  color: #93C5FD;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-title {
  position: relative;
  margin-bottom: 1rem;
}

.section-title-underlined::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-primary-red);
  margin-top: 0.75rem;
  border-radius: 2px;
}

.section-title-center.section-title-underlined::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 680px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(16, 43, 78, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 43, 78, 0.35);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
  border-color: var(--color-dark-blue);
}

.btn-secondary:hover {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background-color: var(--color-light-grey);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
  border-color: var(--color-white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Header & Top Bar */
.top-bar {
  background-color: var(--color-deep-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a:hover {
  color: var(--color-white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-black);
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link.active {
  color: var(--color-dark-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2.5px;
  background-color: var(--color-primary-red);
  border-radius: 2px;
}

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 27, 51, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-nav-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: var(--color-white);
  z-index: 1060;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.mobile-nav-drawer.is-active {
  transform: translateX(0);
}

/* Feature & Highlight Cards */
.highlight-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-dark-blue), var(--color-primary-red));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 43, 78, 0.2);
}

.highlight-card:hover::before {
  opacity: 1;
}

.highlight-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: rgba(16, 43, 78, 0.08);
  color: var(--color-dark-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  transition: all var(--transition-fast);
}

.highlight-card:hover .highlight-icon-wrapper {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

/* Product Cards */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(16, 43, 78, 0.25);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 320px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.product-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image-container img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-features-list {
  margin: 1rem 0 1.5rem;
  padding: 0;
}

.product-features-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-body);
}

.product-features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10B981;
  font-weight: 800;
}

/* Service Cards */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 43, 78, 0.2);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background-color: rgba(16, 43, 78, 0.06);
  color: var(--color-dark-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: var(--color-whatsapp-hover);
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
  color: var(--color-white);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-whatsapp);
  opacity: 0.8;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 74px;
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 56px;
    height: 56px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}

/* Lightbox Modal */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 19, 36, 0.94);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  background: white;
  padding: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: white;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-black);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-dark-blue);
  box-shadow: 0 0 0 3px rgba(16, 43, 78, 0.12);
}

.form-control.is-invalid {
  border-color: var(--color-primary-red);
  background-color: #FFF5F5;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--color-primary-red);
  margin-top: 0.25rem;
  display: none;
}

.form-control.is-invalid + .form-error {
  display: block;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1500;
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--color-whatsapp);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(120%);
  transition: transform var(--transition-normal);
}

.toast-notification.is-visible {
  transform: translateY(0);
}

/* Custom Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Industrial Visual Accents */
.industrial-pattern {
  background-image: radial-gradient(rgba(16, 43, 78, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.industrial-pattern-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Responsive Nav & Grid Overrides */
@media (max-width: 960px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: inline-flex !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .top-bar {
    text-align: center;
  }
  .top-bar > .container {
    justify-content: center !important;
  }
  .header-cta .btn-whatsapp span {
    display: none;
  }
  .header-cta .btn-whatsapp {
    padding: 0.6rem;
    border-radius: 50%;
  }
}
