/* Motion and polish shared by every page. No libraries. */
@view-transition { navigation: auto; }

/* --- hero background: slow crossfade between real photographs --- */
.hero-bg { animation: kenburns 18s ease-in-out infinite alternate; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.45); opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.on { opacity: 1; animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }

/* --- hero photo showcase --- */
.showcase { position: relative; width: 100%; max-width: 440px; justify-self: end; aspect-ratio: 4 / 5; perspective: 900px; }
.show-card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); background: #1b2a1c; transition: transform .35s ease; }
.show-card figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.show-card figure.on { opacity: 1; }
.show-card img { width: 100%; height: 100%; object-fit: cover; }
.show-card figure.on img { animation: kenburns 8s ease-out forwards; }
.show-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 20px; color: #fff; font-weight: 700; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.show-chip { position: absolute; z-index: 2; left: -26px; top: 30px; background: rgba(255,255,255,.94); color: #1b5e20; border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: .82rem; box-shadow: 0 14px 34px rgba(0,0,0,.3); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* --- cards react to the pointer --- */
@media (hover: hover) {
  .svc, .bcard, .qcard, .pcard, .icard, .side-card { transition: transform .3s ease, box-shadow .3s ease, opacity .6s ease; }
  .svc:hover, .bcard:hover, .qcard:hover { transform: translateY(-8px) !important; box-shadow: 0 22px 44px rgba(27,94,32,.16); }
  .svc, .bcard, .qcard { position: relative; }
  .svc::after, .bcard::after, .qcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(76,175,80,.16), transparent 70%); }
  .svc:hover::after, .bcard:hover::after, .qcard:hover::after { opacity: 1; }
  .svc-img img, .bimg img, .pcard img { transition: transform .7s ease; }
  .svc:hover .svc-img img, .bcard:hover .bimg img, .pcard:hover img { transform: scale(1.08); }
}

/* --- section headings get a growing underline --- */
.sh:not(.sh-photo) h2::after { content: ''; display: block; width: 0; height: 3px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, #2e7d32, #f59e0b); transition: width .9s ease .25s; }
.sh.center h2::after { margin-left: auto; margin-right: auto; }
.sh.in h2::after { width: 72px; }

/* --- buttons shimmer --- */
.btn-primary { background-image: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0; transition: background-position .7s ease, transform .22s, box-shadow .22s; }
.btn-primary:hover { background-position: -40% 0; }

@media (max-width: 900px) { .showcase, .show-chip { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-slide.on, .show-card figure.on img, .show-chip { animation: none !important; }
  @view-transition { navigation: none; }
}
@media print { .showcase, .hero-slide { display: none !important; } }

/* --- services slider --- */
.svc-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.svc-nav button { cursor: pointer; border: 1.5px solid #2e7d32; background: #fff; color: #1b5e20; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .2s; }
.svc-nav button:hover { background: #2e7d32; color: #fff; transform: scale(1.08); }
.svc-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.svc-dots { display: flex; gap: 6px; }
.svc-nav .svc-dots button { width: 10px; height: 10px; border: 0; padding: 0; border-radius: 10px; background: rgba(46,125,50,.25); transition: width .35s, background .35s; }
.svc-nav .svc-dots button.on { width: 28px; background: #2e7d32; }
.svc-count { font: 400 .75rem 'IBM Plex Mono', monospace; color: #555; min-width: 56px; text-align: center; }
.svc-progress { height: 3px; margin: 14px auto 0; max-width: 220px; border-radius: 3px; background: rgba(46,125,50,.15); overflow: hidden; }
.svc-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #2e7d32, #f59e0b); transform-origin: left; transform: scaleX(0); }
.svc-progress i.run { animation: svcfill 4.5s linear forwards; }
@keyframes svcfill { to { transform: scaleX(1); } }

/* cards in view stand out; the rest wait at the edge */
.svc-body h3, .svc-body p, .svc-more, .svc-tag-overlay { transition: transform .45s ease, opacity .45s ease; }
.svc-scroll .svc:not(.seen) .svc-body h3, .svc-scroll .svc:not(.seen) .svc-body p, .svc-scroll .svc:not(.seen) .svc-more { opacity: 0; transform: translateY(14px); }
.svc.seen .svc-body p { transition-delay: .08s; }
.svc.seen .svc-more { transition-delay: .16s; }
.svc-scroll .svc:not(.seen) .svc-tag-overlay { opacity: 0; transform: translateX(-14px); }
.svc.seen .svc-img img { animation: svczoom 1.1s ease both; }
.svc.seen:hover .svc-img img { animation: none; transform: scale(1.1); }
@keyframes svczoom { from { transform: scale(1.18); } to { transform: scale(1); } }
@media (hover: none) { .svc-nav .svc-dots { display: none; } }
@media (prefers-reduced-motion: reduce) { .svc-progress { display: none; } .svc.seen .svc-img img { animation: none; } }

/* chat button matches the WhatsApp button on every page */
body .gv-chat-toggle { width: 50px; height: 50px; left: 18px; bottom: 18px; }
body .gv-chat-toggle svg { width: 23px; height: 23px; }
