@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --apros-sky: #94C8EC;
  --apros-sky-dark: #76a0bc;
  --apros-sky-lighter: #e9f4fb;
  --apros-sky-lightest: #f4f9fd;
  --apros-cobalt: #104c8b;
  --apros-cobalt-dark: #0c3c6f;
  --apros-cobalt-darker: #061e37;
  --apros-cerulean: #2473a8;
  --apros-midnight: #0b0d13;
  --apros-deep-navy: #102a46;
  --apros-dark-bg: #071522;
  --apros-white: #ffffff;
  --apros-near-white: #fcfcfc;
  --apros-neutral-darkest: #010407;
  --apros-mist-blue: #b3c9d5;

  --bg-light: #fcfcfc;
  --bg-dark: #071522;
  --text-dark: #010407;
  --text-dark-secondary: #0b0d13;
  --text-muted: #62748d;
  --text-light: #ffffff;
  --border-light: rgba(1, 4, 7, 0.15);
  --border-dark: rgba(255, 255, 255, 0.20);

  --radius: 8px;
  --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.35);

  --container: 1120px;
  --gap: 18px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--apros-cobalt);
  color: #fff;
  padding: 10px 12px;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
}

/* ─── Header (dark) ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(1, 4, 7, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 36px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--apros-sky);
}

.nav-link-active {
  color: #fff;
  border-color: rgba(148, 200, 236, 0.35);
  background: rgba(148, 200, 236, 0.10);
}

.nav-cta {
  border-color: var(--apros-sky);
  background: var(--apros-sky);
  color: var(--apros-midnight);
  font-weight: 600;
}

.nav-cta:hover {
  background-image: linear-gradient(180deg, #94c8ec 0%, #2473a8 100%);
  color: #fff;
}

/* ─── Hero (dark) ─── */
.hero {
  padding: 42px 0 18px 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgb(36,76,100) 0%, rgb(25,55,75) 37%, rgb(1,22,42) 65%, rgb(1,18,34) 74%, rgb(0,8,24) 89%, rgba(0,2,13,0) 100%),
    var(--apros-neutral-darkest);
  color: var(--text-light);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.kicker {
  display: inline-block;
  margin: 0 0 10px 0;
  padding: 6px 10px;
  border: 1px solid rgba(148, 200, 236, 0.35);
  background: rgba(148, 200, 236, 0.10);
  border-radius: 999px;
  font-size: 12px;
  color: var(--apros-sky);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-copy h1 {
  margin: 0 0 10px 0;
  font-size: 40px;
  line-height: 1.10;
  letter-spacing: -0.02em;
  color: #fff;
}

.subhead {
  margin: 0 0 18px 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 62ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 18px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 16px;
  border: 1px solid transparent;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
  line-height: 1.5;
}

.button.primary {
  background: var(--apros-cobalt);
  color: #fff;
  border-color: var(--apros-cobalt);
}

.button.primary:hover {
  background-image: linear-gradient(180deg, #104c8b 0%, #2473a8 100%);
}

/* On dark backgrounds, primary buttons use sky blue */
.hero .button.primary,
.services-cta .button.primary {
  background: var(--apros-sky);
  color: var(--apros-midnight);
  border-color: var(--apros-sky);
}

.hero .button.primary:hover,
.services-cta .button.primary:hover {
  background-image: linear-gradient(180deg, #94c8ec 0%, #2473a8 100%);
  border-color: transparent;
  color: #fff;
}

.button.secondary {
  background: transparent;
  border-color: var(--apros-sky);
  color: var(--apros-sky);
}

.button.secondary:hover {
  background: rgba(148, 200, 236, 0.09);
  border-color: var(--apros-sky-lighter);
  color: var(--apros-sky-lighter);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  font-size: 12px;
  color: var(--apros-mist-blue);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-panel {
  background: rgba(6, 21, 34, 0.90);
  border: 1px solid rgba(148, 200, 236, 0.20);
  border-radius: 12px;
  padding: 16px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel-card {
  background: rgba(6, 30, 55, 0.85);
  border: 1px solid rgba(148, 200, 236, 0.22);
  border-radius: var(--radius);
  padding: 18px;
}

.panel-title {
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #fff;
}

.panel-text {
  color: var(--apros-mist-blue);
  font-size: 14px;
  line-height: 1.5;
}

/* ─── Posts section (light) ─── */
.posts {
  padding: 32px 0 48px 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 8px 0 14px 0;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--text-dark);
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.post-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: #fff;
  box-shadow: var(--shadow-light);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--apros-cobalt);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--apros-sky-lightest);
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  padding: 18px 18px 20px 18px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.dot {
  opacity: 0.55;
}

.post-title {
  margin: 10px 0 8px 0;
  font-size: 16px;
  line-height: 1.25;
  color: var(--text-dark);
}

.post-title a {
  color: var(--text-dark);
}

.post-title a:hover {
  color: var(--apros-cobalt);
  text-decoration: underline;
}

.post-excerpt {
  margin: 0 0 12px 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.post-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  font-size: 13px;
  color: var(--apros-cobalt);
  transition: gap 0.2s ease;
}

.post-link:hover {
  color: var(--apros-cerulean);
  text-decoration: underline;
  gap: 12px;
}

/* ─── Footer (dark) ─── */
.site-footer {
  border-top: 1px solid var(--border-dark);
  background: var(--apros-neutral-darkest);
  color: var(--text-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.footer-link:hover {
  color: var(--apros-sky);
  text-decoration: underline;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 32px;
  }
  .site-nav {
    gap: 10px;
  }
  .brand-logo {
    height: 27px;
    max-width: 117px;
  }
}

/* ─── Blog post detail (light) ─── */
.post-hero {
  padding: 44px 0 22px;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgb(36,76,100) 0%, rgb(25,55,75) 37%, rgb(1,22,42) 65%, rgb(1,18,34) 74%, rgb(0,8,24) 89%, rgba(0,2,13,0) 100%),
    var(--apros-neutral-darkest);
  color: var(--text-light);
  border-bottom: none;
}

.post-hero-inner {
  display: grid;
  gap: 14px;
}

.post-hero .kicker {
  color: var(--apros-sky);
}

.post-hero .post-title {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--apros-sky);
}

.post-hero .post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.post-hero .subhead {
  color: rgba(255, 255, 255, 0.72);
}

.post-summary {
  max-width: 72ch;
}

.post-cover {
  margin-top: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #fff;
  box-shadow: var(--shadow-light);
}

.post-cover figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

.post-content {
  max-width: 900px;
  color: var(--text-dark-secondary);
  padding: 32px 0;
}

.post-content p {
  line-height: 1.75;
  margin-bottom: 16px;
}

.post-content h2 {
  margin: 28px 0 10px;
  color: var(--text-dark);
}

.post-content h3 {
  color: var(--text-dark);
}

.post-callout {
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--apros-sky-lightest), #fff);
}

.post-image-grid {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

@media (min-width: 900px) {
  .post-image-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.post-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #fff;
}

.post-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

/* ─── Contact (light body) ─── */
.contact-hero {
  padding: 44px 0 26px;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgb(36,76,100) 0%, rgb(25,55,75) 37%, rgb(1,22,42) 65%, rgb(1,18,34) 74%, rgb(0,8,24) 89%, rgba(0,2,13,0) 100%),
    var(--apros-neutral-darkest);
  color: var(--text-light);
  border-bottom: none;
}

.contact-hero-inner {
  display: grid;
  gap: 14px;
}

.contact-hero .kicker {
  color: var(--apros-sky);
}

.contact-title {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.contact-hero .subhead {
  color: rgba(255, 255, 255, 0.72);
}

.contact-summary {
  max-width: 70ch;
}

.contact-body {
  padding: 36px 0 56px;
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
  color: var(--text-dark);
}

.contact-panel h2 {
  margin-top: 0;
  color: var(--text-dark);
}

.contact-list {
  padding-left: 18px;
  margin: 0 0 18px 0;
}

.contact-list li {
  margin-bottom: 8px;
  color: var(--text-dark-secondary);
}

.contact-item {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.contact-label {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-value {
  font-size: 15px;
  color: var(--text-dark);
}

.contact-callout {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--apros-sky-lightest), #fff);
}

.contact-button {
  margin-top: 12px;
}

.vp {
  color: var(--apros-cobalt);
  font-weight: bold;
}

.contact-button:hover {
  box-shadow: 0px 0px 7px var(--apros-cobalt);
}

.image-circle {
  margin-top: 12px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--apros-cobalt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Services (light body) ─── */
.services {
  padding: 40px 0 60px;
  background: var(--bg-light);
  color: var(--text-dark);
}

.services .section-head h2 {
  color: var(--text-dark);
}

.services .panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.services .panel-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-light);
}

.services .panel-title {
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--apros-cobalt);
}

.services .panel-text {
  color: var(--text-muted);
  font-size: 13px;
}

/* ─── Services CTA (dark) ─── */
.services-cta {
  padding: 48px 0;
  border-top: none;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgb(36,76,100) 0%, rgb(25,55,75) 37%, rgb(1,22,42) 65%, rgb(1,18,34) 74%, rgb(0,8,24) 89%, rgba(0,2,13,0) 100%),
    var(--apros-neutral-darkest);
  color: var(--text-light);
}

.services-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-cta h2 {
  color: #fff;
}

.services-cta .subhead {
  color: rgba(255, 255, 255, 0.72);
}

.services-cta .button {
  margin-top: 16px;
}

/* ─── All posts listing (light) ─── */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  color: var(--text-dark);
}

.post-row:hover {
  border-color: var(--apros-cobalt);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.post-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--apros-sky-lightest);
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  display: flex;
  flex-direction: column;
}

.post-body .post-title {
  margin: 4px 0 6px 0;
  color: var(--text-dark);
}

.post-body .post-excerpt {
  margin: 0 0 12px 0;
  max-width: 78ch;
  color: var(--text-muted);
}

.post-body .post-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.post-row .meta-pill {
  color: var(--apros-cobalt);
  border-color: var(--border-light);
  background: var(--apros-sky-lightest);
}

@media (max-width: 900px) {
  .post-row { grid-template-columns: 1fr; }
  .post-media { max-height: 180px; }
}

/* ─── Search (light) ─── */
.posts-search {
  margin: 10px auto 18px;
}

.posts-search-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-light);
}

.posts-search-label {
  font-size: 13px;
  color: var(--text-muted);
}

.posts-search-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: var(--apros-near-white);
  color: var(--text-dark);
  font-family: "Inter", sans-serif;
  outline: none;
}

.posts-search-input:focus {
  border-color: var(--apros-cobalt);
  box-shadow: 0 0 0 3px rgba(16, 76, 139, 0.12);
}

.posts-search-clear {
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
}

.posts-search-clear:hover {
  border-color: var(--apros-cobalt);
  background: var(--apros-sky-lightest);
}

.posts-search-count {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.is-hidden {
  display: none;
}

article.card,
article.card * {
    cursor: pointer;
}

/* ─── Forms (dark context in CTA sections) ─── */
.form-group input[type="text"],
.form-group input[type="email"] {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
    color: #ffffff;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-group input:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-group input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--apros-sky);
    box-shadow: 0 0 0 1px rgba(148, 200, 236, 0.35);
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--apros-sky);
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

.message {
  margin: auto;
  background-color: rgba(0, 240, 0, 0.2);
  padding: 8px;
  margin-bottom: 12px;
  max-width: 400px;
  text-align: center;
  border-radius: 5px;
  border: 1px solid #90EE90;
}

/* ─── Post content (light) ─── */
.post-content pre {
  background-color: var(--apros-neutral-darkest);
  color: #e0e0e0;
  padding: 1.25rem;
  border-radius: 4px;
  margin: 2rem 0;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
  font-family: "Consolas", monospace;
  line-height: inherit;
}

.post-content code {
  background-color: var(--apros-sky-lightest);
  color: var(--apros-cobalt);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-family: "Consolas", monospace;
}

.post-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.post-content a {
  color: var(--apros-cobalt);
}

.post-content a:hover {
  color: var(--apros-cerulean);
  text-decoration: underline;
}

.post-content li {
  line-height: 1.75;
  margin-bottom: 10px;
}

/* ─── Subscribe section inherits dark from services-cta ─── */
.subscribe-inner h2 {
  color: #fff;
}

/* ─── Footer logo ─── */
.footer-logo {
  height: auto;
  width: 120px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 1;
}
