/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f5f8fc;
  color: #1a1f29;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== CUSTOM PROPERTIES (TEAL THEME) ===== */
:root {
  --sand:   #e6eef8;
  --cream:  #f5f8fc;
  --warm:   #e6eef8;
  --accent: #1aa6ae;
  --accent2:#14828a;
  --blue:   #124b52;
  --text:   #1a1f29;
  --muted:  #6d7a88;
  --light:  #a1afc0;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
nav.scrolled {
  background: rgba(245,248,252,0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 32px rgba(0,0,0,0.06);
}
nav.scrolled .nav-links {
  color: #1a1f29;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  transition: background 0.4s, border-color 0.4s, color 0.4s,
              box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.nav-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
nav.scrolled .nav-logo {
  background: rgba(26,166,174,0.08);
  border-color: rgba(26,166,174,0.25);
  color: var(--blue);
  box-shadow: 0 4px 18px rgba(26,166,174,0.12);
}
.nav-logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 12px rgba(26,166,174,0.4);
  margin-right: 10px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--sand);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(26,166,174,0.32);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26,166,174,0.4);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: #0d2b2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 6vw 80px;
  position: relative;
  overflow: hidden;
}

/* ===== HERO BACKGROUND SLIDER ===== */
/* FIX: z-index set to 0 so images sit behind overlay (z:1) and text (z:2) */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  /* FIX: opacity transition handles fade, transform handles Ken Burns effect */
  transition: opacity 1.2s ease-in-out, transform 7s ease-out;
  will-change: opacity, transform;
}
.hero-bg-1 {
  background-image: url("images/hero1.jpg");
}
.hero-bg-2 {
  background-image: url("images/hero2.jpg");
}
.hero-bg-3 {
  background-image: url("images/hero3.jpg");
}
/* FIX: active slide is fully visible and at normal scale */
.hero-bg-active {
  opacity: 1;
  transform: scale(1.0);
}

/* ===== HERO OVERLAY ===== */
/* FIX: z-index 1 — sits above images but below all text */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(10,30,35,0.55) 0%,
      rgba(10,30,35,0.28) 40%,
      rgba(10,30,35,0.28) 60%,
      rgba(10,30,35,0.62) 100%
    );
  pointer-events: none;
}

/* ===== HERO CONTENT ===== */
/* FIX: z-index 2 — all text and UI above overlay */
.hero-kicker,
.hero h1,
.hero-sub,
.hero-cta,
.hero-stats,
.hero-dots,
.parallax-shape {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(26,166,174,0.15);
  border: 1px solid rgba(26,166,174,0.4);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}
.hero.visible .hero-kicker {
  opacity: 1;
  transform: translateY(0);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.1;
  max-width: 860px;
  margin: 0 auto 22px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero.visible h1 {
  opacity: 1;
  transform: translateY(0);
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--accent), #4dd8e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 34px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.35s, transform 0.8s ease 0.35s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.hero.visible .hero-sub {
  opacity: 1;
  transform: translateY(0);
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}
.hero.visible .hero-cta {
  opacity: 1;
  transform: translateY(0);
}
.btn-main {
  padding: 13px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(26,166,174,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(26,166,174,0.55);
}
.btn-ghost {
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: #ffffff;
}
.hero-stats {
  margin-top: 64px;
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.65s, transform 0.8s ease 0.65s;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
  width: 100%;
  max-width: 860px;
}
.hero.visible .hero-stats {
  opacity: 1;
  transform: translateY(0);
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  margin-top: 3px;
  display: block;
}

/* slider dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot-active {
  background: var(--accent);
  transform: scaleX(1.2);
}

/* parallax shapes */
.parallax-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}
.shape-1 {
  width: 80px; height: 80px;
  border: 2px solid rgba(26,166,174,0.3);
  top: 22%; left: 8%;
  animation: floatA 7s ease-in-out infinite;
}
.shape-2 {
  width: 50px; height: 50px;
  background: rgba(26,166,174,0.12);
  top: 55%; right: 10%;
  animation: floatB 9s ease-in-out infinite;
}
.shape-3 {
  width: 130px; height: 130px;
  border: 1px solid rgba(18,75,82,0.18);
  bottom: 15%; left: 15%;
  animation: floatA 11s ease-in-out infinite reverse;
}
@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(15deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(18px) scale(1.08); }
}

/* ===== SECTION BASE ===== */
section { padding: 90px 6vw; }
.section-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
}

/* ===== ANIMATE ON SCROLL ===== */
.anim {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.anim.visible { opacity: 1; transform: translateY(0); }
.anim-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.anim-left.visible { opacity: 1; transform: translateX(0); }
.anim-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.anim-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ===== ABOUT ===== */
.about { background: #ffffff; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-img-placeholder {
  width: 100%;
  height: 420px;
  border-radius: 28px;
  background: linear-gradient(135deg, #d7e4f5, #a7c9eb);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(0,0,0,0.3);
  font-weight: 500;
}
.about-float-badge {
  position: absolute;
  bottom: -18px; right: -18px;
  background: var(--accent);
  color: #fff;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(26,166,174,0.4);
  animation: floatB 6s ease-in-out infinite;
}
.about-float-badge strong { display: block; font-size: 22px; font-weight: 800; }
.about-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-highlights {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}
.about-h-item strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}
.about-h-item span { font-size: 12px; color: var(--muted); }
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.about-link:hover { border-color: var(--blue); }

/* ===== SERVICES (2 per row) ===== */
/* ===== SERVICES (2 per row) ===== */
.services {
  background-color: var(--sand);
  background-image: url("images/services-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  position: relative;
}

/* light overlay so background doesn't overpower content */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(230, 238, 248, 0.92);
  pointer-events: none;
  z-index: 0;
}

/* lift all services content above overlay */
.services-header,
.services-list {
  position: relative;
  z-index: 1;
}

.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}
.service-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.service-row::after {
  content: '';
  position: absolute;
  left: 40px;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-row:hover::after { transform: scaleX(1); }
.svc-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 4px;
}
.svc-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  transition: color 0.2s;
}
.service-row:hover .svc-body h3 { color: var(--accent); }
.svc-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.svc-arrow {
  font-size: 20px;
  color: var(--light);
  padding-top: 6px;
  transition: transform 0.3s, color 0.3s;
}
.service-row:hover .svc-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}
@media (max-width: 900px) {
  .services-list { grid-template-columns: 1fr; }
}

/* ===== WHY US ===== */
.why { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.why::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,166,174,0.35), transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.why-left .section-kicker { color: var(--accent); }
.why-left .section-title { color: #fff; }
.why-left .section-sub { color: rgba(255,255,255,0.7); max-width: 420px; }
.why-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.why-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.why-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.why-item h4 {
  font-size: 15px; font-weight: 600; margin-bottom: 4px;
}
.why-item p { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.65; }

/* ===== STATS BAND ===== */
.stats-band {
  background: var(--accent);
  padding: 50px 6vw;
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-item { text-align: center; color: #fff; }
.stat-item strong { display: block; font-size: 40px; font-weight: 800; line-height: 1; }
.stat-item span { font-size: 13px; opacity: 0.9; margin-top: 4px; }

/* ===== PROCESS ===== */
.process { background: #ffffff; }
.process-header { text-align: center; max-width: 560px; margin: 0 auto 64px; }
.process-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.process-item {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.process-item::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 26px;
  font-size: 22px;
  color: var(--accent);
}
.process-item:last-child::after { display: none; }
.process-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--accent);
  margin: 0 auto 16px;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(26,166,174,0.18);
  transition: background 0.3s, color 0.3s;
}
.process-item:hover .process-circle { background: var(--accent); color: #fff; }
.process-item h4 { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.process-item p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ===== CONTACT ===== */
.contact { background: var(--sand); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.contact-left .section-sub { margin-bottom: 36px; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 14px;
}
.cd-row { display: flex; gap: 14px; align-items: flex-start; }
.cd-icon {
  font-size: 20px;
  width: 40px; height: 40px;
  background: rgba(26,166,174,0.16);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cd-label { font-size: 11px; color: var(--light); text-transform: uppercase; letter-spacing: 0.07em; }
.cd-val { font-weight: 500; color: var(--text); margin-top: 2px; }
.form { margin-top: 0; }
.form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; color: var(--blue); margin-bottom: 6px;
}
.form p { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label { font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; }
.fg input, .fg select, .fg textarea {
  border: none;
  border-bottom: 1.5px solid rgba(0,0,0,0.15);
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-bottom-color: var(--accent);
}
.fg textarea { min-height: 80px; resize: none; }
.form-submit { margin-top: 24px; }

/* ===== FOOTER ===== */
footer {
  background: var(--blue);
  color: rgba(255,255,255,0.8);
  padding: 56px 6vw 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand-name {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 14px;
}
.footer-desc { font-size: 13px; line-height: 1.75; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li { font-size: 13px; }
.footer-col ul a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .about-inner, .why-inner, .contact-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .process-item::after { display: none; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.nav-logo-box {
  width: 200px;   /* desktop logo area */
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.nav-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color, #111);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .nav-logo-box {
    width: 120px;
    height: 44px;
  }

  .nav-logo-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .nav-logo-box {
    width: 100px;
    height: 40px;
  }

  .nav-logo-text {
    font-size: 0.88rem;
  }
}

/* default: show light logo (over dark hero), hide dark one */
.nav-logo-img-light {
  display: block;
}
.nav-logo-img-dark {
  display: none;
}

/* when nav gets scrolled (white background), use dark logo */
nav.scrolled .nav-logo-img-light {
  display: none;
}
nav.scrolled .nav-logo-img-dark {
  display: block;
}

/* tweak background + text color for scrolled state */
nav.scrolled .nav-logo {
  background: rgba(245,248,252,0.96);
  border-color: rgba(0,0,0,0.05);
  color: var(--text);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

nav.scrolled .nav-logo-text {
  color: var(--text);
}