/* ============================================================
   4Ever Solutions — design tokens
   Palette: dark warm-navy base, single amber accent
   Type: Sora (display) + IBM Plex Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #10141b;
  --bg-panel: #171d26;
  --bg-panel-alt: #1b2634;
  --border: #2a323f;
  --text: #ecebe6;
  --text-muted: #8b93a3;
  --accent: #f2a93b;
  --accent-dim: #a8752c;
  --accent-soft: rgba(242, 169, 59, 0.12);
  --radius: 3px;
  --max-w: 1040px;
  --content-w: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text); }
p.lede { color: var(--text-muted); font-size: 1.1rem; max-width: var(--content-w); }
p.msg { color: var(--text-muted); font-size: 1.1rem; max-width: var(--content-w); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */

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

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }

nav.primary ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav.primary a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

nav.primary a[aria-current="page"] {
  position: relative;
}
nav.primary a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1.5rem;
  height: 2px;
  background: var(--accent);
}

.mobile-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  padding: 5.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 { max-width: 16ch; }

.hero .lede { margin-top: 1.2rem; margin-bottom: 2rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #14100a;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
}
.btn:hover { background: #f5b654; text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); background: transparent; color: var(--text); }

/* ---------- capability strip ---------- */

.capabilities {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.capabilities div {
  flex: 1 1 160px;
  padding: 1.4rem 1.5rem;
  border-right: 1px solid var(--border);
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.capabilities div:last-child { border-right: none; }

/* ---------- generic section ---------- */

section.block { padding: 4rem 0; }
section.block.alt { background: var(--bg-panel); }
section.block + section.block { border-top: 1px solid var(--border); }

.section-head { max-width: var(--content-w); margin-bottom: 2.2rem; }

/* ---------- reasons list ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.2rem;
  margin-top: 2rem;
}
.reasons h3 { margin-bottom: 0.4rem; color: var(--text); }
.reasons p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }
.reasons .num {
  display: block;
  color: var(--accent);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* ---------- services list ---------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row h3 { margin: 0; }
.service-row p { color: var(--text-muted); margin: 0; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info dt {
  font-family: 'Sora', sans-serif;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1.4rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 0.2rem 0 0; font-size: 1.02rem; }

form.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  margin-top: 1.1rem;
}
form.contact-form label:first-child { margin-top: 0; }

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
}
form.contact-form textarea { resize: vertical; min-height: 130px; }

form.contact-form .btn { margin-top: 1.6rem; }

#form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}
#form-status[data-state="success"] { color: #7fd39b; }
#form-status[data-state="error"] { color: #e08585; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-inner a { color: var(--text-muted); }
.footer-inner a:hover { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 700px) {
  .site-header-inner { flex-wrap: wrap; }
  nav.primary ul { gap: 1.2rem; flex-wrap: wrap; }
  nav.primary a[aria-current="page"]::after { bottom: -0.6rem; }
  .service-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .capabilities div { flex: 1 1 45%; border-bottom: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
