:root {
  --navy: #071827;
  --navy-light: #10283b;
  --blue: #1b5f85;
  --gold: #d7ad62;
  --white: #fff;
  --paper: #f5f7f9;
  --muted: #667887;
  --border: #e1e7eb;
  --radius: 18px;
  --shadow: 0 16px 45px rgba(7,24,39,.09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "DM Sans", sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 100px 0; }
h1, h2, h3, h4 {
  font-family: "Manrope", sans-serif;
  line-height: 1.2;
  letter-spacing: -.035em;
}
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; }
p { color: var(--muted); }
.section-kicker, .eyebrow {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  margin-bottom: 17px;
}
.section-heading { max-width: 740px; margin: 0 auto 48px; text-align: center; }
.section-heading h2 { margin-bottom: 18px; }
.section-heading > p:last-child { max-width: 660px; margin-inline: auto; }

/* Header */
.site-header {
  height: 84px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(7,24,39,.08);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled { height: 74px; box-shadow: 0 8px 28px rgba(7,24,39,.08); }
.nav-wrap, .navigation, .brand { display: flex; align-items: center; }
.nav-wrap { height: 100%; justify-content: space-between; gap: 25px; }
.brand {
  flex-shrink: 0;
  gap: 11px;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.05;
}
.brand img { width: 49px; height: 49px; object-fit: contain; }
.brand strong { font-weight: 800; }
.brand small { display: block; font-size: .62rem; letter-spacing: .2em; margin-top: 5px; }
.navigation { gap: clamp(12px, 1.7vw, 24px); }
.navigation > a { color: #35495a; font-size: .84rem; font-weight: 600; transition: color .2s; }
.navigation > a:hover, .navigation > a.active { color: var(--blue); }
.language-toggle {
  min-width: 43px;
  padding: 8px 10px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.language-toggle:hover { background: var(--gold); transform: translateY(-2px); }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 9px; }
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  border-radius: 4px;
  background: var(--navy);
  transition: transform .25s, opacity .25s;
}
.menu-toggle.open span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Hero: water-drop image */
.hero {
  min-height: min(760px, calc(100svh - 74px));
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: var(--navy) url("images/water.jpeg") center center / cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4,18,31,.91), rgba(4,18,31,.66)),
              linear-gradient(0deg, rgba(4,18,31,.24), transparent 55%);
}
.hero-content { padding-top: 45px; padding-bottom: 70px; animation: hero-enter .8s ease both; }
.hero-content h1 {
  max-width: 780px;
  font-size: clamp(2.6rem, 6.5vw, 5.3rem);
  line-height: 1.07;
  margin-bottom: 26px;
}
.hero-description { max-width: 650px; color: #e0e8ee; font-size: clamp(1rem,1.8vw,1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  min-height: 50px;
  padding: 13px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s, background .22s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 24px rgba(0,0,0,.14); }
.btn-primary { color: var(--navy); background: var(--gold); }
.btn-primary:hover { background: #e5c17f; }
.btn-outline { color: white; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.global-note { margin-top: 30px; color: #d5e0e8; font-size: .85rem; letter-spacing: .03em; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 20px; transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  border-radius: 5px; background: var(--gold); animation: scroll-dot 1.5s ease-in-out infinite;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.about-copy h2 { margin-bottom: 25px; }
.about-copy p:not(.section-kicker) { margin-bottom: 17px; }
.text-link, .whatsapp-link { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 700; }
.text-link:hover, .whatsapp-link:hover { color: #0d3c59; }
.about-visual { position: relative; min-width: 0; }
.about-visual > img {
  width: 100%; height: 430px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
}
.experience-card {
  position: absolute; bottom: -22px; left: -22px; display: grid; gap: 2px;
  max-width: 220px; padding: 20px 25px; border-radius: 12px;
  background: var(--navy); color: white; box-shadow: var(--shadow);
}
.experience-card strong { color: var(--gold); font-family: "Manrope", sans-serif; font-size: 2.1rem; }
.experience-card span { color: #e1e9ef; font-size: .8rem; }

/* Expertise */
.expertise-section, .consultant-section, .partners-section { background: var(--paper); }
.expertise-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 48px; }
.expertise-image {
  min-height: 470px; overflow: hidden; border-radius: var(--radius); background: #d8e8ef;
}
.expertise-image img {
  width: 100%; height: 100%; min-height: 470px; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.expertise-image:hover img { transform: scale(1.035); }
.expertise-content { display: grid; align-content: center; }
.expertise-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 17px;
  padding: 23px 0; border-bottom: 1px solid #dbe3e8;
}
.expertise-item:first-child { padding-top: 0; }
.expertise-item:last-child { border-bottom: 0; padding-bottom: 0; }
.expertise-item > span { color: var(--blue); font-family: "Manrope", sans-serif; font-size: .9rem; font-weight: 800; }
.expertise-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.expertise-item p { font-size: .92rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.service-card {
  position: relative; min-width: 0; min-height: 300px; padding: 30px 27px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: white; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card::after {
  content: ""; position: absolute; width: 120px; height: 120px;
  right: -65px; bottom: -65px; border-radius: 50%;
  background: rgba(215,173,98,.1); transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.service-card:hover::after { transform: scale(1.6); }
.service-number { position: absolute; top: 25px; right: 25px; color: #a8b5bf; font-weight: 800; font-size: .82rem; }
.service-symbol {
  width: 46px; height: 46px; display: grid; place-items: center;
  margin-bottom: 25px; border-radius: 12px; color: var(--blue);
  background: #eaf2f6; font-size: 1.5rem;
}
.service-card h3 { max-width: 290px; margin-bottom: 13px; font-size: 1.08rem; }
.service-card p { font-size: .91rem; }

/* Mission, vision, values: text only */
.values-section { color: white; background: var(--navy); }
.values-section .section-heading h2 { color: white; }
.values-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.value-card {
  padding: 30px; border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); background: rgba(255,255,255,.045);
  transition: transform .25s, background .25s;
}
.value-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.08); }
.value-mark { display: inline-block; margin-bottom: 24px; color: var(--gold); font-size: .85rem; font-weight: 800; }
.value-card h3 { margin-bottom: 13px; color: white; font-size: 1.2rem; }
.value-card p { color: #c6d3dd; }

/* Consultant */
.consultant-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; }
.consultant-photo {
  max-width: 390px; width: 100%; margin-inline: auto; padding: 12px;
  border-radius: var(--radius); background: white; box-shadow: var(--shadow);
}
.consultant-photo img { width: 100%; height: 470px; object-fit: cover; object-position: center top; border-radius: 12px; }
.consultant-copy h2 { margin-bottom: 22px; }
.consultant-copy p:not(.section-kicker) { margin-bottom: 16px; }
.consultant-copy .consultant-lead { color: var(--blue); font-size: 1.12rem; font-weight: 700; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.project-card { min-width: 0; overflow: hidden; border-radius: 14px; background: var(--navy); }
.project-card img {
  width: 100%; height: 260px; object-fit: cover;
  transition: transform .5s, opacity .5s;
}
.project-card:hover img { transform: scale(1.05); opacity: .82; }
.project-card figcaption { padding: 15px 17px; color: white; font-weight: 600; font-size: .9rem; }

/* Partner logos: centered consistently at every size */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
  align-items: stretch;
}
.partner-logo {
  min-width: 0;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid #e7ecef;
  border-radius: 13px;
  background: white;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.partner-logo:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(7,24,39,.07); }
.partner-logo img {
  display: block;
  width: 100%;
  height: 86px;
  object-fit: contain;
  object-position: center;
  margin: auto;
}
.partner-logo img.image-unavailable { display: none; }

/* Contact banner */
.contact-banner { padding: 65px 0; background: #edf3f6; }
.contact-banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.contact-banner h2 { max-width: 720px; font-size: clamp(1.8rem,3.5vw,2.7rem); }

/* Contact */
.contact-section { color: white; background: #061321; }
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 75px; align-items: start; }
.contact-copy h2 { margin-bottom: 22px; color: white; }
.contact-copy > p:not(.section-kicker) { margin-bottom: 30px; color: #b9c7d1; }
.contact-detail { display: grid; grid-template-columns: 44px 1fr; gap: 15px; margin: 24px 0; }
.detail-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(215,173,98,.5); border-radius: 10px; color: var(--gold); font-size: 1.2rem;
}
.contact-detail strong { display: block; margin-bottom: 4px; color: white; }
.contact-detail a, .contact-detail p { display: block; color: #b9c7d1; font-size: .93rem; overflow-wrap: anywhere; }
.contact-detail a:hover { color: var(--gold); }
.contact-copy .whatsapp-link { color: var(--gold); margin-top: 12px; }
.contact-form { padding: 32px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: #0d2030; }
.contact-form h3 { color: white; font-size: 1.45rem; margin-bottom: 25px; }
.contact-form label { display: block; margin: 17px 0 7px; color: #e0e8ee; font-size: .86rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #304252; border-radius: 8px;
  outline: none; background: #071827; color: white;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #a5b5c2; opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,173,98,.12); }
.contact-form textarea { resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: #ff8b8b; }
.form-submit { width: 100%; margin-top: 22px; border: 0; }
.form-note { margin-top: 12px; color: #aabac6; font-size: .78rem; }
.form-error { margin-top: 6px; color: #ffaaaa; font-size: .82rem; }

/* Footer and back-to-top */
.site-footer { padding: 28px 0; color: #c2ced7; background: #040d16; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { color: white; font-family: "Manrope",sans-serif; font-weight: 600; }
.footer-brand strong { color: var(--gold); }
.footer-inner p, .footer-inner > span { color: #a9b8c4; font-size: .78rem; }
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  color: var(--navy); background: var(--gold); font-size: 1.35rem; font-weight: 800;
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, visibility .2s, transform .2s;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Small professional animations */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes hero-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll-dot {
  0% { transform: translate(-50%,0); opacity: 1; }
  75% { transform: translate(-50%,13px); opacity: .15; }
  100% { transform: translate(-50%,0); opacity: 0; }
}

/* Tablet */
@media (max-width: 980px) {
  .navigation { gap: 12px; }
  .navigation > a { font-size: .78rem; }
  .brand { font-size: .95rem; }
  .brand img { width: 42px; height: 42px; }
  .about-grid, .expertise-grid, .consultant-grid { gap: 35px; }
  .contact-grid { gap: 40px; }
  .service-card { padding: 26px 22px; }
  .partner-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

/* Mobile */
@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .container { width: min(calc(100% - 34px),560px); }
  .section { padding: 70px 0; }
  .site-header, .site-header.scrolled { height: 70px; }
  .brand { font-size: .95rem; }
  .brand img { width: 40px; height: 40px; }

  .menu-toggle { display: block; margin-left: auto; }
  .navigation {
    position: absolute; top: calc(100% - 1px); left: 0; right: 0;
    display: flex; align-items: stretch; flex-direction: column; gap: 0;
    padding: 10px 22px 20px; border-bottom: 1px solid var(--border);
    background: white; box-shadow: 0 18px 25px rgba(7,24,39,.09);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s, transform .22s, visibility .22s;
  }
  .navigation.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .navigation > a { padding: 12px 2px; border-bottom: 1px solid #edf0f2; font-size: .94rem; }
  .language-toggle { align-self: flex-start; margin-top: 13px; }

  .hero { min-height: min(740px,calc(100svh - 70px)); background-position: center center; }
  .hero-shade { background: linear-gradient(90deg,rgba(4,18,31,.88),rgba(4,18,31,.58)); }
  .hero-content { padding-top: 25px; padding-bottom: 60px; }
  .hero-content h1 { font-size: clamp(2.35rem,10vw,3.7rem); }
  .hero-description { font-size: .98rem; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 290px; }
  .global-note { max-width: 280px; font-size: .8rem; }

  .about-grid, .expertise-grid, .consultant-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .about-visual > img { height: 320px; }
  .experience-card { left: 10px; bottom: -18px; }
  .expertise-grid { gap: 28px; }
  .expertise-image, .expertise-image img { min-height: 0; height: 290px; }

  .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .service-card { min-height: 0; padding: 22px 16px; border-radius: 13px; }
  .service-number { top: 15px; right: 14px; font-size: .72rem; }
  .service-symbol { width: 38px; height: 38px; margin-bottom: 18px; font-size: 1.2rem; }
  .service-card h3 { font-size: .95rem; }
  .service-card p { font-size: .82rem; line-height: 1.6; }

  .values-grid { grid-template-columns: 1fr; gap: 13px; }
  .value-card { padding: 24px; }
  .value-mark { margin-bottom: 14px; }
  .consultant-photo { max-width: 320px; }
  .consultant-photo img { height: 390px; }

  .projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .project-card img { height: 170px; }
  .project-card figcaption { padding: 12px; font-size: .8rem; }

  /* Exactly five partner cards per row on mobile */
  .partner-grid {
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 7px;
    align-items: stretch;
  }
  .partner-logo {
    width: 100%;
    min-width: 0;
    min-height: 66px;
    height: 66px;
    padding: 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .partner-logo img {
    width: 100%;
    height: 48px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    margin: auto;
  }

  .contact-banner { padding: 48px 0; }
  .contact-banner-inner { align-items: flex-start; flex-direction: column; gap: 20px; }
  .contact-form { padding: 23px 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .back-to-top { right: 14px; bottom: 14px; }
}

/* Extra-small phones: keep five logos in each row */
@media (max-width: 380px) {
  .container { width: calc(100% - 26px); }
  .brand { font-size: .9rem; }
  .brand img { width: 35px; height: 35px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 23px; }
  .service-card h3 { font-size: 1.05rem; }
  .service-card p { font-size: .9rem; }
  .partner-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
  .partner-logo { min-height: 55px; height: 55px; padding: 3px; }
  .partner-logo img { height: 42px; }
  .projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

