@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Air Freeze Colors */
  --color-primary: #041E42; /* Deep Navy Blue */
  --color-primary-light: #0A3266;
  --color-secondary: #00B4D8; /* Ocean Cyan */
  --color-accent: #0077B6; /* Deep Blue Accent */
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F4F7F9; /* Very light cool grey */
  --color-bg-dark: #021124;
  --color-text-main: #334155; /* Slate */
  --color-text-light: #64748B;
  --color-border: #E2E8F0;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-overlay: linear-gradient(to right, rgba(4, 30, 66, 0.95), rgba(4, 30, 66, 0.7));

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Elevations - Premium soft shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 30, 66, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 30, 66, 0.12);
  --shadow-hover: 0 25px 50px rgba(0, 30, 66, 0.15);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.display-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--color-bg-white);
  line-height: 1.1;
}

.display-title span {
  color: var(--color-secondary);
}

/* Outlined Heading Effect (Enmac style) */
.heading-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--color-bg-white);
  opacity: 0.8;
}

h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: -1px;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

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

a:hover {
  color: var(--color-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-bg-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--color-bg-white);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-bg-white);
  color: var(--color-bg-white);
}

.btn-secondary:hover {
  background-color: var(--color-bg-white);
  color: var(--color-primary);
}

/* Layout Utilities */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-light {
  background-color: var(--color-bg-light);
}

.section-dark {
  background: var(--color-primary);
  color: var(--color-bg-white);
}

.section-dark h2, .section-dark h3 {
  color: var(--color-bg-white);
}

.section-dark p {
  color: rgba(255,255,255,0.8);
}

/* Curved Dividers (Enmac Style) */
.curve-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateY(99%);
  z-index: 10;
}

.curve-bottom svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.curve-bottom .shape-fill {
  fill: var(--color-bg-white);
}
.curve-bottom.fill-light .shape-fill { fill: var(--color-bg-light); }

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  height: 80px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
  transition: var(--transition-smooth);
}

.header.scrolled .header-container {
  height: 80px;
}

.logo {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.logo img {
  height: 100%;
  width: auto;
  transition: var(--transition-smooth);
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.btn-primary {
  color: var(--color-bg-white);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}
.nav-links a.btn-primary::after { display: none; }

/* Premium Feature Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: var(--color-bg-white);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: var(--color-accent);
}

/* Alternating Blocks (Enmac Style Services) */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-block-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.content-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.content-block:hover .content-block-img img {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--space-lg);
}

.footer h4 {
  color: var(--color-bg-white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition-smooth);
}

.footer a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  font-size: 0.9rem;
}

/* Hero Section Base */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  background-color: var(--color-primary);
}

/* Small utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-4 { margin-top: 4rem; }
.text-accent { color: var(--color-secondary); }

/* Fade up animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Page Enhancements */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: white;
}

.glass-form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 3.5rem;
}

/* Floating Labels */
.floating-group {
  position: relative;
  margin-bottom: 2rem;
}
.floating-input {
  width: 100%;
  padding: 1.25rem 1rem 0.5rem;
  background: var(--color-bg-light);
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  transition: var(--transition-smooth);
  color: var(--color-text-main);
}
.floating-input:focus {
  background: white;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}
.floating-label {
  position: absolute;
  top: 1.25rem;
  left: 1rem;
  font-size: 1.05rem;
  color: var(--color-text-light);
  transition: var(--transition-smooth);
  pointer-events: none;
  transform-origin: left top;
}
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Custom Select Dropdown */
select.floating-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.65rem auto;
}

/* Service Chips */
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border-radius: 50px;
  font-weight: 500;
  color: var(--color-text-main);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
}
.service-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
  color: var(--color-primary);
}

/* FAQ Accordion */
.faq-accordion {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: white;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}
.faq-question:hover {
  color: var(--color-secondary);
}
.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--color-secondary);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-content {
  padding: 0 2rem 1.5rem;
  color: var(--color-text-light);
}

/* Map Location Marker Pulse */
.map-marker {
  width: 20px;
  height: 20px;
  background: var(--color-secondary);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(0, 180, 216, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
  }
}

/* --- Mobile Responsiveness --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  /* Typography & Spacing */
  html {
    font-size: 14px;
  }
  .section {
    padding: 3rem 0;
  }
  
  /* Header & Nav */
  .mobile-menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-bg-white);
    padding: 1rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  .nav-links li a {
    display: block;
    padding: 1rem;
  }
  .nav-links li a.btn {
    width: 80%;
    margin: 0.5rem auto;
  }
  
  /* Layout Grids */
  .content-block,
  .content-block.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-col ul li {
    justify-content: center;
  }
}
