/* Yorkstream Communications: shared site styles */

:root {
  --ink: #14242e;
  --muted: #4b5b66;
  --brand: #176a93;
  --brand-dark: #10506f;
  --tint: #eef6fa;
  --line: #d8e3e9;
  --radius: 8px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: "Public Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

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

a { color: var(--brand); text-underline-offset: 0.15em; }
a:hover { color: var(--brand-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid #7cc3ea; outline-offset: 2px; }

h1, h2 { line-height: 1.2; margin: 0; }
h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: 1.35rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65em 1.25em;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); }
.btn-outline:hover { background: var(--tint); color: var(--brand-dark); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand img { display: block; width: 200px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-header nav a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--brand); }
.site-header nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* Home */
.hero {
  position: relative;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1a22;
}
.hero img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 58%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 28, 0.88) 0%, rgba(8, 20, 28, 0.45) 35%, rgba(8, 20, 28, 0) 65%);
}
.hero h1 {
  position: absolute;
  z-index: 1;
  left: 2rem;
  right: 2rem;
  bottom: 1.75rem;
  max-width: 16em;
  color: #fff;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.intro { margin: 2rem 0 0; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 3rem 0 4rem;
}
.services section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 1.25rem;
  border-top: 3px solid var(--brand);
}
.services h2 { margin-bottom: 0.5rem; }
.services p { color: var(--muted); }
.links { list-style: none; margin: 0 0 1.5rem; padding: 0; flex-grow: 1; }
.links li { margin-bottom: 0.35rem; }

/* Inner pages */
.page-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  margin-top: 2rem;
  border-radius: var(--radius);
}
.page-head { padding: 3rem 0 2rem; }
.page-head h1 { margin-bottom: 0.75rem; }
.page-head .lead { margin: 0; }

.offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text list" "action list";
  grid-template-rows: auto 1fr;
  gap: 0.75rem 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.offer h2 { margin-bottom: 0.6rem; }
.offer-text p { color: var(--muted); max-width: 32em; }
.offer-text { grid-area: text; }
.offer-text p:last-child { margin-bottom: 0; }
.offer-list { grid-area: list; padding-top: 0.2rem; }
.offer-action { grid-area: action; align-self: start; padding-top: 0.5rem; }

.features { list-style: none; margin: 0; padding: 0; }
.features li { position: relative; padding-left: 1.75rem; margin-bottom: 0.6rem; }
.features li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.3em;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.block { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.block.first { border-top: 1px solid var(--line); }
.block h2 { margin-bottom: 0.6rem; }
.block p { max-width: 42em; }
.block .btn { margin-top: 0.25rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
  margin: 1.5rem 0 0;
}
.feature-grid dt { font-weight: 600; }
.feature-grid dd { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.95rem; }

.callout {
  max-width: 44em;
  padding: 1rem 1.25rem;
  background: var(--tint);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { margin: 0; }

.doc-list { list-style: none; margin: 0; padding: 0; max-width: 40rem; border-top: 1px solid var(--line); }
.doc-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.doc-list a { font-weight: 600; }
.doc-list span { color: var(--muted); font-size: 0.9rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.contact-item { padding: 1.75rem 2rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.contact-item h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.contact-item p { color: var(--muted); margin-bottom: 0.5rem; }
.contact-item > a { font-weight: 600; }
.contact-item.wide { grid-column: 1 / -1; }

.after-list { margin: 2rem 0 4rem; }
.block + .after-list { margin-top: 0; }

/* Ordering band */
.band { background: var(--tint); margin-top: 2rem; }
.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.band h2 { margin-bottom: 0.4rem; }
.band p { margin: 0; color: var(--muted); max-width: 36em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.footer-name, .footer-head { font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-copy { padding-bottom: 2rem; font-size: 0.875rem; }
.footer-copy p { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* Smaller screens */
@media (max-width: 60rem) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 48rem) {
  h1 { font-size: 1.85rem; }
  .services { grid-template-columns: 1fr; gap: 2rem; }
  .offer { grid-template-columns: 1fr; grid-template-areas: "text" "list" "action"; grid-template-rows: auto; gap: 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 34rem) {
  .hero img { aspect-ratio: 4 / 3; }
  .hero h1 { left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }
  .brand img { width: 170px; }
  .site-header nav { gap: 0.25rem 1.1rem; }
  .feature-grid { grid-template-columns: 1fr; }
}

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