/* Mercury Horizon — App Dev Sync */
:root {
  --silver: #c9ccd4;
  --silver-bright: #e8eaef;
  --silver-deep: #9aa0ab;
  --peach: #e8c9a8;
  --peach-warm: #f0d4b8;
  --peach-deep: #d4a882;
  --gold: #d4b56a;
  --gold-soft: #e6cf8f;
  --graphite: #2c3038;
  --graphite-mid: #3d4450;
  --graphite-soft: #5c6573;
  --ink: #1e2229;
  --ink-soft: #4a5260;
  --line: rgba(44, 48, 56, 0.12);
  --mercury-glow: rgba(201, 204, 212, 0.45);
  --peach-glow: rgba(232, 201, 168, 0.35);
  --gold-glow: rgba(212, 181, 106, 0.28);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 72rem;
  --ease: cubic-bezier(0.34, 1.2, 0.64, 1);
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, var(--peach-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, var(--mercury-glow), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, var(--gold-glow), transparent 55%),
    linear-gradient(168deg, #f7f4ef 0%, var(--silver-bright) 38%, #e4e0d8 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--graphite-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.25s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1rem; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  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(14px);
  background: rgba(247, 244, 239, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--graphite);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand:hover { color: var(--peach-deep); }

.nav-toggle {
  display: none;
  background: linear-gradient(145deg, var(--silver-bright), var(--silver));
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--graphite);
}

/* Buttons — liquid mercury depression */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--silver-bright);
  background:
    linear-gradient(145deg, var(--graphite-mid) 0%, var(--graphite) 45%, #1a1e24 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px rgba(44, 48, 56, 0.18);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-radius 0.35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    linear-gradient(
      115deg,
      transparent 30%,
      rgba(232, 201, 168, 0.35) 45%,
      rgba(212, 181, 106, 0.4) 52%,
      rgba(201, 204, 212, 0.3) 58%,
      transparent 70%
    );
  animation: light-band 5.5s ease-in-out infinite;
  pointer-events: none;
}

.btn:hover {
  transform: scale(0.97);
  border-radius: 1.75rem;
  box-shadow:
    inset 0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 -2px 6px rgba(255, 255, 255, 0.08),
    0 4px 12px rgba(44, 48, 56, 0.12);
  color: #fff;
}

.btn:active {
  transform: scale(0.94);
  border-radius: 2rem;
}

.btn-ghost {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(201, 204, 212, 0.35));
  color: var(--graphite);
  border: 1px solid var(--silver-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-ghost::before { opacity: 0.4; }

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--peach-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@keyframes light-band {
  0%, 100% { transform: translateX(-30%) rotate(8deg); opacity: 0.5; }
  50% { transform: translateX(30%) rotate(8deg); opacity: 0.95; }
}

@keyframes mercury-flow {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes horizon-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

/* Hero — brand-as-H1, full-bleed horizon (anti-duplicate: not eyebrow+tagline+dual CTA) */
.hero {
  position: relative;
  min-height: min(94vh, 56rem);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.78) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(30, 34, 41, 0.82) 0%, rgba(44, 48, 56, 0.45) 48%, rgba(232, 201, 168, 0.22) 100%),
    radial-gradient(ellipse 70% 40% at 70% 85%, rgba(212, 181, 106, 0.35), transparent 60%),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(201, 204, 212, 0.12) 40%,
      rgba(232, 201, 168, 0.18) 55%,
      transparent 75%
    );
  background-size: 100% 100%, 100% 100%, 200% 100%;
  animation: mercury-flow 12s ease-in-out infinite, horizon-pulse 9s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.5rem;
  max-width: 40rem;
  color: var(--silver-bright);
  animation: fade-up 1s var(--ease) both;
}

.hero-content h1 {
  color: var(--silver-bright);
  margin: 0 0 1rem;
  font-size: clamp(3.4rem, 10vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(232, 234, 239, 0.92);
  max-width: 30rem;
  margin-bottom: 0;
}

.hero-meta {
  display: inline-block;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero .btn {
  margin-top: 1.85rem;
}

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

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--peach-deep);
  margin: 0 0 0.5rem;
}

.section-intro {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

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

.page-hero h1 {
  margin: 0.25rem 0 0.75rem;
}

/* Service rows — not cards */
.service-list {
  margin-top: 2rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.service-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92) brightness(0.98);
  box-shadow: 0 12px 40px rgba(44, 48, 56, 0.1);
}

.service-meta {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  margin-bottom: 0.35rem;
}

.service-row h3 a {
  text-decoration: none;
  color: var(--ink);
}

.service-row h3 a:hover {
  color: var(--peach-deep);
}

.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.quote {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--gold);
}

.quote p {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
}

.quote footer {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 1rem;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: var(--radius);
}

.prose {
  max-width: 42rem;
  padding: 1.5rem 0 4rem;
}

.prose h2 {
  margin-top: 2rem;
}

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

.includes li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.includes li::before {
  content: "— ";
  color: var(--gold);
}

.price-band {
  display: grid;
  grid-template-columns: minmax(0, 10rem) 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.price-band .amount {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--graphite-mid);
  margin: 0.25rem 0 0;
}

.price-band h3 {
  margin: 0 0 0.35rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.blog-item {
  display: grid;
  grid-template-columns: minmax(0, 14rem) 1fr;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.blog-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.25rem);
}

.blog-item h2 {
  font-size: 1.45rem;
  margin: 0.2rem 0 0.5rem;
}

.blog-item:hover h2 {
  color: var(--peach-deep);
}

.blog-date {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.form label {
  display: block;
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(201, 204, 212, 0.25));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 0.35rem);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.field-error {
  display: block;
  min-height: 1.1em;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #a33a2c;
}

.form-status {
  margin-top: 1rem;
  min-height: 1.4em;
}

.form-status.is-success { color: #2a7a5a; }
.form-status.is-error { color: #a33a2c; }

.contact-aside h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.method-steps {
  counter-reset: step;
  margin: 2.5rem 0;
}

.method-step {
  position: relative;
  padding: 1.75rem 0 1.75rem 4rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.method-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
}

.method-hero-img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  margin: 0 0 2rem;
  border-radius: var(--radius);
  filter: saturate(0.95) brightness(0.97);
}

.site-footer {
  margin-top: 2rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(201, 204, 212, 0.25), rgba(232, 201, 168, 0.2));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-label {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.footer-legal a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-legal a:hover {
  color: var(--peach-deep);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  padding: 1.25rem 1.5rem;
  background:
    linear-gradient(135deg, rgba(232, 234, 239, 0.97), rgba(232, 201, 168, 0.95));
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(44, 48, 56, 0.12);
  border-radius: var(--radius) var(--radius) 0 0;
}

.cookie-banner.is-visible {
  display: block;
  animation: fade-up 0.5s var(--ease);
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  max-width: 48rem;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-error {
  color: #a33a2c;
  margin-top: 0.5rem !important;
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--silver-deep), var(--gold), var(--peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-body {
  max-width: 44rem;
  padding-bottom: 4rem;
}

.legal-body h2 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.legal-body ul {
  padding-left: 1.2rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.team-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.team-row figure {
  margin: 0;
}

.team-row img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  filter: saturate(0.9);
}

.team-row figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.team-row .role {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(247, 244, 239, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
  }

  .nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    gap: 0.85rem;
  }

  .service-row,
  .detail-hero,
  .blog-item,
  .contact-layout,
  .footer-grid,
  .team-row,
  .price-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding: 4rem 0 3.5rem;
  }
}
