/* ===== Root Variables ===== */
:root {
  --primary-blue: #1D4E89;
  --light-blue: #3A79D2;
  --accent-green: #34A853;
  --neutral-light: #F7F9FC;
  --text-dark: #333333;
  --heading-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body-font: 'Arial', sans-serif;
  --max-width: 1200px;
  --transition-speed: 0.3s;
}

/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  color: var(--text-dark);
  background-color: var(--neutral-light);
  line-height: 1.6;
}

/* ===== Container Utility ===== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== Navbar ===== */
.navbar {
  background-color: var(--primary-blue);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

/* Adjusted logo size */
.nav-logo img {
  width: 120px;
  height: auto;
  transition: transform var(--transition-speed);
}

.nav-logo img:hover {
  transform: scale(1.05);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-item .nav-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.nav-item .nav-link:hover {
  color: var(--light-blue);
}

.nav-item .nav-link.active {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 11; /* Ensure the toggle sits above the menu */
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 4px 0;
  transition: all var(--transition-speed);
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 56px; /* slightly above since we reduced nav-container padding */
    right: 0;
    background-color: var(--primary-blue);
    flex-direction: column;
    width: 220px;
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease-in-out;
    padding-top: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }
}

/* ===== Hero Section ===== */
.hero-section {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.hero-content {
  flex: 1 1 300px;
  max-width: 540px;
}

.hero-content h1 {
  font-family: var(--heading-font);
  font-size: 2.25rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.hero-content .trust-signals {
  font-weight: bold;
  margin-bottom: 1.75rem;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero-content .btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--light-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--accent-green);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #2a8a43;
  transform: translateY(-2px);
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  margin-top: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== “How It Works” Section ===== */
.section-how {
  background-color: #ffffff;
  padding: 3rem 1rem;
}

.section-how h2 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 2rem;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  width: 280px;
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  color: var(--primary-blue);
}

.step-card h3 {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* ===== Green CTA Banner ===== */
.cta-banner {
  background-color: var(--accent-green);
  color: #ffffff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.cta-banner p {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.cta-banner .btn-cta {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background-color: #ffffff;
  color: var(--accent-green);
  font-weight: 500;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.cta-banner .btn-cta:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* ===== Testimonials ===== */
.section-testimonials {
  padding: 3rem 1rem;
  background-color: #ffffff;
  text-align: center;
}

.section-testimonials h2 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto 2rem auto;
}

.testimonial-card {
  background-color: #f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  width: 300px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.testimonial-photo {
  font-size: 1.75rem;
  color: #6e3e90; /* purple avatar color */
}

.testimonial-border {
  width: 4px;
  background-color: var(--accent-green);
  align-self: stretch;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark);
  font-style: italic;
  flex: 1;
}

/* ===== Page Hero (generic) ===== */
.page-hero {
  background-color: var(--neutral-light);
  color: var(--text-dark);
  text-align: center;
  padding: 4rem 1rem;
}

.page-hero h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  background-color: var(--primary-blue);
  color: #ffffff;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.hero-cta:hover {
  background-color: var(--light-blue);
  transform: translateY(-2px);
}

/* ===== Pricing Section ===== */
.section-pricing {
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.section-pricing h2 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 0.75rem;
  padding: 2rem;
  width: 300px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pricing-card-premium {
  border: 2px solid var(--accent-green);
}

.pricing-card h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-green);
  margin-bottom: 1rem;
}

.pricing-card .features-list {
  list-style: none;
  margin-bottom: 1.5rem;
  text-align: left;
  padding-left: 1rem;
}

.pricing-card .features-list li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ===== What’s Included ===== */
.section-features {
  padding: 3rem 1rem;
  background-color: #ffffff;
  text-align: center;
}

.section-features h2 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.checkmark-list {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.checkmark-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.checkmark-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--light-blue);
  font-size: 1rem;
}

/* ===== FAQ Accordion ===== */
.section-faq {
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.section-faq h2 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  border: 1px solid #e1e1e1;
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-question-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f7f7f7;
  padding: 1rem 1.5rem;
  cursor: pointer;
}

.faq-question {
  background: none;
  border: none;
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--text-dark);
  text-align: left;
  flex-grow: 1;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--light-blue);
  margin-left: 1rem;
  transition: transform var(--transition-speed);
}

.faq-answer {
  display: none;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  border-top: 1px solid #e1e1e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-answer.active {
  display: block;
}

/* ===== About Page Sections ===== */
.section-about {
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
  max-width: 600px;
}

.section-about h3 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.section-about p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===== Video Section ===== */
.section-video {
  padding: 3rem 1rem;
  background-color: #ffffff;
  text-align: center;
}

.section-video h2 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== Contact Section ===== */
.section-contact {
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 0.75rem;
  padding: 2rem;
  width: 320px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.contact-card label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.contact-card a {
  color: var(--accent-green);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--light-blue);
  text-decoration: underline;
}

/* ===== Blog Index & Single Post Styles ===== */

/* Post Preview Card on Blog Index */
.section-blog .post-card {
  background-color: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-blog .post-title {
  margin-bottom: 0.25rem;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.section-blog .post-title a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color var(--transition-speed);
}

.section-blog .post-title a:hover {
  color: var(--light-blue);
}

.post-meta {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 1rem;
}

.post-excerpt {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.read-more-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--accent-green);
  transition: color var(--transition-speed);
}

.read-more-link:hover {
  color: var(--light-blue);
}

/* Single Post Content */
.section-post {
  padding: 3rem 1rem;
  background-color: #ffffff;
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-single-title {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.post-single-meta {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 1.5rem;
}

.section-post p {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.section-post h2 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-post ul {
  list-style: none;
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.section-post ul li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
}

.section-post ul li strong {
  font-weight: 600;
  color: var(--text-dark);
}

.post-protip {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
footer {
  background-color: var(--primary-blue);
  padding: 2rem 1rem;
  color: #ffffff;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.footer-column p,
.footer-column li {
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-link {
  text-decoration: none;
  color: var(--accent-green);
  font-weight: 500;
  transition: color var(--transition-speed);
}

.footer-link:hover {
  color: var(--light-blue);
  text-decoration: underline;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin: 0.5rem 0;
}

.footer-list li a {
  text-decoration: none;
  color: #ffffff;
  transition: color var(--transition-speed);
}

.footer-list li a:hover {
  color: var(--light-blue);
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #dddddd;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1024px) {
  .pricing-container,
  .testimonials-container,
  .steps-container,
  .contact-grid,
  .about-grid {
    flex-direction: column;
    align-items: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    text-align: center;
  }

  .hero-section,
  .about-grid,
  .video-wrapper {
    text-align: center;
  }

  .hero-content,
  .hero-image,
  .about-image,
  .about-text,
  .section-post,
  .section-blog .post-card {
    max-width: 100%;
  }
}

/* Slight adjustments for very small screens */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .section-how h2,
  .section-pricing h2,
  .section-features h2,
  .section-faq h2,
  .section-video h2 {
    font-size: 1.5rem;
  }
}
/* ===== Footer Links: Override to White ===== */
footer .footer-column a {
  color: #ffffff;
}

footer .footer-column a:hover {
  color: var(--accent-green);
}
/* ===== Circular, Responsive Logo ===== */
.nav-logo img {
  width: 120px;            /* Base width on desktop */
  height: 120px;           /* Force a square aspect ratio */
  object-fit: cover;       /* If the source is square, it fills perfectly */
  border-radius: 50%;      /* Crop to a circle */
  transition: transform 0.3s;
}

/* Slightly smaller on tablets */
@media (max-width: 768px) {
  .nav-logo img {
    width: 100px;
    height: 100px;
  }
}

/* Even smaller on very small phones */
@media (max-width: 480px) {
  .nav-logo img {
    width: 80px;
    height: 80px;
  }
}
/* ===== Mobile Menu: Full‐Width Dropdown Instead of Slide-in Box ===== */
@media (max-width: 768px) {
  /* Hide the menu by default (collapsed) */
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: var(--primary-blue);
    width: 100%;           /* span full width */
    margin-top: 0;         /* flush beneath navbar */
    box-shadow: none;      /* no floating overlay shadow */
  }

  /* When the hamburger is clicked, show it as a column */
  .nav-menu.active {
    display: flex;
  }

  /* Slight padding so items aren’t glued to the edge */
  .nav-item {
    margin: 0.5rem 0;
  }
  .nav-item .nav-link {
    padding: 0.5rem 1.5rem;
    display: block;
  }
}
/* ==== InterNACHI badge spacing / scaling ==== */
.cert-badge, .cert-badge-dark { margin-top: 1rem; }
.cert-badge img, .cert-badge-dark img {
  width: 90px;   /* scales nicely on mobile */
  height: auto;
}
