/* Kanohi theme — inspired by the former OnePress WordPress design */

:root {
  --brand: #0396d6;          /* logo blue */
  --brand-dark: #02709f;
  --accent: #03c4eb;         /* OnePress primary */
  --ink: #2b2f33;            /* headings */
  --text: #4a5157;           /* body text */
  --muted: #7b848c;
  --line: #e6e9ec;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --footer: #1d2329;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 8px 24px rgba(16, 24, 32, .06);
  --font-head: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 1.6em 0 .6em; }
h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }
p { margin: 0 0 1.1em; }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 16px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 800px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 .8125rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  padding: 1em 1.8em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { font-size: .9375rem; padding: 1.1em 2em; text-transform: none; letter-spacing: .02em; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--brand-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand img { height: 40px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; color: var(--ink); text-decoration: none;
  font: 600 .8125rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  border-radius: 6px; transition: color .2s, background .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav a[aria-current="page"] { background: rgba(3, 150, 214, .08); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; margin-right: -8px;
  color: var(--ink); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    display: none;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 12px 16px; }
  .site-nav a { padding: 14px 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background: #06204a var(--hero-img) center / cover no-repeat;
  padding: clamp(96px, 16vw, 200px) 0;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3, 18, 45, .45), rgba(3, 18, 45, .25) 50%, rgba(3, 18, 45, .55));
}
.hero__brand {
  font: 600 .8125rem/1 var(--font-head); letter-spacing: .3em; text-transform: uppercase;
  opacity: .9; margin-bottom: 1.6rem;
}
.hero__brand span { opacity: .75; }
.hero__title {
  color: #fff; margin: 0 auto 2.2rem; max-width: 18ch;
  font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(2rem, 6vw, 4.25rem); line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
  min-height: 2.2em; display: flex; align-items: center; justify-content: center;
}
.rotator { display: inline-block; transition: opacity .45s ease, transform .45s ease; }
.rotator.is-out { opacity: 0; transform: translateY(12px); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; margin: 0 0 1.2rem;
}
.section-title::after {
  content: ""; display: block; width: 48px; height: 3px; background: var(--accent);
  margin: 18px auto 0; border-radius: 2px;
}
.section-kicker {
  font: 600 .8125rem/1 var(--font-head); color: var(--brand); letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 14px;
}
.lead { font-size: 1.25rem; color: var(--ink); line-height: 1.6; }
.section--about p:last-child { color: var(--muted); }

.section--services { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 48px; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  padding: 40px 32px 32px; text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  border-top: 3px solid transparent; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-top-color: var(--accent); color: var(--text);
  box-shadow: 0 2px 4px rgba(16, 24, 32, .06), 0 18px 40px rgba(16, 24, 32, .12); }
.card__icon {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  color: var(--brand); background: rgba(3, 196, 235, .12); margin-bottom: 22px;
}
.card__title { margin: 0 0 .5em; font-size: 1.3rem; }
.card p { flex: 1; font-size: .9375rem; }
.card__more {
  color: var(--brand); font: 600 .75rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}

.section--video {
  position: relative; color: #fff; isolation: isolate;
  background: #0b2440 var(--video-img) center / cover no-repeat;
  padding: clamp(96px, 14vw, 170px) 0;
}
@media (min-width: 1024px) and (hover: hover) { .section--video { background-attachment: fixed; } }
.section--video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5, 20, 40, .62); }
.video-heading { color: #fff; max-width: 24ch; margin: 28px auto 0; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.play-button {
  width: 92px; height: 92px; border-radius: 50%; display: inline-grid; place-items: center;
  color: #fff; border: 2px solid rgba(255, 255, 255, .9); padding-left: 6px;
  transition: background .2s, color .2s, transform .2s;
  animation: pulse 2.4s infinite;
}
.play-button:hover { background: #fff; color: var(--brand); transform: scale(1.05); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); }
  70% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.section--contact { background: var(--bg-soft); }

/* ---------- News list ---------- */
.post-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 40px 0; }
.post-item {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.post-item:first-child { border-top: 1px solid var(--line); }
.post-item__thumb { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 2 / 1; background: var(--bg-soft); }
.post-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-item:hover .post-item__thumb img { transform: scale(1.04); }
.post-item__title { margin: .25em 0 .5em; font-size: 1.3rem; }
.post-item__title a { color: var(--ink); text-decoration: none; }
.post-item__title a:hover { color: var(--brand); }
.post-item__excerpt { font-size: .9375rem; color: var(--text); }
.post-item__excerpt p { margin: 0; }
.meta { margin: 0; font-size: .8125rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.meta__cat {
  color: var(--brand); text-decoration: none; font: 600 .75rem/1.9 var(--font-head);
  letter-spacing: .1em; text-transform: uppercase;
}
@media (max-width: 700px) {
  .post-item { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.cat-filter a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none;
  color: var(--ink); font: 600 .8125rem/1.2 var(--font-head);
}
.cat-filter a:hover { border-color: var(--brand); color: var(--brand); }
.cat-filter a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Page / post header ---------- */
.page-header {
  background: linear-gradient(120deg, #052a55, var(--brand-dark) 60%, var(--brand));
  color: #fff; padding: clamp(48px, 7vw, 84px) 0;
}
.page-header h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 4vw, 2.75rem); }
.page-header__kicker {
  margin: 0 0 12px; font: 600 .75rem/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase;
}
.page-header__kicker, .page-header__kicker a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.page-header__kicker a:hover { color: #fff; }
.page-header__meta { margin: 14px 0 0; color: rgba(255, 255, 255, .75); font-size: .9375rem; }

/* ---------- Article content ---------- */
.entry { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(48px, 7vw, 80px); }
.entry-content { font-size: 1.0625rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--brand); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); color: var(--muted); }
.entry-content a { word-break: break-word; }
.entry-content img { border-radius: 6px; margin: 1.5em auto; }
.entry-content figure { margin: 2em 0; }
.entry-content figure img { margin: 0 auto; }
.entry-content figcaption { text-align: center; color: var(--muted); font-size: .875rem; margin-top: .7em; }
.entry-content figure.aligncenter { text-align: center; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 2em 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin: 2em 0; }
.media-text__media img { margin: 0; width: 100%; }
.media-text__content > :last-child { margin-bottom: 0; }
.media-text--icon { grid-template-columns: 110px 1fr; align-items: start; gap: 28px; }
.media-text--icon .media-text__media img { width: 110px; }
@media (max-width: 600px) {
  .media-text { grid-template-columns: 1fr; }
  .media-text--icon .media-text__media img { width: 84px; }
}

/* click-to-load YouTube (no request to YouTube before the click) */
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; border-radius: 8px; overflow: hidden; background: #000; }
.video-embed a, .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; opacity: .85; transition: opacity .2s; }
.video-embed a::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%);
  border-radius: 14px; background: rgba(0, 0, 0, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='8 5 19 12 8 19'/%3E%3C/svg%3E") center / 30px no-repeat;
  transition: background-color .2s;
}
.video-embed a:hover img { opacity: 1; }
.video-embed a:hover::after { background-color: #e00; }
.video-note { font-size: .8125rem; color: var(--muted); text-align: center; margin-top: -1.2em; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav__link { display: block; text-decoration: none; color: var(--ink); font: 600 1rem/1.4 var(--font-head); }
.post-nav__link span {
  display: flex; align-items: center; gap: 6px; color: var(--brand); margin-bottom: 6px;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
}
.post-nav__link:hover { color: var(--brand); }
.post-nav__next { text-align: right; }
.post-nav__next span { justify-content: flex-end; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { text-align: left; } .post-nav__next span { justify-content: flex-start; } }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .85); display: grid; place-items: center; padding: 20px; }
.modal__frame { width: min(1000px, 100%); aspect-ratio: 16 / 9; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; }
.modal__close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #b7c0c8; font-size: .9375rem; }
.site-footer a { color: #e6edf3; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 40px; }
.footer-title { font: 700 1.25rem/1.2 var(--font-head); color: #fff; margin-bottom: .6em; }
.footer-title span { font-weight: 400; color: #8d98a2; }
.footer-brand p:last-child { margin: 0; }
.footer-brand a { display: inline-flex; align-items: center; gap: 8px; }
.footer-label { font: 600 .75rem/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: #8d98a2; margin-bottom: 14px; }
.footer-social ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.footer-social a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .07); transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--brand); color: #fff; }
.site-info { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8125rem; color: #8d98a2; }
.site-info-inner { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer-links { display: flex; gap: 20px; margin-right: auto; }
.back-to-top { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .07); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
