@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #0d1822;
  --night-2: #152230;
  --ink: #e8eef3;
  --muted: #b4c2ce;
  --chrome: #e8eef3;
  --cyan: #1f94d2;
  --line: rgba(232, 238, 243, 0.16);
  --max: 1120px;
  --pad: clamp(1.25rem, 4.5vw, 2.4rem);
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --si: "Noto Sans Sinhala", "Iskoola Pota", "Nirmala UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

html[lang="si"] body,
html[lang="si"] button,
html[lang="si"] input,
html[lang="si"] textarea {
  font-family: var(--si);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #7ec8ee; }
a:hover { color: #b7e1f6; }

::selection { background: var(--cyan); color: var(--night); }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip,
.skip:hover {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: var(--night);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--chrome);
}

html[lang="si"] h1,
html[lang="si"] h2,
html[lang="si"] h3 { font-family: var(--si); letter-spacing: 0; }

h1 { font-size: clamp(2.1rem, 5.4vw, 4.1rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.45rem; }

p { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; max-width: 38rem; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 6.6rem;
  padding-block: 0.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--chrome);
  flex-shrink: 0;
}
.brand:hover { color: var(--chrome); }

.brand img {
  width: auto;
  height: 108px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 600;
}
html[lang="si"] .brand-name { font-family: var(--si); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--cyan); }

.langs {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0 0.4rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.langs a:hover { color: var(--chrome); }
.langs a[aria-current="true"],
.langs a[aria-current="true"]:hover {
  color: var(--night);
  background: var(--chrome);
}
.langs a[lang="si"] { font-family: var(--si); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
a.btn { color: var(--night); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-primary,
a.btn-primary,
a.btn-primary:hover {
  background: var(--chrome);
  color: var(--night);
}
a.btn-primary:hover { background: #fff; }

.btn-ghost,
a.btn-ghost {
  background: transparent;
  color: var(--chrome);
  border-color: rgba(232, 238, 243, 0.55);
}
a.btn-ghost:hover {
  background: var(--chrome);
  color: var(--night);
}

.btn-navy,
a.btn-navy {
  background: transparent;
  color: var(--chrome);
  border-color: rgba(232, 238, 243, 0.45);
}
a.btn-navy:hover {
  background: var(--chrome);
  color: var(--night);
}

.menu-toggle {
  display: none;
  position: relative;
  background: none;
  border: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  color: var(--chrome);
  flex-shrink: 0;
}
.menu-toggle span {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}
.menu-toggle span:nth-child(1) { top: 0.92rem; }
.menu-toggle span:nth-child(2) { top: 1.32rem; }
.menu-toggle span:nth-child(3) { top: 1.72rem; }
.nav.open .menu-toggle span:nth-child(1) {
  top: 1.32rem;
  transform: rotate(45deg);
}
.nav.open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.open .menu-toggle span:nth-child(3) {
  top: 1.32rem;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--chrome);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 24, 34, 0.12) 0%, rgba(13, 24, 34, 0.78) 72%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 0 4.5rem;
  max-width: 40rem;
}

.hero h1 { color: var(--chrome); }
.hero .lede { color: rgba(232, 238, 243, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.fact {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: rgba(232, 238, 243, 0.82);
}

.section { padding: 5rem var(--pad); }
.section-alt { background: var(--night-2); }
.section h2 { max-width: 22ch; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.8rem;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.services { margin-top: 2rem; display: grid; gap: 0; }
.service {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.6rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service p { color: var(--muted); margin: 0; }
.service h3 { color: var(--chrome); }

.points {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding-left: 1.2rem;
  position: relative;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--cyan);
}

.places {
  margin-top: 1.2rem;
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.faq {
  display: grid;
  gap: 0;
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--chrome);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0.6rem 0 0; color: var(--muted); max-width: 42rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.4rem;
}

.contact-grid a:not(.btn) { color: var(--chrome); }
dl { margin: 0; }
dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
html[lang="si"] dt { letter-spacing: 0; }
dd { margin: 0 0 1rem; font-size: 1.1rem; }

.site-footer {
  background: #080e14;
  color: var(--muted);
  padding: 2.4rem 0 1.6rem;
  font-size: 0.92rem;
}
.site-footer a { color: var(--chrome); }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.phone-bar { display: none; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

@media (max-width: 860px) {
  .nav > .btn { display: none; }
  .hero-actions { display: none; }
  .brand-name { font-size: 0.82rem; }
  .brand img { height: 72px; }
  .nav { min-height: 5.2rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem var(--pad) 1.2rem;
  }
  .nav.open .nav-panel { display: block; }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
  }
  .split, .contact-grid, .service { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .phone-bar {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 30;
    gap: 0.5rem;
    padding: 0.55rem var(--pad);
    background: var(--night);
    border-top: 1px solid var(--line);
  }
  .phone-bar .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
