/* Grynings LLC — shared stylesheet for grynings.com and develop.grynings.com.
   Keep this file identical in root/assets and develop/assets. */

:root {
  --ink: #101b21;        /* header / footer background, matches ARD Genix */
  --ink-soft: #1c2a33;
  --paper: #f6f7f8;
  --card: #ffffff;
  --text: #1d262c;
  --muted: #5b6770;
  --line: #e2e6e9;
  --accent: #2f7d6d;
  --accent-ink: #ffffff;
  --radius: 10px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 600; margin-top: 2em; }
h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.5em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: #eef1f3; padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: #eef1f3; padding: 14px; border-radius: var(--radius); overflow-x: auto; font-size: 0.9rem; line-height: 1.5; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
.brand { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand small { font-weight: 400; color: #aab6bd; margin-left: 8px; font-size: 0.85rem; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { color: #d6dde2; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }

/* Hero */
.hero { background: var(--ink-soft); color: #fff; padding: 48px 0; }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero p { color: #c9d2d8; max-width: 640px; font-size: 1.1rem; margin-bottom: 0; }

/* Content */
main { padding: 36px 0 56px; }
main > .wrap > h1:first-child { margin-top: 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }
.meta { color: var(--muted); font-size: 0.92rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2, .card h3 { margin-top: 0; }
.card .tag { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 8px; font-weight: 600; }
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.soon { display: inline-block; padding: 8px 14px; border: 1px dashed #b7c0c6; border-radius: 8px; color: var(--muted); font-size: 0.92rem; }

.notice { background: #fff8e6; border: 1px solid #f1dfa6; border-radius: var(--radius); padding: 14px 18px; color: #5a4a12; font-size: 0.95rem; }

dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1em; }
dl.contact dt { font-weight: 600; color: var(--muted); }
dl.contact dd { margin: 0; }

details.faq { border-top: 1px solid var(--line); padding: 12px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; }

.toc { font-size: 0.95rem; }
.toc ol { columns: 2; column-gap: 24px; }

/* Footer */
.site-footer { background: var(--ink); color: #aab6bd; padding: 28px 0; font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: #d6dde2; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .hero { padding: 36px 0; }
  .toc ol { columns: 1; }
  dl.contact { grid-template-columns: 1fr; gap: 2px; }
  dl.contact dd { margin-bottom: 10px; }
}

/* Hero with a background photo: an <img class="hero-bg"> sits behind the text, a gradient overlay keeps text readable */
.hero--photo { position: relative; overflow: hidden; min-height: 440px; display: flex; align-items: center; padding: 64px 0; }
.hero--photo .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right top; z-index: 0; }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,27,33,0.94) 0%, rgba(16,27,33,0.8) 40%, rgba(16,27,33,0.45) 65%, rgba(16,27,33,0.35) 100%); }
.hero--photo .wrap { position: relative; z-index: 2; width: 100%; }
.hero--photo p { max-width: 520px; }
.hero--photo.hero--dark::before { background: linear-gradient(90deg, rgba(16,27,33,0.6) 0%, rgba(16,27,33,0.15) 60%); }

/* Card with a photo on top */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media img { display: block; width: 100%; height: 220px; object-fit: cover; }
.card--media .card-body { padding: 22px; }
.card--media .card-body h3 { margin-top: 0; }

@media (max-width: 600px) {
  .hero--photo { min-height: 0; padding: 44px 0; }
  .hero--photo .hero-bg { object-position: 70% top; }
  .hero--photo::before, .hero--photo.hero--dark::before { background: linear-gradient(180deg, rgba(16,27,33,0.9) 0%, rgba(16,27,33,0.82) 100%); }
  .card--media img { height: 180px; }
}

/* Industries grid: square photo tiles with a caption */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 8px; padding: 0; list-style: none; }
.industries li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.industries img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.industries span { display: block; padding: 10px 14px; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 600px) {
  .industries { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .industries span { padding: 8px 10px; font-size: 0.88rem; }
}

/* Print: plain document, no site chrome */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .hero, .toc, .btn, .btn-row { display: none !important; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
  a[href^="mailto"]::after { content: ""; }
  h2 { page-break-after: avoid; margin-top: 1.4em; }
  p, li { orphans: 3; widows: 3; }
}
