/* ============================================================
   BASE — Variables, Reset, Typography, Layout, Nav, Footer
   Shared across all pages. Do not add page-specific styles here.
   ============================================================ */

:root {
  --accent:        #ff5918;
  --accent-hover:  #e04e10;
  --bg:            #f8f8ff;
  --surface:       #ffffff;
  --text:          #252525;
  --text-muted:    #666666;
  --border:        #e8e8e8;
  --light:         #f5f5f5;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow:        0 4px 16px rgba(0,0,0,0.08);
  --shadow-hover:  0 8px 24px rgba(0,0,0,0.12);
  --transition:    all 0.25s ease;
  --max-width:     1200px;
  --nav-height:    68px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Layout ── */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 88px 0; }

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,89,24,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(255,89,24,0.06);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
}
.btn-ghost::after {
  content: ' →';
  transition: var(--transition);
}
.btn-ghost:hover::after { letter-spacing: 0.05em; }

/* ── Scroll progress bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 1100;
  transition: width 0.1s linear;
}
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(248,248,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--light);
}
.nav-links a.active { color: var(--accent); background: rgba(255,89,24,0.06); }

.nav-cta {
  margin-left: 8px;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Footer ── */
.footer {
  background: var(--light);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); max-width: 260px; line-height: 1.7; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); }
.footer-social img { width: 14px; height: 14px; }

/* ── Utility ── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height); left: 0;
    width: 100%; height: calc(100vh - var(--nav-height));
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; font-size: 1rem; }
  .nav-cta { margin-left: 0; width: 100%; margin-top: 8px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .container { width: 95%; padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
