/* Pier 7 LLC — minimal static site */
:root {
  --navy-1: #173758;
  --navy-2: #0a1f37;
  --cream: #f2ede3;
  --ink: #1a2433;
  --muted: #5c6b7a;
  --line: #e3ddd1;
  --bg: #faf8f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-1); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Inline prose links must be distinguishable by more than color (WCAG 1.4.1) */
main p a, main li a { text-decoration: underline; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  background: radial-gradient(120% 140% at 50% 30%, var(--navy-1), var(--navy-2));
  color: var(--cream);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px max(24px, calc((100% - 760px) / 2));
  background: rgba(10, 31, 55, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 237, 227, 0.1);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--cream); font-weight: 300; letter-spacing: 4px;
  text-transform: uppercase; font-size: 15px;
}
.brand img { width: 34px; height: 34px; border-radius: 6px; }
.brand:hover { text-decoration: none; }
.nav-links a {
  color: var(--cream); margin-left: 22px; font-size: 14px;
  letter-spacing: 1px; opacity: 0.85;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* Hero */
.hero {
  background: radial-gradient(120% 140% at 50% 20%, var(--navy-1), var(--navy-2));
  color: var(--cream); text-align: center;
  padding: 88px 24px 100px;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: 12px;
  font-weight: 400; opacity: 0.7; margin-bottom: 20px;
}
.hero h1 {
  font-weight: 300; letter-spacing: 0.3px; line-height: 1.1;
  font-size: clamp(32px, 6vw, 52px); margin: 0 auto 20px; max-width: 720px;
}
.hero-sub {
  max-width: 600px; margin: 0 auto 32px; opacity: 0.85;
  font-weight: 300; font-size: 18px; line-height: 1.6;
}

/* Content */
main { padding: 56px 0 72px; }
main.home { padding: 0; }
main h1 {
  font-weight: 300; letter-spacing: 1px; font-size: 30px;
  margin-bottom: 8px; color: var(--navy-2);
}
main h2 {
  font-weight: 400; font-size: 20px; margin: 34px 0 10px;
  color: var(--navy-2);
}
main p, main li { color: var(--ink); margin-bottom: 14px; font-size: 16px; }
main ul { padding-left: 22px; margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.cards { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 24px; background: #fff;
}
.card h3 { font-weight: 500; font-size: 17px; margin-bottom: 8px; color: var(--navy-2); }
.card p { font-size: 15px; color: var(--muted); margin: 0; }

/* Footer */
footer.site {
  background: var(--navy-2); padding: 40px 24px;
  color: rgba(242, 237, 227, 0.6); font-size: 14px;
}
.foot {
  max-width: 760px; margin: 0 auto; display: flex;
  flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
}
.foot-links a { color: rgba(242, 237, 227, 0.82); margin-left: 18px; }
.foot-links a:hover { color: var(--cream); text-decoration: none; }
.foot-links a:first-child { margin-left: 0; }

/* Mobile / responsive */
@media (max-width: 600px) {
  .nav { flex-direction: column; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 18px; }
  .nav-links a { margin-left: 0; }
  .nav-links a.nav-cta {
    flex-basis: 100%; max-width: 190px; margin: 8px auto 0;
    text-align: center; padding: 8px 18px; font-size: 13px;
    border-color: rgba(242, 237, 227, 0.5);
  }
  .hero { padding: 58px 22px 66px; }
  .hero-sm { padding: 50px 22px 56px; }
  .band { padding: 50px 22px; }
  .cta-band { padding: 64px 22px; }
  .foot { justify-content: center; text-align: center; gap: 10px; }
  .foot-links a:first-child { margin-left: 0; }

  /* On scroll, the nav collapses to a compact fixed bar (brand + Get in touch)
     that hides on scroll-down and reveals on scroll-up. */
  .nav.nav-stuck {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    flex-direction: row; gap: 0; padding: 9px 20px;
    background: var(--navy-2); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease;
  }
  .nav.nav-stuck .nav-links { gap: 0; }
  .nav.nav-stuck .nav-links a:not(.nav-cta) { display: none; }
  .nav.nav-stuck .nav-links a.nav-cta {
    flex-basis: auto; max-width: none; margin: 0; padding: 7px 16px; font-size: 13px;
  }
  .nav.nav-stuck.nav-hidden { transform: translateY(-100%); }
  html { scroll-padding-top: 72px; }
}

/* Desktop: fixed headroom nav (hides on scroll down, reveals on scroll up) */
@media (min-width: 601px) {
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: transform 0.32s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  }
  .nav.nav-hidden { transform: translateY(-100%); }
  .nav.nav-solid { background: var(--navy-2); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28); border-bottom-color: rgba(242, 237, 227, 0.12); }
  main:not(.home) { padding-top: 92px; }
  html { scroll-padding-top: 84px; }
}

/* Cookie consent banner */
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 720px; margin: 0 auto;
  background: var(--navy-2); color: var(--cream);
  border-radius: 12px; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  justify-content: space-between;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}
.consent-text { margin: 0; font-size: 14px; line-height: 1.55; flex: 1 1 320px; color: var(--cream); }
.consent-text a { color: var(--cream); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-btn {
  font: inherit; font-size: 14px; cursor: pointer;
  border-radius: 7px; padding: 9px 18px; border: 1px solid transparent;
}
.consent-decline {
  background: transparent; color: var(--cream);
  border-color: rgba(242, 237, 227, 0.4);
}
.consent-decline:hover { border-color: var(--cream); }
.consent-accept { background: var(--cream); color: var(--navy-2); font-weight: 500; }
.consent-accept:hover { opacity: 0.9; }

/* Lead form */
.lead-form { margin-top: 24px; max-width: 520px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-size: 14px; color: var(--navy-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; background: #fff; width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-1);
  box-shadow: 0 0 0 3px rgba(23, 55, 88, 0.12);
}
.field textarea { resize: vertical; }
.lf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lf-submit {
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  background: var(--navy-2); color: var(--cream);
  border: none; border-radius: 8px; padding: 11px 28px;
}
.lf-submit:hover { opacity: 0.92; }
.lf-submit:disabled { opacity: 0.5; cursor: default; }
.lf-status { font-size: 14px; color: var(--muted); margin-top: 12px; min-height: 1em; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-consent { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 14px; }
.form-consent a { color: var(--navy-1); text-decoration: underline; }

/* Success confirmation panel (shown after a successful submit) */
.lead-success {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 560px; margin-top: 8px;
  border: 1px solid var(--line); border-left: 3px solid var(--navy-1);
  border-radius: 10px; padding: 22px 24px; background: #fff;
}
.lead-success-mark {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-2); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1;
}
.lead-success strong { display: block; font-size: 18px; color: var(--navy-2); margin-bottom: 4px; }
.lead-success p { margin: 0; color: var(--muted); font-size: 15px; }

/* Buttons */
.btn {
  display: inline-block; font-size: 15px; font-weight: 500; letter-spacing: 0.3px;
  padding: 13px 30px; border-radius: 8px;
  background: var(--cream); color: var(--navy-2); border: 1px solid var(--cream);
}
.btn:hover { opacity: 0.9; text-decoration: none; }
.btn-light { background: var(--cream); color: var(--navy-2); }

/* Nav CTA */
.nav-cta {
  border: 1px solid rgba(242, 237, 227, 0.4); border-radius: 7px;
  padding: 7px 16px; opacity: 1;
}
.nav-cta:hover { border-color: var(--cream); background: rgba(242, 237, 227, 0.08); text-decoration: none; }

/* Sections / bands */
.band { padding: 64px 24px; }
.band-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: 12px;
  font-weight: 600; color: var(--navy-1); opacity: 0.7; margin-bottom: 10px;
}
.band h2, .cta-band h2 {
  font-weight: 300; font-size: clamp(24px, 4vw, 34px); line-height: 1.15;
  color: var(--navy-2); margin: 0 0 16px; letter-spacing: 0.3px;
}

/* Split (why) */
.split-grid { display: grid; gap: 36px; align-items: center; max-width: 1000px; margin: 0 auto; }
@media (min-width: 800px) { .split-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.pillars { list-style: none; padding: 0; margin: 20px 0 0; }
.pillars li { margin-bottom: 16px; color: var(--ink); font-size: 16px; line-height: 1.6; }
.pillars strong { color: var(--navy-2); }
.split-media img { width: 100%; border-radius: 12px; display: block; box-shadow: 0 18px 50px rgba(10, 31, 55, 0.18); }

/* Process steps */
.steps { list-style: none; padding: 0; margin: 28px auto 0; max-width: 900px; display: grid; gap: 24px; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; gap: 28px 44px; } }
.steps li { border-top: 2px solid var(--navy-1); padding-top: 16px; }
.step-num { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--navy-1); }
.steps h3 { font-weight: 500; font-size: 18px; color: var(--navy-2); margin: 6px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.6; }

/* CTA band */
.cta-band {
  background: linear-gradient(180deg, rgba(10, 31, 55, 0.85), rgba(10, 31, 55, 0.93)), url('assets/texture.jpg') center/cover no-repeat;
  color: var(--cream); text-align: center; padding: 84px 24px;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--cream); opacity: 0.88; font-size: 17px; margin: 0 0 28px; }

/* Accessibility */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--navy-2); color: var(--cream);
  padding: 10px 16px; border-radius: 8px; font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }
:focus-visible { outline: 2px solid var(--navy-1); outline-offset: 2px; border-radius: 3px; }
.hero a:focus-visible, .cta-band a:focus-visible, .nav a:focus-visible, .skip-link:focus-visible { outline-color: var(--cream); }
main:focus { outline: none; }

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

/* About: smaller hero + contact */
.hero-sm { padding: 72px 24px 78px; }
/* Photo headers: the image covers the whole header (nav + hero) so the
   frosted nav blurs the image, and the hero text sits over it. */
.site.site-skyline {
  background: linear-gradient(180deg, rgba(10, 31, 55, 0.9), rgba(10, 31, 55, 0.7) 45%, rgba(10, 31, 55, 0.93)), url('assets/skyline.jpg') center 56% / cover no-repeat;
}
.site.site-miami {
  background: linear-gradient(180deg, rgba(10, 31, 55, 0.88), rgba(10, 31, 55, 0.74) 45%, rgba(10, 31, 55, 0.93)), url('assets/miami.jpg') center 58% / cover no-repeat;
}
.hero.on-photo { background: transparent; }
.contact-wrap { max-width: 620px; margin: 0 auto; }
