/* LG Consulting: styles recreated from the original Carrd site (lgconsulting.io, 2024–2025).
   Fonts: Raleway (headings/buttons) + Source Sans 3 (body; successor to Source Sans Pro), self-hosted.
   Colors: bg #F2F2F2, card #FFFFFF, text #474747, borders #CCCCCC, accent #1CCBD6, logo navy #102548. */

@font-face {
  font-family: "Raleway";
  src: url("fonts/raleway-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F2F2F2;
  --card: #FFFFFF;
  --text: #474747;
  --muted: #5E5E5E;
  --border: #CCCCCC;
  --accent: #1CCBD6;       /* original hover accent: borders/decor only (low contrast as text) */
  --accent-text: #0B7178;  /* darker teal for text/links: 5.6:1 on white */
  --navy: #102548;
  --heading: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --width: 74rem;
  --pad: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.875;
  letter-spacing: 0.025rem;
  min-width: 320px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: var(--heading);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.25rem;
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid #E4E4E4;
}
.site-header .bar {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0.75rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}
.brand img { width: 2.75rem; height: auto; }
.brand span {
  font-family: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: 0.8125rem;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent-text); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Main layout ---------- */
main { display: block; }
.page {
  max-width: var(--width);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 0;
}

/* Carrd-style white card with two columns (stack on mobile) */
.card {
  background: var(--card);
  display: grid;
  grid-template-columns: 1fr;
}
.card + .card { margin-top: 1.5rem; }
.card .content {
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.card .content.left { text-align: left; }
.card .media { min-height: 15.75rem; position: relative; overflow: hidden; }
.card .media img {
  width: 100%;
  height: 100%;
  min-height: 15.75rem;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}
.card .media.bottom-left img { object-position: bottom left; }
.card.single { display: block; max-width: 40rem; margin-left: auto; margin-right: auto; }

/* ---------- Typography (mirrors Carrd text styles) ---------- */
.logo-hero { width: 11.5rem; margin: 0 auto 1.25rem; }
.kicker {
  font-family: var(--heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.875;
  margin: 0 0 0.75rem;
  color: var(--text);
}
h1, h2 {
  font-family: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  font-size: 1.25rem;
  line-height: 1.375;
  margin: 0 0 1rem;
  color: var(--text);
}
h2.sub { margin-top: 2.25rem; }
h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.025rem;
  margin: 0;
  line-height: 1.6;
}
p { margin: 0 0 1rem; }
.lead { text-align: left; }
.tagline {
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.03rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.service-list li + li { margin-top: 1rem; }
.service-list p { margin: 0; }

.price-group { margin-bottom: 1.5rem; }
.price-group h3 { padding-bottom: 0.35rem; border-bottom: 1px solid #050000; margin-bottom: 0.5rem; }
.price-group p { margin: 0; }

/* ---------- Buttons (Carrd outline buttons) ---------- */
.buttons {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.25rem 1.25rem 0.25rem 1.5rem;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.button:hover { color: var(--accent-text); border-color: var(--accent); }
.button svg { width: 1.1rem; height: 1.1rem; fill: currentColor; flex: none; }
.button.primary { border-color: var(--navy); color: var(--navy); }
.button.primary:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- Social icons ---------- */
.icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.icons a {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border-radius: 50%;
}
.icons a:hover { color: var(--accent-text); }
.icons svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }

/* ---------- Contact ---------- */
.contact-email {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05rem;
  word-break: break-word;
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--width);
  margin: 0 auto;
  padding: 1.75rem var(--pad) 2.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer p { margin: 0.5rem 0 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-text); }

/* ---------- 404 ---------- */
.notfound .content { padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* ---------- Wider screens ---------- */
@media (min-width: 480px) {
  .buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .content.left .buttons { justify-content: flex-start; }
}
@media (min-width: 737px) {
  :root { --pad: 2rem; }
  .card .content { padding: 3.5rem 2rem; }
  .card .media, .card .media img { min-height: 18rem; }
  .page { padding-top: 2rem; }
}
@media (min-width: 981px) {
  :root { --pad: 3rem; }
  .card { grid-template-columns: 1fr 1fr; }
  .card .content { padding: 4rem 4rem; }
  .card .media, .card .media img { min-height: 26rem; }
  .card .media.first { order: -1; }
  h1, h2 { letter-spacing: 0.45rem; }
}

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