/* Logic Passage — contemporary structured editorial theme */
:root {
  --ink: #141c26;
  --ink-soft: #3d4a5c;
  --muted: #6b7789;
  --bg: #eef2f6;
  --bg-deep: #dfe6ee;
  --surface: #fafbfc;
  --line: #c8d0dc;
  --accent: #b86a28;
  --accent-deep: #8f4f1a;
  --teal: #2c5f6a;
  --teal-soft: #3d7a86;
  --success: #2d6a4f;
  --error: #9b2c2c;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(20, 28, 38, 0.08);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
  --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(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(184, 106, 40, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(44, 95, 106, 0.08), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  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;
}

.inline-error {
  background: #fde8e8;
  color: var(--error);
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem;
  border-left: 3px solid var(--error);
  font-size: 0.95rem;
}

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

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

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

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

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--ink);
}

.site-nav .nav-cta {
  background: var(--ink);
  color: var(--surface) !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover {
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

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

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }

  .site-nav.is-open {
    max-height: 420px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.85rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

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

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

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

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

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

/* Hero variants */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

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

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 320px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
  animation: reveal-in 1s var(--ease) both;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(20, 28, 38, 0.78));
  color: #f2f4f7;
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .hero-editorial {
    grid-template-columns: 1fr;
  }
}

.page-hero {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.page-hero p {
  max-width: 52ch;
  color: var(--ink-soft);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

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

.section-head p {
  color: var(--ink-soft);
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

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

/* Offer / service tiles — interaction containers */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.offer-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.offer-tile:hover {
  border-color: var(--teal-soft);
  box-shadow: var(--shadow);
}

.offer-tile img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.offer-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-body h3 {
  margin-bottom: 0.4em;
}

.offer-body p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.offer-body .btn {
  align-self: flex-start;
  margin-top: 0.75rem;
}

/* Evidence / quotes */
.quote-stack {
  display: grid;
  gap: 1.5rem;
}

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

.quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 450;
  font-style: italic;
  color: var(--ink);
}

.quote footer {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.blog-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

@media (max-width: 640px) {
  .blog-row {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 68ch;
}

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

.prose img.article-cover {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

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

.rate-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg);
}

.rate-note {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Forms */
.field {
  margin-bottom: 1.15rem;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

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

.field-error {
  display: block;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
}

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

.form-status.is-success {
  background: #e6f4ec;
  color: var(--success);
}

.form-status.is-error {
  background: #fde8e8;
  color: var(--error);
}

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

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

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius);
  height: fit-content;
}

.contact-aside dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 1rem;
}

.contact-aside dt:first-child {
  margin-top: 0;
}

.contact-aside dd {
  margin: 0.25rem 0 0;
}

/* Archive grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.archive-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.archive-item img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.archive-item .body {
  padding: 1.15rem 1.25rem 1.4rem;
}

.archive-item .tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

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

/* Footer */
.site-footer {
  margin-top: 4rem;
  background: var(--ink);
  color: #c5ccd6;
  padding: 3rem 0 1.5rem;
}

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

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

.footer-tag {
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a94a3;
  margin-bottom: 0.75rem;
}

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

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: #d4dae3;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(100% - 2rem, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--ink);
  color: #e4e8ee;
  padding: 1.15rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  animation: slide-up 0.45s var(--ease);
}

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

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
}

.cookie-banner a {
  color: #f0c090;
}

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

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

.cookie-banner .btn-ghost {
  color: #e4e8ee;
  border-color: #5a6575;
}

/* Legal */
.legal-doc {
  max-width: 72ch;
  padding-bottom: 3rem;
}

.legal-doc h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

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

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

.cookie-table th {
  background: var(--bg-deep);
}

/* 404 */
.error-page {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Motion */
@keyframes reveal-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

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

.reveal {
  animation: fade-up 0.7s var(--ease) both;
}

.reveal-delay {
  animation: fade-up 0.7s 0.15s var(--ease) both;
}

.reveal-delay-2 {
  animation: fade-up 0.7s 0.3s var(--ease) both;
}

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

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

.flag-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
}

.flag-list strong {
  color: var(--accent-deep);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 560px) {
  .flag-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
