:root {
  --color-bg: #eef2f5;
  --color-bg-elevated: #f7f9fb;
  --color-ink: #152028;
  --color-ink-soft: #3d4a55;
  --color-accent: #0d5c63;
  --color-accent-deep: #094348;
  --color-highlight: #e07a3d;
  --color-line: #c5d0d8;
  --color-success: #1f6b4a;
  --color-error: #9b2c2c;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --radius: 4px;
  --shadow: 0 12px 32px rgba(21, 32, 40, 0.08);
  --max: 1120px;
  --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.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 92, 99, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(224, 122, 61, 0.1), transparent 50%),
    linear-gradient(180deg, #e8eef3 0%, var(--color-bg) 40%, #e6ebf0 100%);
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 var(--space-3);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin: 0 0 var(--space-3);
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 var(--space-2);
}

p {
  margin: 0 0 var(--space-3);
}

ul {
  margin: 0 0 var(--space-3);
  padding-left: 1.2rem;
}

.visually-hidden {
  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;
}

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

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

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

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

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

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

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

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

.btn--ghost:hover {
  background: rgba(13, 92, 99, 0.08);
  color: var(--color-accent-deep);
}

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

.btn--highlight:hover {
  filter: brightness(0.95);
  color: #fff;
}

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

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

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  animation: brand-in 0.7s ease both;
}

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

.site-header__toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-ink);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.site-nav__cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--color-accent-deep);
  color: #fff !important;
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: flex;
  }

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

  .site-nav.is-open {
    display: block;
    animation: nav-drop 0.25s ease;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero home — editorial split, not H1+subtitle+2CTA default */
.hero-home {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - var(--header-h));
  max-height: 920px;
}

.hero-home__media {
  position: relative;
  overflow: hidden;
  background: var(--color-accent-deep);
}

.hero-home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  animation: image-rise 1.1s ease both;
}

.hero-home__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(160deg, #f7f9fb 0%, #e8f0f2 100%);
}

.hero-home__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 var(--space-3);
  color: var(--color-accent-deep);
  animation: fade-up 0.8s ease 0.1s both;
}

.hero-home__line {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 28rem;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
  animation: fade-up 0.8s ease 0.25s both;
}

.hero-home__note {
  color: var(--color-ink-soft);
  max-width: 28rem;
  margin-bottom: var(--space-4);
  animation: fade-up 0.8s ease 0.4s both;
}

.hero-home__actions {
  animation: fade-up 0.8s ease 0.55s both;
}

@media (max-width: 860px) {
  .hero-home {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: auto;
  }

  .hero-home__media {
    min-height: 42vh;
  }
}

/* Offer strip */
.offer-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.offer-strip__item {
  padding: var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.offer-strip__item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

.offer-strip__item h3 {
  font-family: var(--font-display);
}

.offer-strip__item a {
  font-weight: 600;
  text-decoration: none;
}

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

/* Flagship panel */
.flagship {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  background: var(--color-accent-deep);
  color: #eef5f6;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
}

.flagship__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.flagship__body {
  padding: var(--space-5);
}

.flagship__body a.btn--highlight {
  margin-top: var(--space-2);
}

.flagship p {
  color: rgba(238, 245, 246, 0.88);
}

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

/* Cards — only for interactive listing */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

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

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: var(--space-3) var(--space-3) var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__body p {
  color: var(--color-ink-soft);
  flex: 1;
}

.card__link {
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--space-2);
}

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

.quote {
  border-left: 3px solid var(--color-highlight);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.55);
}

.quote__text {
  font-size: 1.05rem;
}

.quote__meta {
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.quote--long {
  border-left-color: var(--color-accent);
}

/* Page hero compact */
.page-hero {
  padding: var(--space-6) 0 var(--space-4);
}

.page-hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.page-hero--media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5);
  align-items: end;
}

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

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

/* Pricing */
.rate-block {
  display: grid;
  gap: var(--space-4);
}

.rate-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line);
}

.rate-row__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-accent-deep);
  text-align: right;
}

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

  .rate-row__price {
    text-align: left;
  }
}

.factors {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  padding: var(--space-4);
  border-radius: var(--radius);
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-3);
  max-width: 36rem;
}

.form__field {
  display: grid;
  gap: 0.35rem;
}

.form__field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-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(--color-accent);
  outline-offset: 1px;
}

.form__error {
  color: var(--color-error);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form__status {
  padding: var(--space-3);
  border-radius: var(--radius);
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--success {
  background: rgba(31, 107, 74, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(31, 107, 74, 0.35);
}

.form__status--error {
  background: rgba(155, 44, 44, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(155, 44, 44, 0.3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5);
}

.contact-aside {
  padding: var(--space-4);
  background: var(--color-accent-deep);
  color: #eef5f6;
  border-radius: var(--radius);
  height: fit-content;
}

.contact-aside a {
  color: #fff;
}

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

/* Service detail */
.detail-hero {
  padding-top: var(--space-5);
}

.detail-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.detail-meta strong {
  color: var(--color-ink);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.process-list {
  display: grid;
  gap: var(--space-3);
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.process-list__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-highlight);
  min-width: 2rem;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

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

.post-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.post-row:hover {
  opacity: 0.88;
}

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

.post-row__date {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

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

.prose {
  max-width: 42rem;
}

.prose p {
  font-size: 1.08rem;
}

/* Method page */
.method-steps {
  display: grid;
  gap: 0;
}

.method-step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-line);
}

.method-step__label {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-accent);
}

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

.legal h2 {
  margin-top: var(--space-5);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: var(--space-3) 0 var(--space-4);
}

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

.legal th {
  background: rgba(13, 92, 99, 0.08);
}

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

.page-404__code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-accent);
  margin: 0;
  line-height: 1;
}

/* Footer */
.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-6) 0 var(--space-4);
  background: #122026;
  color: #d5dee3;
}

.site-footer a {
  color: #f0f4f8;
}

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

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: var(--space-2);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__copy {
  width: min(100% - 2rem, var(--max));
  margin: var(--space-5) auto 0;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: #9aadb6;
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--space-3);
  background: rgba(18, 32, 38, 0.96);
  color: #eef2f5;
  border-top: 3px solid var(--color-highlight);
  animation: banner-up 0.35s ease;
}

.cookie-banner[hidden] {
  display: none !important;
}

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

.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
}

.cookie-banner__text a {
  color: #fff;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
}

.cookie-banner .btn--ghost {
  border-color: #fff;
  color: #fff;
}

.cookie-banner .btn--primary {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
}

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

@keyframes image-rise {
  from {
    opacity: 0.4;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
  }
  to {
    opacity: 1;
    letter-spacing: normal;
  }
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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