/* =========================================================================
   Yonah Systems, LLC — landing page styles
   Plain CSS, no build step. Restrained navy + blue palette, system fonts.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --navy:          #16243a;   /* primary dark: headings, header, footer */
  --navy-soft:     #1e3350;
  --accent:        #2f6d8e;   /* brand blue: buttons, links, focus ring */
  --accent-strong: #245a76;   /* hover / higher-contrast accent */

  --ink:    #1f2933;          /* body text */
  --muted:  #55606e;          /* secondary text */
  --line:   #e3e7ec;          /* borders / dividers */

  --bg:       #ffffff;
  --bg-soft:  #f5f7f9;        /* alternating section background */

  --container: 1120px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(22, 36, 58, 0.06);
  --shadow-md: 0 6px 22px rgba(22, 36, 58, 0.10);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
          Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* keeps anchored headings clear of the sticky header */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }

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

/* ---- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.container.narrow { max-width: 760px; }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--bg-soft); }

.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-intro { font-size: 1.15rem; color: var(--ink); max-width: 52ch; margin: 0; }
.section-sub { color: var(--muted); max-width: 62ch; margin: 0.6rem 0 0; }

/* ---- Accessibility utilities ----------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* Visible, consistent focus indicator (browsers round the outline to the
   element's own border-radius, so we don't override the shape here) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
}
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-size: 1.2rem; letter-spacing: -0.01em; }

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.25rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 15ch;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { margin: 0; }

.hero-figure { display: flex; justify-content: center; }
.hero-mark {
  width: clamp(200px, 34vw, 320px);
  height: auto;
  filter: drop-shadow(var(--shadow-md));
}

/* ---- Product cards ---------------------------------------------------- */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cdd6df;
}

/* Product app icons — forced to one consistent rounded tile regardless of the
   source image's resolution. object-fit keeps them crisp; the subtle border
   gives the lighter icons definition against the white card. */
.card-icon {
  width: 52px;
  height: 52px;
  flex: none;             /* never stretch/shrink as a flex item */
  object-fit: cover;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.card-title { font-size: 1.3rem; margin-bottom: 0.25rem; }
.card-tagline {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 0.85rem;
}
.card-desc { color: var(--muted); margin-bottom: 1.25rem; }

.card-link {
  margin-top: auto; /* pins the link to the bottom so cards align */
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-strong);
}
.card-link-arrow { display: inline-block; margin-left: 0.35rem; transition: transform 0.15s ease; }
.card-link:hover { color: var(--navy); }
.card-link:hover .card-link-arrow { transform: translateX(3px); }

/* ---- About / Contact -------------------------------------------------- */
.section p { max-width: 66ch; }

.contact-line { margin-top: 1.5rem; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #cfd7e0;
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-brand { color: #fff; font-weight: 700; margin: 0; }

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
}
.footer-nav a { color: #cfd7e0; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  color: #9fabba;
}

/* ---- Responsive tweaks ------------------------------------------------ */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1, .hero-lead { max-width: none; }
  .hero-figure { order: -1; } /* emblem sits above the copy on small screens */
  .hero-mark { width: clamp(160px, 45vw, 240px); }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 6.5rem; } /* header wraps to two rows here */
  .header-inner { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---- Motion preferences ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
