/* AROMAMATRIX - Global Design System (Trustworthy Industrial Clean Style) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Solid Carbon Black & Slate (Monochromatic B2B Clean) */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;      /* Ultra Clean White-Gray: pristine, dust-free manufacturing tone */
  --bg-accent: #f3f4f6;
  
  --primary-blue: #111111;      /* Solid Carbon Black: absolute authority, structure & corporate seriousness */
  --primary-blue-light: #000000;
  --primary-blue-glow: rgba(17, 17, 17, 0.08);
  
  --accent-green: #3f3f46;      /* Graphite Gray: Neutral accent for structured links & active labels */
  --accent-green-dark: #18181b;
  
  --text-main: #111111;         /* Deepest black for maximum contrast and reading comfort */
  --text-muted: #4b5563;        /* Slate gray */
  --text-light: #9ca3af;        /* Light silver gray */
  
  --border-light: #e5e7eb;      /* Precise structured gray borders */
  --border-focus: #9ca3af;
  
  /* Fonts */
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1200px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 4px;         /* Structured, clean corners */
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--primary-blue);
}

/* Global Layout Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-gold { /* Keep className but map to Professional Blue for compat */
  background-color: var(--primary-blue);
  color: #ffffff;
  border: 1px solid var(--primary-blue);
  box-shadow: var(--box-shadow);
}

.btn-gold:hover {
  background-color: var(--primary-blue-light);
  border-color: var(--primary-blue-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-blue-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue-glow);
  transform: translateY(-1px);
}

/* Header Navigation (Clean White Solid) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  z-index: 1000;
  display: flex;
  align-items: center;
}

header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-blue);
  display: flex;
  flex-direction: column;
}

.logo span {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent-green);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: -2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section[id],
.category-card[id],
.mode-box[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

nav .nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

nav .nav-item {
  position: relative;
  list-style: none;
}

.nav-link-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

nav .nav-item > a,
.nav-link-group > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 0;
  white-space: nowrap;
}

nav .nav-item > a:hover,
.nav-link-group > a:hover,
nav .nav-item > a.active,
.nav-link-group > a.active {
  color: var(--primary-blue);
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-light);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.has-dropdown:hover .dropdown-toggle,
.has-dropdown:focus-within .dropdown-toggle,
.has-dropdown.submenu-open .dropdown-toggle {
  color: var(--primary-blue);
  transform: rotate(180deg);
}

nav .nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  min-width: 220px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: var(--transition);
}

nav .nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 18px;
}

.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown,
.has-dropdown.submenu-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

nav .nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

nav .nav-dropdown a:hover,
nav .nav-dropdown a:focus-visible {
  color: var(--primary-blue);
  background: var(--bg-accent);
}

nav .nav-item > a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  margin-left: 2px;
  border: 1px solid var(--primary-blue);
  border-radius: var(--border-radius);
  background: var(--primary-blue);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.2;
}

nav .nav-item > a.nav-cta:hover,
nav .nav-item > a.nav-cta.active {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

/* Glass Card -> Replaced with clean Structured White Card */
.glass-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--box-shadow-hover);
}

/* Footer Section */
footer {
  background-color: var(--primary-blue);
  color: #cbd5e1;
  padding: 60px 0 30px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer h4 {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #94a3b8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 2px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
  transition: var(--transition);
}

.social-icon:hover {
  border-color: #ffffff;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #64748b;
  font-size: 12px;
}

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

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

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.footer-legal-links span {
  color: #475569;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary-blue);
  transition: var(--transition);
}

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

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

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

body.nav-open {
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 992px) {
  nav .nav-list {
    gap: 13px;
  }

  nav .nav-item > a,
  .nav-link-group > a {
    font-size: 13px;
  }

  nav .nav-item > a.nav-cta {
    padding: 9px 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #ffffff;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px 24px 48px;
    overflow-y: auto;
    transition: var(--transition);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }
  
  nav.active {
    left: 0;
  }
  
  nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(100%, 520px);
    margin: 0 auto;
  }
  
  nav .nav-item > a,
  .nav-link-group > a {
    display: block;
    font-size: 16px;
    padding: 13px 6px;
  }

  .nav-link-group {
    justify-content: space-between;
  }

  .dropdown-toggle {
    width: 44px;
    height: 46px;
    flex: 0 0 44px;
  }

  nav .nav-dropdown {
    position: static;
    min-width: 0;
    max-height: 0;
    padding: 0 0 0 14px;
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: none;
  }

  .has-dropdown:hover > .nav-dropdown,
  .has-dropdown:focus-within > .nav-dropdown {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .has-dropdown.submenu-open > .nav-dropdown {
    max-height: 260px;
    padding-top: 2px;
    padding-bottom: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav .nav-dropdown a {
    padding: 10px 12px;
    font-size: 14px;
  }

  nav .nav-item > a.nav-cta {
    display: flex;
    margin: 12px 0 0;
    padding: 13px 18px;
    color: #ffffff;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}
