/* ==========================================================================
   Alona Digital Solution — Premium glass layer (2026 upgrade)
   Purely additive: loaded AFTER style.css and the Tailwind CDN.
   No markup, content, routes, forms or scripts are changed by this file.
   Selectors are prefixed with `html body` so they win over Tailwind utilities.
   ========================================================================== */

:root {
  --pr-green: #16A34A;
  --pr-green-deep: #0F7A37;
  --pr-orange: #F97316;
  --pr-ink: #0B1220;
  --pr-ease: cubic-bezier(.22, 1, .36, 1);

  --glass-bg: rgba(255, 255, 255, .58);
  --glass-bg-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .7);
  --glass-edge: rgba(17, 24, 39, .07);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 12px 32px -14px rgba(15, 40, 25, .18), 0 2px 6px rgba(15, 40, 25, .04);
  --glass-shadow-hover: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 28px 56px -22px rgba(22, 163, 74, .38), 0 6px 16px rgba(15, 40, 25, .06);
  --glass-blur: blur(16px) saturate(165%);

  --font-display: "Plus Jakarta Sans", "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", "Poppins", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Typography ---------- */
html body {
  font-family: var(--font-body);
  color: #0F172A;
  background-color: #F2F7F4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
html body h1, html body h2, html body h3, html body h4,
html body .section-title-lg, html body .nav-link-tool, html body .btn-fill-brand,
html body .btn-outline-brand, html body .btn-primary-pill, html body .btn-secondary-pill {
  font-family: var(--font-display);
}
html body h1 { letter-spacing: -.035em; }
html body h2, html body .section-title-lg { letter-spacing: -.028em; line-height: 1.12; }
html body h3 { letter-spacing: -.015em; }
html body main p { text-wrap: pretty; }
html body main h1, html body main h2 { text-wrap: balance; }

html body .section-title-lg { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }

/* Hero headline: bigger, tighter */
html body main > section:first-child h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  font-weight: 800;
}
html body main > section:first-child h1 + p,
html body main > section:first-child p.text-sm {
  font-size: clamp(.95rem, 1.35vw, 1.1rem);
  line-height: 1.7;
  color: #334155;
}

/* Animated brand gradient on the existing gradient text */
html body .text-gradient-brand {
  background-image: linear-gradient(95deg, #16A34A 0%, #22C55E 28%, #F97316 62%, #16A34A 100%);
  background-size: 220% 100%;
  animation: pr-gradient-pan 9s ease-in-out infinite alternate;
}
@keyframes pr-gradient-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Layered, floating background ---------- */
html body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 12% 8%, rgba(34, 197, 94, .28), transparent 62%),
    radial-gradient(34vmax 34vmax at 92% 14%, rgba(249, 115, 22, .20), transparent 60%),
    radial-gradient(40vmax 40vmax at 78% 92%, rgba(22, 163, 74, .22), transparent 62%),
    radial-gradient(30vmax 30vmax at 6% 86%, rgba(253, 186, 116, .16), transparent 60%);
  animation: pr-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes pr-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(3vmax, -2vmax, 0) scale(1.06); }
}
html body.bg-white { background-color: #F2F7F4; }

/* ---------- Scroll progress (element added by premium.js) ---------- */
#pr-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--pr-green), var(--pr-orange));
  z-index: 1100; pointer-events: none;
}

/* ---------- Header ---------- */
html body #main-nav-header {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 1px 0 rgba(17, 24, 39, .05);
  transition: background .35s ease, box-shadow .35s ease;
}
html body #site-header.is-scrolled #main-nav-header {
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 10px 30px -12px rgba(15, 40, 25, .22);
}
html body .header-topbar { background: linear-gradient(90deg, #0B1220, #0F1F18 55%, #0B1220); }
html body .nav-link-tool { position: relative; border-bottom-color: transparent !important; letter-spacing: -.005em; }
html body .nav-link-tool::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pr-green), var(--pr-orange));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--pr-ease);
}
html body .nav-link-tool:hover::after, html body .nav-link-tool.active::after { transform: scaleX(1); }

html body .dropdown-panel {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 1.1rem;
  box-shadow: 0 30px 60px -20px rgba(15, 40, 25, .3), 0 1px 0 rgba(255, 255, 255, .9) inset;
}
html body .dropdown-panel.open { animation: slideDown .22s var(--pr-ease) both; }
html body .dropdown-item { border-radius: .8rem; }
html body #mobile-menu {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
html body #mobile-menu.active { animation: slideDown .25s var(--pr-ease) both; }
html body .mobile-link { border-radius: .9rem; }
html body #mobile-menu-btn {
  background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---------- Buttons ---------- */
html body .btn-fill-brand,
html body .btn-primary-pill,
html body .btn-outline-brand,
html body .btn-secondary-pill {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--pr-ease), box-shadow .35s var(--pr-ease), background-color .25s ease, border-color .25s ease, color .25s ease;
}
html body .btn-fill-brand,
html body .btn-primary-pill {
  color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, #22C55E 0%, #16A34A 55%, #138A3E 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 10px 24px -8px rgba(22, 163, 74, .55), 0 2px 6px rgba(22, 163, 74, .25);
}
html body .btn-fill-brand { border-radius: .85rem; padding: .65rem 1.3rem; }
html body .btn-primary-pill { border-radius: 9999px; }
html body .btn-fill-brand:hover,
html body .btn-primary-pill:hover {
  background: linear-gradient(180deg, #2BD16B 0%, #19B04F 55%, #14943F 100%);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 16px 34px -10px rgba(22, 163, 74, .7), 0 0 0 4px rgba(34, 197, 94, .16);
}
html body .btn-outline-brand,
html body .btn-secondary-pill {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(22, 163, 74, .35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 8px 20px -10px rgba(15, 40, 25, .25);
}
html body .btn-outline-brand { border-radius: .85rem; padding: .65rem 1.3rem; border-width: 1px; }
html body .btn-outline-brand:hover,
html body .btn-secondary-pill:hover {
  background: rgba(255, 255, 255, .85); color: var(--pr-green-deep); border-color: var(--pr-green);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 #fff inset, 0 16px 30px -12px rgba(22, 163, 74, .45), 0 0 0 4px rgba(34, 197, 94, .12);
}
/* light sweep on every premium button */
html body .btn-fill-brand::after, html body .btn-primary-pill::after,
html body .btn-outline-brand::after, html body .btn-secondary-pill::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--pr-ease);
}
html body .btn-fill-brand:hover::after, html body .btn-primary-pill:hover::after,
html body .btn-outline-brand:hover::after, html body .btn-secondary-pill:hover::after { transform: translateX(120%); }
html body .btn-fill-brand:active, html body .btn-primary-pill:active,
html body .btn-outline-brand:active, html body .btn-secondary-pill:active { transform: translateY(0) scale(.97); }

/* Tailwind-styled buttons/links inside pages (CTA, form submit, filters) */
html body main :is(a, button)[class*="bg-[#16A34A]"],
html body main :is(a, button)[class*="from-[#16A34A]"],
html body main a[class*="bg-white"][class*="rounded-full"] {
  transition: transform .35s var(--pr-ease), box-shadow .35s var(--pr-ease), background-color .25s ease, filter .25s ease;
}
html body main :is(a, button)[class*="bg-[#16A34A]"]:hover,
html body main :is(a, button)[class*="from-[#16A34A]"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(22, 163, 74, .6), 0 0 0 4px rgba(34, 197, 94, .15);
}
html body main a[class*="bg-white"][class*="rounded-full"]:hover {
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .14), 0 0 34px rgba(34, 197, 94, .45);
}
html body main :is(a, button)[class*="bg-[#16A34A]"]:active,
html body main :is(a, button)[class*="from-[#16A34A]"]:active,
html body main a[class*="bg-white"][class*="rounded-full"]:active { transform: scale(.97); }
html body .portfolio-filter-btn { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html body .portfolio-filter-btn:hover { transform: translateY(-2px); }
html body .portfolio-filter-btn:active { transform: scale(.97); }

/* ---------- Sections: glass panels ---------- */
html body main { position: relative; }
html body main > section[class*="bg-gradient"]:not([class*="from-[#111111]"]) {
  background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .42));
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  box-shadow: var(--glass-shadow);
}
/* Dark CTA keeps its identity, gains glow + inner highlight */
html body main > section[class*="from-[#111111]"] {
  border-radius: 2rem;
  border-color: rgba(34, 197, 94, .35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 40px 80px -30px rgba(15, 40, 25, .6), 0 0 80px -30px rgba(34, 197, 94, .45);
}
html body main { row-gap: 0; }
html body main.space-y-16 > * + * { margin-top: clamp(3.5rem, 6vw, 5.5rem); }

/* Hero: strongest glass, soft top reflection */
html body main > section:first-child {
  background: linear-gradient(150deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .38) 55%, rgba(236, 253, 245, .5));
  border-radius: 2.25rem;
  box-shadow: 0 1px 0 #fff inset, 0 40px 90px -40px rgba(15, 60, 35, .35), 0 2px 8px rgba(15, 40, 25, .04);
}
html body main > section:first-child::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 38%);
}
html body main > section:first-child > * { position: relative; }
html body main > section:first-child .blob { position: absolute; }
html body .blob { filter: blur(90px); opacity: .9; }
html body main > section:first-child img[src*="hero"],
html body main > section:first-child img:not([class*="rounded"]) {
  filter: drop-shadow(0 30px 40px rgba(15, 60, 35, .22));
  animation: pr-float 7s ease-in-out infinite;
}
@keyframes pr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

html body .hero-sliding-marquee {
  background: rgba(255, 255, 255, .55) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, .8) !important;
  box-shadow: 0 1px 0 #fff inset, 0 8px 22px -14px rgba(15, 40, 25, .3);
}

/* ---------- Cards ---------- */
html body .card-surface:not(.testimonial-card),
html body .faq-item,
html body main :is(div, form)[class*="bg-white"][class*="rounded-3xl"][class*="border"],
html body main div[class*="rounded-2xl"][class*="from-[#16A34A]/5"],
html body main div[class*="rounded-2xl"][class*="bg-[#16A34A]/5"] {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 1.4rem;
  box-shadow: var(--glass-shadow);
}
html body .testimonial-card.card-surface {
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .7));
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  box-shadow: var(--glass-shadow);
}
html body .card-surface {
  transition: transform .5s var(--pr-ease), box-shadow .5s var(--pr-ease), border-color .35s ease, background-color .35s ease;
}
html body .card-surface:not(.absolute):not(.fixed):not(.sticky) { position: relative; }
html body .card-surface:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, .45);
  box-shadow: var(--glass-shadow-hover);
  background: var(--glass-bg-strong);
}
/* glass reflection that follows the pointer (vars set by premium.js) */
html body .card-surface:not(.absolute):not(.fixed)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 62%);
  opacity: 0; transition: opacity .4s ease;
}
html body .card-surface:hover::after { opacity: 1; }
/* settled: hover responds instantly after the entrance finishes */
html body .reveal.is-settled { transition-delay: 0s; transition-duration: .5s, .5s; }

html body .icon-tile {
  background: linear-gradient(145deg, rgba(34, 197, 94, .2), rgba(34, 197, 94, .06));
  border: 1px solid rgba(34, 197, 94, .25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  border-radius: .95rem;
  transition: transform .45s var(--pr-ease), box-shadow .45s var(--pr-ease);
}
html body .card-surface:hover .icon-tile { transform: scale(1.08) rotate(-4deg); box-shadow: 0 8px 20px -6px rgba(22, 163, 74, .45); }

html body .pill-badge {
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 #fff inset, 0 8px 20px -12px rgba(15, 40, 25, .3);
}
html body .dot-ping::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit;
  animation: pingSlow 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

/* Images inside content get a refined frame */
html body main img[class*="rounded-3xl"] { box-shadow: 0 30px 60px -28px rgba(15, 40, 25, .45); border-color: rgba(255, 255, 255, .8); }

/* ---------- FAQ ---------- */
html body .faq-item:hover { border-color: rgba(34, 197, 94, .4); }
html body .faq-item.open { background: var(--glass-bg-strong); box-shadow: var(--glass-shadow-hover); }
html body .faq-answer { animation: fadeIn .35s var(--pr-ease) both; border-top-color: rgba(17, 24, 39, .06); }
html body .faq-question { font-family: var(--font-display); }

/* ---------- Forms ---------- */
html body .field-input {
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: .95rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s var(--pr-ease);
}
html body .field-input:hover { border-color: rgba(34, 197, 94, .45); }
html body .field-input:focus { background: rgba(255, 255, 255, .95); border-color: var(--pr-green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .16), 0 10px 24px -14px rgba(22, 163, 74, .5); }
html body #footer-newsletter-form input { background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- Footer ---------- */
html body #site-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .85));
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -20px 50px -30px rgba(15, 40, 25, .25);
}
html body .social-circle-outline { background: rgba(255, 255, 255, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .35s var(--pr-ease), color .2s ease, border-color .2s ease, box-shadow .3s ease; }
html body .social-circle-outline:hover { transform: translateY(-3px); }
html body .footer-link { transition: color .2s ease, transform .3s var(--pr-ease); display: inline-block; }
html body .footer-link:hover { transform: translateX(3px); }

/* ---------- Back to top ---------- */
html body #back-to-top {
  background: rgba(15, 23, 42, .78);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .25);
  transform: translateY(10px);
}
html body #back-to-top.active { transform: translateY(0); }
html body #back-to-top:hover { background: var(--pr-green); transform: translateY(-3px); box-shadow: 0 14px 30px -8px rgba(22, 163, 74, .6); }

/* ---------- Loader ---------- */
html body #pageLoader {
  background:
    radial-gradient(40vmax 40vmax at 20% 15%, rgba(34, 197, 94, .22), transparent 60%),
    radial-gradient(36vmax 36vmax at 85% 85%, rgba(249, 115, 22, .18), transparent 60%),
    rgba(244, 249, 246, .82);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: opacity .5s ease, visibility .5s ease;
}
html body #pageLoader > div { padding: 2rem 2.5rem; border-radius: 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
html body #pageLoader > div::after {
  content: ""; display: block; width: 120px; height: 3px; margin: 0 auto; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--pr-green), var(--pr-orange), transparent);
  background-size: 200% 100%; animation: pr-load-bar 1.3s linear infinite;
}
@keyframes pr-load-bar { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Existing marquees / lightbox: glass touches ---------- */
html body .logo-lightbox-overlay { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(10, 14, 20, .72); }
html body .logo-lightbox-overlay img { border-radius: 1.5rem; }
html body .logo-lightbox-close { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html body .client-logo-card { background: rgba(255, 255, 255, .75); border: 1px solid var(--glass-border); }
html body .photo-marquee-item { border: 1px solid rgba(255, 255, 255, .8); }

/* ---------- Entrance for sections tagged by premium.js (no-JS safe) ---------- */
html.pr-js .pr-reveal {
  opacity: 0; transform: translateY(26px) scale(.985);
  transition: opacity .8s var(--pr-ease), transform .8s var(--pr-ease);
}
html.pr-js .pr-reveal.pr-in { opacity: 1; transform: none; }

/* ---------- Accessibility ---------- */
html body :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--pr-green); outline-offset: 3px; border-radius: .6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  html body main > section[class*="bg-gradient"]:not([class*="from-[#111111]"]) { border-radius: 1.75rem; }
}
@media (max-width: 640px) {
  html body main > section[class*="bg-gradient"], html body main > section:first-child { border-radius: 1.5rem; }
  html body .card-surface:hover { transform: translateY(-3px); }
  /* lighter blur on phones keeps scrolling smooth */
  html body .card-surface:not(.testimonial-card), html body main > section[class*="bg-gradient"] {
    -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%);
  }
  html body::before { animation-duration: 40s; }
}
@media (hover: none) {
  html body .card-surface:hover { transform: none; }
  html body .card-surface::after { display: none; }
}

/* Fallback when backdrop-filter is unsupported: stay readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-bg: rgba(255, 255, 255, .92); --glass-bg-strong: rgba(255, 255, 255, .97); }
  html body #main-nav-header, html body main > section[class*="bg-gradient"]:not([class*="from-[#111111]"]) { background: rgba(255, 255, 255, .94); }
}

/* Respect reduced motion: keep layout, drop movement */
@media (prefers-reduced-motion: reduce) {
  html body::before, html body .text-gradient-brand,
  html body main > section:first-child img, html body #pageLoader > div::after { animation: none !important; }
  html.pr-js .pr-reveal { opacity: 1; transform: none; transition: none; }
  html body .card-surface:hover, html body .btn-fill-brand:hover, html body .btn-primary-pill:hover,
  html body .btn-outline-brand:hover, html body .btn-secondary-pill:hover { transform: none; }
}
