/* ============================================================
   COMMON — Reset, Typography, Utility, Scrollbar, Reveal
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--hw-orange) rgba(53,57,106,.12);
  scrollbar-width: thin;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--neutral-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 12px; }
::-webkit-scrollbar-track { background: rgba(53,57,106,.10); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--hw-orange) 0%, var(--hw-orange-dark) 100%);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.75);
}
::-webkit-scrollbar-thumb:hover { background: var(--hw-orange-dark); }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); line-height: 1.18; }
h2 { font-size: clamp(1.5rem,  3vw,   2.2rem);  line-height: 1.22; }
h3 { font-size: 1.25rem;                          line-height: 1.3; }

.section-title {
  font-family: var(--font-d);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s, transform .15s, border-color .2s;
  text-decoration: none;
  line-height: 1;
}
.btn--primary          { background: var(--orange-500); color: var(--white); }
.btn--primary:hover    { background: var(--orange-600); transform: translateY(-1px); }
.btn--outline          { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }
.btn--outline:hover    { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--outline-dark     { background: transparent; color: var(--navy-700); border: 1.5px solid var(--navy-700); }
.btn--outline-dark:hover { background: var(--navy-700); color: var(--white); }

/* ── Reveal animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity  0.9s var(--ease-soft),
    transform 1.0s var(--ease-soft);
}
.reveal.visible      { opacity: 1; transform: translateY(0); }
.reveal-delay-1      { transition-delay: 0.10s; }
.reveal-delay-2      { transition-delay: 0.20s; }
.reveal-delay-3      { transition-delay: 0.30s; }
.reveal-delay-4      { transition-delay: 0.40s; }

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal,
  .back-to-top,
  .top-btn,
  #site-header {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Responsive container ─────────────────────────────────── */
@media (max-width: 1200px) {
  .container { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 980px) {
  .container { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}
@media (max-width: 620px) {
  .container { padding-left: 20px; padding-right: 20px; }
}
