:root {
  --navy: oklch(0.3 0.16 255);
  --navy-dark: oklch(0.24 0.13 255);
  --navy-darker: oklch(0.18 0.11 255);
  --green: oklch(0.64 0.16 150);
  --green-hover: oklch(0.57 0.17 150);
  --green-light: oklch(0.78 0.15 150);
  --green-text: oklch(0.18 0.08 255);
  --eyebrow: oklch(0.48 0.15 150);
  --text: oklch(0.22 0.02 255);
  --text-muted: oklch(0.45 0.02 255);
  --text-light: oklch(0.5 0.02 255);
  --text-on-navy: oklch(0.78 0.015 255);
  --bg: oklch(0.99 0.004 250);
  --bg-alt: oklch(0.97 0.006 255);
  --border: oklch(0.88 0.01 255);
  --border-light: oklch(0.9 0.01 255);
}

:root {
  /* Fall back to the theme's designed fonts; Ghost overrides --gh-font-*
     when a custom font is chosen in Admin → Design. */
  --font-body: var(--gh-font-body, 'Public Sans', sans-serif);
  --font-heading: var(--gh-font-heading, 'Source Serif 4', serif);
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; font-family: var(--font-body); background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 14px; }
.eyebrow-light { color: var(--green-light); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px clamp(20px, 5vw, 48px);
  background: oklch(0.99 0.004 250 / 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
}
.logo { height: 80px; width: auto; }
.nav { display: none; align-items: center; gap: 32px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text-light); transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }
.btn-cta {
  background: var(--green); color: var(--green-text);
  font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s ease;
}
.btn-cta:hover { background: var(--green-hover); }

.hamburger {
  background: none; border: none; padding: 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; flex-shrink: 0;
}
.hamburger span { width: 26px; height: 2px; background: var(--text); display: block; }

.mobile-menu {
  position: sticky; top: 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--border-light);
  display: none; flex-direction: column;
  padding: 8px clamp(20px, 5vw, 48px) 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid oklch(0.93 0.01 255); }
.mobile-menu a.last { border-bottom: none; }
.btn-cta-block { margin-top: 16px; justify-content: center; padding: 14px 22px; }

/* Sections */
.section { padding: clamp(56px, 10vw, 100px) clamp(20px, 6vw, 48px); max-width: 1360px; margin: 0 auto; }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 38px); font-weight: 600; margin: 0 0 16px; letter-spacing: -0.01em; }
.section-head p { font-size: 17px; color: var(--text-muted); line-height: 1.6; }
.heading-light { color: var(--bg); }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px; align-items: center;
  padding: clamp(56px, 10vw, 96px) clamp(20px, 6vw, 48px);
  max-width: 1360px; margin: 0 auto;
}
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; font-weight: 600; margin: 0 0 24px; letter-spacing: -0.01em; }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 520px; margin: 0 0 36px; }
.hero-ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-primary {
  background: var(--navy); color: var(--bg); font-size: 16px; font-weight: 600;
  padding: 16px 30px; border-radius: 4px; transition: background 0.2s ease;
}
.btn-primary:hover { background: var(--navy-dark); }
.link-underline { font-size: 16px; font-weight: 600; padding: 16px 8px; border-bottom: 2px solid var(--navy); }
.hero-meta { margin-top: 40px; font-size: 14px; color: var(--text-light); }
.hero-photo { width: 100%; height: 520px; object-fit: cover; border-radius: 16px; box-shadow: 0 24px 48px -20px oklch(0.24 0.13 255 / 0.35); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px; }
.service-card {
  display: flex; gap: 20px; padding: 36px; border: 1px solid var(--border);
  border-radius: 12px; transition: background 0.2s ease;
}
.service-card:hover { background: var(--bg-alt); }
.service-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 19px; }
.service-card h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.service-card p { font-size: 15px; line-height: 1.65; color: var(--text-muted); }

/* Process */
.process { background: var(--navy-dark); color: var(--bg); padding: clamp(56px, 10vw, 100px) clamp(20px, 6vw, 48px); }
.process-inner { max-width: 1360px; margin: 0 auto; }
.process .section-head { margin-bottom: 72px; }
.text-light { color: var(--text-on-navy); }
.process-grid { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; }
.step-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--green-text);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 17px;
}
.step h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; color: var(--bg); }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--text-on-navy); max-width: 250px; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; align-items: center; }
.about-photo { width: 100%; height: 560px; object-fit: cover; border-radius: 16px; box-shadow: 0 24px 48px -20px oklch(0.24 0.13 255 / 0.35); }
.heading-about { font-size: clamp(26px, 4.2vw, 36px); font-weight: 600; margin: 0 0 20px; letter-spacing: -0.01em; }
.about-text { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin: 0 0 20px; }
.about-stats { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border-light); }
.stat-label { font-family: var(--font-heading); font-size: 15px; font-weight: 600; }
.stat-sub { font-size: 14px; color: var(--text-light); }

/* Testimonials */
.testimonials { background: var(--bg-alt); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonial-card {
  background: var(--bg); border: 1px solid oklch(0.9 0.02 250); border-radius: 16px; padding: 32px 28px;
  display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px -16px oklch(0.3 0.16 255 / 0.25); }
.quote-icon { font-size: 20px; color: var(--eyebrow); margin-bottom: 14px; }
.testimonial-card p { font-size: 16px; line-height: 1.7; color: oklch(0.3 0.02 255); margin: 0 0 24px; flex: 1; }
.t-name { font-size: 15px; font-weight: 600; }
.t-role { font-size: 13.5px; color: var(--text-light); }

/* FAQ */
.faq { max-width: 840px; }
.faq .section-head { margin-bottom: 56px; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px;
  font-size: 16.5px; font-weight: 600; color: var(--text);
}
.faq-q i { font-size: 15px; color: var(--eyebrow); transition: transform 0.2s ease; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  font-size: 15.5px; line-height: 1.7; color: var(--text-muted); padding: 0 4px; margin: 0;
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 24px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery-item { cursor: pointer; overflow: hidden; aspect-ratio: 1; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: oklch(0.1 0.02 255 / 0.92);
  display: none; align-items: center; justify-content: center; padding: 48px;
}
.lightbox.open { display: flex; }
.lightbox-close { position: absolute; top: 28px; right: 32px; background: none; border: none; color: var(--bg); font-size: 32px; cursor: pointer; line-height: 1; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--bg); font-size: 36px; cursor: pointer; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-content { max-width: min(900px, 90vw); display: flex; flex-direction: column; gap: 16px; }
.lightbox-content img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; }
.lightbox-content p { color: oklch(0.9 0.01 255); font-size: 15px; line-height: 1.6; text-align: center; }

/* Videos */
.videos .section-head { margin-bottom: 48px; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--border-light); max-width: 1100px; margin: 0 auto; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos-link-wrap { text-align: center; margin-top: 28px; }
.videos-link { font-size: 15px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s ease; }
.videos-link:hover { color: var(--navy-dark); }

/* Contact */
.contact { background: var(--navy-dark); padding: clamp(56px, 10vw, 100px) clamp(20px, 6vw, 48px); }
.contact-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; }
.heading-contact { font-size: 36px; margin-bottom: 20px; }
.contact-lead { font-size: 16.5px; line-height: 1.7; margin-bottom: 32px; max-width: 400px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: oklch(0.9 0.01 255); }
.contact-info div { display: flex; align-items: center; gap: 10px; }
.contact-info i { width: 16px; color: var(--green-light); }
.contact-form-card { background: var(--bg); border-radius: 10px; padding: 36px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.field input, .field textarea {
  border: 1px solid oklch(0.85 0.01 255); border-radius: 6px; padding: 12px 14px;
  font-size: 15px; font-family: var(--font-body); resize: vertical;
}
.btn-submit {
  background: var(--green); color: var(--green-text); font-size: 15.5px; font-weight: 600;
  padding: 14px 24px; border: none; border-radius: 6px; cursor: pointer; margin-top: 6px; width: 100%;
  transition: background 0.2s ease;
}
.btn-submit:hover { background: var(--green-hover); }
.form-success { display: none; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; text-align: center; gap: 12px; }
.form-success.show { display: flex; }
.success-title { font-family: var(--font-heading); font-size: 22px; font-weight: 600; }
.success-sub { font-size: 15px; color: var(--text-muted); }

/* Footer */
.footer {
  background: var(--navy-darker); color: var(--text-on-navy);
  padding: clamp(28px, 6vw, 48px); display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--bg); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.footer-links a:hover { color: var(--bg); }
.footer-copy { font-size: 13px; color: oklch(0.55 0.015 255); }

.floating-cta {
  position: fixed; bottom: 28px; right: 28px; z-index: 60;
  background: var(--green); color: var(--green-text); font-size: 15px; font-weight: 600;
  padding: 15px 26px; border-radius: 999px; box-shadow: 0 12px 28px -8px oklch(0.24 0.13 255 / 0.45);
  display: flex; align-items: center; gap: 8px; transition: background 0.2s ease, transform 0.2s ease;
}
.floating-cta:hover { background: var(--green-hover); transform: translateY(-2px); }

.logo-link { display: inline-flex; }

/* ============================================================
   Blog / post-card grid (homepage feed, archive, related)
   ============================================================ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px;
}
.post-card {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -18px oklch(0.3 0.16 255 / 0.28); }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-tag { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--eyebrow); }
.post-card-title { font-size: 20px; font-weight: 600; line-height: 1.25; }
.post-card-excerpt { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); flex: 1; }
.post-card-meta { font-size: 13px; color: var(--text-light); display: flex; gap: 6px; margin-top: 4px; }
.blog { background: var(--bg-alt); }
.blog, .archive, .related { max-width: 1360px; }

/* Archive */
.archive-empty { text-align: center; color: var(--text-muted); font-size: 16px; }
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 56px;
  font-size: 15px; font-weight: 600;
}
.pagination a { color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 2px; }
.pagination .page-number { color: var(--text-light); font-weight: 500; border: none; }

/* ============================================================
   Single post / page
   ============================================================ */
.post {
  max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) clamp(20px, 6vw, 32px);
}
.post-wide { max-width: 1000px; }
.post-header { text-align: center; margin-bottom: 40px; }
.post-tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--eyebrow); margin-bottom: 16px;
}
.post-title { font-size: clamp(32px, 5vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
.post-excerpt { font-size: 19px; line-height: 1.6; color: var(--text-muted); margin-top: 20px; }
.post-meta { margin-top: 24px; font-size: 14px; color: var(--text-light); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.post-author { font-weight: 600; color: var(--text-muted); }
.post-image { margin: 0 0 44px; }
.post-image img { width: 100%; border-radius: 16px; }
.post-image figcaption { text-align: center; font-size: 13.5px; color: var(--text-light); margin-top: 12px; }

/* Long-form content (Koenig / gh-content) */
.gh-content { font-size: 18px; line-height: 1.75; color: var(--text); }
.gh-content > * + * { margin-top: 1.5em; }
.gh-content h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 600; margin-top: 1.8em; letter-spacing: -0.01em; }
.gh-content h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; margin-top: 1.6em; }
.gh-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.gh-content a:hover { color: var(--green-hover); }
.gh-content img { border-radius: 10px; }
.gh-content figure { margin: 0; }
.gh-content figcaption { text-align: center; font-size: 13.5px; color: var(--text-light); margin-top: 10px; }
.gh-content blockquote {
  border-left: 3px solid var(--green); padding-left: 22px; margin-left: 0;
  font-size: 20px; font-style: italic; color: var(--text-muted);
}
.gh-content pre {
  background: var(--navy-darker); color: var(--text-on-navy); padding: 20px 22px;
  border-radius: 10px; overflow-x: auto; font-size: 14.5px;
}
.gh-content code { font-size: 0.9em; background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; }
.gh-content pre code { background: none; padding: 0; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.5em; }
.gh-content hr { border: none; border-top: 1px solid var(--border); }
.kg-width-wide { width: min(85vw, 1040px); margin-left: calc(50% - min(42.5vw, 520px)); }
.kg-width-full { width: 100vw; margin-left: calc(50% - 50vw); }
.kg-width-full img { border-radius: 0; }

.post-footer { margin-top: 48px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.post-tag-pill {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  background: var(--bg-alt); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px;
}
.post-tag-pill:hover { color: var(--text); }
.post-comments { max-width: 720px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 32px) 64px; }

@media (min-width: 881px) {
  .nav { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}
