/* Link Vertex Core — contemporary structured elegance */
:root {
  --ink: #1c3a36;
  --ink-soft: #2a4f49;
  --leaf: #3d6b62;
  --sage: #8fafa6;
  --sand: #f4efe6;
  --paper: #faf7f2;
  --cream: #efe6d8;
  --gold: #b0894a;
  --gold-deep: #8a6a38;
  --line: rgba(28, 58, 54, 0.14);
  --text: #243330;
  --muted: #5a6e69;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(28, 58, 54, 0.08);
  --radius: 4px;
  --header-h: 4.5rem;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;
  --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.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(176, 137, 74, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(61, 107, 98, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

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

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

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 0.55em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 0 0 0.45em; }

p { margin: 0 0 1em; }

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

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(135deg, var(--ink) 55%, var(--gold) 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

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

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

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

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand) !important;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: var(--sand);
}

.btn-primary:hover {
  background: var(--ink-soft);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--sand);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: var(--sand);
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 40, 37, 0.88) 8%, rgba(18, 40, 37, 0.55) 48%, rgba(18, 40, 37, 0.28) 100%),
    linear-gradient(0deg, rgba(18, 40, 37, 0.55), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0 3.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  margin: 0 0 0.55rem;
  letter-spacing: -0.03em;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(244, 239, 230, 0.92);
  margin-bottom: 1.6rem;
  animation: riseIn 1s 0.12s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 1s 0.22s var(--ease) both;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(61, 107, 98, 0.08), transparent 70%);
}

.page-hero .container {
  display: grid;
  gap: 1rem;
}

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

.page-hero-media {
  margin-top: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 280px;
}

.page-hero-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

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

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--line);
}

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
}

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

.feature-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  padding-left: 1.4rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Offer grid — not cards by default for marketing, but interactive links need containers */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.offer-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.offer-link:hover {
  border-top-color: var(--gold);
  transform: translateY(-3px);
  color: inherit;
}

.offer-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.offer-link h3 {
  margin-bottom: 0.35rem;
}

.offer-link p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Quotes / evidence */
.quote-stack {
  display: grid;
  gap: 1.5rem;
}

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

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

.quote footer {
  color: var(--muted);
  font-size: 0.95rem;
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.story-block img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0.85rem;
}

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

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

.rate-table th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.rate-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-highlight {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 640px;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(176, 137, 74, 0.45);
  border-color: var(--gold);
}

.field-error {
  color: #8a2f2f;
  font-size: 0.88rem;
  min-height: 1.1em;
}

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(61, 107, 98, 0.12);
  color: var(--ink);
  border: 1px solid rgba(61, 107, 98, 0.3);
}

.form-status.is-error {
  display: block;
  background: rgba(138, 47, 47, 0.08);
  color: #8a2f2f;
  border: 1px solid rgba(138, 47, 47, 0.25);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.contact-aside {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.contact-aside address {
  font-style: normal;
  line-height: 1.8;
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 1.75rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.4rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.blog-item:hover {
  color: inherit;
}

.blog-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.65rem;
}

.blog-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.article-body .lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.article-cover {
  border-radius: 1rem;
  overflow: hidden;
  margin: 1.5rem 0 2rem;
}

.article-cover img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.article-body h2 {
  margin-top: 2rem;
}

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

/* Legal */
.legal-body {
  padding: 2.5rem 0 4rem;
}

.legal-body h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

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

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

.legal-body th {
  background: rgba(61, 107, 98, 0.08);
}

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-deep);
  line-height: 1;
  padding-top: 0.15rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details[open] summary {
  color: var(--gold-deep);
}

.faq details p {
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(244, 239, 230, 0.86);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--sand);
  margin: 0 0 0.5rem;
}

.footer-tag {
  max-width: 28rem;
  color: rgba(244, 239, 230, 0.72);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 2rem;
}

.footer-heading {
  font-family: var(--font-display);
  color: var(--sand);
  margin: 0 0 0.8rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a,
.footer-address a {
  color: rgba(244, 239, 230, 0.82);
  text-decoration: none;
}

.footer-col a:hover,
.footer-address a:hover {
  color: var(--cream);
}

.footer-address {
  font-style: normal;
  line-height: 1.75;
}

.footer-copy {
  border-top: 1px solid rgba(244, 239, 230, 0.15);
  padding-top: 1.2rem;
  font-size: 0.9rem;
  color: rgba(244, 239, 230, 0.55);
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-left: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
  border-radius: 0.85rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

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

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

.cookie-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.92rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--sage);
  line-height: 1;
  margin: 0;
}

/* Inline script error */
.runtime-error {
  margin: 1rem auto;
  width: min(1120px, calc(100% - 2.5rem));
  padding: 0.85rem 1rem;
  background: rgba(138, 47, 47, 0.08);
  border: 1px solid rgba(138, 47, 47, 0.25);
  color: #8a2f2f;
  border-radius: var(--radius);
}

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

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .contact-grid,
  .story-block,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .blog-item {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-cta {
    margin-top: 0.35rem;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }
}

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