/* ============================================================
   Weathered Pier LLC — weatheredpier.com
   Single-page site stylesheet.
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --navy-900: #001725;
  --navy-800: #05243A;
  --navy-700: #0A3352;
  --navy-600: #123F61;

  --slate-400: #8FA6B8;
  --slate-300: #CBDCE8;

  --brand-500: #04A0FC;
  --brand-400: #3FB8FF;
  --brand-600: #0080CC;

  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-soft: rgba(255, 255, 255, 0.05);
  --surface-raise: rgba(255, 255, 255, 0.07);

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 72rem;         /* max content width */
  --gutter: 1.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

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

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

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header. */
  scroll-padding-top: 7.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--navy-900);
  color: var(--slate-300);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; color: inherit; }

a {
  color: var(--brand-400);
  text-decoration: none;
}

a:hover { color: var(--brand-500); }

[hidden] { display: none !important; }

/* Visible, consistent keyboard focus everywhere. */
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Utilities ─────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  border-bottom: 1px solid var(--hairline);
}

.section--sunken { background-color: rgba(5, 36, 58, 0.4); }

.section__inner {
  padding-block: 5rem;
}

@media (min-width: 640px) {
  .section__inner { padding-block: 6rem; }
}

.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-400);
}

.lede {
  line-height: 1.625;
  color: var(--slate-300);
  text-wrap: pretty;
}

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

.skip-link:focus {
  position: absolute;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--brand-500);
  color: var(--navy-900);
  font-weight: 600;
}

/* ── Headings ──────────────────────────────────────────────── */
.h1, .h2, .h3 {
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: -0.025em;
}

.h1 {
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

.h2 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
}

@media (min-width: 640px) {
  .h1 { font-size: 3rem; }
  .h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .h1 { font-size: 3.75rem; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn--primary {
  background-color: var(--brand-500);
  color: var(--navy-900);
}

.btn--primary:hover {
  background-color: var(--brand-400);
  color: var(--navy-900);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: transparent;
  color: #fff;
  font-weight: 500;
}

.btn--ghost:hover {
  border-color: rgba(4, 160, 252, 0.6);
  color: var(--brand-400);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--hairline);
  background-color: var(--navy-900);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
}

.brand:hover { color: inherit; }

.brand__mark {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  margin-block: -0.5rem;
}

.brand__type {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

.brand__name {
  display: block;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
}

.brand__suffix {
  display: block;
  margin-top: 0.375rem;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--brand-500);
}

.nav-primary {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-primary a {
  font-size: 0.875rem;
  color: var(--slate-300);
}

.nav-primary a:hover { color: var(--brand-400); }

.nav-primary .btn--primary { color: var(--navy-900); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background-color: transparent;
  padding: 0.5rem;
  color: var(--slate-300);
  cursor: pointer;
}

.nav-toggle:hover { color: #fff; }

.nav-mobile {
  border-top: 1px solid var(--hairline);
  background-color: var(--navy-800);
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  padding-block: 0.5rem;
}

.nav-mobile a {
  border-bottom: 1px solid var(--hairline-soft);
  padding-block: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-300);
}

.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a:hover { color: var(--brand-400); }

@media (min-width: 768px) {
  .nav-primary { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  /* Pier pilings: evenly spaced vertical rules behind the copy. */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(143, 166, 184, 0.16) 0 1px,
    transparent 1px 88px
  );
}

/* Deck boards banding along the bottom edge of the hero. */
.hero__deck {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 6rem;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(143, 166, 184, 0.10) 0 1px,
    transparent 1px 14px
  );
}

.hero__inner {
  position: relative;
  padding-block: 5rem;
}

@media (min-width: 640px) {
  .hero__inner { padding-block: 7rem; }
}

@media (min-width: 1024px) {
  .hero__inner { padding-block: 8rem; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(4, 160, 252, 0.3);
  border-radius: 9999px;
  background-color: rgba(4, 160, 252, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-400);
}

.hero__lede {
  max-width: 42rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.625;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2.5rem;
  max-width: 48rem;
  margin-top: 4rem;
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
}

.hero__facts dd {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #fff;
}

.hero__facts dd a { color: var(--brand-400); }
.hero__facts dd a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Section intro ─────────────────────────────────────────── */
.section__intro { max-width: 42rem; }
.section__intro p { margin-top: 1rem; }

/* ── Service cards ─────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background-color: var(--navy-900);
  padding: 1.75rem;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(4, 160, 252, 0.4);
  border-radius: var(--radius-md);
  background-color: rgba(4, 160, 252, 0.1);
}

.card p {
  margin-top: 0.75rem;
  font-size: 15px;
  line-height: 1.625;
  text-wrap: pretty;
}

/* ── Split layouts ─────────────────────────────────────────── */
.split {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .split--product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
  }
  .split--about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .split--contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.kicker {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-400);
}

.lede--first { margin-top: 1.25rem; }
.lede + .lede { margin-top: 1rem; }
.product__heading { margin-top: 1rem; }

.product__note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--slate-400);
}

.emphasis {
  font-weight: 500;
  color: #fff;
}

/* ── Illustrative product panel ────────────────────────────── */
.mock {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background-color: var(--navy-800);
  padding: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.mock__chrome {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem 0.75rem;
}

.mock__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
}

.mock__dot:nth-child(2) { background-color: rgba(255, 255, 255, 0.15); }
.mock__dot:nth-child(3) { background-color: rgba(255, 255, 255, 0.1); }

.mock__label {
  margin-left: 0.75rem;
  font-size: 11px;
  letter-spacing: 0.025em;
  color: var(--slate-400);
}

.mock__body {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.75rem;
  border-radius: var(--radius-lg);
  background-color: var(--navy-900);
  padding: 0.75rem;
}

.mock__rail,
.mock__main,
.mock__lines {
  display: flex;
  flex-direction: column;
}

.mock__rail { gap: 0.5rem; }
.mock__main { gap: 0.75rem; }
.mock__lines { gap: 0.5rem; }

.mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock__tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.bar {
  display: block;
  border-radius: 0.25rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.bar--accent { background-color: rgba(4, 160, 252, 0.25); }
.bar--accent-soft { background-color: rgba(4, 160, 252, 0.3); }

.bar--tile {
  height: 3rem;
  background-color: var(--surface-raise);
}

.bar--tile-active {
  height: 3rem;
  background-color: rgba(4, 160, 252, 0.15);
  box-shadow: inset 0 0 0 1px rgba(4, 160, 252, 0.3);
}

/* ── Fact table (About) ────────────────────────────────────── */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background-color: var(--hairline);
}

.facts > div {
  background-color: var(--navy-900);
  padding: 1.5rem;
}

.facts dd {
  margin-top: 0.5rem;
  color: #fff;
}

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .facts { grid-template-columns: 1fr; }
}

/* ── Contact ───────────────────────────────────────────────── */
.contact__details {
  margin-top: 2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
}

.contact__details > div + div { margin-top: 1.25rem; }

.contact__value { margin-top: 0.25rem; }

.contact__email {
  font-size: 1.125rem;
}

.contact__email:hover { text-decoration: underline; }

.contact__note {
  margin-top: 0.25rem;
  font-size: 15px;
  line-height: 1.625;
  text-wrap: pretty;
}

/* ── Form ──────────────────────────────────────────────────── */
.form {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background-color: var(--navy-800);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .form { padding: 2rem; }
}

.form__grid {
  display: grid;
  gap: 1.25rem;
}

.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.form input,
.form textarea {
  width: 100%;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background-color: var(--navy-900);
  padding: 0.625rem 0.75rem;
  color: #fff;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.form textarea { resize: vertical; }

.form input::placeholder,
.form textarea::placeholder { color: var(--slate-400); }

.form input:focus,
.form textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 2px rgba(4, 160, 252, 0.4);
  outline: none;
}

.form__error {
  font-size: 0.875rem;
  color: var(--brand-400);
}

.form__status {
  font-size: 0.875rem;
  color: var(--brand-400);
}

.form__fineprint {
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--slate-400);
}

/* Honeypot: hidden from people, reachable by naive bots. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--navy-900);
}

.site-footer__inner { padding-block: 3rem; }

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.site-footer__brand { max-width: 28rem; }

.site-footer__lockup {
  width: 11rem;
  margin-bottom: 1.25rem;
}

.site-footer__entity {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.site-footer__blurb {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--slate-400);
  text-wrap: pretty;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.site-footer__nav a,
.linkish {
  font-size: 0.875rem;
  text-underline-offset: 4px;
}

.site-footer__nav a:hover,
.linkish:hover { text-decoration: underline; }

.linkish {
  border: 0;
  background-color: transparent;
  padding: 0;
  color: var(--brand-400);
  cursor: pointer;
}

.site-footer__legal {
  margin-top: 2.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--slate-400);
}

@media (min-width: 768px) {
  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* ── Modals ────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal__panel {
  width: 100%;
  max-width: 42rem;
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background-color: var(--navy-800);
  padding: 1.5rem;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.modal__close {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background-color: transparent;
  padding: 0.25rem 0.625rem;
  font-size: 0.875rem;
  color: var(--slate-300);
  cursor: pointer;
}

.modal__close:hover { color: #fff; }

.modal__meta { margin-top: 0.5rem; }

.modal__body {
  margin-top: 1.5rem;
  font-size: 15px;
  line-height: 1.625;
}

.modal__body > * + * { margin-top: 1.25rem; }

.modal__body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.notice {
  border: 1px solid rgba(4, 160, 252, 0.25);
  border-radius: var(--radius-md);
  background-color: rgba(4, 160, 252, 0.1);
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--brand-400);
}

@media (min-width: 640px) {
  .modal {
    align-items: center;
    padding: 1.5rem;
  }
  .modal__panel {
    border-radius: var(--radius-xl);
    padding: 2rem;
  }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .site-header, .nav-toggle, .hero__actions, .form, .modal { display: none !important; }
  body { background: #fff; color: #000; }
  .h1, .h2, .h3, .emphasis { color: #000; }
}
