:root {
  --navy: #1d3f5c;
  --navy-deep: #1a3348;
  --teal: #2f6a64;
  --teal-soft: #3d7a73;
  --ink: #2c353f;
  --muted: #5a6570;
  --line: #d5dbe2;
  --paper: #eef1f4;
  --surface: #f6f4f0;
  --canvas: #f3f1ec;
  --hero-veil: rgba(26, 51, 72, 0.62);
  --on-navy: #e6edf3;
  --on-navy-soft: #c5d2de;
  --on-teal: #eef5f3;
  --focus: #2f6a64;
  --wa: #1f9e55;
  --ntk: #e36a28;
  --s-1: 0.4rem;
  --s-2: 0.7rem;
  --s-3: 1.1rem;
  --s-4: 1.55rem;
  --s-5: 2.15rem;
  --s-6: 2.7rem;
  --gutter: clamp(1.1rem, 5vw, 5.5rem);
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 118px;
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  font-size: 1.02rem;
}

::selection {
  background: #cde3de;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

main {
  transition: opacity 0.32s ease;
}
main:focus {
  outline: none;
}
main.is-fading {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  main { transition: none; }
  html { scroll-behavior: auto; }
}

body.is-post main > section { display: none !important; }

h1, h2, h3 {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 4.2vw, 3.35rem); color: var(--surface); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.12rem; }

.skip {
  position: absolute;
  left: var(--s-3);
  top: -4rem;
  z-index: 80;
  background: var(--navy);
  color: var(--on-navy);
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip:focus {
  top: var(--s-2);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
}
.topbar {
  background: var(--navy-deep);
  color: var(--on-navy);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0.32rem var(--gutter);
}
.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--on-navy);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  min-height: 36px;
}
.topbar-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}
.topbar-socials .social {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--on-navy);
  text-decoration: none;
  background: rgba(246, 244, 240, 0.1);
}
.topbar-socials .social:hover {
  background: rgba(246, 244, 240, 0.18);
}
.topbar-socials .social svg {
  width: 15px;
  height: 15px;
  display: block;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.55rem var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand img {
  height: 44px;
  width: auto;
  mix-blend-mode: multiply;
}
.nav-links {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--teal); }
.nav-end { display: flex; align-items: center; gap: 0.55rem; }
.langs { display: flex; gap: 0.3rem; }
.flag {
  width: 40px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}
.flag svg { width: 100%; height: 100%; display: block; }
.flag[aria-pressed="true"] { outline: 2px solid var(--navy); outline-offset: 2px; }
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0 12px;
}
.menu-btn span { width: 18px; height: 2px; background: var(--navy); }

.hero {
  position: relative;
  min-height: min(62vh, 640px);
  display: grid;
  align-items: center;
  color: var(--surface);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-veil) 8%, rgba(26, 51, 72, 0.22) 72%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: var(--s-6) var(--gutter);
  max-width: 40rem;
}
.place {
  margin: 0 0 0.45rem;
  color: var(--on-navy-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.lead {
  font-size: 1.05rem;
  color: var(--on-navy);
  max-width: 36rem;
  margin: 0;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--s-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.72rem 1.1rem;
  min-height: 44px;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--surface); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-light { background: var(--surface); color: var(--navy); }
.btn-light:hover { background: #fffdf8; }
.btn-line { background: transparent; color: var(--surface); border-color: rgba(246, 244, 240, 0.55); }
.btn-line:hover { background: rgba(246, 244, 240, 0.1); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3) var(--s-4);
  padding: 1.35rem var(--gutter);
  background: var(--teal);
  color: var(--on-teal);
  position: relative;
  overflow: hidden;
  align-items: center;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-maldivas.jpg") center/cover no-repeat;
  opacity: 0.22;
}
.stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 106, 100, 0.82);
}
.stats article {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
}
.stats-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--on-teal);
}
.stats img {
  flex: 0 0 44px;
  width: 44px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.stats img.stats-wide {
  flex: 0 0 64px;
  width: 64px;
  height: 28px;
}
.stats strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--on-teal);
}
.stats span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #d5ebe7;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4) var(--s-5);
  padding: var(--s-5) var(--gutter);
  background: var(--paper);
  position: relative;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pillars h3 {
  font-size: 1.12rem;
  margin-bottom: 0.28rem;
}
.pillars p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36ch;
}

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-5);
  padding: var(--s-6) var(--gutter);
  align-items: start;
  background: var(--canvas);
}
.about p {
  max-width: 62ch;
  color: var(--ink);
  margin: 0 0 0.85em;
}
.portrait img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
}
.portrait figcaption { padding-top: 0.55rem; }
.portrait strong { display: block; color: var(--navy); }
.portrait span { display: block; color: var(--muted); font-size: 0.92rem; }

.news {
  padding: var(--s-5) var(--gutter) var(--s-6);
  background: var(--paper);
}
.news > h2 { margin-bottom: var(--s-4); }
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.news-empty {
  color: var(--muted);
  margin: 0;
  grid-column: 1 / -1;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: grid;
}
.news-card:hover h3 { color: var(--teal); }
.news-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}
.news-card div { padding: 0.9rem 1rem 1.1rem; }
.news-card time {
  color: var(--teal);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.25rem;
}
.news-card h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-view {
  padding: var(--s-5) var(--gutter) var(--s-6);
  max-width: 1080px;
  min-height: calc(100vh - 130px);
  background: var(--canvas);
}
.post-layout {
  display: grid;
  gap: var(--s-4);
  align-items: start;
}
.post-cover {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.post-view.is-wide { max-width: 760px; }
.post-view.is-wide .post-layout { grid-template-columns: 1fr; }
.post-view.is-wide .post-cover {
  width: 100%;
  max-height: 300px;
  object-position: left center;
}
.post-view.is-tall .post-layout {
  grid-template-columns: minmax(280px, 1fr) minmax(240px, 38%);
}
.post-view.is-tall .post-cover {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-height: min(72vh, 640px);
  object-position: top center;
}
.post-view.is-tall .post-copy {
  grid-column: 1;
  grid-row: 1;
}
.post-copy h2:focus { outline: none; }
.post-copy h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.post-copy time {
  display: block;
  color: var(--teal);
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}
.post-body {
  white-space: pre-wrap;
  color: var(--ink);
  max-width: 65ch;
}
.text-btn {
  background: none;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  padding: 0.35rem 0;
  margin-bottom: var(--s-3);
  font: inherit;
  min-height: 44px;
}

.contact {
  padding: var(--s-5) var(--gutter);
  background: var(--canvas);
}
.contact-intro { max-width: 40rem; margin-bottom: var(--s-4); }
.contact-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(300px, 1.18fr);
  gap: var(--s-4);
  align-items: start;
}
.connect { display: grid; gap: var(--s-3); align-content: start; }
.wa-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #e7f4ec;
  border: 1px solid #c5e0d0;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 64px;
}
.wa-cta img { width: 32px; height: 32px; }
.wa-cta strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}
.wa-cta span span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
.connect-meta {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.copy-mail {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  min-height: 32px;
}

.card-form {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  background: var(--paper);
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
}
.card-form h3 { font-size: 1.05rem; margin-bottom: 0.1em; }
.card-form label, .channel { display: grid; gap: 0.16rem; font-size: 0.84rem; }
.channel { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 0; }
.channel legend { padding: 0; font-weight: 600; color: var(--navy); }
.channel label { display: flex; align-items: center; gap: 0.35rem; min-height: 36px; }
.card-form input, .card-form textarea {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cfd6de;
  background: var(--surface);
  color: var(--ink);
  border-radius: 3px;
  width: 100%;
}
.card-form textarea { min-height: 5rem; resize: vertical; }
.form-hint { color: var(--muted); font-size: 0.8rem; margin: 0; }
.card-form .btn { padding: 0.58rem 1rem; font-size: 0.9rem; justify-self: start; }

.badges {
  width: 100%;
  margin: 0;
  padding: 1.2rem var(--gutter) 1.35rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.badges-row a { line-height: 0; }
.badges-row img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.badges-row .badge-fiscal { height: 62px; }
.badges-row .badge-rnav {
  height: 62px;
  max-width: 240px;
}
.badges-row .badge-wide {
  height: 42px;
  max-width: 220px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-5) var(--gutter) calc(var(--s-5) + 3.2rem);
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  font-size: 0.88rem;
}
.foot p { margin: 0 0 0.35rem; }
.foot a { color: var(--on-navy); }
.ntk {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}
.ntk-by {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9eb0c0;
}
.ntk-logo {
  font-family: Archivo, "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--ntk);
}
.ntk:hover .ntk-logo { color: #f08a4d; }

.float-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
  line-height: 0;
  box-shadow: 0 8px 20px rgba(31, 158, 85, 0.28);
  z-index: 20;
}
.float-wa img { width: 52px; height: 52px; display: block; }

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .pillars, .about, .news-grid, .contact-layout {
    grid-template-columns: 1fr;
  }
  .pillars p { max-width: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 0.4rem var(--gutter) 0.9rem;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: flex; }
  .hero { min-height: min(54vh, 520px); }
  .portrait img { height: 300px; }
  .foot { flex-direction: column; }
  .ntk { align-self: flex-start; align-items: flex-start; }
  .badges-row { gap: 1rem 1.4rem; }
  .badges-row img { height: 40px; }
  .badges-row .badge-fiscal { height: 52px; }
  .badges-row .badge-rnav { height: 52px; }
  .badges-row .badge-wide { height: 36px; }
  .post-view.is-tall .post-layout { grid-template-columns: 1fr; }
  .post-view.is-tall .post-cover,
  .post-view.is-tall .post-copy {
    grid-column: auto;
    grid-row: auto;
  }
  .post-view.is-tall .post-cover {
    width: min(100%, 380px);
    max-height: none;
    justify-self: start;
  }
  .post-view.is-wide .post-cover { max-height: 200px; }
}

@media (max-width: 820px) {
  .topbar-mail span { display: none; }
}
@media (max-width: 700px) {
  .hero-veil {
    background: linear-gradient(180deg, rgba(26, 51, 72, 0.48) 10%, rgba(26, 51, 72, 0.78) 78%);
  }
  .hero-copy { max-width: 100%; }
  .btn-line {
    background: rgba(26, 51, 72, 0.35);
    border-color: rgba(246, 244, 240, 0.8);
  }
}
@media (max-width: 600px) {
  .card-form { padding-right: 3.4rem; }
}
@media (max-width: 560px) {
  .topbar-contact span { display: none; }
  .stats { grid-template-columns: 1fr; gap: 0.85rem; }
  .hero-copy { padding-top: var(--s-5); padding-bottom: var(--s-5); }
}
