/* ============================================
   Krispy Technology Consulting — Design tokens
   Editorial, refined, restrained
   ============================================ */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --bg-tint: #EEF2F8;

  --navy: #0F2C52;
  --navy-deep: #0A2040;
  --blue: #2D6CDF;
  --blue-dark: #1F52AE;

  --ink: #16233A;
  --body: #4B5768;
  --body-dim: #7C8798;

  --gold: #A9782F;

  --line: #E2E7EF;

  --radius: 8px;
  --container: 1160px;

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  line-height: 1.22;
}
em { font-style: italic; color: var(--blue-dark); }

h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 32px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-dark);
  margin: 0 0 12px;
}

.section-lede {
  max-width: 62ch;
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--body);
}

.section-inner > h2 {
  position: relative;
  padding-bottom: 18px;
}
.section-inner > h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--blue-dark);
}
.cta-band .section-inner > h2::after { display: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #ffffff;
}
.btn-ghost-light:hover { border-color: #ffffff; background: rgba(255,255,255,0.08); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.brand-mark-frame {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.brand-mark { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name-light {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--body-dim);
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--body);
}
.main-nav a { position: relative; padding-bottom: 4px; }
.main-nav a:hover { color: var(--blue-dark); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--blue-dark);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a.is-active { color: var(--navy); font-weight: 600; }
.main-nav a.is-active::after { width: 100%; }

.nav-cta { margin-left: 8px; padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); }

/* ============ Hero ============ */
.hero {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 32px 92px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-dark);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  font-family: 'Playfair Display', var(--font-display);
}
.hero-line-1 { color: #12181F; }
.hero h1 em { color: var(--blue-dark); font-style: italic; }

.hero-sub {
  display: block;
  margin-top: 24px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--body);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-credentials {
  margin: 40px 0 0;
  font-size: 0.82rem;
  color: var(--body-dim);
  letter-spacing: 0.01em;
}
.hero-credentials span { color: var(--line); margin: 0 10px; }

.hero-art { display: flex; justify-content: center; }
.hero-card {
  background: var(--navy-deep);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(15, 44, 82, 0.15);
  width: 100%;
  max-width: 300px;
}
.hero-logo { border-radius: 6px; }

/* ============ Pull quote ============ */
.pull-quote { background: var(--bg); border-bottom: 1px solid var(--line); }
.pull-quote .section-inner { padding: 72px 32px; text-align: center; }
.pull-quote blockquote {
  margin: 0 auto;
  max-width: 46ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--navy);
  line-height: 1.5;
  position: relative;
  padding-top: 28px;
}
.pull-quote blockquote::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--blue-dark);
}

/* ============ Pillars ============ */
.services { background: var(--bg); }
.pillars {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar:last-child { border-right: none; }

.pillar-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--line);
  font-weight: 600;
}

.pillar-audience {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-dark);
  margin-top: -2px;
}

.pillar p { color: var(--body); font-size: 0.97rem; }

.pillar-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
.pillar-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--body-dim);
}

.pillar-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.9rem;
  color: var(--blue-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pillar-link:hover { color: var(--navy); }

/* ============ Pricing ============ */
.pricing { background: var(--bg-alt); border-bottom: 1px solid var(--line); }

.price-tabs {
  margin-top: 40px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--body-dim);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 4px;
  margin-right: 28px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transform: translateY(1px);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-btn.is-active { color: var(--navy); border-bottom-color: var(--blue-dark); }
.tab-btn:hover { color: var(--blue-dark); }

.price-panel { margin-top: 28px; display: none; }
.price-panel.is-active { display: block; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.price-table thead th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--body-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.price-table thead th:last-child { text-align: right; }

.price-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  vertical-align: middle;
  border-left: 3px solid transparent;
  transition: border-color 0.15s ease;
}

.price-table tbody tr:hover td { background: var(--bg-alt); }
.price-table tbody tr:hover td:first-child { border-left-color: var(--blue-dark); }

.price-table tbody tr:last-child td { border-bottom: none; }

.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.service-name { color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.service-desc { color: var(--body-dim); font-size: 0.85rem; margin-top: 3px; }

/* ============ Booking ============ */
.booking { background: var(--bg); }
.booking-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.booking-copy { max-width: 720px; }
.booking-copy p { margin-top: 16px; max-width: 60ch; }
.booking-note { color: var(--body-dim); font-size: 0.92rem; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.booking-widget {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  overflow: hidden;
}
.booking-widget iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg);
}
.booking-fallback {
  text-align: center;
  color: var(--body-dim);
  font-size: 0.88rem;
  padding: 12px 8px 4px;
}
.booking-fallback a { color: var(--blue-dark); text-decoration: underline; }

@media (max-width: 880px) {
  .booking-widget { padding: 0; border-radius: 0; border-left: none; border-right: none; margin: 0 -22px; }
  .booking-widget iframe { height: 980px; border-radius: 0; }
}

/* ============ About ============ */
.about { background: var(--bg-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.about-copy p { margin-top: 18px; max-width: 46ch; }

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.about-points li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.about-points h4 { color: var(--navy); }
.about-points p { margin-top: 6px; font-size: 0.95rem; }

/* ============ CTA band ============ */
.cta-band { background: var(--navy); }
.cta-band h2 { color: #ffffff; }
.cta-inner { text-align: center; }
.cta-inner p { margin-top: 12px; color: #C7D4E8; }
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ============ Footer ============ */
.site-footer { padding: 56px 32px 28px; background: var(--navy-deep); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 320px; }
.brand-mark-frame-footer { border-color: rgba(255,255,255,0.14); margin-bottom: 16px; }
.footer-mark { width: 100%; height: 100%; object-fit: cover; }
.footer-tagline { font-size: 0.92rem; color: #9FB1CB; }

.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols h5 {
  font-family: var(--font-body);
  color: #9FB1CB;
  font-size: 0.8rem;
  margin: 0 0 12px;
  font-weight: 600;
}
.footer-cols p { margin-bottom: 8px; font-size: 0.92rem; color: #D3DEEF; }
.footer-cols a:hover { color: #ffffff; }

.footer-legal {
  max-width: var(--container);
  margin: 22px auto 0;
  font-size: 0.82rem;
  color: #7488A6;
}

/* ============ Responsive ============ */
@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-art { order: -1; }
  .hero-card { max-width: 200px; }

  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; }

  .price-table thead { display: none; }
  .price-table tbody tr { display: flex; flex-direction: column; padding: 16px; gap: 6px; border-left: none; }
  .price-table tbody tr:hover td:first-child { border-left-color: transparent; }
  .price-table td { display: block; padding: 0; border: none; }
  .price-table td:last-child {
    text-align: left;
    font-size: 1.05rem;
  }

  .price-tabs { gap: 0; }
  .tab-btn { margin-right: 18px; font-size: 0.88rem; }

  .booking-inner, .about-inner { grid-template-columns: 1fr; }

  .section-inner { padding: 60px 22px; }
}

@media (max-width: 880px) {
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 32px 24px;
    gap: 16px;
  }
}
