/*
  MEZIAN WEB: SHARED STYLES
  One stylesheet for every page. Brand tokens are the CSS variables in :root.
  Change a colour or font here and the whole site follows.
*/
:root {
  --navy: #0B1220;        /* page background, brand primary */
  --navy-raised: #131E36; /* cards */
  --navy-line: #26344F;   /* borders */
  --lime: #A3E635;        /* accent, buttons */
  --lime-dark: #84CC16;   /* button hover */
  --white: #FFFFFF;
  --muted: #A8B3C7;       /* secondary text */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--lime); color: var(--navy); padding: 10px 14px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* Header */
.site-header { border-bottom: 1px solid var(--navy-line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; }
.logo span { color: var(--lime); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); padding: 12px 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--lime); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 16px; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--lime-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid var(--navy-line); }
.btn-ghost:hover { background: var(--navy-raised); }

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); letter-spacing: -2px; max-width: 14ch; }
.hero h1 span { color: var(--lime); }
.hero p { color: var(--muted); font-size: 20px; max-width: 52ch; margin-top: 20px; }
.hero p.eyebrow { color: var(--lime); font-size: 14px; margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero with the logo mark beside the text (about page) */
.hero-split { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; }
.hero-mark { flex: none; width: clamp(140px, 20vw, 220px); height: auto; }
@media (max-width: 760px) {
  .hero-split { flex-direction: column-reverse; align-items: flex-start; }
  .hero-mark { width: 88px; }
}

/* Sections and cards */
.group { padding: 40px 0; border-top: 1px solid var(--navy-line); }
main > .group:last-child { padding-bottom: 72px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 24px; }
.group-head h2 { font-size: 32px; letter-spacing: -1px; }
.group-head p { color: var(--muted); }
.group-head a { color: var(--white); }
.group-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--navy-raised); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 22px; letter-spacing: -0.5px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--lime); letter-spacing: -0.5px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card p { color: var(--muted); font-size: 16px; }
.card p.price { color: var(--lime); font-size: 28px; }
.card .note { font-size: 14px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--navy-line); color: var(--white); }
.card.featured { border-color: var(--lime); }
.tag { align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; background: var(--lime); color: var(--navy); padding: 4px 10px; border-radius: 999px; }

/* Cards that are links (home page service groups) */
a.card { text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--lime); transform: translateY(-2px); }
.card .more { font-family: var(--font-display); font-weight: 700; font-size: 15px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--navy-line); color: var(--lime); }

/* Numbered steps (work and contact pages) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps .card { counter-increment: step; }
.steps .card::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 2px; color: var(--lime); }

/* Placeholder card (work page, until case studies are added) */
.card.empty { background: transparent; border-style: dashed; }

/* Text for screen readers only (e.g. "opens in a new tab") */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Warranty band (sits above the call to action) */
.guarantee { display: flex; align-items: center; gap: 20px; background: var(--navy-raised); border: 1px solid var(--lime); border-radius: var(--radius); padding: 28px; }
.guarantee svg { flex: none; width: 48px; height: 48px; }
.guarantee h2 { font-size: 24px; letter-spacing: -0.5px; }
.guarantee p { color: var(--muted); margin-top: 6px; }
.guarantee p strong { color: var(--white); font-weight: 600; }
@media (max-width: 560px) {
  .guarantee { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Call to action */
.cta { margin: 24px 0 72px; background: var(--lime); color: var(--navy); border-radius: 24px; padding: 48px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -1px; }
.cta p { margin-top: 8px; font-size: 18px; font-weight: 500; max-width: 44ch; }
.cta .btn { background: var(--navy); color: var(--white); }
.cta .btn:hover { background: var(--navy-raised); }
.cta :focus-visible { outline-color: var(--navy); }

/* Footer */
.site-footer { border-top: 1px solid var(--navy-line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (max-width: 560px) {
  .nav { gap: 4px 10px; }
  .hero { padding: 48px 0 40px; }
  .hero p { font-size: 18px; }
  .cta { padding: 36px 24px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card { transition: none; }
}
