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

body {
  font-family: sans-serif;
  background: url('images/IMG_0067...jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

body.nav-open {
  overflow: hidden;
}

/* ===========================
   DARK MODE
=========================== */
html.dark-mode body {
  background-color: #121212;
  background-image: none; /* optional: remove background image in dark mode */
  color: #f5f5f5;
}

html.dark-mode a {
  color: #66ccff;
}

/* ===========================
   NAVIGATION
=========================== */
header {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
}

.brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
}

.nav-links {
  order: 2;
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
}

#darkModeToggle {
  justify-self: end;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.hamburger {
  justify-self: start;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===========================
   HERO
=========================== */
#hero {
  padding: 4rem 2rem;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url('images/hero-bg.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
}

.hero-wrapper {
  max-width: 1200px; /* increase if needed */
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.hero-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

/* ===========================
   SERVICES (INSTEAD OF ABOUT)
=========================== */
#services {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('images/istockphoto-638737942-612x612.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
}

#services.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.service-card h3 {
  margin-bottom: 1rem;  /* spacing below the heading */
}

.service-card h3 i {
  margin-right: 0.5rem; /* spacing between icon and text */
}

.service-card {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ===========================
   BUTTONS
=========================== */
.cta-button {
  margin-top: 3rem;
  display: inline-block;
  background-color: #fff;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #e6e6e6;
  color: #000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px); /* subtle lift */
}

.cta-button:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* ===========================
   FOOTER
=========================== */
footer {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  color: #ccc;
}

.social-links {
  margin: 1rem 0;
}

.social-links a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #66ccff;
}

/* ===========================
   DARK MODE OVERRIDES
=========================== */
html.dark-mode #hero {
  background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7));
}

html.dark-mode #services {
  background: rgba(30, 30, 30, 0.8);
  color: #f5f5f5;
}

html.dark-mode .service-card {
  background-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode footer {
  background: rgba(18, 18, 18, 0.9);
  color: #ccc;
}

/* ===========================
   RESPONSIVE (MOBILE STYLES)
=========================== */
/* Show line break only on mobile */
.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }

  .navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Left - Center - Right */
    align-items: center;
    position: relative;
  }

  .brand {
    justify-self: center;
  }

  .brand .logo {
    display: none; /* Hide logo on mobile */
  }

  .brand-name {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
  }

  #darkModeToggle {
    justify-self: end;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
  }

  .hamburger {
    justify-self: start;
    position: relative;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 16px;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    display: none;
    border-radius: 6px;
    width: auto;
    min-width: 150px;
  }

  .nav-links.active {
    display: flex;
  }

  .services-grid {
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  /* Navbar layout */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo,
  .hamburger {
    display: none;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
  }

  .nav-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
  }

  #darkModeToggle {
    font-size: 1.2rem;
    justify-self: end;
  }

  /* HERO INLINE */
  .hero-inline {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0; /* This controls spacing between text and button */
  text-align: left;
}

.hero-inline h1 {
  flex: 1;
  margin: 0;
  font-size: 2.2rem;
  white-space: nowrap; /* prevents wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-button {
  flex-shrink: 0;
  margin-top: 0 !important;
  margin-left: 0.25rem; /* optional – small spacing if needed */
  white-space: nowrap;
  padding: 0.75rem 1.25rem;
}

  /* SERVICES GRID */
  .services-grid {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .service-card {
    flex: 1;
    min-width: 250px;
    margin: 0 0.5rem;
  }
}
