/* =============================================
   BASE STYLES — Reset + Global
   ============================================= */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: var(--text-2xl); font-weight: 700; }
h2 { font-size: var(--text-xl); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 600; }
h4 { font-size: var(--text-base); font-weight: 600; }
p  { font-size: var(--text-base); color: var(--color-text-muted); }

.display-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.display-2xl {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-16));
}

.container--wide {
  max-width: 1440px;
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section--hero {
  padding-block: 0;
}

.grid { display: grid; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.8em 1.75em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 80, 10, 0.35);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--ghost {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.btn--ghost-inverse {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  background: transparent;
}
.btn--ghost-inverse:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn--lg {
  padding: 1em 2.25em;
  font-size: var(--text-base);
}

/* =============================================
   BADGE / LABEL
   ============================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.3em 0.85em;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge--orange {
  background: var(--color-primary-highlight);
  color: var(--color-primary-active);
}
.badge--dark {
  background: var(--color-slate);
  color: #fff;
}
.badge--muted {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}

/* =============================================
   CARDS
   ============================================= */

.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* =============================================
   FORM ELEMENTS
   ============================================= */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75em 1em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* =============================================
   DIVIDER
   ============================================= */

.divider {
  height: 1px;
  background: var(--color-divider);
  border: none;
}

/* =============================================
   SECTION HEADER
   ============================================= */

.section-header {
  max-width: 680px;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section-header--center {
  margin-inline: auto;
  text-align: center;
}
.section-header .badge { margin-bottom: var(--space-4); }
.section-header h2 { margin-bottom: var(--space-4); color: var(--color-text); }
.section-header p { font-size: var(--text-base); max-width: 55ch; }
.section-header--center p { margin-inline: auto; }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

.fade-in {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

/* =============================================
   DARK MODE TOGGLE
   ============================================= */

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

/* =============================================
   NAV
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--duration-base) var(--ease-out);
}
.site-header--scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}
.nav-logo svg { width: 36px; height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out);
}

/* =============================================
   MOBILE NAV
   ============================================= */

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  transition: color var(--duration-fast);
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--color-primary); }

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--color-slate);
  color: var(--color-on-dark);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-12);
}
.footer-brand .nav-logo { color: #fff; }
.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-on-dark-muted);
  max-width: 28ch;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
  margin-bottom: var(--space-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-on-dark-muted);
  transition: color var(--duration-fast);
}
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  margin-top: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-on-dark-muted);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

/* =============================================
   STAT STRIP
   ============================================= */

.stat-strip {
  background: var(--color-slate);
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-item .stat-label {
  font-size: var(--text-sm);
  color: rgba(245,244,240,0.65);
  font-weight: 500;
}

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   TESTIMONIAL
   ============================================= */

.testimonial-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.testimonial-stars { display: flex; gap: 2px; color: #f59e0b; }
.testimonial-text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--color-surface-offset);
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: var(--text-sm); color: var(--color-text); }
.testimonial-role { font-size: var(--text-xs); color: var(--color-text-muted); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */

.page-hero {
  background: var(--color-slate);
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,80,10,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .badge { margin-bottom: var(--space-4); }
.page-hero h1 {
  color: #fff;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
  max-width: 16ch;
}
.page-hero p { color: var(--color-on-dark-muted); max-width: 50ch; font-size: var(--text-lg); }
