/* main.css */
:root {
  --color-primary: #D7A184; /* Light Brown-Red */ 
  --color-primary-hover: #B57F5F; /* Darker Brown-Red */
  --color-primary-light: #EEF2FF; /* Indigo 50 */
  
  --color-text-dark: #111827; /* Gray 900 */
  --color-text-body: #374151; /* Gray 700 */
  --color-text-light: #6B7280; /* Gray 500 */
  
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F9FAFB; /* Gray 50 */
  --color-border: #E5E7EB; /* Gray 200 */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "KiamboteFontRegular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: var(--color-bg-white);
  color: var(--color-text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 1200px; /* Slightly narrower for better readability */
  margin: 0 auto;
}

section {
  padding: 100px 0;
}

.bg-light {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

h1, h2, h3 {
  font-family: "KiamboteFontBold", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem); /* Responsive font size */
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
}

h3 {
  font-size: 1.5rem;
  color: var(--color-text-dark);
}

p {
  font-size: 1.125rem;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
}

p.subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
}

/* --- Header --- */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--color-border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-label {
  font-family: "KiamboteFontBold", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text-dark);
}

.navbar {
  display: flex;
  gap: 2.5rem;
}

.navbar a {
  font-family: "KiamboteFontBold", sans-serif;
  color: var(--color-text-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--color-primary);
}

/* --- Buttons --- */
.cta-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: "KiamboteFontBold", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
}

.primary-cta {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.primary-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 28px;
}

.nav-cta:hover {
  background: var(--color-primary-hover);
}

/* --- Hero Section --- */
.hero-content-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
  border-radius: 8px;
  display: inline-block;
}

.hero-text h1 {
  background: none;
  padding: 0;
  border-radius: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.hero-text .subtitle {
  background: none;
  padding: 0;
  border-radius: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-carousel .carousel-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
    transition: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  text-align: center;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.hero-text.active {
  opacity: 1;
  visibility: visible;
}

.hero-text h1 {
  color: var(--color-bg-white);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
}

.hero-text .subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 700px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-block;
}

.highlight-primary {
  color: var(--color-primary);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s;
  background: none !important;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-carousel,
.hero-overlay {
  border-bottom-left-radius: 1%;
  border-bottom-right-radius: 1%;
  overflow: hidden; /* Add to .hero-carousel only if needed, but apply to both for consistency */
  border: 0px solid !important;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(3px) brightness(0.85);
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--color-bg-white);
  width: 25px;
}

/* --- Logo Wall --- */
.logo-wall {
  padding: 4rem 0;
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.logo-wall h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.logo-grid img {
  max-width: 100%;
  height: 35px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}

.logo-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* --- Pillar & Feature Grids --- */
.pillar-grid, .steps-grid {
  display: grid;
  gap: 2rem;
}

.pillar-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pillar-card, .step-card {
  background: var(--color-bg-white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pillar-card h3 { text-align: left; }
.pillar-card p { text-align: left; font-size: 1rem; }


/* --- Comparison Section --- */
.comparison-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comparison-card {
  padding: 2.5rem;
  border-radius: 12px;
}

.comparison-card.problem {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
}

.comparison-card.solution {
  background: #F0FDF4; /* Green 50 */
  border: 1px solid #22C55E; /* Green 500 */
}

.comparison-card ul {
  list-style: none;
  padding-left: 0;
}

.comparison-card li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.comparison-card li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

.problem li::before {
  content: '✕';
  color: #EF4444; /* Red 500 */
}

.solution li::before {
  content: '✓';
  color: #22C55E; /* Green 500 */
}

/* --- How It Works --- */
.steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  counter-reset: steps-counter;
}

.step-card {
  position: relative;
  border: none;
  background: none;
  box-shadow: none;
  padding: 1.5rem 0 1.5rem 3.5rem;
}

.step-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 40px;
  text-align: left;
}

.step-content {
  position: relative;
}
.step-content h3 { font-size: 1.25rem; }
.step-content p { font-size: 1rem; }

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: 100px 0;
  background: var(--color-primary);
  color: #fff;
}

.final-cta h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

.final-cta .primary-cta {
  background: var(--color-bg-white);
  color: var(--color-primary);
}

.final-cta .primary-cta:hover {
  background: var(--color-bg-light);
  color: var(--color-primary-hover);
}

/* --- Footer --- */
.main-footer {
  padding: 80px 0;
  text-align: left;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

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

.footer-column ul li {
  margin-bottom: 1rem;
}

.footer-column ul li a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--color-primary);
}

.footer-brand .tagline {
  font-size: 1rem;
  line-height: 1.5;
  margin: 1rem 0 2rem;
}

.footer-brand .copyright {
  font-size: 0.9rem;
}

.footer-cta {
  min-width: 200px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 5%;
  border-radius: 5%;
  text-align: center;
}

.footer-cta p {
  font-size: 1rem;
}

/* --- Mobile Menu --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-text-dark);
  border-radius: 3px;
  transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===================================================
START: New Feature Row Section CSS (meuspace.com inspired)
These are the new styles for the feature section
===================================================
*/

/* This is the main section wrapper */
.feature-section {
  background: var(--color-bg-white);
  /* We use a white background to contrast with the pillar section */
}

/* This holds all the new feature rows */
.feature-row-list {
  display: flex;
  flex-direction: column;
  gap: 6rem; /* Large space between each feature row */
  margin-top: 6rem; /* Space below the page subtitle */
}

/* This is a single feature row (image + text) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; /* Gap between image and text */
  align-items: center;
}

/* This class reverses the order of image and text */
.feature-row.reverse {
  /* We use grid-areas to easily swap them */
  grid-template-areas: "text image";
}

.feature-row.reverse .feature-row-text {
  grid-area: text;
}

.feature-row.reverse .feature-row-image {
  grid-area: image;
}

/* Styling for the text content */
.feature-row-text h3 {
  font-size: 2rem; /* Larger, more impactful heading */
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.feature-row-text p {
  font-size: 1.125rem;
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem; /* Default space after paragraph */
}

/* This is the new checklist style */
.feature-row-text ul {
  list-style: none;
  padding-left: 0;
  margin: 0; /* Remove default margins */
}

.feature-row-text li {
  position: relative;
  padding-left: 30px; /* Space for the checkmark */
  font-size: 1rem; /* Slightly smaller than main p */
  font-family: "KiamboteFontRegular", sans-serif;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.feature-row-text li::before {
  content: '✓'; /* Checkmark */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary); /* Use the site's primary color */
}

/* This is the "space for a picture" you wanted */
.feature-row-image {
  border-radius: 12px;
  border: 0.2px solid var(--color-border);
  aspect-ratio: 16 / 14; /* A good, modern aspect ratio */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* To contain the img */

  transition: all 0.3s;
}

.feature-row-image:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* If you use a real <img> tag, it will be styled perfectly */
.feature-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* This is the placeholder text style */
.feature-image-placeholder {
  font-family: "KiamboteFontRegular", sans-serif;
  color: var(--color-text-light);
  font-size: 1rem;
}

/* ===================================================
END: New Feature Row Section CSS
===================================================
*/


/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-text .subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-image {
    order: -1; /* Move image to top on mobile */
    max-width: 500px;
    margin: 0 auto;
  }

  .comparison-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  /* --- Responsive for new feature rows --- */
  .feature-row {
    grid-template-columns: 1fr; /* Stack on tablets */
    gap: 2rem;
  }
  
  .feature-row.reverse {
      grid-template-areas: unset; /* Reset grid areas */
  }

  .feature-row .feature-row-text,
  .feature-row.reverse .feature-row-text {
    grid-area: unset; /* Reset grid areas */
    text-align: left; /* Keep text left-aligned */
  }
  
  .feature-row .feature-row-image,
  .feature-row.reverse .feature-row-image {
    grid-area: unset; /* Reset grid areas */
  }

  /* On mobile, we want the image to *always* be on top, even in reverse rows */
  .feature-row.reverse .feature-row-text {
      order: 2;
  }
  .feature-row.reverse .feature-row-image {
      order: 1;
  }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .hero { padding: 60px 0; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  p.subtitle { font-size: 1.125rem; margin-bottom: 2.5rem; }
  
  .pillar-grid, .steps-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar {
    position: fixed;
    top: 79px; /* Height of header */
    left: 0;
    width: 100%;
    background: var(--color-bg-white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
    display: flex; /* Keep flex for menu-toggle script */
  }

  .navbar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-column ul {
    padding-left: 0;
  }

  /* --- Responsive for new feature rows --- */
  .feature-row-list {
      gap: 4rem;
      margin-top: 4rem;
  }
  .feature-row-text h3 {
      font-size: 1.75rem;
  }
  .feature-row .feature-row-text,
  .feature-row.reverse .feature-row-text {
    text-align: left; /* Keep text aligned left on mobile */
  }
}

@media (max-width: 768px) {
  .logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.7rem;
  }
  .logo-grid img {
    height: 30px;
    width: auto;
  }
}

@media (max-width: 768px) {
  .hero-carousel,
  .hero-overlay {
    border-bottom-left-radius: 2%;
    border-bottom-right-radius: 2%;
  }
}

.pillar-icon {
    font-size: 4em; 
    margin-bottom: 1px;
    width: 50px;
    height: 50px;
}