:root {
  --home-ink: #102d30;
  --home-accent: #087b69;
  --home-paper: #f5f8f3;
  --home-line: #d7e5df;
  --home-ease: cubic-bezier(.22, 1, .36, 1);
}

body {
  background: var(--home-paper);
}

.site-header {
  background: #fafffb;
  border-color: var(--home-line);
  box-shadow: 0 4px 20px #102d300a;
}

#home.design-hero {
  position: relative;
  isolation: isolate;
  align-items: center;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: 0;
  margin: clamp(12px, 2vw, 28px) auto 0;
  width: calc(100% - clamp(24px, 5vw, 80px));
  padding: clamp(26px, 5vw, 74px);
  gap: clamp(28px, 5vw, 78px);
  overflow: clip;
  border: 1px solid #d0e4d9;
  border-radius: clamp(20px, 3vw, 36px);
  background: radial-gradient(ellipse at 90% 12%, #bde9d7, transparent 52%),
    linear-gradient(132deg, #f5fff6, #e3f2e8 72%, #d0e9dd);
  box-shadow: 0 18px 50px #143c3510;
}

#home .hero-copy { min-width: 0; padding: 0; }
#home .hero-copy .eyebrow { color: #236451; letter-spacing: .12em; }
#home .hero-copy h1 {
  color: var(--home-ink);
  font-size: clamp(36px, 5.1vw, 78px);
  line-height: .99;
  letter-spacing: -.06em;
  margin-block: 16px;
}
#home .hero-copy h1 span { color: var(--home-accent); }
#home .hero-copy .hero-tagline { color: #345851; font-size: clamp(16px, 1.6vw, 23px); }
#home .hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 380px;
  gap: 10px;
  margin-block: 24px;
}
#home .hero-trust > span {
  color: var(--home-accent);
  background: #ffffff94;
  border: 1px solid #caddd3;
  border-radius: 14px;
  padding: 8px 10px;
}
#home .hero-trust b { color: var(--home-ink); }
#home .hero-actions { flex-wrap: wrap; gap: 12px 18px; }
#home .primary-cta {
  background: var(--home-ink);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px #122e3640;
}
#home .primary-cta:hover { background: #17483f; }
#home .how-link { color: var(--home-ink); }
#home .hero-visual { gap: 10px; height: clamp(300px, 34vw, 520px); }
#home .hero-gallery-main {
  background-color: #d5e9df;
  border: 1px solid #b4d4c6;
  border-radius: clamp(14px, 2vw, 25px);
  box-shadow: 0 15px 30px #15332a23;
}
#home .hero-gallery-caption {
  color: var(--home-ink);
  padding: 8px 12px;
  background: #ffffffb8;
  border: 1px solid var(--home-line);
  border-radius: 12px;
}

#offers.website-offers-banner {
  background: #e7f3eb;
  border-color: #caddd3;
  border-radius: 22px;
  color: var(--home-ink);
}
#services.design-services { padding-block: clamp(32px, 5vw, 66px); }
#services > h2,
#how-it-works h2,
#about h2,
#help h2,
#book-now h2 {
  color: var(--home-ink);
  letter-spacing: -.04em;
}
#services > h2 { font-size: clamp(30px, 4vw, 54px); }
#services .catalog-row { border-top: 1px solid var(--home-line); padding-top: 20px; }
#services .catalog-track .design-service-card {
  border-color: var(--home-line);
  box-shadow: 0 5px 18px #102d300d;
}
#services .catalog-track .design-service-card:focus-within {
  border-color: var(--home-accent);
}
#services .catalog-track .design-service-card img {
  background: radial-gradient(ellipse at 32% 24%, #e2f4e9, #fafffb 68%);
}
#book-now.design-contact { border-color: var(--home-line); }
#main-content :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--home-accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  #home.design-hero { grid-template-columns: minmax(0, 1fr); }
  #home .hero-visual { height: auto; }
  #home .hero-gallery-caption { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference) {
  #home .hero-copy > * { animation: home-enter .64s var(--home-ease) both; }
  #home .hero-copy h1 { animation-delay: .07s; }
  #home .hero-copy .hero-tagline { animation-delay: .13s; }
  #home .hero-copy .hero-trust { animation-delay: .19s; }
  #home .hero-copy .hero-actions { animation-delay: .25s; }
  #home .hero-visual { animation: home-enter .8s .08s var(--home-ease) both; }
  #home .primary-cta,
  #services .design-service-card img { transition: transform .35s var(--home-ease); }
  #home .primary-cta:hover { transform: translateY(-2px); }
  #services .design-service-card:hover img { transform: scale(1.025); }

  @supports (animation-timeline: view()) {
    #offers,
    #services > h2,
    #services .design-section-head,
    #how-it-works,
    #about,
    #help {
      animation: home-section-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
  }
}

/* Let offscreen sections keep their place without painting their contents early. */
#offers,
#services .catalog-row,
#how-it-works,
#about,
#help {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 220px;
}

#services .catalog-row { contain-intrinsic-block-size: auto 340px; }

@media (max-width: 560px) {
  #services .catalog-row { contain-intrinsic-block-size: auto 465px; }
}

#services .catalog-track .design-service-card {
  background: linear-gradient(160deg, #fff 45%, #eaf6ef);
  border-radius: 22px;
  border-color: #caddd3;
}
#services .catalog-track .design-service-card:focus-within {
  border-color: var(--home-accent);
  box-shadow: 0 16px 32px #143c3629;
}
#services .design-service-card > div a {
  background: #e3f3eb;
  color: #143c36;
}
#services .design-service-card > div a:hover,
#services .design-service-card > div a:focus-visible {
  background: #143c36;
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  #services .catalog-track .design-service-card {
    transition: transform .35s var(--home-ease), box-shadow .35s var(--home-ease), border-color .25s;
  }
  #services .catalog-track .design-service-card:focus-within { transform: translateY(-4px); }

  @supports (animation-timeline: view()) {
    #services .catalog-track .design-service-card {
      animation: home-card-reveal linear both;
      animation-timeline: view(block);
      animation-range: entry 0% entry 80%;
    }
    #services .catalog-track .design-service-card:nth-child(even) {
      animation-range: entry 10% entry 93%;
    }
    #services .catalog-track .design-service-card:focus-within { animation: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  #services .catalog-track .design-service-card { transition: none; }
}

@keyframes home-card-reveal {
  from { opacity: .22; translate: 0 26px; scale: .96; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

#services .catalog-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 22px 18px 26px;
  scroll-padding-inline: 18px;
  scroll-snap-type: none;
  scroll-behavior: auto;
  scrollbar-width: thin;
}
#services .catalog-track .design-service-card {
  flex: 0 0 clamp(220px, 25vw, 300px);
  width: auto;
  min-height: 0;
  transform-origin: center;
}
#services .catalog-track:has(> .design-service-card:nth-child(2)):not(:has(> .design-service-card:nth-child(3))) {
  max-width: 460px;
}
#services .catalog-track:has(> .design-service-card:nth-child(3)):not(:has(> .design-service-card:nth-child(4))) {
  max-width: 690px;
}
#services .catalog-track .design-service-card:focus-within {
  z-index: 3;
  transform: translateY(-4px) scale(1.075);
  animation: none;
}
@media (any-hover: hover) {
  #services .catalog-track .design-service-card:hover {
    z-index: 3;
    transform: translateY(-4px) scale(1.075);
    border-color: var(--home-accent);
    box-shadow: 0 16px 32px #143c3629;
    animation: none;
  }
}
#services .catalog-track .design-service-card:hover img {
  transform: none;
}
@media (max-width: 560px) {
  #services .catalog-track { gap: 18px; padding-inline: 13px; }
  #services .catalog-track .design-service-card { flex-basis: min(76vw, 270px); }
}
@media (prefers-reduced-motion: reduce) {
  #services .catalog-track .design-service-card:hover,
  #services .catalog-track .design-service-card:focus-within { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #home *,
  #services *,
  #offers *,
  #how-it-works * { animation: none; transition: none; scroll-behavior: auto; }
}

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

@keyframes home-section-enter {
  from { opacity: .82; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-service-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1360px;
  width: calc(100% - clamp(24px, 5vw, 80px));
  margin: 14px auto 24px;
  padding: 13px clamp(12px, 2vw, 26px);
  box-sizing: border-box;
  background: #143c36;
  color: #fff;
  border-radius: 18px;
}
.home-service-strip strong { margin-right: 10px; }
.home-service-strip a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #7ba699;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.home-service-strip a:hover,
.home-service-strip a:focus-visible { background: #d9f3e6; color: #143c36; }
.home-service-strip a span { color: inherit; }

@media (prefers-reduced-motion: no-preference) {
  #home .hero-copy h1 { animation: home-title-entrance 1.15s .08s var(--home-ease) both; }
  #home .hero-visual { animation: home-gallery-entrance 1.25s .16s var(--home-ease) both; }
  .home-service-strip a { animation: home-enter .72s var(--home-ease) both; }
  .home-service-strip a:nth-of-type(2) { animation-delay: .1s; }
  .home-service-strip a:nth-of-type(3) { animation-delay: .2s; }
  .home-service-strip a:nth-of-type(4) { animation-delay: .3s; }
  body:has(#startup-notice[open]) #home .hero-copy > *,
  body:has(#startup-notice[open]) #home .hero-visual,
  body:has(#startup-notice[open]) .home-service-strip a {
    animation-name: none;
  }
}

@keyframes home-title-entrance {
  from { opacity: .05; transform: translateY(44px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}
@keyframes home-gallery-entrance {
  from { opacity: .1; transform: translateX(36px) scale(.94); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
