/* Joseph Guaracino — personal site */

:root {
  --navy: #101820;
  --navy-2: #182430;
  --navy-3: #223040;
  --gold: #c4a35a;
  --gold-hover: #d4b56e;
  --gold-dim: #8d7340;
  --cream: #f4efe6;
  --paper: #fbf8f3;
  --ink: #1c1b18;
  --muted: #5c5850;
  --line: #e4ddd0;
  --line-strong: #cfc6b6;
  --cream-text: #f3eee4;
  --cream-muted: #b7b0a3;
  --max: 1120px;
  --header-h: 4.25rem;
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html, body { margin: 0; padding: 0; }

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

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

a {
  color: var(--gold-dim);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 24, 32, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 163, 90, 0.18);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream-text);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--gold); font-style: italic; font-weight: 500; }

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  position: relative;
}
.nav-toggle-label .bar,
.nav-toggle-label .bar::before,
.nav-toggle-label .bar::after {
  position: absolute;
  left: 0.45rem;
  width: 1.5rem;
  height: 2px;
  background: var(--cream-text);
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
  content: "";
}
.nav-toggle-label .bar { top: 50%; transform: translateY(-50%); }
.nav-toggle-label .bar::before { top: -6px; }
.nav-toggle-label .bar::after { top: 6px; content: ""; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.65rem;
}
.nav a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 70% at 80% 20%, rgba(196, 163, 90, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(40, 60, 80, 0.5), transparent 60%),
    var(--navy);
  color: var(--cream-text);
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 6.4vw, 5.15rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 1.35rem;
  color: var(--cream-text);
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.rule {
  width: 5.5rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.4rem;
}

.headline {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cream-text);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--cream-muted);
  max-width: 38rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--gold);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--gold-hover); color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--cream-text);
  border-color: rgba(243, 238, 228, 0.28);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.portrait-frame {
  justify-self: end;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  position: relative;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(196, 163, 90, 0.35);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy-2);
}

/* ---------- Sections ---------- */
section { padding: 5.25rem 0; }

.section-kicker {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 0.55rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--navy);
  text-wrap: balance;
}

.intro {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 42rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

/* About */
#about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem 4rem;
  align-items: start;
}
.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--navy);
  margin: 0;
  text-wrap: pretty;
}

/* Ventures */
#ventures { background: var(--paper); }

.group-label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.group-label:first-of-type { margin-top: 0.5rem; }

.venture {
  padding: 1.5rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}
.venture:last-child { border-bottom: 0; }

.venture.featured {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.75rem 1.75rem 1.6rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.venture-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.venture h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.venture .role {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

.venture .when {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.venture p { margin: 0.65rem 0 0; color: var(--ink); }
.venture p + p { margin-top: 0.7rem; }

.venture a { color: var(--gold-dim); font-weight: 600; text-decoration: none; }
.venture a:hover { text-decoration: underline; color: var(--ink); }

#ventures .intro { margin: -0.5rem 0 1.75rem; color: var(--muted); }

.testimonials {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.testimonials h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 1.15rem;
  color: var(--navy);
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 3rem;
}
.customer-quote {
  margin: 0;
  padding: 0;
  border: 0;
}
.customer-quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--navy);
}
.customer-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

#public-service { background: var(--cream); }
#public-service .intro { max-width: 46rem; margin-bottom: 0; }

/* HALT feature */
#halt {
  background: var(--navy);
  color: var(--cream-text);
}
#halt .section-kicker { color: var(--gold); }
#halt h2 { color: var(--cream-text); }
#halt .rule { margin-bottom: 1.75rem; }

.halt-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.25rem;
  align-items: start;
}

#halt p { color: var(--cream-muted); }
#halt p strong { color: var(--cream-text); font-weight: 600; }

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.4;
  color: var(--cream-text);
  margin: 1.5rem 0 0.75rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--gold);
}
.pullquote-attr {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.newsletter-fig { margin: 0; }
.newsletter-fig img {
  width: 100%;
  border: 1px solid rgba(196, 163, 90, 0.3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  background: #fff;
}
.newsletter-fig figcaption {
  font-size: 0.82rem;
  color: var(--cream-muted);
  margin-top: 0.75rem;
}

/* Law enforcement */
#service { background: var(--cream); }

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  margin-top: 0.5rem;
}

.list-block h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: var(--navy);
}

.list-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-block li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.list-block li:last-child { border-bottom: 0; }
.list-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 1px;
  background: var(--gold);
}

/* Community & Leadership */
#community { background: var(--paper); }

.community-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.7fr;
  gap: 1.35rem 1.5rem;
  margin-top: 2rem;
  align-items: start;
}
.community-grid figure { margin: 0; }
.community-grid img {
  width: 100%;
  height: auto;
  background: var(--navy-2);
}
.community-grid figcaption,
.service-photo figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.65rem;
  line-height: 1.45;
}

/* Service photo + lists */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
  margin-top: 2rem;
}
.service-photo { margin: 0; }
.service-photo img {
  width: 100%;
  height: auto;
  background: var(--navy-2);
}
.service-layout .service-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 0;
}

/* Media */
#news { background: var(--cream); }


.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 2.75rem;
}

.video-card figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.65rem;
}

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: block;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}
.embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.embed:hover .play-btn,
.embed:focus-visible .play-btn {
  background: var(--gold-hover);
  transform: translate(-50%, -50%) scale(1.06);
}
.play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--navy);
  margin-left: 3px;
}

.coverage h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.coverage-note {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.coverage ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.coverage li {
  border-bottom: 1px solid var(--line);
}
.coverage a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.95rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.coverage a:hover { color: var(--gold-dim); }
.coverage .source {
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-dim);
  min-width: 4.5rem;
}
.coverage .title { flex: 1; min-width: 12rem; }
.coverage .outlet {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.vid-outlet {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85em;
}

/* Contact */
#contact {
  background: var(--navy-2);
  color: var(--cream-text);
}
#contact .section-kicker { color: var(--gold); }
#contact h2 { color: var(--cream-text); }
#contact p { color: var(--cream-muted); max-width: 36rem; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2rem;
}
.contact-links a {
  color: var(--cream-text);
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(196, 163, 90, 0.3);
  padding-bottom: 0.75rem;
  max-width: 36rem;
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
.contact-links a:hover { color: var(--gold); border-color: var(--gold); }
.contact-links .label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--cream-muted);
  padding: 1.75rem 0;
  font-size: 0.88rem;
  border-top: 1px solid rgba(196, 163, 90, 0.18);
}
.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.site-footer a { color: var(--cream-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .halt-grid,
  .service-grid,
  .service-layout,
  .community-grid,
  .quote-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
  .community-grid .featured-photo {
    grid-column: auto;
    grid-row: auto;
  }
  /* Keep the fireplace group photo first on small screens */
  .community-grid { display: flex; flex-direction: column; }
  .community-grid .featured-photo { order: -1; }

  .hero { padding: 3.5rem 0 3.75rem; }
  .hero-grid { gap: 2.5rem; }
  .portrait-frame {
    justify-self: start;
    width: min(100%, 320px);
  }
  .portrait-frame::before { display: none; }

  .nav-toggle-label { display: block; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(196, 163, 90, 0.18);
    display: none;
    padding: 0.5rem 0 1rem;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
    width: min(var(--max), calc(100% - 2.5rem));
    margin-inline: auto;
  }
  .nav a { display: block; padding: 0.75rem 0; }

  .nav-toggle:checked ~ .nav { display: block; }
  .nav-toggle:checked + .nav-toggle-label .bar { background: transparent; }
  .nav-toggle:checked + .nav-toggle-label .bar::before {
    top: 0;
    transform: rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-label .bar::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .venture .when { margin-left: 0; width: 100%; }
  section { padding: 3.75rem 0; }
}

@media (max-width: 560px) {
  .wrap, .header-inner, .footer-inner {
    width: min(var(--max), calc(100% - 1.75rem));
  }
  .hero h1 { font-size: 2.65rem; }
  .venture.featured { padding: 1.25rem; }
}

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

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

#about, #ventures, #halt, #public-service, #community, #news, #contact {
  scroll-margin-top: calc(var(--header-h) - 1px);
}

.hero h1 .nick {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
