/* App Grove Path — contemporary structure with creative accent */

:root {
  --ink: #15241c;
  --ink-soft: #3d5248;
  --muted: #5f7368;
  --paper: #eef2ef;
  --paper-deep: #dde5e0;
  --surface: #f8faf8;
  --line: #c5d0c8;
  --grove: #1e4d38;
  --grove-mid: #2f6b4f;
  --leaf: #6f9b7e;
  --copper: #a67c52;
  --copper-soft: #d4b896;
  --danger: #8b3a2f;
  --ok: #1f6b45;
  --radius: 2px;
  --header-h: 4.25rem;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Avenir Next", sans-serif;
  --shadow-soft: 0 18px 40px rgba(21, 36, 28, 0.08);
  --max: 72rem;
  --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(1200px 600px at 10% -10%, rgba(111, 155, 126, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(166, 124, 82, 0.12), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--surface) 40%, var(--paper-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

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

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

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f6e4e0;
  color: var(--danger);
  border-bottom: 1px solid #e0b6ad;
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 248, 0.88);
  border-bottom: 1px solid rgba(197, 208, 200, 0.7);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border: 2px solid var(--grove);
  background:
    linear-gradient(135deg, var(--grove) 0 45%, transparent 45% 55%, var(--copper) 55%);
  transform: rotate(12deg);
  animation: mark-settle 1.2s var(--ease) both;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s var(--ease);
}

.nav-toggle-bar::before {
  transform: translateY(-6px);
}

.nav-toggle-bar::after {
  transform: translateY(4px);
}

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

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

.nav-list a:hover {
  color: var(--grove);
}

.nav-cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--grove);
  color: #f4f7f5 !important;
  border: 1px solid var(--grove);
}

.nav-cta:hover {
  background: var(--grove-mid);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-main {
  padding-bottom: 4rem;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

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

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

.lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

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

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

.btn-primary {
  background: var(--grove);
  color: #f5f8f6;
  border-color: var(--grove);
}

.btn-primary:hover {
  background: var(--grove-mid);
  color: #fff;
}

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

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

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

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

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

/* Hero — full-bleed visual plane */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  color: #f4f7f5;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 28, 22, 0.82) 0%, rgba(15, 28, 22, 0.55) 48%, rgba(15, 28, 22, 0.25) 100%),
    linear-gradient(0deg, rgba(15, 28, 22, 0.7) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: #f7faf8;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  max-width: 28rem;
  color: #e8efe9;
  margin-bottom: 0.85rem;
}

.hero .hero-support {
  max-width: 32rem;
  color: rgba(232, 239, 233, 0.88);
  margin-bottom: 0;
}

.hero .btn-primary {
  background: var(--copper);
  border-color: var(--copper);
  color: #1a1510;
}

.hero .btn-primary:hover {
  background: var(--copper-soft);
}

.hero .btn-secondary {
  border-color: rgba(244, 247, 245, 0.7);
  color: #f4f7f5;
}

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

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

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-visual {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.split-visual img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(0deg, rgba(21, 36, 28, 0.35), transparent);
  pointer-events: none;
}

.frame-offset {
  box-shadow: var(--shadow-soft);
  outline: 1px solid var(--line);
}

/* Offer list (not SaaS cards) */
.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

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

.offer-row img {
  width: 8rem;
  height: 5.5rem;
  object-fit: cover;
}

.offer-row h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

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

.offer-link {
  font-weight: 600;
  color: var(--grove-mid);
  white-space: nowrap;
}

/* Quote / stories */
.quote-block {
  max-width: 40rem;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 3px solid var(--copper);
  margin: 1.5rem 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
}

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

/* Media mosaic */
.media-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.media-strip img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}

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

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

.journal-item img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

.journal-item h2 {
  font-size: 1.45rem;
}

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

/* Service detail */
.detail-hero {
  padding: 3rem 0 1rem;
}

.detail-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.detail-aside {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.detail-aside dl {
  margin: 0;
}

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

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

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

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--grove-mid);
  transform: rotate(45deg);
}

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

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

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

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

/* Schedule */
.schedule-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

.schedule-date {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--grove);
}

.schedule-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.schedule-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.story {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.story h2 {
  font-size: 1.4rem;
}

.stars {
  color: var(--copper);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Forms */
.form-panel {
  max-width: 36rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.field {
  margin-bottom: 1.1rem;
}

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

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

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

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

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

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

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

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

.contact-facts p {
  margin-bottom: 0.5rem;
}

/* Legal */
.legal {
  max-width: 46rem;
  padding: 3rem 0;
}

.legal h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
}

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

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

.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.5);
}

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

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--grove);
}

/* Footer */
.site-footer {
  background: #13241c;
  color: #d5e0d9;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

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

.footer-tag {
  color: #a8b9af;
  max-width: 18rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin-bottom: 0.75rem;
}

.footer-address {
  white-space: pre-wrap;
  word-break: break-word;
}

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

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

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

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

.footer-base {
  border-top: 1px solid rgba(197, 208, 200, 0.2);
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  color: #8fa398;
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 40rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  animation: rise 0.45s var(--ease) both;
}

.cookie-banner-inner {
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Page intro band */
.page-intro {
  padding: 3rem 0 1.5rem;
}

.page-intro h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 16ch;
}

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

@keyframes mark-settle {
  from {
    transform: rotate(40deg) scale(0.7);
    opacity: 0;
  }
  to {
    transform: rotate(12deg) scale(1);
    opacity: 1;
  }
}

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

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

.reveal-delay {
  animation-delay: 0.15s;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(248, 250, 248, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.35rem;
  }

  .nav-list a {
    display: block;
    padding: 0.55rem 0;
  }

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

  .split,
  .split-reverse,
  .detail-grid,
  .contact-grid,
  .journal-item,
  .media-strip,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .offer-row,
  .schedule-item {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .offer-row img {
    width: 100%;
    height: 10rem;
  }

  .detail-aside {
    position: static;
  }

  .hero {
    min-height: 78vh;
  }
}

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

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