/* ============================
   MajesticWorks — style.css
   Cloudflare-inspired: white canvas,
   warm charcoal text, single orange accent
   ============================ */

:root {
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --bg-elevated: #FFFFFF;
  --border: #E4E7EB;
  --text-primary: #1D1F20;
  --text-secondary: #55595C;
  --text-tertiary: #8A9099;
  --accent: #E2680C;
  --accent-hover: #B8540A;

  --max-width: 1080px;
  --radius: 8px;

  --space-section-mobile: 64px;
  --space-section-desktop: 108px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

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

.header-inner nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-link {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

/* ---------- Shared section spacing ---------- */

.section {
  padding: var(--space-section-mobile) 0;
  border-top: 1px solid var(--border);
}

.section.operator,
.section.values {
  background: var(--bg-alt);
}

@media (min-width: 900px) {
  .section {
    padding: var(--space-section-desktop) 0;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 16px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 16px;
  max-width: 26ch;
}

.section-copy {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 0 40px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 100px 0 92px;
}

@media (min-width: 900px) {
  .hero {
    padding: 148px 0 128px;
  }
}

.hero-title {
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}

.hero-strong,
.hero-muted {
  display: block;
}

.hero-strong {
  color: var(--text-primary);
}

.hero-muted {
  color: var(--text-tertiary);
}

.hero-copy {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 0 40px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
  box-shadow: 0 1px 2px rgba(226, 104, 12, 0.16);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 2px 6px rgba(226, 104, 12, 0.22);
}

/* ---------- Services ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(29, 31, 32, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(29, 31, 32, 0.06);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.card p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- How it works ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 720px) {
  .steps {
    flex-direction: row;
    gap: 24px;
  }
  .step {
    flex: 1;
    border-top: 2px solid var(--border);
    padding-top: 20px;
  }
}

.step-number {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.step-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0;
  max-width: 30ch;
}

/* ---------- Values / Operator (alt background sections) ---------- */

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 20px;
}

.principles li {
  position: relative;
  padding-left: 20px;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Contact ---------- */

.contact .section-copy {
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin: 0 0 6px;
}

.footer-note {
  margin-top: 12px;
}