/* Color Palette: Trustworthy and Clear (Red/Black) */

:root {

  --primary-black: #1C1C1C;    /* Deep Black / Dark Charcoal - Authority, Trust */

  --accent-red: #D40000;       /* Crimson Red - Urgency, Highlight, CTA */

  --light-bg: #F8F8F8;         /* Off-White - Clean background */

  --dark-text: #232B32;

  --mid-grey: #6B7280;

  --white: #ffffff;



  --font-heading: 'Montserrat', sans-serif;

  --font-body: 'Poppins', sans-serif;



  --spacing-sm: 15px;

  --spacing-md: 30px;

  --spacing-lg: 80px;

}



* { margin: 0; padding: 0; box-sizing: border-box; }



body {

  font-family: var(--font-body);

  line-height: 1.6;

  color: var(--dark-text);

  background-color: var(--white);

  scroll-behavior: smooth;

}



.container { width: 90%; max-width: 1280px; margin: 0 auto; }

.section-padding { padding: var(--spacing-lg) 0; }

.bg-light { background-color: var(--light-bg); }



/* TYPOGRAPHY */

h1, h2, h3, h4 {

  font-family: var(--font-heading);

  color: var(--primary-black);

  margin-bottom: var(--spacing-sm);

  font-weight: 700;

}



h1 { font-size: 3.5em; line-height: 1.1; font-weight: 800; }

h3 { font-size: 2.2em; text-align: center; margin-bottom: 40px; }



.subtitle {

  font-size: 1.25em;

  font-weight: 400;

  color: var(--mid-grey);

  max-width: 800px;

  margin: 0 auto 40px;

  text-align: center;

}



.lead-text {

  font-size: 1.1em;

  font-weight: 500;

  margin-bottom: var(--spacing-md);

  color: var(--dark-text);

}



/* HEADER & NAVIGATION */

#mainHeader {

  background: var(--white);

  box-shadow: 0 4px 15px rgba(0,0,0,0.08);

  position: sticky;

  top: 0;

  z-index: 1000;

}

header .container {

  display: flex; justify-content: space-between; align-items: center; padding: 20px 0;

}

.logo {

  color: var(--primary-black);

  font-size: 1.8em;

  font-family: var(--font-heading);

  font-weight: 800;

  text-decoration: none;

  letter-spacing: -0.5px;

  display: flex; align-items: center;

}

.logo-icon {

  width: 40px; height: 40px; margin-right: 10px; border-radius: 6px; object-fit: cover; border: 2px solid var(--accent-red);

}



#mainNav a {

  text-decoration: none; color: var(--dark-text);

  margin-left: var(--spacing-md); font-weight: 500; transition: color 0.3s;

}

#mainNav a:hover { color: var(--accent-red); }



/* BUTTONS */

.btn-primary, .btn-secondary {

  display: inline-flex; align-items: center; padding: 14px 30px; border-radius: 50px;

  text-decoration: none; font-weight: 600; text-align: center; transition: all 0.3s ease;

  border: 2px solid transparent; cursor: pointer; font-size: 1.05em; text-transform: uppercase; letter-spacing: 0.5px;

}

.btn-primary {

  background-color: var(--accent-red); color: var(--white);

  box-shadow: 0 8px 20px rgba(212, 0, 0, 0.4);

}

.btn-primary:hover {

  background-color: #A00000; transform: translateY(-3px);

  box-shadow: 0 10px 25px rgba(212, 0, 0, 0.6);

}

.large-btn { padding: 18px 45px; font-size: 1.3em; margin-top: 25px; }



/* FADE-IN */

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }

.fade-in.active { opacity: 1; transform: translateY(0); }



/* 1. HERO */

.hero {

  background-color: var(--primary-black);

  color: var(--white);

  padding: 150px 0 100px;

  position: relative; text-align: center; overflow: hidden;

}

.hero::before {

  content: '';

  position: absolute; inset: 0;

  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><rect fill="%231C1C1C" width="60" height="60"/><rect x="0" y="0" width="10" height="10" fill="%23303030" opacity="0.15"/></svg>') repeat;

  opacity: 0.2; z-index: 1;

}

.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }

.hero h1 { color: var(--white); }

.hero .subtitle { color: rgba(255, 255, 255, 0.8); margin-top: 10px; }



/* 2. CORE SERVICES */

.services-grid {

  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: var(--spacing-md); margin-top: var(--spacing-md);

}

.service-card {

  padding: var(--spacing-md); background: var(--white); border-radius: 12px;

  box-shadow: 0 5px 20px rgba(0,0,0,0.08);

  transition: transform 0.3s ease, border-color 0.3s ease;

  text-align: left; border-left: 5px solid var(--accent-red); height: 100%;

}

.service-card:hover {

  transform: translateY(-5px);

  box-shadow: 0 10px 25px rgba(212, 0, 0, 0.2);

  border-left-color: var(--primary-black);

}

.service-card .icon { font-size: 2.5em; color: var(--accent-red); margin-bottom: var(--spacing-sm); }

.service-card h4 { font-size: 1.4em; font-weight: 600; }

.service-card p { font-size: 0.95em; color: #4B5563; }



/* 3.5 CERTIFICATIONS & MEMBERSHIPS */

#certifications .subtitle { max-width: 820px; }



.badge-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

  gap: 24px;

  margin-top: 24px;

}



.badge-card {

  background: var(--white);

  border-radius: 12px;

  padding: 18px 16px;

  box-shadow: 0 5px 20px rgba(0,0,0,0.06);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-decoration: none;

  border: 1px solid rgba(0,0,0,0.05);

  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

  min-height: 170px;

  text-align: center;

}



.badge-card:hover {

  transform: translateY(-4px);

  box-shadow: 0 10px 28px rgba(0,0,0,0.12);

  border-color: rgba(0,0,0,0.08);

}



.badge-card img {

  max-width: 120px;

  height: auto;

  display: block;

  filter: grayscale(15%);

  transition: filter 0.25s ease, transform 0.25s ease;

}



.badge-card:hover img {

  filter: none;

  transform: scale(1.02);

}



.badge-title {

  margin-top: 12px;

  font-size: 0.95em;

  font-weight: 600;

  color: var(--primary-black);

}



/* For raw embed snippets from InterNACHI (iframes/scripts) */

.badge-embed { padding: 10px; }

.badge-embed > * { width: 100%; max-width: 180px; margin: 0 auto; }



/* 4. WHY ENIGMA */

.why-enigma-grid { display: flex; gap: var(--spacing-lg); align-items: center; }

.features-list-block { flex: 1.5; }

.image-placeholder-block {

  flex: 1; min-height: 400px; background: var(--primary-black); border-radius: 12px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.15);

  display: flex; flex-direction: column; justify-content: center; align-items: center;

  font-size: 1.5em; color: var(--white); font-family: var(--font-heading); font-weight: 700;

  text-align: center; line-height: 1.3; padding: 20px;

}/* REVIEWS BLOCK */

.reviews-block {

  flex: 1;

  background: var(--white);

  border-radius: 12px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.1);

  padding: 30px;

  text-align: center;

}



.reviews-title {

  font-family: var(--font-heading);

  font-size: 1.6em;

  font-weight: 700;

  color: var(--primary-black);

  margin-bottom: 10px;

}



.reviews-sub {

  color: var(--mid-grey);

  font-size: 1em;

  margin-bottom: 20px;

}



.google-reviews iframe {

  width: 100%;

  border: none;

  border-radius: 10px;

  margin-bottom: 20px;

}



.reviews-link-wrapper {

  margin-top: 10px;

}



.reviews-link-wrapper .btn-primary {

  background-color: var(--accent-red);

  color: var(--white);

  padding: 12px 25px;

  font-size: 0.95em;

  border-radius: 40px;

  transition: background 0.3s ease;

}



.reviews-link-wrapper .btn-primary:hover {

  background-color: #A00000;

}

.feature-item {

  display: flex; align-items: flex-start; margin-bottom: 25px; padding: 15px;

  background: var(--white); border-radius: 8px; border-left: 3px solid var(--accent-red);

  box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.3s;

}

.feature-icon-wrapper { font-size: 1.8em; color: var(--accent-red); margin-right: 20px; min-width: 40px; text-align: center; }

.feature-details h5 { font-size: 1.2em; margin-bottom: 5px; }

.feature-details p { font-size: 0.95em; color: #6B7280; }



/* 5. LICENSING */

#licensing .card-box {

  max-width: 650px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 12px;

  box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid var(--accent-red); text-align: center;

}

#licensing .card-box h4 { font-size: 1.6em; margin-bottom: 10px; color: var(--accent-red); }

#licensing .card-box .license-detail { font-size: 1.1em; font-weight: 600; margin: 15px 0; color: var(--primary-black); }

#licensing .card-box .license-detail span { display: block; font-size: 0.9em; font-weight: 400; color: var(--mid-grey); margin-top: 4px; }



/* 6. SCHEDULING CTA */

#schedule { background: var(--accent-red); color: var(--white); text-align: center; }

#schedule h3 { color: var(--white); }

#schedule .subtitle { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--spacing-md); }

.schedule-button-wrapper { margin-top: var(--spacing-md); }

.schedule-button-wrapper a.btn-primary {

  background-color: var(--primary-black); color: var(--white);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);

}

.schedule-button-wrapper a.btn-primary:hover { background-color: #353535; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8); }



/* FOOTER */

footer { background: var(--primary-black); color: #9CA3AF; padding: var(--spacing-md) 0; font-size: 0.9em; text-align: center; }

.footer-content {

  display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 20px;

}

.footer-logo { color: var(--accent-red); font-size: 1.6em; font-family: var(--font-heading); font-weight: 700; }

.footer-links a { color: #9CA3AF; text-decoration: none; margin-left: 20px; transition: color 0.3s; }

.footer-links a:hover { color: var(--white); }

.footer-contact-info { list-style: none; padding: 0; margin: 20px 0; }

.footer-contact-info li { margin-bottom: 8px; display: inline-block; margin-right: 25px; font-weight: 500; }

.footer-contact-info li i { margin-right: 8px; color: var(--accent-red); }

/* Instagram / Social Link */

.social-link {

  color: #9CA3AF;

  text-decoration: none;

  font-weight: 500;

  transition: color 0.3s, transform 0.2s;

}

.social-link i {

  margin-right: 8px;

  color: var(--accent-red);

}

.social-link:hover {

  color: var(--white);

  transform: translateY(-2px);

}



/* MOBILE MENU & RESPONSIVENESS */

.menu-toggle { display: none; }



@media (max-width: 992px) {

  .hero h1 { font-size: 2.8em; }

  h3 { font-size: 2em; }



  .why-enigma-grid { flex-direction: column; }

  .image-placeholder-block { order: -1; min-height: 250px; width: 100%; margin-bottom: 30px; }



  .footer-content { flex-direction: column; gap: 20px; text-align: center; }

  .footer-links a { margin: 0 10px; }

  .footer-contact-info { display: flex; flex-direction: column; align-items: center; }

  .footer-contact-info li { margin: 5px 0; }

}



@media (max-width: 768px) {

  .hero h1 { font-size: 2em; }

  .large-btn { padding: 15px 30px; font-size: 1.1em; }

  h3 { font-size: 1.6em; }

  .subtitle { font-size: 1.1em; }



  /* Mobile Navigation */

  header .container { padding: 15px 0; }

  #mainNav {

    display: none; flex-direction: column; width: 100%; background: var(--white);

    position: absolute; top: 100%; left: 0; padding: 10px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1);

  }

  #mainNav.active { display: flex; }

  #mainNav a {

    margin: 8px 0; padding: 10px 20px; text-align: center; width: 100%; border-bottom: 1px solid var(--light-bg);

  }

  .menu-toggle {

    display: flex; flex-direction: column; width: 30px; height: 20px; justify-content: space-between; cursor: pointer;

  }

  .menu-toggle span { display: block; height: 3px; background: var(--dark-text); border-radius: 5px; transition: all 0.3s; }



  /* Toggle Menu Animation */

  .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); }

}
