/* 502 Tech Builds — site styles
   Palette: navy #0D2230 family, cyan #29B6F6, white (brand kit) */

:root {
  --navy-950: #081826;
  --navy-900: #0d2230;
  --navy-800: #123043;
  --navy-700: #1a415a;
  --cyan: #29b6f6;
  --cyan-dark: #0288d1;
  --cyan-soft: #b3e5fc;
  --ink: #16232c;
  --muted: #4d6472;
  --line: #d7e5ec;
  --bg: #f4f9fc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 34, 48, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--cyan-dark); }
a:hover { color: var(--navy-700); }

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

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--navy-950);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(8, 24, 38, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
}
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; line-height: 1.15; }
.brand-name .accent { color: var(--cyan); }
.brand-sub { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; color: var(--cyan-soft); text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--cyan);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  color: #eaf6fc;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--navy-700); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--cyan); color: var(--navy-950); }

.header-call {
  background: var(--cyan);
  color: var(--navy-950) !important;
  font-weight: 800 !important;
}
.header-call:hover { background: var(--cyan-soft); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}
.hero h1 .accent { color: var(--cyan); }
.hero .lede { font-size: 1.15rem; color: #d6ecf7; margin: 0 0 1.6rem; max-width: 34rem; }
.hero-logo {
  width: min(340px, 80%);
  margin-inline: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--cyan); color: var(--navy-950); }
.btn-primary:hover { background: var(--cyan-soft); color: var(--navy-950); }
.btn-ghost { border-color: var(--cyan); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(41, 182, 246, 0.15); color: #fff; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.on-light .btn-ghost { color: var(--navy-900); }
.on-light .btn-ghost:hover { color: var(--navy-900); background: rgba(41, 182, 246, 0.15); }

/* ---------- Sections ---------- */

.section { padding: 3.2rem 0; }
.section.alt { background: #e8f3f9; }
.section.dark { background: var(--navy-900); color: #eaf6fc; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--navy-900);
}
.section .intro { color: var(--muted); max-width: 46rem; margin: 0 0 2rem; }
.section.dark .intro { color: #b9d9ea; }
.eyebrow {
  color: var(--cyan-dark);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 0.4rem;
}
.section.dark .eyebrow { color: var(--cyan); }

.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(13, 34, 48, 0.06);
}
.card h3 { margin: 0 0 0.5rem; color: var(--navy-900); font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.card .icon { font-size: 1.7rem; line-height: 1; margin-bottom: 0.7rem; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  padding: 0.45rem 0 0.45rem 1.9rem;
  position: relative;
  color: var(--ink);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy-950);
  font-weight: 900;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.3rem;
}
.section.dark .check-list li { color: #eaf6fc; }

/* steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(4, 1fr); }
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--cyan);
  font-weight: 900;
  text-align: center;
  line-height: 2.2rem;
  margin-bottom: 0.7rem;
}
.steps h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--navy-900); }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; text-align: center; }
.stat .num { font-size: 2rem; font-weight: 900; color: var(--cyan); display: block; line-height: 1.1; }
.section:not(.dark) .stat .num { color: var(--cyan-dark); }
.stat .lbl { font-size: 0.9rem; color: var(--muted); }
.section.dark .stat .lbl { color: #b9d9ea; }

/* ---------- Packages ---------- */

.price-card { display: flex; flex-direction: column; }
.price-card.featured {
  border: 2px solid var(--cyan);
  box-shadow: var(--shadow);
  position: relative;
}
.badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--navy-950);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.25rem; }
.price { font-size: 2.4rem; font-weight: 900; color: var(--navy-900); line-height: 1; margin: 0.4rem 0 0.2rem; }
.price-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.price-card .check-list { margin-bottom: 1.4rem; }
.price-card .check-list li { font-size: 0.96rem; }
.price-card .btn { margin-top: auto; text-align: center; }

.note-box {
  background: #fff8e1;
  border: 1px solid #f0d48a;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  color: #5d4a12;
}
.note-box strong { color: #4a3a0c; }

table.extras { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(13,34,48,0.06); }
table.extras th, table.extras td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.extras th { background: var(--navy-900); color: #fff; }
table.extras tr:last-child td { border-bottom: none; }
table.extras td.price-cell { font-weight: 800; color: var(--navy-900); white-space: nowrap; }

/* ---------- Work / screenshots ---------- */

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.shot { margin: 0; }
.shot img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot figcaption { margin-top: 0.6rem; font-weight: 700; color: var(--navy-900); text-align: center; }
.section.dark .shot figcaption { color: #eaf6fc; }

.work-block { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center; }
.work-block img.frame { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 2.8rem 0 2.4rem;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 0.6rem; line-height: 1.15; }
.page-hero h1 .accent { color: var(--cyan); }
.page-hero p { color: #d6ecf7; max-width: 44rem; margin: 0; font-size: 1.08rem; }

/* ---------- Contact form ---------- */

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--navy-900); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(41, 182, 246, 0.3);
}
.form-note { font-size: 0.92rem; color: var(--muted); background: var(--bg); border: 1px dashed var(--cyan-dark); border-radius: 9px; padding: 0.8rem 1rem; }
.contact-big { font-size: 1.35rem; font-weight: 800; color: var(--navy-900); text-decoration: none; }
.contact-big:hover { color: var(--cyan-dark); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--navy-900); color: #fff; padding: 2.8rem 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: #b9d9ea; margin: 0 0 1.5rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-950); color: #b9d9ea; padding: 2.6rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h3 { color: #fff; margin: 0 0 0.7rem; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #b9d9ea; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer-brand img { width: 52px; height: 52px; border-radius: 10px; }
.footer-bottom { border-top: 1px solid var(--navy-700); padding-top: 1.2rem; font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .work-block { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: min(240px, 65%); }
  .grid-3, .shots { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 0.6rem 1.25rem 1.1rem;
    box-shadow: 0 14px 24px rgba(8, 24, 38, 0.4);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.7rem 0.85rem; }
  .site-header .wrap { position: relative; }
  .grid-2, .grid-3, .shots, .steps, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 2.4rem 0; }
}
