/* =====================
   DESIGN TOKENS
   Change branding HERE
===================== */

:root {
  --font-primary: 'Inter', system-ui, sans-serif;

  --color-primary: #2F8F7A;
  --color-accent: #6EC1AD;
  --color-text: #243A3A;
  --color-bg: #F7FAF9;
  --color-border: rgba(36, 58, 58, 0.12);
  --color-primary-dark: hsl(
    calc((var(--color-primary-h) * 1)), 
    calc((var(--color-primary-s) * 1)), 
    calc((var(--color-primary-l) * 0.85))
  );
}

.brand-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #111;
  opacity: 0.95;
}


/* =====================
   BASE STYLES
===================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg); /* #fff; */
  line-height: 1.6;
}

h1, h2 {
  letter-spacing: -0.03em;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.5rem;
}

/* =====================
   HERO
===================== */

.hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  padding: 6rem 0;
}

.hero p {
  max-width: 640px;
  margin: 1.5rem 0 2.5rem;
}

.hero-carousel {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  padding: 6rem 0;          /* same as single .hero */
  min-height: 520px;        /* same as .hero */
  height: auto;             /* scale with content */
  overflow: hidden;
}

/* Slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Overlay — mint green branding */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;

  /* Left 20% fully solid, then fade to transparent */
  background: linear-gradient(
    to right,
    var(--color-primary) 0%,      /* start solid */
    var(--color-primary) 20%,     /* remain solid until 20% */
    rgba(47, 143, 122, 0) 100%   /* fade to transparent by 100% */
  );

  z-index: 0;
  pointer-events: none; /* allows clicks through overlay */
}

.hero-content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  max-width: 600px;
  color: white;
  z-index: 1; /* above overlay */
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #e9e9e9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  margin-top: 1rem;
  font-size: 1.1rem;
}


/* =====================
   BUTTONS
===================== */

.btn-primary {
  background: white;
  color: var(--color-primary);
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* =====================
   SECTIONS
===================== */

.capabilities,
.testimonials {
  background: var(--color-bg);
  padding: 5rem 0;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.cap-grid div {
  background: white;
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  border-radius: 12px;
}

/* =====================
   CLIENT CAROUSEL
===================== */

.clients {
  padding: 4rem 0;
  overflow: hidden;
}

.logo-carousel {
  overflow: hidden; 
  padding: 4rem 0;
}

.logo-track {
  display: flex;
  gap: 2rem;
  width: max-content; /* ensures the track expands to fit all images */
  animation: scroll 20s linear infinite;
}

.logo-track img {
  height: 50px;
  opacity: 0.75;
  filter: grayscale(0%);
}

/* Smooth infinite scroll */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* 50% of total track width = exactly first set */
}

/* Faster on smaller screens */
@media (max-width: 768px) {
  .logo-track {
    animation-duration: 18s; /* adjust for mobile so speed feels similar */
  }
}


/* =====================
   SERVICES
===================== */
.services-accordion {
  max-width: 800px;
  margin: 2rem auto 0;
}

.services-accordion details {
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.services-accordion summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.services-accordion summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.services-accordion details[open] summary::after {
  content: "–";
}

.services-accordion ul {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
}

.services-accordion li {
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

/* Desktop enhancement */
@media (min-width: 768px) {
  .services-accordion details {
    padding: 0.25rem;
  }
}


/* =====================
   TESTIMONIAL READABILITY
===================== */

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 420px;
  height: 100%;

  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  border-right: 4px solid var(--color-primary);
  padding-right: 1.5rem;  
  background-color: var(--color-bg);
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);  
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  position: relative;
}

/* Optional subtle quote mark */
.testimonial-text::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: -0.4rem;
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.15;
}

.testimonial-text::after {
  content: ""; /* could have closing double-quote */
  position: absolute;
  right: -0.6rem;
  bottom: -0.4rem;
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.15;
}

.testimonial-author {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.testimonial-author strong {
  display: block;
  color: var(--color-text);
}

.testimonial-author span {
  display: block;
  margin-top: 0.2rem;
}


/* =====================
   TESTIMONIALS (SCROLLING)
===================== */

.testimonial-wrapper {
  position: relative;
}

.testimonial-scroller {
  overflow: hidden;
}

.testimonial-grid {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.testimonial {
  min-width: 100%; /* show one testimonial at a time */
  box-sizing: border-box;
  padding: 1.5rem;
  background-color: var(--color-bg);
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: bold;
  color: var(--color-primary);
}

.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.testimonial-btn.prev {
  left: -1.5rem;
}

.testimonial-btn.next {
  right: -1.5rem;
}

.testimonial-btn:hover {
  background: var(--color-accent);
}

/* Mobile */
@media (max-width: 768px) {
  .testimonial {
    flex: 0 0 85%;
  }

  .testimonial-btn {
    display: none;
  }
}

/* =====================
   FOOTER & COOKIE
===================== */

.footer {
  background: var(--color-text);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer a {
  color: var(--color-accent);
  margin-left: 1rem;
}

/* =====================
   FLOATING COOKIE BAR
===================== */

.cookie-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 420px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
}

.cookie-float p {
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
}

.cookie-float a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-actions {
  text-align: right;
}

/* =====================
   MANAGE COOKIES LINK
===================== */

.cookie-manage {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
}

.cookie-manage button {
  background: var(--color-text);
  color: white;
  border: none;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0.85;
}

.cookie-manage button:hover {
  opacity: 1;
}


/* =====================
   NAVIGATION
===================== */

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand img {
  height: 64px; /* adjust as needed */
}

.nav {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allows items to move to the next line if needed */
  gap: 1rem;       /* spacing between logo and nav */
}

.nav-logo {
  font-weight: 700;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

.nav a:hover {
  color: var(--color-primary);
}

/* =====================
   SCROLL ANIMATIONS
===================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
PILLARS
===================== */
.pillars {
  padding: 4rem 0;
  background: var(--color-bg);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pillar {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}


/* =====================
   CONTACT FORM
===================== */

.contact {
  padding: 5rem 0;
}

.contact-form {
  max-width: 600px;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-family: var(--font-primary);
}

/* =====================
   BUSINESS INFO
===================== */

.business-info {
  background: var(--color-bg);
  padding: 4rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.business-info h4 {
  margin-bottom: 1rem;
}

/* =====================
   FOOTER
===================== */

.footer {
  background-color: color-mix(in srgb, var(--color-primary) 85%, black);
  color: var(--color-bg);
  font-family: var(--font-primary);
  text-align: center;
  padding: 2rem 0;
}

/* =====================
   BULLET POINTS
===================== */
.modern-list {
    list-style: none;       /* remove default bullets */
    padding-left: 0;        /* remove default padding */
}

.modern-list li {
    position: relative;
    padding-left: 1.5em;   /* space for custom bullet */
    margin-bottom: 0.5em;
}

.modern-list li::before {
    content: "•";                      /* custom bullet symbol */
    position: absolute;
    left: 0;
    color: var(--color-accent);        /* accent color bullet */
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}
