/* Marcum's Managed Services — modern stylesheet */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #14171c;
  --muted: #5b6573;
  --line: #e4e7ec;
  --dark: #0e1116;
  --accent: #ff6600;
  --accent-dark: #d95500;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand { margin-right: auto; }
.brand img { height: 52px; width: auto; }

/* Compact header on desktop */
@media (min-width: 900px) {
  .site-header .container { padding-block: 10px; }
  .brand img { height: 60px; }
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle svg { width: 22px; height: 22px; }

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

.nav a {
  color: #d5d9e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}

.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .2s;
}

.header-call:hover { background: #ff7f2a; }
.header-call svg { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s, background .2s, border-color .2s;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: #ff7f2a; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255, 102, 0, .35), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(255, 102, 0, .15), transparent 60%),
    var(--dark);
}

.hero .container { padding-block: clamp(64px, 11vw, 128px); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 20px;
  max-width: 16ch;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.hero p {
  max-width: 58ch;
  margin: 0 0 32px;
  font-size: clamp(17px, 2vw, 20px);
  color: #c3c9d3;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-logo {
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.hero-logo img { width: 100%; max-width: 480px; height: auto; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 260px; }
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(255, 102, 0, .3), transparent 60%),
    var(--dark);
}

.page-hero .container { padding-block: clamp(44px, 7vw, 80px); }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -.02em; }
.page-hero p { margin: 0; max-width: 60ch; color: #c3c9d3; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 10px); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.015em; }
.section-head p { margin: 0; color: var(--muted); }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #ffd3b3;
  box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 16px 36px rgba(16, 24, 40, .1);
}

.card h3 { margin: 16px 0 8px; font-size: 20px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--accent-dark);
  background: #fff1e6;
}

.icon svg { width: 24px; height: 24px; }

/* Services page */
.service-list { display: grid; gap: 20px; }

.service {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.service .icon { width: 56px; height: 56px; border-radius: 14px; }
.service h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; }
.service p { margin: 0; color: var(--muted); }

/* About */
.split { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; align-items: start; }
.prose p { margin: 0 0 20px; color: #2b313b; font-size: 18px; }
.prose p:last-child { margin-bottom: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.panel h3 { margin: 0 0 16px; font-size: 18px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checklist svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent-dark); }

/* Owner / bio */
.owner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.owner-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: var(--shadow);
  background: var(--dark);
}

.owner h2 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.015em; }
.owner .owner-role { margin: 0 0 20px; color: var(--accent-dark); font-weight: 600; letter-spacing: .03em; font-size: 16px; }
.owner p { margin: 0 0 16px; color: #2b313b; font-size: 18px; }
.owner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #232a35; }

.more-link { margin: 32px 0 0; font-weight: 600; }

@media (max-width: 820px) {
  .owner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .owner-photo { width: 200px; height: 200px; }
  .owner-actions { justify-content: center; }
}

/* CTA band */
.cta { margin-bottom: clamp(48px, 7vw, 88px); }

.cta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(255, 102, 0, .45), transparent 65%),
    var(--dark);
}

.cta-box h2 { margin: 0 0 8px; font-size: clamp(24px, 3.5vw, 34px); line-height: 1.2; }
.cta-box p { margin: 0; color: #c3c9d3; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #aab1bd; font-size: 15px; }

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding-block: 56px 36px;
}

.site-footer img { height: 100px; width: auto; margin-bottom: 14px; }
.site-footer h4 { margin: 0 0 12px; color: #fff; font-size: 15px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #d5d9e0; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: grid; gap: 8px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 20px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 24px; }
}

/* Compact header: hamburger for links below 950px wide, phone number stays visible */
@media (max-width: 949px) {
  .site-header .container { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .brand img { height: 46px; }
  .nav-toggle { display: grid; }
  .header-call { padding: 10px 14px; font-size: 14px; }
  .call-label { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 16px; border-radius: 12px; }
}

@media (max-width: 400px) {
  .brand img { height: 40px; }
  .header-call { padding: 9px 12px; font-size: 13px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .service { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
}

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