/* Birtik Tech blog theme. Tokens copied from src/app/globals.css in the Next.js app. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.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 {
  --background: hsl(0 0% 100%);
  --foreground: hsl(210 25% 12%);
  --card: hsl(0 0% 100%);
  --primary: hsl(200 100% 24%);
  --primary-hover: hsl(200 100% 24% / 0.9);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(210 20% 96%);
  --secondary-30: hsl(210 20% 96% / 0.3);
  --muted: hsl(210 20% 96%);
  --muted-foreground: hsl(210 10% 40%);
  --accent: hsl(200 80% 92%);
  --accent-foreground: hsl(200 100% 20%);
  --border: hsl(210 20% 90%);
  --ring: hsl(200 100% 24%);
  --radius: 0.5rem;
  --hero-gradient: linear-gradient(135deg, hsl(200, 100%, 24%) 0%, hsl(200, 80%, 35%) 50%, hsl(195, 70%, 42%) 100%);
  --card-shadow: 0 4px 20px -4px hsl(200 100% 24% / 0.08);
  --card-shadow-hover: 0 12px 32px -8px hsl(200 100% 24% / 0.15);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; touch-action: manipulation; }
button { cursor: pointer; background: none; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.screen-reader-text {
  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: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.container--narrow { max-width: 56rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---------- icons ---------- */

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon--xs { width: 0.75rem; height: 0.75rem; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--md { width: 1.5rem; height: 1.5rem; }
.icon--lg { width: 2rem; height: 2rem; }
.icon--fill { fill: currentColor; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline { border: 1px solid var(--border); color: var(--primary); background: var(--background); }
.btn--outline:hover { background: var(--muted); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: hsl(0 0% 100% / 0.9); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
.btn--ghost-light { border: 2px solid #fff; color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--primary); }
.btn--xl { min-height: 3.5rem; padding: 0 2.5rem; font-size: 1rem; border-radius: 0.75rem; }
.btn--block { display: flex; width: 100%; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.btn-pill:hover { background: var(--primary-hover); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  transition: color 0.2s, background-color 0.2s;
}
.btn-icon:hover { color: var(--primary); background: var(--muted); }

.xl-only { display: none; }
@media (min-width: 1280px) {
  .xl-only { display: inline; }
  .xl-hide { display: none; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(0 0% 100% / 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px) { .site-header__bar { height: 5rem; } }

.site-header__logo img { height: 2.5rem; width: auto; }
@media (min-width: 640px) { .site-header__logo img { height: 3rem; } }

.nav-desktop,
.site-header__actions { display: none; }

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .nav-desktop > ul { display: flex; align-items: center; gap: 0.25rem; }
  .site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
  .nav-toggle { display: none !important; }
}

.nav-desktop__item { position: relative; }
.nav-desktop__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.nav-desktop__link:hover { color: var(--foreground); background: var(--muted); }
.nav-desktop__link.is-current { color: var(--primary); background: var(--accent); }

.nav-desktop__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.nav-desktop__item:hover .nav-desktop__dropdown,
.nav-desktop__item:focus-within .nav-desktop__dropdown { opacity: 1; visibility: visible; }
.nav-desktop__dropdown ul {
  min-width: 260px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.nav-desktop__dropdown a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav-desktop__dropdown a:hover { color: var(--primary); background: var(--accent); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  color: var(--foreground);
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

.nav-mobile { border-top: 1px solid var(--border); background: var(--background); max-height: calc(100vh - 4rem); overflow-y: auto; }
.nav-mobile[hidden] { display: none; }
.nav-mobile nav { padding-top: 1rem; padding-bottom: 1rem; }
.nav-mobile__link,
.nav-mobile__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-mobile__link:hover,
.nav-mobile__group > summary:hover { background: var(--muted); }
.nav-mobile__link.is-current { color: var(--primary); background: var(--accent); }
.nav-mobile__group > summary { cursor: pointer; list-style: none; }
.nav-mobile__group > summary::-webkit-details-marker { display: none; }
.nav-mobile__group > summary .icon { transition: transform 0.2s; }
.nav-mobile__group[open] > summary .icon { transform: rotate(180deg); }
.nav-mobile__group ul { padding-left: 1rem; }
.nav-mobile__group ul a { display: block; padding: 0.5rem 1rem; color: var(--muted-foreground); font-size: 0.875rem; }
.nav-mobile__group ul a:hover { color: var(--primary); }
.nav-mobile__actions { display: grid; gap: 0.5rem; padding-top: 1rem; }

/* ---------- hero ---------- */

/* Light hero with the faint grid, same as the Next.js pages (HeroGridBackground). */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 55%, #f0f7fb 100%);
  color: #0f1923;
  border-bottom: 1px solid #e6eef6;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(0, 78, 122, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 78, 122, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, rgba(0, 0, 0, 0.9) 38%, rgba(0, 0, 0, 0.25) 72%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, rgba(0, 0, 0, 0.9) 38%, rgba(0, 0, 0, 0.25) 72%, transparent 100%);
}
.hero > * { position: relative; }
.hero__inner { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 640px) { .hero__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.hero__inner--center { text-align: center; }
.hero__inner--center .breadcrumbs ol { justify-content: center; }
.hero__inner--narrow { max-width: 56rem; }
.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
.hero--post h1 { font-size: 1.875rem; }
@media (min-width: 640px) { .hero--post h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero--post h1 { font-size: 3rem; } }
.hero__lead {
  max-width: 42rem;
  color: #475569;
  font-size: 1.125rem;
  line-height: 1.65;
}
.hero__inner--center .hero__lead { margin: 0 auto; }
.hero--post .hero__lead { margin-bottom: 2rem; }
.hero .search-form { margin: 2rem auto 0; }

.breadcrumbs { margin-bottom: 1.5rem; font-size: 0.875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; color: #475569; }
.breadcrumbs li + li::before { content: "/"; color: #94a3b8; }
.breadcrumbs a { color: var(--primary); text-decoration: underline; text-decoration-color: hsl(200 100% 24% / 0.3); text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--accent-foreground); }

.post-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; color: #475569; font-size: 0.875rem; }
.post-meta a:hover { text-decoration: underline; }

.meta-item { display: inline-flex; align-items: center; gap: 0.375rem; }

/* ---------- badges / pills ---------- */

.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
}
.badge--solid { background: var(--primary); color: var(--primary-foreground); }
.badge--hero { margin-bottom: 1rem; background: hsl(200 100% 24% / 0.07); color: var(--primary); border: 1px solid hsl(200 100% 24% / 0.15); }
.badge--hero:hover { background: hsl(200 100% 24% / 0.12); }
.badge--on-dark {
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: hsl(0 0% 100% / 0.2);
  color: var(--primary-foreground);
  font-size: 0.875rem;
}
.badge--on-dark:hover { background: hsl(0 0% 100% / 0.3); }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}
.pill:hover { background: var(--accent); color: var(--accent-foreground); }
.pill.is-active { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }

/* ---------- sections / grids ---------- */

.section { padding: 4rem 0; }
@media (min-width: 640px) { .section { padding: 5rem 0; } }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }
.section--tight { padding: 2.5rem 0 !important; }
.section--tint { background: var(--secondary-30); }
.section__title { margin-bottom: 2rem; font-size: 1.5rem; }
@media (min-width: 640px) { .section__title { font-size: 1.875rem; } }
.section__title--center { text-align: center; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.empty { padding: 3rem 0; color: var(--muted-foreground); text-align: center; }
.empty a { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* ---------- cards ---------- */

.card {
  height: 100%;
  overflow: hidden;
  border: 1px solid hsl(210 20% 90% / 0.5);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.card__link { display: flex; flex-direction: column; height: 100%; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent); }
.card__media .post-image { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; color: var(--muted-foreground); font-size: 0.75rem; }
.card__title {
  display: -webkit-box;
  margin-bottom: 0.5rem;
  overflow: hidden;
  font-size: 1.125rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s;
}
.card--featured .card__title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.card:hover .card__title { color: var(--primary); }
.card__excerpt {
  display: -webkit-box;
  flex: 1;
  margin-bottom: 1rem;
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.card--featured .card__excerpt { font-size: 1rem; }
.card__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted-foreground); font-size: 0.875rem; }
.card__read { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--primary); font-weight: 600; transition: gap 0.2s; }
.card:hover .card__read { gap: 0.5rem; }

.post-image--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsl(200 80% 92%) 0%, hsl(200 60% 85%) 100%);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- pagination ---------- */

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
}
.pagination a.page-numbers:hover { background: var(--accent); color: var(--accent-foreground); }
.pagination .page-numbers.current { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- single post ---------- */

.post-cover { padding-top: 3rem; background: var(--secondary-30); }
.post-cover .post-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.75rem; }

.post-layout { display: grid; gap: 3rem; max-width: 72rem; }
@media (min-width: 1024px) { .post-layout { grid-template-columns: minmax(0, 1fr) 18rem; } }

.post-sidebar { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 1024px) { .post-sidebar { position: sticky; top: 6.5rem; } }

.panel { padding: 1.5rem; border: 1px solid hsl(210 20% 90% / 0.5); border-radius: 0.75rem; background: var(--card); }
.panel--brand { background: var(--accent); border-color: transparent; }
.panel--brand p { margin-bottom: 1rem; color: var(--accent-foreground); font-size: 0.875rem; line-height: 1.6; }
.panel--brand .btn + .btn { margin-top: 0.5rem; }
.panel__title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- article content ---------- */

.prose {
  min-width: 0;
  color: var(--foreground);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.25em; font-size: 1.625rem; line-height: 1.3; scroll-margin-top: 6rem; }
.prose h3 { margin-top: 1.9em; font-size: 1.3125rem; line-height: 1.35; scroll-margin-top: 6rem; }
.prose h4 { margin-top: 1.6em; font-size: 1.125rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.75em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--primary); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--primary); }
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 4px solid var(--primary);
  color: var(--muted-foreground);
  font-style: italic;
}
.prose code {
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  background: var(--secondary);
  font-family: var(--mono);
  font-size: 0.875em;
}
.prose pre {
  padding: 1.25rem;
  overflow-x: auto;
  border-radius: 0.75rem;
  background: #0f2340;
  color: #e6edf3;
  font-size: 0.875rem;
  line-height: 1.7;
}
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose hr { margin: 2.5em 0; border-top: 1px solid var(--border); }
.prose img { border-radius: 0.75rem; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { margin-top: 0.75em; color: var(--muted-foreground); font-size: 0.875rem; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose .wp-block-table { overflow-x: auto; }
.prose th, .prose td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--secondary); font-weight: 600; }
.prose .wp-block-button__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  text-decoration: none;
}
.prose .wp-block-button__link:hover { background: var(--primary-hover); }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.prose .alignwide { max-width: none; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .bt-draft-note { padding: 1rem 1.25rem; border-radius: var(--radius); background: #fff7e0; color: #6b4e00; font-size: 0.9375rem; }
.page-links { display: flex; gap: 0.5rem; margin-top: 2rem; }

/* WordPress core classes */
.wp-caption-text, .wp-element-caption { color: var(--muted-foreground); font-size: 0.875rem; text-align: center; }

/* ---------- search ---------- */

.search-form { display: flex; gap: 0.5rem; max-width: 28rem; }
.search-form input {
  flex: 1;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  color: var(--foreground);
}
.search-form input::placeholder { color: var(--muted-foreground); }

/* ---------- CTA band ---------- */

.cta-band { position: relative; overflow: hidden; background: var(--hero-gradient); color: var(--primary-foreground); text-align: center; }
.cta-band__inner { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 640px) { .cta-band__inner { padding-top: 5rem; padding-bottom: 5rem; } }
@media (min-width: 1024px) { .cta-band__inner { padding-top: 6rem; padding-bottom: 6rem; } }
.cta-band h2 { margin-bottom: 1.5rem; font-size: 1.875rem; }
@media (min-width: 640px) { .cta-band h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .cta-band h2 { font-size: 3rem; } }
.cta-band p { max-width: 42rem; margin: 0 auto 2.5rem; color: hsl(0 0% 100% / 0.85); font-size: 1.125rem; }
@media (min-width: 640px) { .cta-band p { font-size: 1.25rem; } }
.cta-band__actions { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .cta-band__actions { flex-direction: row; } }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #0a1628 0%, #0f2340 60%, #1a3a5c 100%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}
.site-footer__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 48px 48px;
}
.site-footer__glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 700px;
  max-width: 100%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(79, 163, 232, 0.6), transparent);
}
.site-footer__cta { position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.site-footer__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px) { .site-footer__cta-inner { flex-direction: row; align-items: center; } }
.site-footer .eyebrow { margin-bottom: 0.5rem; color: #4fa3e8; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__cta h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; }

.btn-footer {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: #1e5f99;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-footer:hover { background: #1e4a78; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46, 125, 209, 0.3); }
.btn-footer--sm { margin-top: 1.5rem; padding: 0.625rem 1rem; border-radius: var(--radius); }

.site-footer__main { position: relative; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.site-footer__cols { display: grid; gap: 3rem; }
@media (min-width: 640px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .site-footer__cols { grid-template-columns: repeat(11, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: span 3; }
  .site-footer__col { grid-column: span 2; }
}
@media (min-width: 640px) and (max-width: 1023px) { .site-footer__brand { grid-column: 1 / -1; } }

.site-footer__brand img { width: 160px; height: auto; margin-bottom: 1.25rem; }
.site-footer__brand > p { max-width: 260px; margin-bottom: 1.75rem; line-height: 1.65; }
.site-footer address { display: grid; gap: 0.75rem; font-style: normal; }
.site-footer address strong { color: rgba(255, 255, 255, 0.8); }
.site-footer address a,
.site-footer address > span { display: flex; align-items: center; gap: 0.75rem; }
.site-footer address a:hover { color: #fff; }
.nap-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: rgba(46, 125, 209, 0.15);
  color: #4fa3e8;
}
.site-footer__social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  transition: color 0.2s;
}
.site-footer__social a:hover { color: #fff; }

.site-footer__clutch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  line-height: 1;
  transition: background 0.2s;
}
.site-footer__clutch:hover { background: rgba(255, 255, 255, 0.12); }
.site-footer__clutch-name { display: flex; flex-direction: column; color: #fff; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.site-footer__clutch-name > span { margin-bottom: 0.25rem; color: rgba(255, 255, 255, 0.7); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__clutch-name b { font-weight: inherit; }
.site-footer__clutch-name i { color: #ff3d2e; font-style: normal; }
.site-footer__clutch-sep { width: 1px; height: 2.25rem; background: rgba(255, 255, 255, 0.15); }
.site-footer__clutch-score { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }
.site-footer__clutch-score > span:first-child { display: flex; align-items: center; gap: 0.375rem; color: #fff; font-size: 0.875rem; font-weight: 700; }
.site-footer__clutch-stars { display: flex; color: #ff3d2e; }
.site-footer__clutch-stars .icon { width: 0.875rem; height: 0.875rem; fill: currentColor; }

.site-footer__askai { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 3rem; }
@media (min-width: 1024px) { .site-footer__askai { flex-direction: row; justify-content: space-between; } }
.site-footer__askai > p { color: #fff; font-size: 0.875rem; font-weight: 600; text-align: center; }
@media (min-width: 1024px) { .site-footer__askai > p { text-align: left; } }
.site-footer__askai > p span { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; font-weight: 400; }
.site-footer__askai ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; }
.site-footer__askai a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  background: #fff;
  color: #0f1923;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s;
}
.site-footer__askai a:hover { color: #0f1923; transform: translateY(-2px); }

.site-footer__col h3 { margin-bottom: 1.25rem; color: #fff; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer__col ul { display: grid; gap: 0.625rem; }
.site-footer__col a { display: inline-flex; align-items: center; gap: 0.25rem; transition: color 0.2s; }
.site-footer__col a span { display: inline-block; width: 0.5rem; color: #72b9f0; opacity: 0; transform: translateX(-0.25rem); transition: opacity 0.2s, transform 0.2s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__col a:hover span { opacity: 1; transform: translateX(0); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.25rem; }
.site-footer__bottom nav a { line-height: 1.25rem; }
.site-footer__bottom a:hover { color: #fff; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Override core table block borders with the lighter site style. */
.prose .wp-block-table table { border: 0; }
.prose .wp-block-table thead { border-bottom: 2px solid var(--border); }
.prose .wp-block-table th,
.prose .wp-block-table td { border: 0; border-bottom: 1px solid var(--border); }
.prose .wp-block-table tfoot { border-top: 2px solid var(--border); }
.card__byline { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.meta-item { white-space: nowrap; }

/* ---------- sticky contact + chat assistant (mirror the Next.js site) ---------- */

.bt-sticky-cta { position: fixed; left: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; border-radius: 999px; background: #004e7a; color: #fff; padding: 12px 20px; font-size: 0.875rem; font-weight: 700; text-decoration: none; box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.2); transition: background-color .2s; }
.bt-sticky-cta:hover { background: #003d61; color: #fff; }
.bt-sticky-cta__long { display: none; }
@media (min-width: 640px) { .bt-sticky-cta__long { display: inline; } .bt-sticky-cta__short { display: none; } }

.btc { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font); }
.btc-toggle { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: #004e7a; color: #fff; padding: 10px; cursor: pointer; box-shadow: 0 10px 25px -5px hsl(200 100% 24% / .3); transition: transform .3s, background-color .3s; font: inherit; }
.btc-toggle:hover { transform: translateY(-4px); background: #003d61; }
.btc-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btc-toggle-logo { width: 40px; height: 40px; border-radius: 999px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.btc-toggle-logo img, .btc-logo img { width: 100%; height: 100%; object-fit: cover; }
.btc-toggle-label { display: none; font-size: .875rem; font-weight: 700; padding-right: 6px; }
@media (min-width: 640px) { .btc-toggle-label { display: inline; } }
.btc-panel { margin-bottom: 12px; display: flex; flex-direction: column; width: calc(100vw - 2.5rem); max-width: 380px; height: min(590px, calc(100dvh - 6.5rem)); overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: var(--card); box-shadow: 0 25px 50px -12px hsl(200 100% 24% / .2); }
.btc-panel[hidden] { display: none; }
.btc-head { display: flex; align-items: center; gap: 12px; background: #004e7a; color: #fff; padding: 14px 16px; }
.btc-logo { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; overflow: hidden; border: 1px solid rgb(255 255 255 / .25); background: #fff; }
.btc-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.btc-title strong { font-size: .875rem; }
.btc-title span { font-size: .75rem; color: rgb(255 255 255 / .75); margin-top: 2px; }
.btc-close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: rgb(255 255 255 / .8); cursor: pointer; }
.btc-close:hover { background: rgb(255 255 255 / .1); color: #fff; }
.btc-body { flex: 1; overflow-y: auto; background: hsl(210 20% 96% / .4); padding: 16px; }
.btc-kicker { margin: 0 0 16px; text-align: center; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-foreground); }
.btc-messages { display: flex; flex-direction: column; gap: 12px; }
.btc-row { display: flex; }
.btc-row--visitor { justify-content: flex-end; }
.btc-bubble { max-width: 85%; margin: 0; padding: 10px 14px; font-size: .875rem; line-height: 1.25rem; border-radius: 16px; }
.btc-bubble--visitor { background: var(--primary); color: var(--primary-foreground); border-bottom-right-radius: 6px; }
.btc-bubble--bot { background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.btc-dots { display: inline-flex; gap: 6px; padding: 12px 14px; }
.btc-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--primary); animation: btc-bounce 1s infinite; }
.btc-dots i:nth-child(1) { animation-delay: -.3s; }
.btc-dots i:nth-child(2) { animation-delay: -.15s; }
@keyframes btc-bounce { 0%, 100% { transform: translateY(-25%); } 50% { transform: none; } }
.btc-quick { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.btc-quick[hidden] { display: none; }
.btc-chip { border: 1px solid hsl(200 100% 24% / .25); background: var(--card); color: var(--primary); border-radius: 999px; padding: 6px 12px; font: 600 .75rem/1.2 var(--font); cursor: pointer; }
.btc-chip:hover { background: var(--primary); color: var(--primary-foreground); }
.btc-foot { border-top: 1px solid var(--border); background: var(--card); padding: 12px; }
.btc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.btc-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 8px 12px; font-size: .75rem; font-weight: 700; text-decoration: none; }
.btc-btn--outline { border: 1px solid hsl(200 100% 24% / .25); color: var(--primary); }
.btc-btn--outline:hover { background: var(--accent); }
.btc-btn--solid { background: var(--primary); color: var(--primary-foreground); }
.btc-btn--solid:hover { color: #fff; background: #003d61; }
.btc-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--background); padding: 6px; }
.btc-form:focus-within { box-shadow: 0 0 0 2px var(--ring); }
.btc-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 8px; font: .875rem var(--font); outline: none; color: var(--foreground); }
.btc-form button { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); cursor: pointer; }
.btc-form button:disabled, .btc-form input:disabled { opacity: .6; cursor: not-allowed; }
