:root {
  --sapphire: #0b3a6e;
  --sapphire-mid: #145a9c;
  --sapphire-deep: #061f3f;
  --indigo: #1a2757;
  --cyan-glass: #5ec8d8;
  --cyan-soft: #9be7f0;
  --white-hl: #f4f8fc;
  --foam: rgba(244, 248, 252, 0.78);
  --ink: #071526;
  --muted: #3d5168;
  --line: rgba(14, 58, 110, 0.14);
  --glass: rgba(244, 248, 252, 0.62);
  --glass-strong: rgba(244, 248, 252, 0.82);
  --shadow: 0 22px 60px rgba(6, 31, 63, 0.18);
  --radius: 1.15rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --shell: min(1100px, calc(100% - 2.4rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(94, 200, 216, 0.28), transparent 55%),
    radial-gradient(700px 420px at 92% 4%, rgba(26, 95, 168, 0.22), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(26, 39, 87, 0.12), transparent 55%),
    linear-gradient(180deg, #e8f1f8 0%, #d5e4f2 45%, #c7d8ea 100%);
  min-height: 100vh;
  line-height: 1.65;
}

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

a {
  color: var(--sapphire-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sapphire-deep);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(232, 241, 248, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(145deg, var(--cyan-glass), var(--sapphire-mid), var(--indigo));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 8px 20px rgba(11, 58, 110, 0.35);
  animation: crystalPulse 7s ease-in-out infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--sapphire);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sapphire-mid), var(--sapphire-deep));
  color: var(--white-hl) !important;
  box-shadow: 0 10px 24px rgba(11, 58, 110, 0.28);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--foam);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--sapphire);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 40% auto auto 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(155, 231, 240, 0.7);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: waveExpand 1.4s ease-out;
}

.btn-primary {
  background:
    radial-gradient(circle at 20% 20%, rgba(155, 231, 240, 0.35), transparent 40%),
    linear-gradient(145deg, var(--sapphire-mid), var(--sapphire-deep) 70%);
  color: var(--white-hl);
  box-shadow: 0 14px 32px rgba(11, 58, 110, 0.32);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: var(--white-hl);
  box-shadow: 0 18px 40px rgba(11, 58, 110, 0.38);
}

.btn-ghost {
  background: rgba(244, 248, 252, 0.55);
  border-color: rgba(20, 90, 156, 0.22);
  color: var(--sapphire);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(244, 248, 252, 0.85);
  color: var(--sapphire-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.25rem;
}

.text-link {
  font-weight: 600;
  color: var(--sapphire);
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

/* Panels */
.glass-panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(244, 248, 252, 0.28)),
    rgba(232, 241, 248, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(11, 58, 110, 0.06),
    var(--shadow);
  backdrop-filter: blur(14px);
  padding: 1.4rem;
}

/* Hero — stacked brand composition over full-bleed plane */
.hero-crystal {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white-hl);
}

.hero-plane {
  position: absolute;
  inset: 0;
}

.hero-plane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 31, 63, 0.35) 0%, rgba(11, 58, 110, 0.55) 42%, rgba(6, 31, 63, 0.88) 100%),
    radial-gradient(600px 280px at 70% 30%, rgba(94, 200, 216, 0.25), transparent 60%);
}

.hero-stack {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 42rem;
  margin-left: max(calc((100% - var(--shell)) / 2), 1.2rem);
  margin-right: auto;
  animation: riseIn 0.9s ease both;
}

.hero-place {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(155, 231, 240, 0.9);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 12px 40px rgba(6, 31, 63, 0.45);
}

.hero-statement {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(244, 248, 252, 0.95);
  max-width: 34rem;
}

.hero-lead {
  margin: 1rem 0 0;
  color: rgba(232, 241, 248, 0.86);
  max-width: 34rem;
  font-size: 1.02rem;
}

.hero-stack .btn {
  margin-top: 1.5rem;
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2,
.panel-title,
.feature-title,
.page-hero h1,
.process-step h2,
.cta-band h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--sapphire-deep);
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 3.5rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 38rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.meta {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sapphire-mid);
}

.feature-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
}

.feature-title {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
}

.feature-media {
  margin: 0;
  border-radius: calc(var(--radius) - 0.25rem);
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.checklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.55rem 0;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-glass), var(--sapphire));
  box-shadow: 0 0 0 3px rgba(94, 200, 216, 0.2);
}

.offer-list,
.service-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.offer-item,
.service-card,
.blog-card {
  padding: 0;
  overflow: hidden;
}

.offer-item img,
.service-card img,
.blog-card img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.offer-item h3,
.service-card-body h2,
.blog-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.offer-item,
.service-card-body,
.blog-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.offer-item p,
.service-card-body p,
.blog-card-body p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.offer-meta {
  font-weight: 600;
  color: var(--sapphire) !important;
}

.quote-band {
  margin: 0;
  padding: 2rem 1.75rem;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  color: var(--sapphire-deep);
}

.quote-band figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.panel-title {
  margin-top: 0;
  font-size: 1.4rem;
}

.price-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.price-display {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--sapphire-deep);
}

.prose {
  max-width: 42rem;
}

.prose p {
  color: var(--muted);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
  color: var(--sapphire-deep);
}

.legal code {
  font-size: 0.9em;
  background: rgba(94, 200, 216, 0.15);
  padding: 0.1em 0.35em;
  border-radius: 0.3rem;
}

/* Bleed heroes */
.bleed-hero {
  position: relative;
  min-height: 38vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white-hl);
}

.bleed-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bleed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 31, 63, 0.2), rgba(6, 31, 63, 0.82));
}

.bleed-copy {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2.25rem;
}

.bleed-copy h1 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
}

.bleed-copy p {
  margin: 0;
  max-width: 36rem;
  color: rgba(232, 241, 248, 0.9);
}

.bleed-meta {
  color: rgba(155, 231, 240, 0.9) !important;
}

/* Process */
.process-hero {
  padding: 0.85rem;
}

.process-hero img {
  width: 100%;
  border-radius: calc(var(--radius) - 0.35rem);
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.process-steps {
  display: grid;
  gap: 1rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.1rem;
}

.step-num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan-glass);
  text-shadow: 0 0 18px rgba(94, 200, 216, 0.45);
}

.process-step h2 {
  margin: 0;
  font-size: 1.25rem;
}

.process-step p {
  margin: 0;
  grid-column: 2;
  color: var(--muted);
}

.cta-band {
  text-align: left;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--sapphire-deep);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(20, 90, 156, 0.22);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(94, 200, 216, 0.65);
  outline-offset: 1px;
}

.field-error {
  color: #9b2c2c;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.1em;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
}

.form-status[data-state="success"] {
  background: rgba(94, 200, 216, 0.2);
  color: var(--sapphire-deep);
}

.form-status[data-state="error"] {
  background: rgba(155, 44, 44, 0.12);
  color: #7a1f1f;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  background:
    linear-gradient(180deg, transparent, rgba(6, 31, 63, 0.06)),
    rgba(11, 58, 110, 0.08);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--sapphire-deep);
}

.footer-label {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sapphire);
}

.footer-text {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0.35rem 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--sapphire);
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background:
    linear-gradient(160deg, rgba(244, 248, 252, 0.92), rgba(212, 230, 242, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 1rem 1.1rem;
  max-width: 920px;
  margin: 0 auto;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.cookie-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-error {
  margin: 0.65rem 0 0;
  color: #9b2c2c;
  font-size: 0.88rem;
}

/* Motion */
@keyframes crystalPulse {
  0%,
  100% {
    filter: saturate(1);
    transform: scale(1);
  }
  50% {
    filter: saturate(1.15);
    transform: scale(1.04);
  }
}

@keyframes waveExpand {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.4);
    border-color: rgba(155, 231, 240, 0.85);
  }
  70% {
    opacity: 0.35;
    border-color: rgba(94, 200, 216, 0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.offer-item,
.service-card,
.blog-card,
.process-step {
  animation: riseIn 0.7s ease both;
}

@media (max-width: 920px) {
  .feature-band,
  .grid-2,
  .offer-list,
  .service-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 1.2rem;
    left: 1.2rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--glass-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stack {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
