/* Base reset, typography and site chrome (header, footer, floating controls) */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; color: var(--su-muted); background: var(--su-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: inherit; line-height: 1.2; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--su-accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .3s, backdrop-filter .3s, border-color .3s; }
.site-header.is-scrolled, body.nav-open .site-header { background: rgba(10, 13, 20, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--su-border); }
[data-theme=light] .site-header.is-scrolled, [data-theme=light] body.nav-open .site-header { background: rgba(255, 255, 255, .85); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1320px; margin: 0 auto; padding: 14px 24px; }
.site-logo img, .footer-logo img { display: block; width: auto; height: 44px; }
.logo-light { display: none !important; }
[data-theme=light] .logo-dark { display: none !important; }
[data-theme=light] .logo-light { display: block !important; }
.site-nav ul { display: flex; align-items: center; gap: 6px; }
.site-nav a { display: block; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--su-text); opacity: .8; transition: opacity .2s, color .2s, background .2s; }
.site-nav a:hover { opacity: 1; background: var(--su-surface); }
.site-nav li.active > a { opacity: 1; color: var(--su-accent-2); background: var(--su-surface); }
.site-header-actions { display: flex; align-items: center; gap: 12px; }
.su-header-cta { display: inline-flex; align-items: center; padding: 10px 22px; border-radius: 999px; background: var(--su-accent); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px -8px var(--su-glow); transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.su-header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px var(--su-accent); color: #fff; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--su-border); background: var(--su-surface); color: var(--su-text); cursor: pointer; padding: 0; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--su-accent); }
#themeToggle .fa-moon { display: none; }
[data-theme=light] #themeToggle .fa-moon { display: inline; }
[data-theme=light] #themeToggle .fa-sun { display: none; }
.nav-toggle { display: none; }
.su-burger { display: grid; gap: 5px; width: 20px; }
.su-burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, width .2s; }
.su-burger i:nth-child(2) { width: 70%; margin-left: auto; }
body.nav-open .su-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .su-burger i:nth-child(2) { opacity: 0; }
body.nav-open .su-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  .site-header-inner { padding: 12px 18px; }
  .nav-toggle { display: inline-grid; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 18px 22px; background: var(--su-bg); border-bottom: 1px solid var(--su-border); }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 14px 16px; border-radius: 14px; font-size: 16px; }
}
@media (max-width: 575px) { .su-header-cta { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--su-surface); border-top: 1px solid var(--su-border); padding: 72px 0 0; color: var(--su-muted); }
.footer-about { margin: 18px 0 20px; max-width: 340px; line-height: 1.7; }
.footer-title { color: var(--su-text); font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.footer-list li { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.footer-list a, .footer-legal-links a { transition: color .2s; }
.footer-list a:hover, .footer-legal-links a:hover { color: var(--su-accent-2); }
.footer-contact i { color: var(--su-accent-2); margin-top: 5px; width: 16px; text-align: center; }
.footer-bottom { margin-top: 56px; padding: 22px 0 28px; border-top: 1px solid var(--su-border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; }
@media (max-width: 767px) { .footer-bottom { flex-direction: column; text-align: center; } .footer-legal-links { justify-content: center; } }

/* ---------- Floating controls ---------- */
.to-top { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--su-border); background: var(--su-surface); color: var(--su-text); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--su-accent); border-color: var(--su-accent); color: #fff; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.reveal-on .su-head, .reveal-on .su-card, .reveal-on .su-feature, .reveal-on .su-step, .reveal-on .su-stat, .reveal-on .su-member, .reveal-on .su-proj, .reveal-on .su-review, .reveal-on .su-contact-item, .reveal-on .su-formcard, .reveal-on .su-cta, .reveal-on .su-aside, .reveal-on .su-flow, .reveal-on .accordion-item { opacity: 0; transform: translateY(22px); transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms), border-color .25s, box-shadow .25s; }
.reveal-on .is-in { opacity: 1; transform: none; }
.reveal-on .su-card.is-in:hover, .reveal-on .su-proj.is-in:hover { transform: translateY(-6px); }
.reveal-on .swiper .su-review, .reveal-on .swiper .su-flow { opacity: 1; transform: none; }
