/* ==========================================================================
   Stackmac — site styles
   Lightweight, system fonts, no external assets
   ========================================================================== */

/* ---------- Custom properties ---------- */
:root {
  --navy: #0f2a4a;
  --navy-dark: #0a1e36;
  --blue: #1f6fd6;
  --blue-light: #e8f1fd;
  --accent: #22b8a6;
  --ink: #1e2a3a;
  --muted: #5a6b80;
  --line: #dfe6ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 42, 74, 0.08);
  --maxw: 1100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* offset for fixed header */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

h1, h2, h3 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

h1 { font-size: 2.4rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.15rem; }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--maxw), 92%);
  margin-inline: auto;
}

section {
  padding: 4rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}

.brand:hover { text-decoration: none; }

.brand img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-toggle {
  position: absolute; /* hide native checkbox */
  appearance: none;
  opacity: 0;
  pointer-events: none;
}

.nav-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
}

.nav-label:hover { background: var(--blue-light); }

.nav-label svg {
  display: block;
  width: 26px;
  height: 26px;
  stroke: var(--navy);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

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

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: var(--blue-light);
  text-decoration: none;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(34, 184, 166, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.hero-inner {
  max-width: 720px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 0.75rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover { background: #1859ae; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Cards / service grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card .icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-light);
  margin-bottom: 0.9rem;
}

.card .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Service detail sections ---------- */
.service {
  background: var(--bg-soft);
}

.service .body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.service ul.features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service ul.features li {
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.service ul.features li:last-child { border-bottom: none; }

.check {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(34, 184, 166, 0.15);
}

.check svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-top: 2rem;
}

.stats div { text-align: center; }

.stats strong {
  display: block;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.stats span {
  font-size: 0.85rem;
  color: #a8bdd6;
}

/* ---------- Contact ---------- */
.contact .body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.9;
}

.contact-details a { color: var(--blue); }

form .field {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 214, 0.15);
}

textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #c3d2e4;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.site-footer p,
.site-footer li {
  font-size: 0.9rem;
  color: #9fb4cc;
}

.site-footer a { color: #c3d2e4; }
.site-footer a:hover { color: #fff; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.social-links a:hover { background: var(--blue); text-decoration: none; }

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li { padding: 0.25rem 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #8aa2bf;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Responsive: mobile nav ---------- */
@media (max-width: 760px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.45rem; }

  .nav-label { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.75rem 4%;
  }

  .site-nav a { padding: 0.75rem 0.5rem; }

  .nav-toggle:checked ~ .site-nav { display: block; }

  .nav-toggle:checked ~ .nav-label .bars { display: none; }
  .nav-label .cross { display: none; }
  .nav-toggle:checked ~ .nav-label .cross { display: block; }

  .hero { padding: 3.25rem 0; }
  section { padding: 3rem 0; }

  .service .body,
  .contact .body { grid-template-columns: 1fr; gap: 1.75rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
