/* ==========================================================================
   Elevatiamedia — Design System
   Concept: "Authority, visualized." Every DR score, traffic number and
   ranking is real data — so data gets its own typographic voice (mono),
   and the signature motif is a rising step-graph (the DR ladder) that
   echoes the pricing tiers throughout the site.
   ========================================================================== */

:root {
  /* Color */
  --ink: #0e1424;          /* deep navy — dark sections, primary headings */
  --ink-soft: #171f36;     /* elevated dark surface */
  --paper: #f6f7fb;        /* cool off-white page background */
  --paper-raised: #ffffff; /* card surfaces */
  --slate: #1b2130;        /* primary body text on light */
  --slate-mute: #5b6072;   /* secondary text */
  --line: #dde1ec;         /* hairline borders on light */
  --line-dark: #2a3350;    /* hairline borders on dark */
  --signal: #17b897;       /* teal — organic growth / traffic */
  --signal-strong: #0f9a80;
  --authority: #4f5bd5;    /* indigo — links / domain authority */
  --authority-soft: #eef0fd;
  --amber: #e7a23c;        /* sparingly — flagged/attention states */

  /* Type */
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Scale */
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1180px;
  --shadow-card: 0 1px 2px rgba(14,20,36,0.04), 0 8px 24px rgba(14,20,36,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.5rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--slate-mute); }
.lede { font-size: 1.15rem; color: var(--slate-mute); }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--signal);
  border-radius: 2px;
  display: inline-block;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--ink); color: #cdd2e6; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #9aa2c0; }
.section-raised { background: var(--paper-raised); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--authority); outline-offset: 3px; }
.btn-primary { background: var(--signal); color: #06231c; }
.btn-primary:hover { background: var(--signal-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: var(--line-dark); }
.btn-ghost-dark:hover { border-color: #6c7396; }
.btn-block { width: 100%; justify-content: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,251,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--slate); }
.nav-links a:hover { color: var(--authority); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { height: 28px; width: auto; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.02em; }

/* The Ladder — signature motif: rising step-graph tying DR tiers together */
.ladder { display: flex; align-items: flex-end; gap: 4px; height: 46px; }
.ladder i { display: block; width: 8px; background: var(--signal); border-radius: 2px 2px 0 0; opacity: 0.9; }
.ladder i:nth-child(1) { height: 30%; }
.ladder i:nth-child(2) { height: 48%; }
.ladder i:nth-child(3) { height: 64%; }
.ladder i:nth-child(4) { height: 80%; }
.ladder i:nth-child(5) { height: 100%; background: var(--authority); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-proof div { font-family: var(--font-mono); }
.hero-proof strong { display: block; font-size: 1.6rem; color: var(--ink); }
.hero-proof span { font-size: 0.78rem; color: var(--slate-mute); text-transform: uppercase; letter-spacing: 0.04em; }

/* Dashboard graphic (hero signature) */
.dash {
  background: var(--ink);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-head span { font-family: var(--font-mono); font-size: 0.72rem; color: #7d84a3; text-transform: uppercase; letter-spacing: 0.06em; }
.dash-dr { display: flex; gap: 8px; }
.dash-dr i { width: 8px; height: 8px; border-radius: 50%; background: #37405f; }
.dash-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 0 4px; }
.dash-bar { flex: 1; background: linear-gradient(180deg, var(--signal), var(--signal-strong)); border-radius: 4px 4px 0 0; position: relative; }
.dash-bar.alt { background: linear-gradient(180deg, var(--authority), #3b46b0); }
.dash-rows { margin-top: 20px; display: grid; gap: 10px; }
.dash-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.82rem; color: #b7bcd6; border-top: 1px solid var(--line-dark); padding-top: 10px; }
.dash-row b { color: #fff; }
.dash-row .up { color: var(--signal); }

/* Grid / Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--authority-soft);
  color: var(--authority);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card a.card-link { font-size: 0.88rem; font-weight: 600; color: var(--authority); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; }

/* Section header */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Pricing / DR Ladder */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.tier.featured { border-color: var(--authority); box-shadow: 0 12px 32px rgba(79,91,213,0.15); position: relative; }
.tier.featured::before {
  content: "Most booked";
  position: absolute; top: -13px; left: 28px;
  background: var(--authority); color: #fff;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 5px;
}
.tier-dr { font-family: var(--font-mono); font-size: 0.82rem; color: var(--slate-mute); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.tier-price { font-family: var(--font-display); font-size: 2.5rem; color: var(--ink); font-weight: 700; margin: 6px 0 2px; }
.tier-price sup { font-size: 1rem; font-weight: 600; top: -1em; }
.tier-note { font-size: 0.85rem; color: var(--slate-mute); margin-bottom: 22px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.tier li { display: flex; gap: 10px; font-size: 0.92rem; align-items: flex-start; }
.tier li svg { flex-shrink: 0; margin-top: 3px; color: var(--signal); }
.tier .btn { margin-top: auto; }

/* Process / numbered — used because the audit workflow is a real sequence */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--signal-strong);
  position: absolute; top: 0; left: 0;
  border-top: 2px solid var(--signal);
  padding-top: 10px;
  width: 100%;
}

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-mute); background: var(--paper); }
tr:last-child td { border-bottom: none; }
td.mono-num { font-family: var(--font-mono); color: var(--ink); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:focus-visible { outline: 2px solid var(--authority); outline-offset: 4px; }
.faq-q .plus { font-family: var(--font-mono); color: var(--signal-strong); font-size: 1.2rem; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-a { padding: 0 0 22px; color: var(--slate-mute); max-width: 720px; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* Social */
.social-row { margin-top: 18px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px;
  border: 1px solid var(--line-dark); color: #cdd2e6;
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-btn:hover { border-color: var(--signal); color: #fff; }

/* Badges / logos row */
.badges-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em;
  border: 1px solid var(--line-dark); color: #9aa2c0; padding: 7px 12px; border-radius: 100px;
}

/* Portfolio */
.case-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); padding: 26px; }
.case-stat-row { display: flex; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.case-stat strong { display: block; font-family: var(--font-mono); font-size: 1.3rem; color: var(--authority); }
.case-stat span { font-size: 0.76rem; color: var(--slate-mute); text-transform: uppercase; letter-spacing: 0.03em; }

/* Blog */
.post-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); overflow: hidden; display: flex; flex-direction: column; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate-mute); text-transform: uppercase; letter-spacing: 0.04em; }
.post-card h3 { margin-bottom: 4px; }
.post-card a.stretched { text-decoration: none; }
article.post-body { max-width: 720px; margin: 0 auto; }
article.post-body h2 { margin-top: 1.6em; }
article.post-body p { color: var(--slate); }
article.post-body ul, article.post-body ol { color: var(--slate); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--paper-raised); color: var(--slate);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--authority); outline-offset: 1px; border-color: var(--authority); }
.contact-info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info-item .card-icon { margin-bottom: 0; }

/* Footer */
.footer { background: var(--ink); color: #8991b3; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #8991b3; text-decoration: none; font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; justify-content: space-between; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--authority-soft); color: var(--authority); padding: 4px 10px; border-radius: 100px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .pricing-grid, .steps, .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 56px 0; }
  .grid-3, .grid-4, .pricing-grid, .steps, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .hero-proof { gap: 20px; }
}
