/* Reset all margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Custom styles and small animations */
:root{
  --primary: #2c323c;
  --accent: #18a558;
  --primary-dark: #2c323c;
  --text-light: #e5e7eb;
  --text-lighter: #d1d5db;
  --active-link: #93c5fd;
  --bg-light: #e8edf2;
}

/* Hero Background Image - Cover full area */
.hero-background{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  position: relative;
  top: 0 !important;
  left: 0;
}

body{
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--bg-light) !important;
}

main{
  margin: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  margin: 0;
  padding: 0;
}

/* Navigation Bar - Fixed at top */
header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  width: 100%;
}

header nav{
  font-size: 0.875rem;
}

header .container{
  max-width: 100%;
}

/* Header and Footer - Dark Blue Background */
/* Only apply blue background to footers that explicitly use primary color */
/* Gray backgrounds are allowed */
section[id="contact"][class*="bg-"]{
  background-color: var(--primary-dark) !important;
}

/* Header scroll behavior - updated for new white nav */
header{
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Specific selectors for Tailwind arbitrary values */
header.bg-\[#2c323c\],
header[class*="bg-primary"],
footer.bg-\[#2c323c\],
footer[class*="bg-primary"],
section.bg-\[#2c323c\]{
  background-color: var(--primary-dark) !important;
}

/* Navigation Links - Updated for white background */
header nav a{
  transition: color 0.2s ease;
  outline: none !important;
}

/* Remove focus outline from navigation links */
header nav a:focus,
header nav button:focus,
#mobile-nav a:focus,
#mobile-nav-2 a:focus{
  outline: none !important;
  box-shadow: none !important;
}

/* Navigation spacing - extend to left, leave space on right */
header nav{
  margin-right: 0;
}

/* Extend navigation to the left */
header > div > div[class*="hidden md:flex"]{
  margin-left: 2rem;
}

/* Navigation Links - Uppercase */
header nav a{
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Get Started Button */
header a[href*="contact.html"].bg-gradient-to-r{
  background: linear-gradient(to right, #18a558, #22c55e) !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 9999px !important;
}

header a[href*="contact.html"].bg-gradient-to-r:hover{
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 165, 88, 0.4);
}

/* Navigation hover styles handled inline with Tailwind classes */

/* Active Navigation Link - updated for white background */

/* Footer Text Colors */
footer{
  color: var(--text-light);
}

footer p,
footer a,
footer li{
  color: var(--text-light);
}

footer h5{
  color: #ffffff;
}

footer a:hover{
  color: var(--text-lighter);
}

footer a:focus{
  outline: none !important;
  box-shadow: none !important;
}

/* Mobile Navigation Background - updated for white background */
#mobile-nav,
#mobile-nav-2{
  background-color: white !important;
}

/* Mobile Menu Button - updated for blue */
button[id*="nav-toggle"]{
  background-color: #2c323c;
  color: #ffffff;
}

/* Animations */
.animate-float{
  animation:float 6s ease-in-out infinite
}

.animate-fade-in-up{
  animation:fadeInUp .8s ease both
}

@keyframes float{
  0%{transform:translateY(0)}
  50%{transform:translateY(-8px)}
  100%{transform:translateY(0)}
}

@keyframes fadeInUp{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

/* Container utility - wider for better screen utilization */
.container{
  max-width: 100%;
  width: 100%;
}

/* Button hover micro-interactions */
a.button-cta{
  transition:transform .18s ease, box-shadow .18s ease
}

a.button-cta:hover{
  transform:translateY(-3px)
}

/* Simple accessible focus state */
:focus{
  outline:2px solid var(--accent);
  outline-offset:2px
}

/* Remove focus outline from hero buttons */
.hero-background a:focus{
  outline: none !important;
  box-shadow: none !important;
}

/* Mobile nav show/hide is handled with JS toggling 'hidden' */

/* Hide scrollbar for horizontal scrolling on mobile */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* FAQ Accordion Styles */
.faq-toggle {
  outline: none !important;
}

.faq-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
}

.faq-content {
  transition: all 0.3s ease-in-out;
}

.faq-icon {
  transition: transform 0.3s ease-in-out;
}

/* Smooth horizontal scrolling for service images */
.overflow-x-auto {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Service image containers */
.overflow-x-auto > div {
  transition: transform 0.2s ease;
}

.overflow-x-auto > div:hover {
  transform: scale(1.02);
}

/* Slideshow Background for Why Choose Us Section */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-container .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: slideshow 25s infinite;
  transition: opacity 2s ease-in-out;
}

.slideshow-container .slide:nth-child(1) {
  animation-delay: 0s;
}

.slideshow-container .slide:nth-child(2) {
  animation-delay: 5s;
}

.slideshow-container .slide:nth-child(3) {
  animation-delay: 10s;
}

.slideshow-container .slide:nth-child(4) {
  animation-delay: 15s;
}

.slideshow-container .slide:nth-child(5) {
  animation-delay: 20s;
}

@keyframes slideshow {
  0% {
    opacity: 0;
  }
  2% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  22% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
