/* =========================================
   KEPLER GLOBAL STYLESHEET
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary:       #0A2342;
  --accent:        #D4982A;
  --accent-light:  #F0C05A;
  --white:         #FFFFFF;
  --light:         #F5F7FA;
  --muted:         #6B7A8D;
  --dark:          #0D1B2A;
  --border:        rgba(10,35,66,0.12);
  --shadow-sm:     0 2px 12px rgba(10,35,66,0.08);
  --shadow-md:     0 8px 32px rgba(10,35,66,0.14);
  --shadow-lg:     0 20px 60px rgba(10,35,66,0.18);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--primary);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* ---- UTILITY ---- */
.section-pad   { padding: 96px 0; }
.section-pad-sm{ padding: 64px 0; }
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--muted); }
.fw-600        { font-weight: 600; }
.subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
}
.divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 20px 0 36px;
}

/* =========================================
   NAVBAR
   ========================================= */
.kepler-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 0;
  transition: var(--transition);
}
.kepler-nav.scrolled {
  background: rgba(10,35,66,0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.kepler-nav .container-fluid { padding: 0 40px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
}
.brand-name span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-light);
  background: rgba(255,255,255,0.08);
}
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,152,42,0.45); }

/* Mobile toggle */
.nav-toggler {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggler span {
  display: block; width: 26px; height: 2px;
  background: var(--white); border-radius: 2px;
  margin: 5px 0; transition: var(--transition);
}

/* =========================================
   HERO SLIDER
   ========================================= */

/* Shared button styles (used outside slider too) */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(212,152,42,0.4);
}
.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(212,152,42,0.5);
  color: var(--primary);
}
.btn-outline-custom {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-custom:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  transform: translateY(-3px);
}

/* --- Slider shell --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--primary);
}

/* --- Track holds all slides stacked --- */
.hs-track { position: absolute; inset: 0; }

/* --- Individual slide --- */
.hs-slide {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.1s;
}
.hs-slide.active   { opacity: 1; pointer-events: all; z-index: 3; }
.hs-slide.prev-out { opacity: 0; z-index: 2; animation: slideOut 0.9s forwards; }
.hs-slide.next-in  { opacity: 0; z-index: 3; animation: slideIn  0.9s forwards; }

@keyframes slideIn {
  0%   { opacity:0; clip-path: inset(0 100% 0 0); }
  100% { opacity:1; clip-path: inset(0 0%   0 0); }
}
@keyframes slideOut {
  0%   { opacity:1; clip-path: inset(0 0%   0 0); }
  100% { opacity:0; clip-path: inset(0 0% 0 100%); }
}

/* --- Background image with Ken Burns zoom --- */
.hs-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 0s;
}
.hs-slide.active .hs-bg {
  animation: kenBurns 6.5s ease-out forwards;
}
@keyframes kenBurns {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

/* --- Colour overlay --- */
.hs-overlay { position: absolute; inset: 0; z-index: 1; }

/* --- Content --- */
.hs-content {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex; align-items: center;
  padding-top: 80px;
  padding-bottom: 160px;
}
.hs-inner { max-width: 680px; }

/* Badge */
.hs-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,152,42,0.15);
  border: 1px solid rgba(212,152,42,0.45);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 26px;
  opacity: 0; transform: translateY(20px);
  transition: none;
}
.hs-slide.active .hs-badge {
  animation: slideUpFade 0.6s 0.2s forwards;
}
.hs-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.5); }
}

/* Title */
.hs-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 22px;
  opacity: 0; transform: translateY(30px);
  transition: none;
}
.hs-slide.active .hs-title {
  animation: slideUpFade 0.7s 0.35s forwards;
}
.hs-highlight {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.hs-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.78;
  opacity: 0; transform: translateY(30px);
  transition: none;
}
.hs-slide.active .hs-desc {
  animation: slideUpFade 0.7s 0.5s forwards;
}

/* Buttons */
.hs-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  transition: none;
}
.hs-slide.active .hs-btns {
  animation: slideUpFade 0.7s 0.65s forwards;
}

@keyframes slideUpFade {
  to { opacity:1; transform:translateY(0); }
}

/* --- Slide number --- */
.hs-slide-num {
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  user-select: none;
  writing-mode: vertical-rl;
  letter-spacing: 0.05em;
}
.hs-slide-num span { font-size: 1.2rem; }

/* --- Arrow controls --- */
.hs-arrow {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.hs-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}
.hs-prev { left: 32px; }
.hs-next { right: 32px; }

/* --- Dot navigation --- */
.hs-dots {
  position: absolute;
  bottom: 148px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 10px;
}
.hs-dot-btn {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.hs-dot-btn.active,
.hs-dot-btn:hover {
  background: var(--accent);
  transform: scale(1.3);
}

/* --- Progress bar --- */
.hs-progress-bar {
  position: absolute;
  bottom: 136px; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.12);
  z-index: 10;
}
.hs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  width: 0%;
  transition: width linear;
}

/* --- Stats strip pinned to bottom --- */
.hs-stats-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(10,35,66,0.82);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hs-stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 0;
}
.hs-stat {
  text-align: center;
  padding: 8px 24px;
  flex: 1; min-width: 120px;
}
.hs-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
}
.hs-stat-lbl {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.hs-stat-divider {
  width: 1px; height: 44px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hs-slide-num { display: none; }
  .hs-arrow { width: 44px; height: 44px; font-size: 0.85rem; }
  .hs-prev { left: 16px; }
  .hs-next { right: 16px; }
  .hs-dots { bottom: 130px; }
  .hs-progress-bar { bottom: 118px; }
}

@media (max-width: 767px) {
  .hero-slider { height: 100svh; min-height: 580px; }
  .hs-content { padding-bottom: 130px; align-items: flex-end; }
  .hs-inner { max-width: 100%; }
  .hs-title { font-size: 2.4rem; }
  .hs-desc  { font-size: 0.95rem; }
  .hs-btns  { flex-direction: column; }
  .hs-btns a { justify-content: center; }
  .hs-stat  { padding: 6px 12px; min-width: 80px; }
  .hs-stat-num { font-size: 1.5rem; }
  .hs-stat-divider { display: none; }
  .hs-stats-inner { justify-content: center; gap: 8px; }
  .hs-dots { bottom: 120px; }
  .hs-progress-bar { bottom: 108px; }
}

/* =========================================
   ABOUT STRIP
   ========================================= */
.about-strip {
  background: var(--primary);
  padding: 48px 0;
}
.about-strip .about-inner {
  display: flex; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.about-strip p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.75;
  flex: 1; min-width: 280px;
}
.about-strip p strong { color: var(--accent-light); }

/* =========================================
   SERVICES PREVIEW (Home)
   ========================================= */
.services-preview { background: var(--light); }
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img { transform: scale(1.05); }
.service-card-img-wrap { overflow: hidden; }
.service-card-body { padding: 28px; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card-body h5 {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 10px;
}
.service-card-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.service-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.02em;
}
.service-link:hover { gap: 10px; color: var(--primary); }

/* =========================================
   WHY KEPLER
   ========================================= */
.why-section { background: var(--white); }
.why-img-wrap {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-img-wrap img { width: 100%; height: 520px; object-fit: cover; }
.why-badge {
  position: absolute; bottom: 32px; left: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  max-width: 220px;
}
.why-badge .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 900;
  color: var(--primary); line-height: 1;
}
.why-badge .lbl {
  font-size: 0.82rem; color: var(--muted); margin-top: 4px;
}
.feature-item {
  display: flex; gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  margin-bottom: 8px;
}
.feature-item:hover { background: var(--light); }
.feature-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.feature-body h6 {
  font-size: 1rem; font-weight: 700; margin-bottom: 6px;
}
.feature-body p { font-size: 0.9rem; color: var(--muted); }

/* =========================================
   CTA BAND
   ========================================= */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4070 100%);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,152,42,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.7); }

/* =========================================
   SERVICES PAGE
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
  padding: 160px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,0.7); }

.service-full-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  margin-bottom: 40px;
  transition: var(--transition);
}
.service-full-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-full-card img {
  width: 100%; height: 300px; object-fit: cover;
}
.service-full-body { padding: 40px; }
.service-full-body .service-icon { margin-bottom: 20px; }
.service-full-body h3 { font-size: 1.6rem; margin-bottom: 14px; }
.service-full-body p { color: var(--muted); margin-bottom: 24px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: var(--light);
  color: var(--primary);
  font-size: 0.8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 50px;
  border: 1px solid var(--border);
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.contact-info-item {
  display: flex; gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #1a4070);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light); font-size: 1.2rem;
}
.contact-info-body strong {
  display: block; font-size: 0.85rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 4px;
}
.contact-info-body span { font-size: 1rem; color: var(--primary); font-weight: 500; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--primary); margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-control-custom {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; color: var(--dark);
  background: var(--light);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-control-custom:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,152,42,0.12);
}
.form-control-custom::placeholder { color: var(--muted); }
select.form-control-custom { cursor: pointer; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--dark);
  padding: 80px 0 0;
}
.footer-brand { margin-bottom: 24px; }
.footer-brand .brand-name { color: var(--white); font-size: 1.6rem; }
.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75; max-width: 280px;
  margin-bottom: 28px;
}
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem; transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}
.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--accent-light); gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  margin-top: 60px;
}
.footer-bottom p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom span { color: var(--accent); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
  .hero-visual { display: none; }
  .section-pad { padding: 72px 0; }
  .why-img-wrap { margin-bottom: 40px; }
  .service-full-card img { height: 220px; }
  .service-full-body { padding: 28px; }
}

@media (max-width: 767px) {
  .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; background: rgba(10,35,66,0.98);
    backdrop-filter: blur(16px); padding: 20px 24px; gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggler { display: block; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats { gap: 24px; }
  .about-strip .about-inner { flex-direction: column; }
  .contact-card { padding: 28px 20px; }
  .hero-btns { flex-direction: column; }
  .hero-btns a, .hero-btns button { width: 100%; justify-content: center; }
  .section-pad { padding: 56px 0; }
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
