/* ComplianceKaro — conversion-first public site */
:root {
  --ck-ink: #0a1628;
  --ck-primary: #0b3d91;
  --ck-primary-deep: #072a66;
  --ck-accent: #0e8f76;
  --ck-accent-deep: #0a6b58;
  --ck-paper: #f3f6fa;
  --ck-surface: #ffffff;
  --ck-line: #d5dee8;
  --ck-muted: #4a5d73;
  --ck-soft: #e8f1ff;
  --ck-warm: #fff8ed;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --radius: 0.5rem;
  --shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 0% -10%, color-mix(in oklab, var(--ck-primary) 12%, transparent), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, color-mix(in oklab, var(--ck-accent) 10%, transparent), transparent 55%),
    linear-gradient(180deg, #eef3fa 0%, var(--ck-paper) 28%, var(--ck-paper) 100%);
  color: var(--ck-ink);
  font-family: var(--font-body);
  font-size: 1.025rem;
  line-height: 1.6;
  font-feature-settings: "ss01" on, "kern" on;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { margin: 0; padding: 0; }

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}
@media (min-width: 640px) {
  .wrap { width: min(72rem, calc(100% - 3rem)); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* —— Header / mobile nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  border-bottom: 1px solid color-mix(in oklab, var(--ck-line) 80%, transparent);
  background: color-mix(in oklab, var(--ck-paper) 92%, transparent);
}
/* backdrop-filter creates a containing block that traps fixed menus under page content */
body:not(.nav-open) .site-header {
  backdrop-filter: blur(14px) saturate(1.2);
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  z-index: 1002;
  position: relative;
}

.brand .logo { height: 2.15rem; width: auto; }
.brand .wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand .wordmark span { color: var(--ck-primary); font-weight: 500; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  z-index: 1002;
  position: relative;
}

.nav-cta {
  min-height: 2.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-toggle {
  z-index: 1002;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--ck-line);
  background: var(--ck-surface);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ck-ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: 0;
  z-index: 1001;
  padding: calc(var(--header-h) + 1.25rem) 1.25rem 2rem;
  background:
    linear-gradient(180deg, #f7faff 0%, var(--ck-paper) 40%, #eaf2ff 100%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transform: translateY(-104%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.25s ease, visibility 0.35s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.nav-open .nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav a {
  display: block;
  padding: 0.95rem 0.35rem;
  border-bottom: 1px solid color-mix(in oklab, var(--ck-line) 70%, transparent);
  font-size: 1.15rem;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ck-primary); }
.nav .nav-cta-in-menu {
  margin-top: 1.25rem;
  text-align: center;
  border-bottom: 0;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-cta { display: inline-flex; }
  .nav {
    position: static;
    inset: auto;
    z-index: auto;
    padding: 0;
    background: transparent;
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
    margin-left: auto;
  }
  .header-actions {
    margin-left: 0;
    order: 3;
  }
  .nav { order: 2; }
  .brand { order: 1; }
  .nav a {
    display: inline;
    padding: 0;
    border: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: color-mix(in oklab, var(--ck-ink) 78%, transparent);
  }
  .nav a:hover { color: var(--ck-primary); }
  .nav .nav-cta-in-menu { display: none; }
}

@media (max-width: 380px) {
  .nav-cta { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--ck-primary);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(11, 61, 145, 0.22);
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--ck-primary-deep);
  transform: translateY(-1px);
}
.btn:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ck-accent);
  outline-offset: 3px;
}
.btn.ghost {
  background: var(--ck-surface);
  color: var(--ck-ink) !important;
  border: 1px solid var(--ck-line);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--ck-primary); color: var(--ck-primary) !important; }
.btn.accent {
  background: var(--ck-accent);
  box-shadow: 0 8px 20px rgba(14, 143, 118, 0.25);
}
.btn.accent:hover { background: var(--ck-accent-deep); }

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 0.5px), color-mix(in oklab, var(--ck-line) 55%, transparent) calc(50% - 0.5px), color-mix(in oklab, var(--ck-line) 55%, transparent) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 31px,
      color-mix(in oklab, var(--ck-line) 35%, transparent) 31px,
      color-mix(in oklab, var(--ck-line) 35%, transparent) 32px
    );
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 88%);
  pointer-events: none;
}
.hero .wrap { position: relative; max-width: 46rem; }
.hero .brand-mark {
  height: clamp(2.4rem, 5vw, 3rem);
  width: auto;
  margin-bottom: 1.35rem;
  animation: rise 0.7s var(--ease) both;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.4vw, 3.55rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 16ch;
  animation: rise 0.75s var(--ease) 0.06s both;
}
.hero .lede {
  margin: 0;
  max-width: 38rem;
  color: var(--ck-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  animation: rise 0.75s var(--ease) 0.12s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.75s var(--ease) 0.18s both;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ck-line);
  animation: rise 0.75s var(--ease) 0.24s both;
}
.trust-strip span {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--ck-ink) 70%, transparent);
}
.trust-strip span::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--ck-accent);
  vertical-align: 0.1rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .brand-mark,
  .hero h1,
  .hero .lede,
  .cta-row,
  .trust-strip,
  .reveal { animation: none !important; }
}

/* —— Sections —— */
.section { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.section.surface {
  background: color-mix(in oklab, var(--ck-surface) 82%, var(--ck-soft));
  border-block: 1px solid color-mix(in oklab, var(--ck-line) 70%, transparent);
}
.section.ink {
  background: linear-gradient(145deg, #0a1628 0%, #12305f 55%, #0b3d91 100%);
  color: #fff;
}
.section.ink .muted { color: rgba(255, 255, 255, 0.72); }
.section.ink .btn.ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ck-primary);
}
.section.ink .eyebrow { color: #9fd9cc; }

.section h2,
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 0.65rem;
}
.lead, .muted { color: var(--ck-muted); }
.lead { font-size: 1.08rem; max-width: 40rem; }

.grid-2 {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
}
@media (min-width: 1024px) {
  .grid-2.thirds { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  display: block;
  padding: 1.35rem 1.3rem 1.45rem;
  background: var(--ck-surface);
  border: 1px solid var(--ck-line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.25s var(--ease), border-color 0.2s ease, box-shadow 0.25s ease;
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--ck-primary) 40%, var(--ck-line));
  box-shadow: var(--shadow);
}
.pillar h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pillar p { margin: 0; color: var(--ck-muted); font-size: 0.98rem; }
.pillar .more {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ck-primary);
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  counter-reset: step;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 1.4rem 1.25rem 1.35rem;
  background: var(--ck-surface);
  border: 1px solid var(--ck-line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ck-primary);
  letter-spacing: -0.02em;
}
.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.step p { margin: 0; color: var(--ck-muted); font-size: 0.95rem; }

.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 48rem;
}
.faq details {
  background: var(--ck-surface);
  border: 1px solid var(--ck-line);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--ck-primary);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0.75rem 0 0.15rem;
  color: var(--ck-muted);
  font-size: 0.98rem;
}

.list-links { list-style: none; margin-top: 1.5rem; }
.list-links li { border-top: 1px solid var(--ck-line); }
.list-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.15rem;
  font-size: 0.98rem;
}
.list-links a:hover { color: var(--ck-primary); }

.columns-3 {
  columns: 1;
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
  list-style: none;
}
@media (min-width: 640px) { .columns-3 { columns: 2; } }
@media (min-width: 1024px) { .columns-3 { columns: 3; } }
.columns-3 li {
  break-inside: avoid;
  margin-bottom: 0.55rem;
}
.columns-3 a {
  color: var(--ck-muted);
  font-size: 0.95rem;
}
.columns-3 a:hover { color: var(--ck-primary); }

.prose { max-width: 44rem; }
.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}
.prose .rich-text p,
.prose p { margin: 1rem 0; color: var(--ck-muted); }
.prose .rich-text a { color: var(--ck-primary); text-decoration: underline; text-underline-offset: 2px; }

.form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.form input,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  border: 1px solid var(--ck-line);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  background: var(--ck-surface);
  font: inherit;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid color-mix(in oklab, var(--ck-primary) 45%, transparent);
  border-color: var(--ck-primary);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

/* —— Footer —— */
.site-footer {
  margin-top: 2rem;
  background: var(--ck-ink);
  color: #fff;
}
.site-footer .grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2.25rem;
}
@media (min-width: 800px) {
  .site-footer .grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer .logo { height: 2rem; width: auto; }
.site-footer .blurb {
  margin: 1rem 0 0;
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}
.site-footer h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.site-footer ul {
  list-style: none;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}
.site-footer a:hover { color: #fff; }
.site-footer .copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0 1.4rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
.site-footer .copy p { margin: 0; }
.site-footer .credits {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.9rem;
}
.site-footer .credits-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.2;
}
.site-footer .credits-inner span {
  display: inline-block;
  white-space: nowrap;
}
.site-footer .credits-inner a {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transition: opacity 0.2s ease;
}
.site-footer .credits-inner a:hover { opacity: 0.9; color: inherit; }
.site-footer .credits-inner img {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: min(180px, 55vw);
  margin: 0;
  float: none;
}
@media (min-width: 640px) {
  .site-footer .credits-inner img { height: 2rem; }
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
}
.booking-panel {
  padding: 1.35rem 1.25rem 1.4rem;
  background: var(--ck-surface);
  border: 1px solid var(--ck-line);
  border-radius: calc(var(--radius) + 2px);
}
.booking-panel h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.cal-embed {
  margin-top: 1rem;
  min-height: 620px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ck-line);
  border-radius: var(--radius);
  background: #fff;
}
.notice {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.notice.success {
  background: color-mix(in oklab, var(--ck-accent) 14%, white);
  border: 1px solid color-mix(in oklab, var(--ck-accent) 35%, white);
  color: var(--ck-accent-deep);
}
.notice.error {
  background: #fff1f1;
  border: 1px solid #f0b4b4;
  color: #8a1f1f;
}
.form .optional { font-weight: 500; color: var(--ck-muted); font-size: 0.85em; }
.form select {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  border: 1px solid var(--ck-line);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  background: var(--ck-surface);
  font: inherit;
}
.form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-card {
  margin: 0;
  background: var(--ck-surface);
  border: 1px solid var(--ck-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8eef6;
}
.gallery-card figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.9rem;
  color: var(--ck-muted);
}
