/* Liquid Architecture — Cortex Cascadepoint */

:root {
  --white: #f7f6f4;
  --concrete: #b8b5b0;
  --stone: #c4b5a0;
  --cobalt: #5b7c99;
  --cobalt-deep: #3d5568;
  --black: #141414;
  --ink: #1e1e1e;
  --muted: #6a6762;
  --surface: #eceae6;
  --surface-2: #e2dfd9;
  --line: rgba(20, 20, 20, 0.12);
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --wide: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(91, 124, 153, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 181, 160, 0.18), transparent 50%),
    linear-gradient(165deg, var(--white) 0%, var(--surface) 45%, #e8e4de 100%);
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--black);
}

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

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus { left: 0; }

.wrap {
  width: min(100% - 2 * var(--space), var(--wide));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2 * var(--space), var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

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

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

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

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

.nav-cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--black);
  color: var(--white) !important;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  transition: clip-path 0.45s var(--ease), background 0.3s;
}

.nav-cta:hover {
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
  background: var(--cobalt-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-body);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle-bars {
  width: 1.1rem;
  height: 2px;
  background: var(--black);
  box-shadow: 0 5px 0 var(--black), 0 -5px 0 var(--black);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--space) 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Buttons — liquid fold */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: clip-path 0.5s var(--ease), transform 0.35s var(--ease), background 0.3s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--cobalt-deep);
  clip-path: polygon(3% 0, 97% 4%, 100% 92%, 2% 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--cobalt);
  color: var(--white);
}

.btn-secondary:hover {
  color: var(--white);
  clip-path: polygon(0 6%, 100% 0, 96% 100%, 4% 94%);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--surface-2);
  clip-path: polygon(2% 0, 100% 3%, 98% 100%, 0 97%);
  color: var(--black);
}

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

/* Surfaces — monolithic panels */
.panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(236, 234, 230, 0.9));
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(91, 124, 153, 0.06) 100%);
  pointer-events: none;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--black);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: heroDrift 28s var(--ease) infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 20, 20, 0.92) 0%, rgba(20, 20, 20, 0.55) 48%, rgba(61, 85, 104, 0.35) 100%),
    linear-gradient(to top, rgba(20, 20, 20, 0.75), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--space), var(--wide));
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  max-width: 14ch;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-content .lede {
  color: rgba(247, 246, 244, 0.82);
  animation: riseIn 0.9s 0.12s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1rem;
  animation: riseIn 0.7s var(--ease) both;
}

.hero .btn-primary {
  animation: riseIn 0.9s 0.2s var(--ease) both;
}

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

@keyframes heroDrift {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-2%, 1%); }
}

/* Offer strip */
.offer-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.offer-item {
  background: var(--white);
  padding: 1.5rem;
  transition: transform 0.45s var(--ease), background 0.35s;
}

.offer-item:hover {
  transform: skewY(-0.6deg) translateY(-2px);
  background: #faf9f7;
}

.offer-item h3 { margin-bottom: 0.5rem; }
.offer-item p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.offer-item a { font-weight: 600; text-decoration: none; }

/* Service cards */
.service-list {
  display: grid;
  gap: 2rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}

.service-row:nth-child(even) {
  direction: rtl;
}

.service-row:nth-child(even) > * {
  direction: ltr;
}

.service-row img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  transition: clip-path 0.6s var(--ease);
}

.service-row:hover img {
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%);
}

@media (max-width: 720px) {
  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.meta-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
}

/* Quotes */
.quote-block {
  border-left: 2px solid var(--cobalt);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--black);
}

.quote-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Forms */
.form-stack {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, clip-path 0.4s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  clip-path: polygon(0 0, 100% 2%, 98% 100%, 2% 98%);
}

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

.field-error {
  color: #8b3a3a;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

.form-field.is-invalid .field-error { display: block; }
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: #8b3a3a;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(91, 124, 153, 0.15);
  border: 1px solid var(--cobalt);
}

.form-status.is-error {
  display: block;
  background: rgba(139, 58, 58, 0.1);
  border: 1px solid #8b3a3a;
}

/* Page hero compact */
.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { max-width: 18ch; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease);
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 96%);
}

.blog-card time {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.prose {
  max-width: 42rem;
}

.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }

.cover-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  background: var(--black);
  color: rgba(247, 246, 244, 0.78);
}

.footer-grid {
  width: min(100% - 2 * var(--space), var(--wide));
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-tag { color: var(--stone); }

.site-footer a {
  color: rgba(247, 246, 244, 0.85);
  text-decoration: none;
}

.site-footer a:hover { color: var(--stone); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-copy {
  width: min(100% - 2 * var(--space), var(--wide));
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 1.1rem var(--space);
  border-top: 1px solid rgba(91, 124, 153, 0.4);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-inner {
  width: min(100%, var(--wide));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
  color: rgba(247, 246, 244, 0.9);
}

.cookie-inner a { color: var(--stone); }

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

.cookie-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.cookie-banner .btn-primary {
  background: var(--cobalt);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem var(--space);
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  color: var(--concrete);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Process steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  padding-left: 3rem;
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cobalt);
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--cobalt);
  clip-path: polygon(0 0, 100% 30%, 70% 100%, 0 80%);
}

.motion-fold {
  transition: clip-path 0.55s var(--ease);
}

.motion-fold:hover {
  clip-path: polygon(1% 0, 100% 2%, 99% 100%, 0 98%);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 0.8rem;
}
