/* Utility Cypress Field — soft neutrals, spacious layout */
:root {
  --ink: #1c1f1c;
  --ink-soft: #3a403a;
  --muted: #6a7268;
  --paper: #f3f0ea;
  --paper-deep: #e7e2d8;
  --surface: #faf8f4;
  --accent: #3d4a3e;
  --accent-hover: #2c362d;
  --accent-soft: #d4d9d0;
  --line: #d5cfc4;
  --focus: #8a6b3d;
  --danger: #8b3a2f;
  --success: #2f5c3a;
  --radius: 2px;
  --shadow: 0 12px 40px rgba(28, 31, 28, 0.06);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::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%, #ebe6db 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #e2e6df 0%, transparent 50%),
    var(--paper);
  min-height: 100vh;
}

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

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--surface);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(243, 240, 234, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-2);
}

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

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-1px);
}

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

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

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.3rem;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

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

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

/* Typography */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.45rem; margin: 0 0 0.6rem; }

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

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-weight: 600;
}

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

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

.btn-primary {
  background: var(--accent);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--surface);
}

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

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

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

/* Sections */
.section {
  padding: var(--space-6) 0;
}

.section-tight {
  padding: var(--space-5) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-4);
}

.page-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 var(--space-5);
}

.page-hero .lede {
  margin-bottom: 0;
}

/* Home hero — full-bleed visual plane */
.hero-home {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  color: var(--surface);
  overflow: hidden;
}

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

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

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(28, 31, 28, 0.78) 0%, rgba(28, 31, 28, 0.45) 48%, rgba(28, 31, 28, 0.25) 100%),
    linear-gradient(to top, rgba(28, 31, 28, 0.55), transparent 45%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  padding: var(--space-5) 0 calc(var(--space-5) + 0.5rem);
  max-width: 36rem;
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.9s ease forwards 0.15s;
}

.hero-home .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: var(--surface);
}

.hero-home .hero-line {
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(250, 248, 244, 0.88);
  margin: 0;
  max-width: 28rem;
}

.hero-home .btn-primary {
  background: var(--surface);
  color: var(--accent);
}

.hero-home .btn-primary:hover {
  background: var(--paper);
  color: var(--accent-hover);
}

.hero-home .btn-ghost {
  border-color: rgba(250, 248, 244, 0.45);
  color: var(--surface);
}

.hero-home .btn-ghost:hover {
  border-color: var(--surface);
  color: var(--surface);
  background: rgba(250, 248, 244, 0.08);
}

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

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

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

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

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

/* Offer strip */
.offer-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}

.offer-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.92);
}

.offer-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.offer-list li {
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent-soft);
}

.offer-list strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* Service previews */
.service-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.service-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease;
}

.service-preview:hover {
  border-bottom-color: var(--accent);
}

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

.service-preview h3 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
}

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

.service-meta {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

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

.quote-block blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--ink);
}

.quote-block cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Split content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.split img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

/* Cards for interaction only (pricing / contact forms etc.) */
.rate-table {
  width: 100%;
  border-collapse: collapse;
}

.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-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rate-note {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  max-width: 42rem;
}

/* Reviews */
.review-list {
  display: grid;
  gap: var(--space-4);
}

.review-item {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}

.review-item:last-child {
  border-bottom: 1px solid var(--line);
}

.review-item blockquote {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.review-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.case-story {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.post-teaser {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.85rem;
}

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

.post-teaser h2 {
  font-size: 1.55rem;
  margin: 0;
}

.post-teaser p {
  margin: 0;
  color: var(--ink-soft);
}

.post-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.prose {
  max-width: 42rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.15rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

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

.prose h3 {
  margin-top: 1.75rem;
}

.cover-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 0 0 var(--space-4);
}

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

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  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(--focus);
  outline-offset: 1px;
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.35rem;
  display: none;
}

.form-field.has-error .field-error {
  display: block;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--danger);
}

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

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

.form-status.is-error {
  display: block;
  background: #f3e6e3;
  color: var(--danger);
}

.contact-aside {
  display: grid;
  gap: 0.35rem;
}

.contact-aside p {
  margin: 0;
}

/* Process steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0;
  max-width: 44rem;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  margin-top: var(--space-5);
  background: var(--accent);
  color: rgba(250, 248, 244, 0.88);
  padding: var(--space-5) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
  color: var(--surface);
}

.footer-tag {
  margin: 0;
  color: rgba(250, 248, 244, 0.7);
}

.site-footer a {
  color: var(--surface);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

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

.footer-base {
  border-top: 1px solid rgba(250, 248, 244, 0.18);
  padding-top: var(--space-3);
  font-size: 0.9rem;
  color: rgba(250, 248, 244, 0.65);
}

.footer-base p {
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  animation: riseIn 0.4s ease;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

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

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

/* Legal */
.legal-page h2 {
  margin-top: 2rem;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

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

.legal-page th {
  background: var(--paper-deep);
}

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

/* Detail layout */
.detail-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  margin-bottom: var(--space-4);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.detail-meta strong {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cta-band {
  background: var(--accent);
  color: var(--surface);
  padding: var(--space-5) 0;
  margin-top: var(--space-5);
}

.cta-band h2 {
  color: var(--surface);
}

.cta-band p {
  color: rgba(250, 248, 244, 0.85);
  max-width: 34rem;
}

.cta-band .btn-primary {
  background: var(--surface);
  color: var(--accent);
}

.cta-band .btn-primary:hover {
  background: var(--paper);
}

/* Responsive */
@media (max-width: 900px) {
  .offer-grid,
  .split,
  .footer-grid,
  .service-preview-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

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

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-home {
    min-height: min(85vh, 640px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-home-media img {
    transform: none;
  }
}
