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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background-color: #fff;
}

/* =====================
   BRAND VARIABLES
===================== */
:root {
  --color-primary: #2563eb;
  --color-accent: #f97316;
  --color-dark: #0f172a;
  --color-light: #ffffff;
  --color-muted: #64748b;

  --container-width: 1200px;
  --section-padding: 4rem;
}

/* =====================
   LAYOUT
===================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: var(--section-padding) 0;
}

/* =====================
   HEADER & NAV
===================== */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 80px;       /* slightly larger than before for visibility */
  width: auto;        /* keeps the correct aspect ratio */
}

.logo {
  display: inline-block;
  margin-right: 2rem; /* comfortable spacing from nav links */
}


.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap; /* allow navigation items to wrap on smaller screens instead of overflowing */
}

.main-nav a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
}

/* Highlight the current page in the navigation */
.main-nav a.active {
  color: var(--color-primary);
  font-weight: 700;
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

/* Make any call‑to‑action that includes the btn‑cta class stand out more */
.btn-cta {
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 8px;
}

/*
 * Generic call‑to‑action container used on blog and other listing pages.
 * Centres its content and provides balanced vertical spacing.
 */
.cta {
  text-align: center;
  margin: 3rem 0;
}

/* Ensure buttons within the CTA container display inline for proper centering */
.cta .btn {
  display: inline-block;
}
.btn-primary:hover {
  background: #1d4ed8;
}
/* =====================
   BLOG & ARTICLE STYLES
===================== */
/* Blog hero section introduces blog or category pages */
.blog-hero {
  background: linear-gradient(#e5e7eb, #ffffff);
  padding: 4rem 0;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.blog-hero p {
  color: var(--color-muted);
  font-size: 1.125rem;
}

/* Horizontal list of blog categories */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem;
  margin-bottom: 3rem;
}

.category-nav a {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: var(--color-primary);
  color: var(--color-light);
  text-decoration: none;
  font-weight: 500;
}

.category-nav a:hover {
  background: #1d4ed8;
}

/* Grid layout for blog post cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.post-card {
  background: linear-gradient(#e5e7eb, #eef2f7);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card img {
  width: 100%;
  /* Set a fixed height and cover to ensure all blog images appear uniform. */
  height: 180px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.post-content p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.post-content .read-more {
  align-self: flex-start;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.post-content .read-more:hover {
  background: #1d4ed8;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

/* Article typography and layout */
.article {
  padding: 4rem 0;
}

.article h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.article h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.article p {
  margin-bottom: 1rem;
  color: var(--color-dark);
  line-height: 1.7;
}

.article ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.article li {
  margin-bottom: 0.5rem;
}

.article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article .cta {
  margin-top: 2rem;
  text-align: center;
}

.article .cta a {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.article .cta a:hover {
  background: #1d4ed8;
}

/* Contact form styles */
.form-wrapper {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 2rem auto;
}

.form-wrapper h2 {
  margin-bottom: 1rem;
  color: var(--color-dark);
}

form .form-group {
  margin-bottom: 1rem;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

form input[type="text"],
form input[type="email"],
form input[type="url"],
form input[type="tel"],
form textarea,
form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button[type="submit"] {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

form button[type="submit"]:hover {
  background: #1d4ed8;
}

/* =====================
   Free Audit page enhancements
===================== */
/* Container for audit info and form uses flexbox to create a two‑column layout on wider screens. */
.audit-section {
  padding: 4rem 0;
}

.audit-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

/* Information panel with benefits of the audit */
.audit-info {
  background:
    linear-gradient(#eef2f7, #f8fafc) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.audit-info h2 {
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.audit-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.audit-info li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.audit-info li::before {
  content: "\2714"; /* check mark */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.audit-info p {
  color: var(--color-muted);
}

/* Form container retains existing styles but defines flex behaviour */
.audit-form {
  flex: 1 1 300px;
}
/* Free Audit – Form panel gradient border */

.audit-form .form-wrapper {
  background:
    linear-gradient(#e5e7eb, #f8fafc) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}


/* =====================
   HERO
===================== */
.hero {
  background: linear-gradient(#e5e7eb, #f8fafc);
  padding: 6rem 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 500px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1 1 400px;
  position: relative;
  min-height: 300px;
    background:
    linear-gradient(#ffffff, #f8fafc) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
  border: 3px solid transparent;
  border-radius: 14px;
}

.hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*
   * Use cover to ensure the image fills the available space without distortion
   * while preserving its aspect ratio. This prevents the image from
   * appearing stretched on wider or narrower screens.
   */
  object-fit: var(--container-width);
  border-radius: 8px;
  /* Apply a slight brightness reduction so both slides appear balanced regardless of their original lightness. */
  filter: brightness(0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Dark overlay on hero image to balance contrast between light and dark slides */
.hero-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* =====================
   Services Snapshot
===================== */
.services-snapshot {
  padding: 6rem 0;
  background: #ffffff;
  text-align: center;
}

.services-snapshot h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.services-snapshot .section-subtext {
  color: var(--color-muted);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background:
    linear-gradient(#e5e7eb, #eef2f7);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.service-price {
  font-weight: 700;
  color: var(--color-primary);
  margin: 0.5rem 0;
}

.service-desc {
  flex-grow: 1;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.service-card .btn {
  align-self: center;
}

/* Icon styling for service cards */
.service-card .service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: block;
}

/* Icon styling for service detail pages (within hero section) */
.service-page-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
/* =====================
   Comparison Block
===================== */
.comparison-block {
  background: #ffffff; /* subtle light background */
  padding: 6rem 0;
  text-align: center;
}

.comparison-block h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.comparison-block .section-subtext {
  color: var(--color-muted);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.comparison-card {
  background: #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.comparison-card h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.comparison-card ul {
  list-style: none;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.comparison-card ul li {
  margin-bottom: 0.75rem;
}

.comparison-price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.25rem;
}

/* Highlight Code-Flux */
.comparison-card.highlight {
  background:
    linear-gradient(#eef2f7, #f8fafc) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* Services & Pricing table */
.comparison-table {
  display: flex;
  flex-direction: column;   /* stack heading + table */
  align-items: center;      /* center children horizontally */
  margin-top: 3rem;
}

.comparison-table table {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
}
.comparison-table h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.comparison-table th, 
.comparison-table td {
  border: 1px solid #e5e7eb;
  padding: 1rem;
  text-align: center;
}

.comparison-table th {
  background-color: #f8fafc;
  color: var(--color-dark);
}

.comparison-table td {
  color: var(--color-muted);
}

/* =====================
   Case Study Preview
===================== */
.case-study {
  background: #ffffff;
  padding: 6rem 0;
  text-align: center;
}

.case-study h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.case-study .section-subtext {
  color: var(--color-muted);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

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

.case-card {
  background: linear-gradient(#ffffff, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  max-width: 800px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.case-image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-content {
  padding: 2rem;
}

.case-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.case-content p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .case-grid {
    flex-direction: column;
    align-items: center;
  }

  .case-card {
    max-width: 100%;
  }
}

/* =====================
   Final CTA Strip
===================== */
.final-cta {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 5rem 0;
  text-align: center;
  border-radius: 12px;
  margin: 4rem 0;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.final-cta .cta-subtext {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.85);
}

.final-cta .btn-cta {
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 8px;
}

/* =====================
   FOOTER
===================== */
.site-footer {
  background: var(--color-dark);
  color: #cbd5e1;
}

.footer-inner {
  /* Align the brand and legal navigation horizontally on larger screens */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* Reduced gap so items don’t sit excessively far apart */
  gap: 3rem;
  padding: 3rem 0;
}

/* Position the legal navigation to the right of the brand on desktop */
.footer-nav {
  margin-left: auto;
}

/* On smaller screens stack footer sections vertically and reset nav alignment */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-nav {
    margin-left: 0;
  }
}

.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
}

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

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* =====================
   PAGE HERO & FAQ ENHANCEMENTS
===================== */
/* Standard hero section for non-blog pages */
.page-hero {
  background: linear-gradient(#e5e7eb, #ffffff);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.page-hero .section-subtext {
  color: var(--color-muted);
  font-size: 1.125rem;
}

/* FAQ section styling */
.faq-section {
  margin: 4rem 0;
}
  
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(#ffffff, #eef2f7);
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-item:hover {
  background: #eef2f7;
}

.faq-item h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.faq-item p {
  margin-top: 0.5rem;
  display: none;
  color: var(--color-dark);
  line-height: 1.6;
}

.faq-item.open p {
  display: block;
}

/* Arrow icon on FAQ headings */
.faq-item h2::after {
  content: "\25BC";
  font-size: 0.875rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  color: var(--color-primary);
}

.faq-item.open h2::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Custom bullet styling for article lists */
.article ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.article li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.article li::before {
  content: "\2022"; /* bullet circle */
  position: absolute;
  left: 0;
  top: 0.3rem;
  font-size: 1rem;
  color: var(--color-accent);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
  }

  .main-nav ul {
    flex-direction: column;
  }

  /*
   * Add spacing between navigation items in the stacked layout so that links
   * don't appear cramped when the menu collapses on smaller screens.
   */
  .main-nav ul li {
    margin-bottom: 0.5rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

.hero-content,
.hero-image{
  width: 100%;
  flex: 0 0 auto;
}

.hero-image{
  text-align: center;
  min-height: 0;              /* override desktop min-height behaviour */
  aspect-ratio: 16 / 9;       /* gives it a real height on mobile */
}

}
@media (max-width: 768px) {
  .logo img {
    height: 72px; /* smaller for mobile */
  }

  .logo {
    margin-right: 0;
    margin-bottom: 1rem; /* spacing for vertical nav */
  }
}

/*
 * Hero cross‑fade animation
 *
 * Apply two separate animations to the first and last images inside
 * `.hero-image`. The first image is shown for the first four seconds,
 * fades out between 40% and 50% of the animation cycle, stays hidden
 * until the last 10%, then fades back in. The second image performs
 * the complementary sequence: it remains hidden initially, fades in
 * while the first fades out, stays visible for most of the cycle and
 * fades out at the end. This creates a seamless cross‑fade between
 * the two slides.
 */
.hero-image img:first-child {
  animation: fadeFirst 10s infinite;
}

.hero-image img:last-child {
  animation: fadeSecond 10s infinite;
}

@keyframes fadeFirst {
  0% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeSecond {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* =====================
   Accessibility & Utility Enhancements
===================== */
/* Skip link appears only when focused, enabling users using screen readers or keyboard navigation to jump directly to the main content. */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 1rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

/* Back to Top button fixed in the bottom right corner, hidden until scrolling down. */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: #1d4ed8;
}

/*
 * Testimonials section styling
 *
 * Use a soft background and generous vertical spacing to visually separate
 * the testimonials from surrounding sections. Centre align the heading
 * elements while allowing individual testimonial cards to control their own
 * alignment. On mobile the section stays readable thanks to the responsive
 * grid behaviour defined below.
 */
.testimonials {
  background:
    linear-gradient(#f8fafc, #ffffff);
  padding: 4rem 0;
  text-align: center;
}

/*
 * Layout for the testimonial cards
 *
 * The grid auto‑fits columns based on available space, ensuring that the
 * testimonials wrap naturally on smaller screens. Each card has a left
 * accent bar coloured with the primary brand colour and a subtle shadow for
 * depth. A large decorative opening quote is positioned absolutely in the
 * top‑left corner of each card to add a playful visual cue without
 * interfering with the copy. Client names are highlighted with the primary
 * colour to draw the eye, while the role is muted to provide contrast.
 */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  position: relative;
  background:
    linear-gradient(#e5e7eb, #eef2f7);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.testimonial::before {
  content: "\201C"; /* decorative open quote */
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: #f97316;
  opacity: 0.8;
}

.testimonial p {
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
  font-style: normal;
}

.testimonial h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.testimonial .client {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.testimonial .role {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Blog search bar styling */
.blog-search-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.blog-search-wrapper input[type="text"] {
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 480px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
}

/* Sticky header with subtle backdrop blur on scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: linear-gradient(#1d4ed8,15%,#e5e7eb, #fff);
}

/* ================================
   Who We Help Section (Homepage)
================================ */

.who-we-help {
  background: #ffffff; /* matches hero/testimonials soft panel */
  padding: 6rem 0;     /* aligns with other “feature” sections */
}

.who-we-help .container {
  max-width: 900px; /* keeps this section readable + premium */
}

.who-we-help h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.who-we-help .section-subtext {
  color: var(--color-muted);
  margin: 0 auto 2.25rem;
  font-size: 1.125rem;
  text-align: center;
  max-width: 65ch;
}

.who-we-help .help-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  display: grid;
  gap: 1rem;
}

.who-we-help .help-list li {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1.1rem 3rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  color: var(--color-dark);
  line-height: 1.6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.who-we-help .help-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.who-we-help .help-list li::before {
  content: "✓";
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12); /* primary tint */
  color: var(--color-primary);
  font-weight: 800;
}

.who-we-help p:last-of-type {
  color: var(--color-muted);
  max-width: 75ch;
  margin: 0 auto;
  text-align: center;
  font-size: 1.0625rem;
}

.who-we-help a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(37, 99, 235, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.who-we-help a:hover {
  color: #1d4ed8;
  border-bottom-color: rgba(37, 99, 235, 0.55);
}

/* Responsive */
@media (max-width: 768px) {
  .who-we-help {
    padding: 4.5rem 0;
  }

  .who-we-help .help-list li {
    padding: 1rem 1rem 1rem 2.75rem;
    border-radius: 10px;
  }

  .who-we-help .help-list li::before {
    left: 0.9rem;
    top: 0.95rem;
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }
}
/* Highlighted container – safe gradient border */

.who-we-help .container {
  background:
    linear-gradient(#eef2f7, #f8fafc) padding-box,
    linear-gradient(135deg, var(--color-primary), #f97316) border-box;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 3rem 2.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Soft inner glow */
.who-we-help .container::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.04),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}

/* Mobile refinement */
@media (max-width: 768px) {
  .who-we-help .container {
    padding: 2.25rem 1.75rem;
    border-radius: 16px;
  }

  .who-we-help .container::after {
    border-radius: 14px;
  }
}
.brand { font-weight: 700; }
.brand-code { color: var(--color-primary); }     /* your blue */
.brand-flux { color: #f97316; }                  /* your orange */
.brand-hyphen { color: inherit; opacity: 0.9; }
@media (max-width: 768px) {
  .audit-info,
  .audit-form .form-wrapper {
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }
}
/* Testimonials – featured gradient container */

.testimonials .container {
  background:
    linear-gradient(#f8fafc, #ffffff) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 3rem 2.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
  .testimonials .container {
    padding: 2.25rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  }
}
/* FAQ page – featured gradient container */

.faq-section .container {
  background:
    linear-gradient(#e5e7eb, #f8fafc) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 3rem 2.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
  .faq-section .container {
    padding: 2.25rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  }
}
/* =====================
   Mobile Nav Toggle
===================== */

.nav-toggle {
  display: none;              /* desktop hidden */
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  border-color: rgba(37, 99, 235, 0.35);
}

/* Burger icon */
.nav-toggle .burger {
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  position: relative;
  display: inline-block;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
}

.nav-toggle .burger::before { top: -7px; }
.nav-toggle .burger::after  { top: 7px; }

/* Screen-reader only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile behavior */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;  /* keep logo + button on one line */
    height: auto;
    padding: 1rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Hide nav by default on mobile */
  .main-nav {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
  }

  /* Open state */
  .site-header.nav-open .main-nav {
    display: block;
  }

  /* Stack links when open */
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }
}
/* =====================
   How We Work (FAQ page)
===================== */

.how-we-work {
  background: #ffffff;
  padding: 4rem 0;
}

.how-we-work h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.how-we-work .section-subtext {
  text-align: center;
  max-width: 65ch;
  margin: 0 auto 3rem;
  color: var(--color-muted);
  font-size: 1.125rem;
}

.work-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.work-step {
  background:
    linear-gradient(#e5e7eb, #f8fafc) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  position: relative;
}

.work-step h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.work-step p {
  color: var(--color-muted);
  line-height: 1.6;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 16px;
  background: var(--color-primary);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Mobile refinement */
@media (max-width: 768px) {
  .how-we-work {
    padding: 3rem 0;
  }

  .work-step {
    padding: 1.75rem;
  }
}
.page-divider {
  width: 100px;
  height: 4px;
  margin: 2rem auto 0;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 2px;
}

@media (max-width: 768px) {
  .page-divider {
    margin-top: 1.5rem;
  }
}

