
/* =============================================
   GLOBAL LAYOUT CONFIGURATION
   ============================================= */

/* Sets the base height to enable sticky footers */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* The wrapper acts as a flex container to push the footer down */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* =============================================
   GLOBAL STYLING
   ============================================= */

/* Sets general text color, background, and typography for the whole site */
body {
  font-family: 'Arial', sans-serif;
  background: #121212;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Centers content with a maximum width */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

header {
  background: #1e1e1e;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-height: 80px;  /* sets the maximum display height */
  width: auto;       /* maintains aspect ratio */
  display: block;
}


nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin-left: 2rem;
}
nav ul li a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s ease;
}
nav ul li a:hover,
nav ul li a.active {
  color: #00bcd4;
}

/* Hamburger Menu */
#hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
#hamburger span {
  height: 3px;
  width: 25px;
  background: #f0f0f0;
  margin-bottom: 5px;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #000, #333);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 2s ease-out;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-content .subheading {
  font-size: 1.25rem;
  font-style: italic;
  color: #aaa;
  margin-bottom: 1rem;
}

.hero-content .tagline {
  font-size: 1.4rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  background: #00bcd4;
  color: #121212;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #0097a7;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Services Section */
.services {
  background: #181818;
  padding: 4rem 0;
}
.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  position: relative;
}
.services h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #00bcd4;
  margin: 10px auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: flex-start; 
}
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #222;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px; 
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}
.service-card h3 {  
  font-size: clamp(1.25rem, 1.8vw + 0.5rem, 1.8rem);
  line-height: 1.3;
  word-break: break-word;
  hyphens: auto;
  color: #00bcd4;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion.open .accordion-content {
  max-height: 500px; /* adjust based on your content */
}

/* About & Contact Sections */

.about-owner .about-container, .contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1.2s ease-out both;
}
.about-container h1, .contact h1 {
  margin-bottom: 0;
  font-size: 2.5rem;
}
.owner-profile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.photo-placeholder img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #00bcd4;
}
.bio {
  max-width: 600px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .bio {
    text-align: center;
  }
}
.map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.map-container img {
  max-width: 600px;
  max-height: 600px;
  object-fit: cover;
}


/* Contact Form */
.contact form {
  width: 100%;
  max-width: 500px;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}
.contact form label {
  margin: 1rem 0 0.5rem;
}
.contact form input {
  padding: 0.8rem;
  font-family: inherit;
  border: none;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1rem;

}
.contact form textarea {
  padding: 0.8rem;
  font-family: inherit;
  border: none;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}
.contact form button {
  padding: 0.8rem;
  background: #00bcd4;
  color: #121212;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact form button:hover {
  background: #0097a7;
}

.contact-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 0;
  flex-wrap: wrap;
}

.contact-flex form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.contact-flex .map-container {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-flex .map-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}


/* Footer */
footer {
  background: #1e1e1e;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: #1e1e1e;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
    display: none;
  }
  nav ul.open {
    display: flex;
  }
  nav ul li {
    margin: 1rem 0;
  }
  #hamburger {
    display: flex;
    text-align: center;
  }
  .owner-profile {
    flex-direction: column;
    align-items: center;
  }
  .service-card h3 {
    font-size: 1.3rem;
}
}

/* Modal Overlay Styles */
.modal {
  display: none;             /* Hidden by default */
  position: fixed;           /* Stay in place */
  z-index: 1000;             /* On top of other content */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9); /* Dark transparent background */
}

.modal-content {
  margin: auto;
  display: block;
  width: 900px;
  max-width: 90%;            /* Responsive fallback */
  height: 900px;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.cert-badges {
  display: flex;
  justify-content: center; /* center them horizontally */
  align-items: center;
  gap: 1rem;              /* spacing between badges */
  flex-wrap: nowrap;      /* keep them all in one line (remove if you want wrapping) */
  margin-top: 2rem;
}

.cert-badges img {
  width: 100px;
  height: 100px;
  object-fit: contain;    /* ensures the entire badge is visible */
  opacity: 0;
  transform: scale(0.95);
  animation: popIn 0.4s ease forwards;
}

.cert-badges .tooltip-container {
  opacity: 0;
  transform: scale(0.95);
  animation: popIn 0.4s ease forwards;
}

@media (max-width: 768px) {
  .cert-badges {
    flex-wrap: wrap;         /* Allow wrapping on small screens */
    justify-content: center; /* Center-align even if wrapped */
    gap: 1.5rem;
  }

  .cert-badges img {
    width: 80px;
    height: 80px;
  }

  .tooltip-container {
    width: 90px; /* Optional: contain each badge neatly */
    text-align: center;
  }

  .tooltip-container .tooltip-text{
    font-size: 0.75rem;
    max-width: 120px;
    bottom: 130%;
  }
}


/* Staggered delays */
.cert-badges .tooltip-container:nth-child(1) { animation-delay: 0.3s; }
.cert-badges .tooltip-container:nth-child(2) { animation-delay: 0.5s; }
.cert-badges .tooltip-container:nth-child(3) { animation-delay: 0.7s; }
.cert-badges .tooltip-container:nth-child(4) { animation-delay: 0.9s; }
.cert-badges .tooltip-container:nth-child(5) { animation-delay: 1.1s; }
.cert-badges .tooltip-container:nth-child(6) { animation-delay: 1.3s; }
.cert-badges .tooltip-container:nth-child(7) { animation-delay: 1.5s; }
.cert-badges .tooltip-container:nth-child(8) { animation-delay: 1.7s; }
.cert-badges .tooltip-container:nth-child(9) { animation-delay: 1.9s; }
.cert-badges .tooltip-container:nth-child(10) { animation-delay: 2.1s; }

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.subheading {
  font-size: 1rem;
  font-style: italic;
  color: #888;
  margin-top: 0.5rem;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-container .tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: #222;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 10;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Unified link styling across all sections */
a:link,
a:visited,
body a:link,
body a:visited,
footer a:link,
footer a:visited {
  color: #00bcd4 !important;
  text-decoration: none !important;
}

a:hover,
a:active,
body a:hover,
body a:active,
footer a:hover,
footer a:active {
  color: #0097a7 !important;
  text-decoration: underline !important;
}

body a.btn.override-link-style:link,
body a.btn.override-link-style:visited {
  color: #121212 !important;
  text-decoration: none !important;
  background: #00bcd4;
}

body a.btn.override-link-style:hover,
body a.btn.override-link-style:active {
  color: #ffffff !important;
  background: #0097a7;
}

#thank-you-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1e1e;
  color: #f0f0f0;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  text-align: center;
  z-index: 9999;
  display: none;
}

#thank-you-popup.show {
  display: block;
}

.hidden {
  display: none;
}



