/* ============================================================
   24/7 Mobile Notary of the Jersey Shore — Design Tokens
   Ink navy + brass seal + oxide red on parchment.
   Display: Fraunces / Body: IBM Plex Sans / Labels: IBM Plex Mono
   ============================================================ */

:root {
  --ink: #1B3A4B;
  --ink-soft: #3E6376;
  --parchment: #E7DABB;
  --paper: #F7F3E9;
  --brass: #D98F2B;
  --brass-light: #F0B65C;
  --steel: #4F8A93;
  --oxide: #A63D33;
  --line: rgba(27, 58, 75, 0.14);

  --display: 'Fraunces', serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --radius: 3px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
img { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 98px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand-seal {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
  text-transform: uppercase;
  margin-top: 2px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
nav.main-nav a:hover, nav.main-nav a:focus-visible { color: var(--oxide); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--oxide);
  border-color: var(--oxide);
  color: var(--paper);
}
.btn-primary:hover, .btn-primary:focus-visible { background: #732f24; border-color: #732f24; color: var(--paper); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 78%, var(--parchment) 100%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.06;
}
.hero h1 em {
  font-style: italic;
  color: var(--oxide);
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.hero-meta strong { color: var(--ink); display: block; font-size: 15px; font-family: var(--body); font-weight: 600; }

.seal-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}
.beacon {
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(217,143,43,0.16), transparent 60%);
  border: 1px solid var(--line);
  animation: riseIn 0.7s cubic-bezier(.2,.8,.2,1) both;
}
.beacon-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(240,182,92,0.32) 18deg, transparent 42deg, transparent 360deg);
  animation: sweep 6s linear infinite;
  transform-origin: 50% 38%;
}
@media (prefers-reduced-motion: reduce) { .beacon-sweep { animation: none; } }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.beacon-icon {
  position: relative;
  width: 34%;
  color: var(--ink);
  filter: drop-shadow(0 2px 6px rgba(27,58,75,0.25));
}
.beacon-icon .lamp { fill: var(--brass); }
.beacon-icon .tower { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.beacon-icon .stripe { fill: var(--oxide); }
.beacon-label {
  position: absolute;
  bottom: 15%;
  text-align: center;
  font-family: var(--display);
}
.beacon-label .num {
  font-size: 1.6rem;
  font-weight: 600;
  display: block;
  line-height: 1;
  color: var(--ink);
}
.beacon-label .sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
@keyframes riseIn {
  0% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.horizon {
  display: block;
  width: 100%;
  height: 44px;
}
.horizon path { fill: var(--parchment); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--parchment); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 20ch; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-mark {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 34px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.about-mark dl { margin: 0; }
.about-mark dt { text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass); margin-top: 18px; }
.about-mark dt:first-child { margin-top: 0; }
.about-mark dd { margin: 4px 0 0; color: var(--ink); font-size: 14px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  padding: 30px 26px;
}
.service-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Coverage ---------- */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.coverage-col h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}
.town-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.town-list li {
  font-size: 14px;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 20px;
  background: var(--paper);
}
.coastline {
  margin-top: 44px;
  width: 100%;
  height: auto;
}
.coverage-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ---------- Reviews ---------- */
.review-head-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.rating-badge {
  font-family: var(--mono);
  border: 1px solid var(--brass);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--brass);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
  border-radius: var(--radius);
}
.review-card .stamp {
  position: absolute;
  top: 18px; right: 18px;
  padding: 5px 9px;
  border-radius: 3px;
  border: 1px solid var(--brass);
  color: var(--brass);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
  transform: rotate(4deg);
  opacity: 0.9;
}
.review-card .stars { color: var(--brass); letter-spacing: 2px; margin-bottom: 14px; }
.review-card blockquote {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.review-card cite {
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.review-cta {
  margin-top: 36px;
  text-align: center;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.blog-card:hover, .blog-card:focus-visible { border-color: var(--brass); transform: translateY(-2px); }
.blog-card .eyebrow { margin-bottom: 16px; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: var(--ink-soft); margin: 0; flex: 1; }
.blog-card .read-more { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--oxide); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p.lead { color: rgba(250,247,238,0.75); margin: 0 auto 32px; }
.cta-band .btn { border-color: var(--paper); color: var(--paper); }
.cta-band .btn:hover { background: var(--paper); color: var(--ink); }
.cta-band .btn-primary { background: var(--oxide); border-color: var(--oxide); color: var(--paper); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
footer.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site-footer nav a { margin-left: 20px; text-decoration: none; color: var(--ink-soft); }
footer.site-footer nav a:hover { color: var(--oxide); }

/* ---------- Blog post page ---------- */
.post-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}
.post-hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); max-width: 22ch; }
.post-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.post-body {
  max-width: 70ch;
  padding: 56px 0;
  margin: 0 auto;
}
.post-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.post-body p { color: var(--ink-soft); margin: 0 0 1.2em; }
.post-body ul { color: var(--ink-soft); }
.post-cta {
  border: 1px solid var(--line);
  background: var(--parchment);
  padding: 28px;
  border-radius: var(--radius);
  margin: 40px 0;
}
.post-cta p { margin: 0 0 16px; color: var(--ink); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--steel);
  margin-bottom: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .seal-stage { order: -1; }
  .seal { width: 200px; margin: 0 auto 12px; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .coverage-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  footer.site-footer .wrap { flex-direction: column; align-items: flex-start; }
  footer.site-footer nav a { margin-left: 0; margin-right: 18px; }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
}
