/* GeminiTech site. Palette from the website brief: midnight, blue, teal, off-white. */
:root {
  --midnight: #111827;
  --ink: #1f2937;
  --muted: #4b5563;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 4px 16px rgba(17, 24, 39, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--midnight); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; padding: 12px 22px; border-radius: 8px; border: 2px solid var(--blue);
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-line { background: transparent; color: var(--blue); }
.btn-line:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Header */
.site-header { background: var(--midnight); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; line-height: 1; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
/* Two rings sized and nudged to the letters' height and centre (checked in the browser, within 0.5px). */
.mark { width: 27px; height: 17px; position: relative; top: -1px; display: inline-block; flex: none; }
.mark::before, .mark::after { content: ""; position: absolute; top: 0; width: 17px; height: 17px; border-radius: 50%; border: 2.5px solid var(--blue); }
.mark::before { left: 0; }
.mark::after { left: 10px; border-color: var(--teal); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) { color: #d1d5db; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 500; }
.menu a:not(.btn):hover, .menu a[aria-current] { color: #fff; background: rgba(255, 255, 255, .08); }
.menu .btn { margin-left: 10px; }
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; }
  .js .menu-toggle { display: block; }
  .menu { flex-direction: column; align-items: stretch; width: 100%; padding: 8px 0 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .js .menu { display: none; }
  .js .nav-open .menu { display: flex; }
  .menu .btn { margin: 10px 0 0; text-align: center; }
}

/* Hero */
.hero {
  color: #e5e7eb; padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6.5vw, 80px);
  background:
    linear-gradient(100deg, rgba(17, 24, 39, .94) 0%, rgba(17, 24, 39, .82) 50%, rgba(17, 24, 39, .55) 100%),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=1920&q=70&auto=format&fit=crop") center / cover no-repeat var(--midnight);
}
.hero h1 { color: #fff; max-width: 20ch; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .45em; }
.hero .eyebrow { margin-bottom: 10px; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: #fff; font-weight: 500; max-width: 46ch; }
.hero p { max-width: 60ch; }
.eyebrow { display: inline-block; color: var(--teal); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.page-hero { background: var(--midnight); color: #d1d5db; padding: clamp(32px, 4.5vw, 52px) 0 clamp(28px, 4vw, 44px); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: .35em; }
.page-hero .eyebrow { margin-bottom: 8px; }
.page-hero p { max-width: 62ch; font-size: 1.12rem; margin: 0; }

/* Sections */
section.block { padding: clamp(56px, 8vw, 96px) 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { max-width: 68ch; margin-bottom: 40px; }
.intro p { color: var(--muted); font-size: 1.08rem; }
.prose { max-width: 70ch; }
.prose-full { max-width: none; }  /* About: text runs to the page's right edge (Jerry) */
.prose p, .prose li { color: var(--ink); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
@media (max-width: 440px) { .grid, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.alt .card { background: var(--bg); box-shadow: none; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: 0 8px 28px rgba(37, 99, 235, .12); }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .45em; }
.icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; background: #eff6ff; color: var(--blue); }
.icon svg { width: 24px; height: 24px; }
.card:nth-child(even) .icon { background: #f0fdfa; color: var(--teal-dark); }
.num { font-weight: 700; color: var(--teal-dark); font-size: .9rem; letter-spacing: .08em; }

/* Services page: one row per service; the title sits in the middle of its row (Jerry) */
.service { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); column-gap: 48px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service h2 { font-size: 1.3rem; font-weight: 600; margin: 0; }
.service p { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .service { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--teal); }
.steps li:nth-child(odd) { border-top-color: var(--blue); }
.steps strong { display: block; color: var(--midnight); font-size: 1.1rem; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .97rem; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: #ccfbf1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230f766e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Footer */
.site-footer { background: var(--midnight); color: #9ca3af; padding: 48px 0 24px; font-size: .95rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.foot p { margin: 0 0 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: flex-start; }
.site-footer a { color: #d1d5db; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.fine { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; font-size: .85rem; }
