/* ==========================================================================
   FILLCOM — style.css
   Palette derived from the logo: one white cell, one near-black cell.
   A single teal accent is reserved for links, focus and small highlights.
   ========================================================================== */

:root {
  --ink:        #1f1f1f;   /* logo black */
  --ink-soft:   #4a4a4a;
  --paper:      #ffffff;   /* logo white */
  --paper-tint: #f4f5f6;
  --rule:       #d9dbdd;
  --accent:     #0e7c86;   /* teal — used sparingly */
  --accent-ink: #0a5d65;

  --font-display: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --gutter: 24px;
  --radius: 2px;             /* the logo is square-cornered; stay close to that */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }

p { margin: 0 0 1em; }

/* Eyebrow labels echo the wide letterspacing of the logo wordmark */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.skip-link {
  position: absolute; left: 0; top: -100px;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { top: 0; }

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

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn-dark  { background: var(--ink); color: #fff; }
.btn-dark:hover  { background: #000; }

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

.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--paper-tint); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand { flex-shrink: 0; }
.brand img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius);
}
.site-nav a:hover { text-decoration: none; background: var(--paper-tint); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.site-nav .nav-cta {
  margin-left: 10px;
  background: var(--ink); color: #fff;
  padding: 9px 18px;
}
.site-nav .nav-cta:hover { background: #000; }

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

.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

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

/* "Full" gets the logo treatment: a filled black cell */
.hero h1 .fill {
  display: inline-block;
  background: var(--ink); color: #fff;
  padding: 0 0.18em;
  line-height: 1.05;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The stack — the page's signature. Six layers, hardware at the base,
   alternating fills like the two cells of the logo. */
.stack { margin: 0; }

.layer {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px 20px;
  background: var(--paper);
  color: var(--ink);
  margin-bottom: -2px;                 /* collapse borders into one rule */
  font-family: var(--font-display);
  transition: transform .18s ease;
}
.layer-dark { background: var(--ink); color: #fff; }

.layer-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.layer-note { font-size: 0.82rem; opacity: 0.8; text-align: right; }

.layer:hover { transform: translateX(6px); }

.stack figcaption {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Page-load: layers rise into place, bottom first */
@media (prefers-reduced-motion: no-preference) {
  .layer { animation: rise .5s ease both; }
  .layer:nth-child(6) { animation-delay: .05s; }
  .layer:nth-child(5) { animation-delay: .13s; }
  .layer:nth-child(4) { animation-delay: .21s; }
  .layer:nth-child(3) { animation-delay: .29s; }
  .layer:nth-child(2) { animation-delay: .37s; }
  .layer:nth-child(1) { animation-delay: .45s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Services ---------- */

.services { padding: clamp(64px, 8vw, 112px) 0; }

.section-head { margin-bottom: 48px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;                            /* hairline seams, like tiles */
  background: var(--rule);
  border: 1px solid var(--rule);
}

.service {
  background: var(--paper);
  padding: 32px 28px 28px;
}
.service h3 { margin: 18px 0 10px; }
.service p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* Two-cell tag straight from the logo: left cell white, right cell black */
.service-tag {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.service-tag span { padding: 6px 10px; }
.service-tag span:last-child { background: var(--ink); color: #fff; }

/* Software services flip the cells: FILLCOM builds these, so the "build" cell leads */
.service-build .service-tag span:first-child,
.service-tag-build span:first-child { background: var(--ink); color: #fff; }
.service-build .service-tag span:last-child,
.service-tag-build span:last-child  { background: var(--paper); color: var(--ink); }

.services-more { margin: 28px 0 0; font-weight: 600; }

/* ---------- Flagship (M2S) ---------- */

.flagship { padding: 0 0 clamp(64px, 8vw, 112px); }

.flagship-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  color: inherit;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.flagship-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.flagship-card:hover .btn-light { background: var(--paper-tint); }

.flagship-left {
  padding: clamp(32px, 5vw, 56px);
  background: var(--paper);
  border-right: 2px solid var(--ink);
}
.flagship-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.flagship-kind {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
}

.flagship-right {
  padding: clamp(32px, 5vw, 56px);
  background: var(--ink);
  color: #fff;
}
.flagship-desc { font-size: 1.15rem; line-height: 1.5; max-width: 46ch; }

.flagship-points {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; gap: 8px;
  color: rgba(255,255,255,0.85);
}
.flagship-points li { padding-left: 22px; position: relative; }
.flagship-points li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 10px; height: 10px; background: var(--accent);
}

/* ---------- Trust ---------- */

.trust {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--paper-tint);
  border-top: 1px solid var(--rule);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.trust-points { display: grid; gap: 28px; }
.trust-points h3 { margin-bottom: 6px; }
.trust-points p { margin: 0; color: var(--ink-soft); }
.trust-points > div {
  padding-left: 18px;
  border-left: 3px solid var(--ink);
}

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

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.footer-brand img { height: 34px; width: auto; margin-bottom: 14px; background: #fff; }
.footer-brand p { margin: 0; font-family: var(--font-display); font-weight: 600; color: #fff; }

.footer-col h4 { color: #fff; margin-bottom: 14px; }
.footer-col p { margin: 0 0 6px; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom p { margin: 0; }

/* ---------- Inner pages: page hero, service detail, CTA band ---------- */

.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { max-width: 18ch; margin-bottom: 1.2rem; }
.page-hero h1 .fill {
  display: inline-block;
  background: var(--ink); color: #fff;
  padding: 0 0.18em;
  line-height: 1.05;
}
.page-hero .lede { margin-bottom: 1.6rem; }

.page-jumps { display: flex; flex-wrap: wrap; gap: 8px; }
.page-jumps a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 7px 12px;
}
.page-jumps a:hover { background: var(--ink); color: #fff; text-decoration: none; }

.service-detail {
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 80px;
}
.service-detail-alt { background: var(--paper-tint); }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.service-detail-head h2 { margin: 18px 0 10px; max-width: none; }
.service-detail-scope {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
}

.service-detail-body p { color: var(--ink-soft); max-width: 62ch; }

.service-detail-list {
  list-style: none; padding: 0; margin: 1.4rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
  font-size: 0.95rem;
}
.service-detail-list li { padding-left: 20px; position: relative; }
.service-detail-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 9px; height: 9px; background: var(--ink);
}
.service-detail-alt .service-detail-list li::before { background: var(--accent); }

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-band .eyebrow { color: rgba(255,255,255,0.65); }
.cta-band h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-band-text { color: rgba(255,255,255,0.8); max-width: 52ch; margin: 0; }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}

/* Four-column variant of the tile grid (compact module cards) */
.services-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-4 .service { padding: 26px 22px 24px; }
.grid-4 .service h3 { margin-top: 0; font-size: 1.05rem; }
.grid-4 .service p { font-size: 0.92rem; }
.trust { scroll-margin-top: 80px; }
.services { scroll-margin-top: 80px; }

/* Two-column variant of the tile grid */
.services-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Contact page: prominent tel / mailto links inside tiles */
.service .eyebrow { margin-bottom: 0.6rem; }
.contact-link { margin: 0 0 12px !important; font-size: 1.35rem; word-break: break-word; }
.contact-link a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact-link a:hover { color: var(--accent-ink); }
/* Current-page state for the black Contact button */
.site-nav .nav-cta[aria-current="page"] { text-decoration: none; background: var(--accent-ink); }

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

@media (max-width: 900px) {
  .hero-grid, .trust-grid { grid-template-columns: 1fr; }
  .services-grid, .services-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flagship-card { grid-template-columns: 1fr; }
  .flagship-left { border-right: 0; border-bottom: 2px solid var(--ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .brand img { height: 26px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 5px; font-size: 0.8rem; }
  .site-nav .nav-cta { margin-left: 4px; padding: 7px 9px; }
  .services-grid, .services-grid.grid-4, .services-grid.grid-2 { grid-template-columns: 1fr; }
  .layer { padding: 12px 14px; }
  .layer-note { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-detail-list { grid-template-columns: 1fr; }
}
