/*
 * styles.css
 * Copyright (C) 2026 Bitsoft, LLC. All rights reserved.
 *
 * WHAT: Shared stylesheet for every page of the Bitsoft, LLC company site.
 * WHY:  One file keeps the five static pages visually identical without a
 *       framework or build step.
 * HOW:  Colors and spacing are tokens on :root. Teal is the main accent,
 *       chosen to sit beside the two grays of the starburst logo; a warm
 *       gold is the second accent and is kept to small highlights (icons,
 *       step numbers) so it never competes with teal. Each page opens with a
 *       dark teal-to-navy hero. Layout is mobile first; wider screens add
 *       columns.
 * DEPENDENCIES: None. System font stack, so the site works offline.
 * ORIGIN: Generated by Claude AI (Anthropic), October 2026.
 *         Commissioned by Steven Swanson.
 * REVISION HISTORY:
 *   2026-10-16  Initial version.
 *   2026-10-16  Dark heroes, gold second accent, fact band, steps, icons,
 *               card hover, larger team photos.
 */

:root {
  --color-background: #ffffff;
  --color-surface: #f4f6f7;
  --color-border: #dde3e6;
  --color-text: #1e272c;
  --color-muted: #55636b;
  /* Logo grays, reused for quiet details so the page and mark agree. */
  --color-logo-light: #909da3;
  --color-logo-dark: #484e52;
  --color-accent: #17667a;
  --color-accent-hover: #10505f;
  --color-accent-soft: #e6f0f2;
  --color-navy: #0f2a44;
  --color-gold: #c9952e;
  --color-gold-soft: #fbf3e2;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #d4e2e8;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --content-width: 72rem;
  --reading-width: 44rem;
  --gutter: 1rem;
  --radius: 0.875rem;
  --shadow-card: 0 1px 2px rgba(15, 42, 68, 0.06);
  --shadow-card-hover: 0 12px 28px rgba(15, 42, 68, 0.12);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

/*
 * Body is a full-height column and main takes the spare height, so on short
 * pages the footer sits at the bottom of the window instead of leaving a gap.
 */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

img {
  height: auto;
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent-hover);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: 1.35rem;
  font-weight: 650;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -999rem;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  background: var(--color-background);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

/* Header and navigation */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* The wordmark logo carries the name, so the link holds only the image. */
.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 2.75rem;
}

.nav-toggle {
  display: none;
}

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

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 550;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--color-text);
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/*
 * Without JavaScript the navigation simply wraps under the logo, so every
 * link stays reachable. The collapsible menu exists only when main.js has
 * marked the document with the "js" class.
 */
@media (max-width: 47.99rem) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-logo-dark);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    cursor: pointer;
  }

  .js .site-nav {
    display: none;
    width: 100%;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.5rem;
  }

  .js .site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .js .site-nav a[aria-current="page"] {
    border-bottom-color: var(--color-border);
  }
}

/* Hero: dark teal-to-navy band at the top of every page */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-navy) 85%);
  color: var(--color-on-dark);
  padding: 3rem 0;
}

/*
 * The starburst is drawn as a white silhouette at low opacity so it reads
 * as texture behind the text, never as a second logo.
 */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  right: -10rem;
  top: 50%;
  transform: translateY(-50%);
  background: url("images/bitsoft-logo.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.07;
}

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

.hero .lead,
.hero-text p {
  color: var(--color-on-dark-muted);
}

.hero .lead {
  max-width: var(--reading-width);
  font-size: 1.2rem;
}

.hero-text {
  max-width: var(--reading-width);
}

.hero-text p {
  font-size: 1.1rem;
}

@media (min-width: 48rem) {
  .hero {
    padding: 4rem 0;
  }
}

.hero-home {
  padding: 3.5rem 0 3rem;
}

.hero-home::before {
  width: 52rem;
  height: 52rem;
  right: -14rem;
}

/* Text on the left, a visual on the right; stacked text-first on phones. */
.hero-home-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-illustration {
  width: 100%;
  max-width: 15rem;
  margin: 0 auto;
}

/*
 * Windfall photo banner: the sunset photo is the hero itself, edge to edge.
 * The photo is anchored left of center so the tree and the brightest band of
 * the sunset both stay in frame as the banner crops at different widths. A
 * dark wash from the left keeps the white logo and text readable over the
 * tree while the right side of the sunset stays bright.
 */
.photo-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 420px;
  background: var(--color-navy);
  color: var(--color-on-dark);
  display: flex;
  align-items: center;
}

.photo-banner-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 38% 58%;
}

.photo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.photo-banner-logo {
  width: min(15rem, 70vw);
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.photo-banner-lead,
.photo-banner-tagline {
  max-width: 30rem;
  color: var(--color-on-dark);
  /* A tight edge plus a wider soft halo keeps letters crisp over bright gaps in the leaves. */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 2px 12px rgba(0, 0, 0, 0.6);
}

.photo-banner-lead {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.photo-banner-tagline {
  font-size: 1.05rem;
  opacity: 0.92;
}

@media (min-width: 48rem) {
  .photo-banner {
    height: 520px;
  }

  .photo-banner::after {
    background:
      linear-gradient(to right, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.4) 32%, rgba(0, 0, 0, 0) 60%);
  }

  .photo-banner-logo {
    width: 26rem;
    margin-bottom: 1.25rem;
  }

  .photo-banner-lead {
    max-width: 36rem;
    font-size: 1.35rem;
  }

  .photo-banner-tagline {
    font-size: 1.15rem;
  }
}

/* On very wide screens the centered text sits further right, so the wash reaches further too. */
@media (min-width: 90rem) {
  .photo-banner::after {
    background:
      linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 66%);
  }
}

/* Hidden on screen, still read by screen readers and search engines. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 56rem) {
  .hero-home {
    padding: 6rem 0 5.5rem;
  }

  .hero-home-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
  }

  .hero-illustration {
    max-width: 24rem;
    margin-right: 0;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--color-accent);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  background: var(--color-accent);
  color: var(--color-on-dark);
}

.button-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-on-dark);
}

.button-secondary {
  background: transparent;
  color: var(--color-accent);
}

.button-secondary:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

/* On the dark hero, the filled button inverts to white and the outline goes white. */
.hero .button-primary {
  background: var(--color-on-dark);
  border-color: var(--color-on-dark);
  color: var(--color-navy);
}

.hero .button-primary:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
  color: var(--color-navy);
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-on-dark);
}

.hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-on-dark);
  color: var(--color-on-dark);
}

.hero :focus-visible {
  outline-color: var(--color-on-dark);
}

/* Fact band directly under the Home hero */

.fact-band {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 0;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
}

@media (min-width: 56rem) {
  .fact-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.fact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--color-navy);
}

/* Deeper gold and a warmer tint than the shared tokens, so the icons hold their own beside bold labels. */
.fact-icon {
  flex: none;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #f6e3b8;
  color: #b07a0c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fact-icon svg {
  width: 1.95rem;
  height: 1.95rem;
  stroke-width: 2;
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

@media (min-width: 48rem) {
  .section {
    padding: 5rem 0;
  }
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

/* Cards */

.card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: #c4d7dd;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .button {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

/* A short accent rule above card headings that have no icon. */
.card h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.card.has-icon h2::before,
.team-card h2::before {
  display: none;
}

.card p {
  color: var(--color-muted);
}

/* Same treatment as the Home fact band icons, in teal: larger, deeper, stronger tint. */
.card-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #cfe5eb;
  color: #0b5a6d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  stroke-width: 2;
}

/* How Windfall Works steps */

/*
 * The Windfall logo sits above the heading, flush with its left edge. Its
 * source is only 268px wide, so it is shown at or below that size, never
 * enlarged.
 */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading .section-title {
  margin-bottom: 0;
}

.section-logo {
  width: 11rem;
  max-width: 268px;
  height: auto;
}

@media (min-width: 48rem) {
  .section-logo {
    width: 13rem;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.section-link {
  margin-top: 2rem;
}

/* Closing call-to-action band at the end of a page */

/* Grows into any spare height on short pages so no white strip sits above the footer. */
.closing-band {
  flex-grow: 1;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  text-align: center;
}

@media (min-width: 48rem) {
  .closing-band {
    padding: 4rem 0;
  }
}

/* Team */

.team-card {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

@media (min-width: 36rem) {
  .team-card {
    grid-template-columns: 11rem 1fr;
    gap: 1.75rem;
  }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .team-card {
    grid-template-columns: 1fr;
  }
}

.team-photo {
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--color-accent-soft), var(--color-surface));
  border: 3px solid var(--color-background);
  box-shadow: 0 0 0 1px var(--color-border), 0 6px 18px rgba(15, 42, 68, 0.1);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The logo stands in for a missing photo, so it gets padding, not a crop. */
.team-photo.is-placeholder {
  align-items: center;
}

.team-photo.is-placeholder img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.team-card h2 {
  margin-bottom: 0.2rem;
}

.card .team-title {
  margin-bottom: 0.85rem;
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 600;
}

/* A side note under the team grid: same width as the grid, same size as the bios. */
.team-note {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-muted);
}

/* Licensing: one reading-width column, body text then the contact card at the same width. */

.licensing-column {
  max-width: var(--reading-width);
}

.licensing-text {
  margin-bottom: 2rem;
}

.licensing-text p {
  font-size: 1.15rem;
}

.contact .contact-name {
  margin-bottom: 0.2rem;
  font-weight: 700;
}

/* Licensing contact */

.contact {
  max-width: var(--reading-width);
}

.contact address {
  font-style: normal;
}

.contact address p {
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.contact .company {
  font-weight: 650;
}

/* Investors */

.investor-card {
  max-width: var(--reading-width);
}

/* The disclaimer reads first, as ordinary card body text; the button follows it. */
.investor-card .actions {
  margin-top: 1.75rem;
}

/* Footer */

.site-footer {
  background: var(--color-navy);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--color-on-dark-muted);
}
