/* ===============================
   KUQUARA - MERGED SITE STYLES
   (Combines Home / About / Services / Contact)
   =============================== */

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #212121;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* ---------- Colors ---------- */
:root {
  --kuquara: #4AAE4F;
  --kuquara-dark: #2E7D32;
  --earth-gold: #C7A75D;
  --charcoal: #212121;
  --lightbg: #F5F5F5;
  --muted: #666666;
}

/* ---------- Container ---------- */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- NAV / HEADER ---------- */
.nav-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 999;                 /* make sure header is above hero */
  min-height: 72px;             /* don't force a fixed height on small screens */
  display: flex;
  align-items: center;
  background: #fff;
  padding-top: env(safe-area-inset-top); /* iOS notch / Safari UI safe area */
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: 72px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  z-index: 120;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.brand-line {
  font-weight: 700;
  font-size: 16px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

/* Nav links */
.navbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: 12px;
}

.nav-links li {}

.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 15px;
  padding: 8px 6px;
  transition: color .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--kuquara-dark);
}

/* Mobile toggle */


.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 4px 0;
  transition: all .2s ease;
}

/* ---------- Fix: prevent hero text overlapping mobile nav ---------- */

/* size of mobile nav button (matches .nav-toggle dimensions) */
:root{
  --nav-button-size: 48px; /* adjust if your button is bigger (56px etc) */
  --nav-safety-gap: 18px;  /* extra breathing room from the button */
}

/* ensure nav controls render above hero content */
.nav-toggle {
  display: none;           /* hide the hamburger on desktop */
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-links {
  list-style: none;
  display: flex;           /* show links as a row on desktop */
  gap: 18px;
  align-items: center;
  margin-left: 12px;
}

/* on small screens reserve horizontal space for nav button and logo */
@media (max-width: 768px) {
  .nav-toggle { display: block; position: relative; z-index: 110; }
  .nav-links { 
    display: none;         /* hidden by default on mobile */
    position: fixed;
    right: 18px;
    top: calc(72px + env(safe-area-inset-top));
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-radius: 8px;
    flex-direction: column;
    width: 220px;
  }
  .nav-links.open { display: flex; } /* shown when the menu is opened */
}

  /* prevent extremely long headings from overflowing - set safe max width */
  .hero-title {
    max-width: calc(100% - (var(--nav-button-size) + var(--nav-safety-gap) * 2));
    word-break: break-word;
    hyphens: auto;
  }

  /* reduce hero title size a touch on small screens for tighter wrapping */
  .hero-title {
    font-size: 32px; /* was larger on desktop */
    line-height: 1.05;
  }

  /* ensure the left-side logo (if present) stays above slide content */
  .logo-box {
    position: relative;
    z-index: 95;
  }

  /* if the nav button is on the left, align it absolutely so it doesn't push layout */
  .nav-toggle {
    position: absolute;
    left: 14px;                 /* change to right:14px if your toggle is on the right */
    top: 14px;
    z-index: 100;
  }

  /* ensure CTA buttons wrap instead of overflowing */
  .hero-ctas { display:flex; gap:10px; flex-wrap:wrap; padding-top: 10px; }


/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-block;
  background: var(--kuquara);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-outline,
.btn-outline-light {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
}

.btn-outline-light:hover,
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.btn-outline {
  border: 2px solid var(--earth-gold);
  color: var(--charcoal);
  background: transparent;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: transparent;
}

/* ---------- HERO ---------- */
/* ------------------------------
   HERO CAROUSEL STYLES
   ------------------------------ */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #000;
}

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 650ms cubic-bezier(.2, .9, .3, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  min-height: 520px;
  color: #fff;
}

.slide-media {
  opacity: 0;
  transition: opacity 520ms ease;
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  filter: brightness(0.55);
}

.slide-media.loaded {
  opacity: 1;
}

.slide-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  padding: 20px;
}

/* keep hero typography consistent */
.hero-title {
  color: #fff;
  font-size: 44px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.4px;
  text-align: justify;
  
}

.hero-title span {
  color: var(--earth-gold);
}

.hero-sub {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 640px;
  text-align: justify;
}

/* Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  font-size: 18px;
  transition: background .2s;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-control.prev {
  left: 18px;
}

.carousel-control.next {
  right: 18px;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  display: flex;
  gap: 10px;
  z-index: 6;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform .18s, background .18s;
}

.carousel-indicators .indicator[aria-pressed="true"],
.carousel-indicators .indicator.active {
  background: var(--kuquara);
  transform: scale(1.15);
}

/* Make buttons visible on small screens with less overlap */
@media (max-width: 768px) {
  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .slide-content {
    padding: 14px;
  }
}

/* Disable text selection on controls */
.carousel-control,
.carousel-indicators .indicator {
  user-select: none;
  -webkit-user-select: none;
}

/* subtle parallax (optional) */
.carousel-slide .slide-media {
  transition: transform 900ms ease;
}

.carousel-slide.is-active .slide-media {
  transform: scale(1.02);
}

/* accessibility focus */
.carousel-control:focus,
.carousel-indicators .indicator:focus {
  outline: 3px solid rgba(74, 174, 79, 0.18);
  outline-offset: 4px;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 72px 0;
  background: #fff;
}

.section-alt {
  background: var(--lightbg);
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.section-intro {
  color: #555;
  margin-bottom: 18px;
}

.lead {
  font-size: 16px;
  color: #333;
  margin-bottom: 14px;
}


/* ---------- SPLIT GRID (ABOUT) ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-card {
  padding: 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.service-card {
  background: #fff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform .28s ease, box-shadow .28s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.service-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.service-card h3 {
  margin-top: 6px;
  margin-bottom: 8px;
  color: var(--kuquara-dark);
}

/* --- Services Icons (Uniform Size) --- */
.service-card .service-icon {
  width: 60px;
  /* fixed width */
  height: 60px;
  /* fixed height */
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  /* optional: keeps them neat */
  overflow: hidden;

  margin-bottom: 12px;

  /* Adjust for your brand look */
  background: #F3F4F6;
  /* soft neutral background */
}

.service-card .service-icon img,
.service-card .service-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* prevents distortion */
}

/* ---------- SERVICE DETAIL CARDS (from services.html) ---------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 14px;
}

.service-detail-card {
  background: #fff;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.service-detail-card h4 {
  color: var(--kuquara-dark);
  margin-bottom: 10px;
}

.service-detail-card ul {
  padding-left: 18px;
  margin-top: 8px;
}

/* ---------- CAPABILITIES / PROJECTS PLACEHOLDER ---------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.cap-card {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  color: var(--kuquara-dark);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform .24s ease;
}

.cap-card:hover {
  transform: translateY(-6px);
}

/* ---------- PROJECT CARD (if later used) ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 18px;
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h4 {
  padding: 15px;
  font-size: 18px;
}

/* ---------- ABOUT / VMV CARDS ---------- */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 18px;
}

.vmv-card {
  background: #fff;
  padding: 20px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.vmv-card h4 {
  margin-bottom: 10px;
  color: var(--kuquara-dark);
}

.values-list {
  list-style-type: disc;
  padding-left: 18px;
}

.values-list li {
  margin-bottom: 8px;
}

/* ---------- LEADERSHIP CARDS ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 18px;
}

.leader-card {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.leader-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.leader-card h4 {
  margin-top: 10px;
  margin-bottom: 4px;
}

.leader-card .muted {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

/* ---------- PROCESS / HOW WE WORK ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 18px;
}

.process-step {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kuquara);
  color: #fff;
  font-size: 14px;
  margin-bottom: 8px;
}

/* ---------- CTA PANEL ---------- */
.cta-panel {
  padding-bottom: 80px;
  margin-top: 20px;
}

.cta-inner {
  background: linear-gradient(135deg, var(--kuquara-dark), var(--kuquara));
  color: #fff;
  padding: 30px 26px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-inner p {
  max-width: 700px;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

.contact-info {
  padding: 12px 6px;
}

.contact-form-wrap {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 15px;
}

/* ---------- FORM HELPERS ---------- */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  align-items: center;
}

.form-status {
  margin-top: 10px;
  color: var(--kuquara-dark);
  font-weight: 600;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 28px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ---------- SMALL HELPERS ---------- */
.muted-note {
  color: var(--muted);
  margin-top: 14px;
}

.lead-small {
  color: #444;
}

/* ---------- ANIMATIONS ---------- */
.animate {
  opacity: 0;
  transform: translateY(18px);
  transition: all .6s cubic-bezier(.2, .9, .3, 1);
  will-change: transform, opacity;
}

.animate.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-grid,
  .who-grid {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 320px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .nav-content {
    /* Keep header compact on mobile; avoid spilling beyond the header area */
    flex-direction: row;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 10px 0;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .brand-line {
    font-size: 14px;
    line-height: 1.15;
  }

  .brand-sub {
    display: none;
  }

  .nav-links {
    display: none;
    position: fixed;
    right: 18px;
    top: calc(72px + env(safe-area-inset-top));
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    flex-direction: column;
    width: 220px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 18px;      /* <-- moves hamburger to the RIGHT */
    left: auto;       /* <-- ensures left positioning is disabled */
    top: 14px;
    z-index: 150;
  }

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

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

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .leader-grid {
    grid-template-columns: 1fr;
  }

  .vmv-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
    line-height: 1.08;
    max-width: 90%;
  }

  .hero-sub {
    font-size: 16px;
    max-width: 92%;
  }

  .hero-content {
    top: 52%;               /* slightly lower for mobile readability */
    transform: translate(-50%, -52%);
    padding: 0 16px;
  }
}
/* ---------- Accessibility helpers ---------- */
a:focus {
  outline: 3px solid rgba(74, 174, 79, 0.18);
  outline-offset: 2px;
}

/* ---------- Utility shadows (if you used shadow-soft-lg earlier) ---------- */
.shadow-soft-lg {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* ---------- End of file ---------- */