/* =========================
   COLOR SYSTEM (FINAL)
========================= */
:root {
  --bg-soft: #f5fbe6;
  --brand-teal: #215E61;
  --brand-dark: #233D4D;
  --brand-orange: #FE7F2D;

  --text-muted: rgba(35, 61, 77, 0.7);
  --border-light: rgba(35, 61, 77, 0.15);
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-soft);
  color: var(--brand-dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 251, 230, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo{
  width: 38px;
  height: auto;
}


.nav-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-dark);
}

.logo:hover .nav-logo-text {
  color: var(--brand-orange);
}

/* NAV LINKS */
nav a {
  margin-left: 28px;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 500;
}

nav a:hover {
  color: var(--brand-orange);
}

/* =========================
   HERO
========================= */
.hero {
  padding-top: 80px;
  padding-bottom: 100px;
  min-height: calc(100vh - 80px);
  position: relative
}

.navbar + .hero {
  margin-top: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.home-hero {
  padding-top: 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(254, 127, 45, 0.15);
  color: var(--brand-orange);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 56px;
}

.highlight {
  color: var(--brand-orange);
}

.hero-text p {
  margin: 20px 0 0;
  color: var(--text-muted);
  max-width: 520px;
}

/* Home hero: center Schedule button with respect to text above */
.home-hero .hero-text .hero-actions {
  max-width: 520px;
  justify-content: center;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 28px;
}

.hero-visual img {
  width: 500px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  animation: float 6s ease-in-out infinite;

}

.hero-visual{
  position: relative;
  width: 520px;
  height: 420px;
}




/* BUTTONS */
.primary-btn,
.cta-btn {
  background: var(--brand-orange);
  color: white;
  padding: 14px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.primary-btn:hover,
.cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

/* SECONDARY CTA */
.secondary-btn {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.secondary-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--brand-orange),
    var(--brand-teal)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.secondary-btn:hover::after {
  transform: scaleX(1);
}

/* HERO VISUAL */
.gradient-box {
  width: 320px;
  height: 320px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    var(--brand-orange),
    var(--brand-teal),
    var(--brand-dark)
  );
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-20px); }
}

/* =========================
   SECTIONS
========================= */
.about,
.services,
.why,
.testimonials {
  padding: 100px 0;
}

.about,
.why {
  background: white;
}

.services,
.testimonials {
  background: var(--bg-soft);
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  text-align: center;
  margin-bottom: 40px;
}

/* =========================
   ABOUT (NEW LAYOUT)
========================= */
.about-intro {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.about-intro p {
  color: var(--text-muted);
  font-size: 17px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ABOUT CARDS */
.about-card {
  position: relative;
  background: white;
  padding: 36px;
  border-radius: 24px;
  transition: all 0.4s ease;
}

.about-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* GRADIENT BORDER HOVER */
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--brand-orange),
    var(--brand-teal),
    var(--brand-dark)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-card:hover::before {
  opacity: 1;
}

.about-card:hover {
  transform: translateY(-6px);
}

/* =========================
   SERVICES / TESTIMONIALS
========================= */
.services-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card,
.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  transition: 0.3s;
}

.service-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
}

/* =========================
   WHY
========================= */
.why {
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-item {
  background: white;
  padding: 24px;
  border-radius: 16px;
}

/* =========================
   CTA
========================= */
.cta {
  padding: 100px 0;
  background: var(--brand-dark);
  color: white;
  text-align: center;
}
.cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  margin-bottom: 24px;
}

.cta p {
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta .cta-btn {
  margin-top: 8px;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--brand-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand h3 {
  color: var(--brand-orange);
}

.footer-links a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}

.footer-links h4 {
  margin-bottom: 16px;
  color: var(--brand-orange);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
}

.footer-bottom {
  text-align: center;
  opacity: 0.6;
  margin-top: 30px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .hero-content,
  .about-grid,
  .services-grid,
  .testimonials-grid,
  .why-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }

  nav {
    display: none;
  }
}

/* =========================
   UNIVERSAL CARD STYLE
========================= */

.about-card,
.service-card,
.testimonial-card,
.why-item {
  position: relative;
  background: #FFFFFF; /* different from bg-soft */
  border-radius: 22px;
  padding: 32px;
  cursor: pointer;

  /* visible separation by default */
  box-shadow: 
    0 4px 14px rgba(35, 61, 77, 0.08);

  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* -------------------------
   HOVER (ONLY THAT CARD)
------------------------- */
.about-card:hover,
.service-card:hover,
.testimonial-card:hover,
.why-item:hover {
  transform: translateY(-10px);
  box-shadow:
    0 18px 40px rgba(35, 61, 77, 0.18);
}

.about-card::before,
.service-card::before,
.testimonial-card::before,
.why-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;

  background: linear-gradient(
    135deg,
    var(--brand-orange),
    var(--brand-teal),
    var(--brand-dark)
  );

  /* hide border initially */
  opacity: 0;

  /* mask magic */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  transition: opacity 0.35s ease;
}

/* show gradient only on hover */
.about-card:hover::before,
.service-card:hover::before,
.testimonial-card:hover::before,
.why-item:hover::before {
  opacity: 1;
}

/* =========================
   WHY SECTION SPACING FIX
========================= */

.why {
  text-align: center;
}

.why h2 {
  margin-bottom: 56px; /* THIS is the key fix */
}

/* cards grid spacing (optional refinement) */
.why-grid {
  margin-top: 10px;
}
.why h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--brand-orange);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* =========================
   ACTIVE NAV LINK
========================= */

nav a {
  position: relative;
}

/* active + hover underline */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--brand-orange),
    var(--brand-teal)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* hover underline */
nav a:hover::after {
  transform: scaleX(1);
}

/* active link */
nav a.active {
  color: var(--brand-orange);
}

nav a.active::after {
  transform: scaleX(1);
}

/* =========================
   CLIENT LOGO SLIDER
========================= */

.clients {
  padding: 80px 0;
  background: var(--bg-soft);
  overflow: hidden;
}

.clients .section-title {
  margin-bottom: 40px;
}

/* Slider container */
.logo-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Track */
.logo-track {
  display: flex;
  width: fit-content;
  animation: scrollLogos 30s linear infinite;
}

/* Individual logo */
.logo-item {
  flex: 0 0 auto;
  width: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.logo-item img {
  max-width: 120px;
  max-height: 40px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

/* Hover effect */
.logo-item img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Animation */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .logo-item {
    width: 140px;
  }

  .logo-item img {
    max-width: 100px;
  }
}

/* =========================
   TESTIMONIAL WALL
========================= */

.testimonials {
  padding: 100px 0;
  background: var(--bg-soft);
}

/* wrapper allows fade mask */
.testimonials-wrapper {
  position: relative;
  max-height: 520px; /* controls how many are visible */
  overflow: hidden;
}

/* grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* base card */
.testimonial-card {
  background: white;
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(35, 61, 77, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.testimonial-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
}

/* hover uplift */
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(35, 61, 77, 0.18);
}

/* size variations */
.testimonial-card.large {
  grid-column: span 2;
}

.testimonial-card.wide {
  grid-column: span 2;
}

.testimonial-card.tall {
  grid-row: span 2;
}

/* fade at bottom */
.testimonials-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(245, 251, 230, 0),
    var(--bg-soft)
  );
  pointer-events: none;
}

/* responsive */
@media (max-width: 900px) {
  .testimonials-wrapper {
    max-height: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card.large,
  .testimonial-card.wide,
  .testimonial-card.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .testimonials-fade {
    display: none;
  }
}
/* =========================
   VERTICAL TESTIMONIAL SCROLL
========================= */

/* make wrapper act like a viewport */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

/* animate the grid */
.testimonials-grid {
  animation: scrollTestimonials 25s linear infinite;
}

/* pause animation on hover (optional but premium) */
.testimonials-wrapper:hover .testimonials-grid {
  animation-play-state: paused;
}

/* vertical scrolling animation */
@keyframes scrollTestimonials {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* =========================
   TESTIMONIAL FOOTER + LINKEDIN
========================= */

.testimonial-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-footer span {
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================
   LINKEDIN ICON (IMAGE)
========================= */

.linkedin-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  /* VERY IMPORTANT */
  position: relative;
  z-index: 5;

  transition: transform 0.3s ease;
}

.linkedin-icon img {
  width: 18px;
  height: 18px;
}

/* hover */
.linkedin-icon:hover {
  transform: scale(1.15);
}


.linkedin-icon:hover {
  background: var(--brand-orange);
  transform: scale(1.1);
}
.testimonial-card {
  position: relative;
  z-index: 2;
}
/* FIX: allow clicks through gradient border */
.about-card::before,
.service-card::before,
.testimonial-card::before,
.why-item::before {
  pointer-events: none;
}
.linkedin-icon {
  position: relative;
  z-index: 5;
}

/* =========================
   VISUAL SPLIT CTA
========================= */

.visual-cta {
  background: var(--brand-dark);
  color: white;
  padding: 100px 0;
  overflow: hidden;
}

.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
}

/* LEFT IMAGE */
.cta-visual {
  position: relative;
}

.cta-visual img {
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  animation: floatCTA 6s ease-in-out infinite;
}

/* FLOAT ANIMATION */
@keyframes floatCTA {
  50% {
    transform: translateY(-18px);
  }
}

/* RIGHT CONTENT */
.cta-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-content p {
  max-width: 520px;
  opacity: 0.9;
  margin-bottom: 32px;
}


/* BUTTON ALIGNMENT */
.visual-cta .hero-actions {
  align-items: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .cta-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-visual {
    order: -1;
  }

  .cta-visual img {
    margin: 0 auto 40px;
  }

  .visual-cta .hero-actions {
    justify-content: center;
  }
}

/* =========================
   LOADING SCREEN
========================= */

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* container */
.loader-content {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

/* logo */
.loader-logo {
  width: 48px;
  height: auto;
  z-index: 2;
}

/* text hidden initially */
.loader-text {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-orange);
  transform: translateX(-120%);
  opacity: 0;
  animation: slideText 1.2s ease forwards;
  animation-delay: 0.6s;
}

/* slide out animation */
@keyframes slideText {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* fade out loader */
.loader-hide {
  animation: fadeOut 0.6s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.loader-text {
  color: var(--brand-dark);
}


/* =========================
   CTA REAL ALIGNMENT FIX
========================= */

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 🔥 KEY FIX */
}

/* make buttons align with text width */
.visual-cta .hero-actions {
  margin-top: 28px;
  justify-content: flex-start; /* 🔥 KEY FIX */
  width: 100%;
}


/* =========================
   HERO GRID – REFINED VERSION
========================= */

.home-hero {
  position: relative;
  overflow: hidden;
}

/* grid container */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26px, 1fr));
  gap: 10px;
  padding: 20px;
}

/* individual square */
.hero-grid-bg .grid-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;

  background: rgba(33, 94, 97, 0.06);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* glow state */
.hero-grid-bg .grid-square.active {
  background: rgba(33, 94, 97, 0.35);
  box-shadow: 0 0 18px rgba(33, 94, 97, 0.7);
  transform: scale(1.05);
}

/* hero content above grid */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-grid-bg .grid-square.active {
  background: radial-gradient(
    circle at center,
    rgba(33, 94, 97, 0.6),
    rgba(33, 94, 97, 0.2)
  );
  box-shadow: 0 0 20px rgba(33, 94, 97, 0.7);
}

.hero-grid-bg .grid-square {
  transition:
    background 0.4s ease,
    box-shadow 0.6s ease;
}

.hero-grid-bg {
  opacity: 0;
  animation: gridFadeIn 1.5s ease forwards;
}

@keyframes gridFadeIn {
  to { opacity: 1; }
}
