/* FocusArchway — contemporary structure + creative restraint */
:root {
  --ink: #1a2f3a;
  --ink-soft: #2d4450;
  --mist: #eef2f4;
  --paper: #f7f5f1;
  --white: #ffffff;
  --brass: #c4a35a;
  --brass-deep: #9a7d3a;
  --sage: #5f8576;
  --sage-soft: #7a9e8e;
  --line: rgba(26, 47, 58, 0.12);
  --shadow: 0 18px 40px rgba(26, 47, 58, 0.08);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", 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.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(122, 158, 142, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 163, 90, 0.12), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 40%, var(--mist) 100%);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.35rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

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

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

.site-main {
  padding-top: var(--header-h);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(247, 245, 241, 0.88);
  backdrop-filter: blur(12px);
  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 {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(135deg, var(--ink) 55%, var(--brass) 55% 78%, var(--sage-soft) 78%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

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

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

.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 {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--ink-soft);
  color: var(--white) !important;
}

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

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

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

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

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

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

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

.btn-brass:hover {
  background: var(--brass-deep);
  color: var(--white);
}

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

/* Hero — editorial split, not SaaS */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: stretch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: inherit;
}

.hero-copy {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), transparent 70%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 24px,
      rgba(26, 47, 58, 0.03) 24px,
      rgba(26, 47, 58, 0.03) 25px
    );
}

.hero-brand-signal {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--brass-deep);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.hero-lede {
  max-width: 38ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  animation: heroReveal 1.2s var(--ease) both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(26, 47, 58, 0.35));
  pointer-events: none;
}

@keyframes heroReveal {
  from { transform: scale(1.06); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

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

.rise {
  animation: riseIn 0.8s var(--ease) both;
}

.rise-delay-1 { animation-delay: 0.12s; }
.rise-delay-2 { animation-delay: 0.24s; }
.rise-delay-3 { animation-delay: 0.36s; }

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

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

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.band-ink {
  background: var(--ink);
  color: var(--paper);
}

.band-ink h2,
.band-ink h3 {
  color: var(--paper);
}

.band-ink p {
  color: rgba(247, 245, 241, 0.85);
}

.band-sage {
  background: linear-gradient(135deg, #5f8576 0%, #4a6d61 100%);
  color: var(--paper);
}

.band-sage h2,
.band-sage h3 { color: var(--paper); }

.band-paper {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

/* Offer preview — not cards if avoidable; light structure for interaction listing */
.offer-list {
  display: grid;
  gap: 1.5rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease);
}

.offer-row:hover {
  background: rgba(255, 255, 255, 0.45);
}

.offer-row img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

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

.offer-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.offer-arrow {
  font-family: var(--font-display);
  color: var(--brass-deep);
  font-size: 1.5rem;
  padding-right: 0.5rem;
}

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

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

.split-reverse .split-media { order: 2; }

/* Quote / evidence */
.quote-block {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  margin: 0 0 1rem;
  color: var(--ink);
}

.quote-block cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Pricing lines */
.rate-table {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.rate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.rate-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.rate-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.rate-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  white-space: nowrap;
  color: var(--ink);
}

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

/* Reviews */
.review-grid {
  display: grid;
  gap: 2rem;
}

.review-item {
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--line);
}

.review-item:last-child { border-bottom: 0; }

.review-meta {
  font-size: 0.9rem;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.story-panel {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.65);
  border-left: 3px solid var(--brass);
}

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

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

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

.blog-item time {
  font-size: 0.85rem;
  color: var(--sage);
}

.article-hero {
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.article-body {
  max-width: 42rem;
  margin: 0 auto;
}

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

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

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

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

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

.field-error {
  color: #8b2e2e;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  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: #8b2e2e;
}

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

.form-status.is-success {
  display: block;
  background: rgba(95, 133, 118, 0.15);
  border: 1px solid var(--sage);
}

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

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

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

.contact-aside address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

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

.page-hero .lede {
  max-width: 42ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.page-hero-media {
  margin-top: 2rem;
}

.page-hero-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

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

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

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

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq details[open] summary {
  color: var(--sage);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(247, 245, 241, 0.8);
  margin-top: 4rem;
  padding: 3.5rem 0 0;
}

.footer-inner {
  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.5rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.footer-tag {
  font-size: 0.95rem;
  max-width: 28ch;
}

.footer-heading {
  color: var(--brass);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

.footer-links a,
.site-footer a {
  color: rgba(247, 245, 241, 0.85);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--brass);
}

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

.footer-address {
  font-style: normal;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(247, 245, 241, 0.12);
  text-align: center;
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 200;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.cookie-banner.is-visible { display: block; animation: riseIn 0.45s var(--ease); }

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.cookie-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

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

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

/* Legal */
.legal-body {
  max-width: 46rem;
}

.legal-body 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;
}

.cookie-table th {
  background: rgba(255, 255, 255, 0.7);
}

.inline-error {
  background: rgba(139, 46, 46, 0.1);
  border: 1px solid #8b2e2e;
  color: #8b2e2e;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

/* Service detail */
.include-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

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

.include-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brass);
  border-radius: 1px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .split-reverse .split-media,
  .contact-layout,
  .footer-inner,
  .blog-item,
  .offer-row {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-media { order: 0; }

  .offer-row img {
    width: 100%;
    height: 180px;
  }

  .offer-arrow { display: none; }

  .nav-toggle { display: block; }

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

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .cookie-banner {
    inset: auto 0.75rem 0.75rem;
  }
}
