/*
  Jackson Solutions - Global Styles
  --------------------------------
  This stylesheet is organized by section so it is easy to maintain
  and later expand into a multi-page static site.
*/

/* ==============================
   1) CSS Custom Properties
   - Uses prefers-color-scheme to support dark/light mode automatically.
   ============================== */
:root {
  color-scheme: light dark;

  --font-stack: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #eef2f7;
  --text: #1f2937;
  --text-muted: #475569;
  --primary: #164e63;
  --primary-strong: #0f3d4d;
  --accent: #0ea5e9;
  --border: #d8e1ea;
  --focus: #f59e0b;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #121a2b;
    --surface-muted: #19233a;
    --text: #e5ecf6;
    --text-muted: #b2c0d8;
    --primary: #67d3ff;
    --primary-strong: #8ae1ff;
    --accent: #7dd3fc;
    --border: #2a3b5a;
    --focus: #fbbf24;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }

  .site-header {
    background: rgba(11, 18, 32, 0.92);
  }
}

/* ==============================
   2) Base / Resets
   ============================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  .button,
  .service-card {
    transition: none;
  }

  .button:hover,
  .button:focus-visible,
  .service-card:hover,
  .service-card:focus-within {
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-stack);
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-intro {
  max-width: 68ch;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
}

/* ==============================
   3) Buttons / Interactive states
   ============================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, var(--accent), var(--primary));
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  filter: brightness(1.05);
}

.button-secondary {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface);
}

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

/* ==============================
   4) Header / Navigation
   ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 251, 0.96);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

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

.nav-list a {
  text-decoration: none;
  color: var(--text);
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  padding: 0.4rem;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.25rem;
  background: var(--text);
}

/* ==============================
   5) Hero
   ============================== */
.hero {
  padding: 5.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin-bottom: 0.75rem;
}

.hero-supporting-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 1.4rem;
}

.hero-placeholder {
  min-height: 260px;
  border: 2px dashed var(--border);
  border-radius: 1rem;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-muted);
  padding: 1rem;
}

/* ==============================
   6) Card grids (Services / Work / Testimonials)
   ============================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.service-card {
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.process {
  background: var(--surface-muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
}

.process-steps h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.testimonial-viewport {
  position: relative;
  min-height: 175px;
}

.testimonial-card {
  display: none;
}

.testimonial-card.is-active {
  display: block;
}

.testimonial-author {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.testimonial-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ==============================
   7) About + Footer
   ============================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
}

.about-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.about-aside ul {
  margin: 0;
  padding-left: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.1rem;
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 0.45rem;
}

.footer-contact a,
.footer-social a {
  text-decoration: none;
}

.footer-social ul {
  margin: 0;
  padding-left: 1rem;
  columns: 2;
}

/* ==============================
   8) Responsive breakpoints
   ============================== */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .process-steps,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .section,
  .hero {
    padding: 4rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .site-nav {
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.5rem 0;
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.35rem 0;
    border-top: 1px solid var(--border);
    display: none;
  }

  .nav-list[data-open="true"] {
    display: flex;
  }

  .card-grid,
  .process-steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-social ul {
    columns: 1;
  }
}
