/* ═══════════════════════════════════════════════════════════
   SprayCast — nav.css
   Shared nav, footer, legal, contact, accordion, CTA styles
   Required by all pages.
═══════════════════════════════════════════════════════════ */

/* ── Nav ──────────────────────────────────────────────────── */
.standalone-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,.8);
  transition: box-shadow .2s;
}
.standalone-nav.scrolled { box-shadow: 0 4px 24px rgba(15,23,42,.10); }
.standalone-nav-inner {
  display: flex; align-items: center;
  height: var(--nav-h);
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  position: relative;
}
.standalone-nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--navy); letter-spacing: -.01em;
  flex-shrink: 0;
  margin-right: auto;
}
/* "Spray" = black, "Cast" = blue italic — all one word */
.standalone-nav-brand .brand-spray { color: var(--navy); font-style: normal; }
.standalone-nav-brand .brand-cast  { color: var(--sky);  font-style: italic; }

/* Round logo image */
.standalone-nav-brand img {
  height: 36px; width: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Centre the links between brand and CTA */
.standalone-nav-links {
  display: flex; align-items: center;
  position: absolute;
  left: 50%; transform: translateX(-50%);
}
/* Dividers between items using pseudo-element */
.standalone-nav-links a {
  font-size: 15px; font-weight: 500;
  color: var(--slate);
  padding: 8px 28px;
  transition: color .15s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
/* Pipe divider after each item except the last */
.standalone-nav-links a:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: 0;
  top: 50%; transform: translateY(-50%);
  color: var(--border);
  font-weight: 300;
  font-size: 14px;
  pointer-events: none;
}
.standalone-nav-links a:hover { color: var(--sky) !important; background: none !important; }
.standalone-nav-links a.active { color: var(--sky) !important; font-weight: 600; }

.standalone-nav-cta {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Footer ───────────────────────────────────────────────── */
.standalone-footer {
  background: var(--navy);
  color: var(--slate-light);
  padding: 48px 0 32px;
}
.standalone-footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: start;
}
.standalone-footer-brand {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--white); letter-spacing: -.01em;
}
.standalone-footer-brand em { font-style: italic; color: var(--sky-light); }
.standalone-footer-tagline {
  font-size: 13px; font-style: italic;
  color: var(--sky-light);
  margin-top: 6px;
}
.standalone-footer-links {
  display: flex; align-items: center; gap: 20px;
  padding-top: 6px;
}
.standalone-footer-links a {
  font-size: 13px; color: var(--slate-light);
  text-decoration: none; transition: color .15s;
}
.standalone-footer-links a:hover { color: var(--white); }
.standalone-footer-copy {
  font-size: 12px; color: rgba(148,163,184,.5);
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(148,163,184,.12);
  margin-top: 8px;
}
.standalone-footer-copy a { color: rgba(148,163,184,.6); text-decoration: none; }
.standalone-footer-copy a:hover { color: var(--white); }

/* ── CTA section ──────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding: 96px 0;
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner p {
  font-size: 18px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  font-weight: 300;
  margin-top: 20px;
}

/* ── How It Works accordion ───────────────────────────────── */
.sm-guide-section { background: var(--off-white); }
.sm-accordion { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.sm-acc-item { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.sm-acc-btn {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; background: none; border: none; cursor: pointer;
  text-align: left; transition: background .15s;
}
.sm-acc-btn:hover { background: var(--sky-pale); }
.sm-acc-btn.open { background: var(--sky-pale); border-bottom: 1px solid var(--border); }
.sm-acc-ico { font-size: 22px; flex-shrink: 0; }
.sm-acc-title { flex: 1; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); }
.sm-acc-chevron { color: var(--sky); font-size: 18px; flex-shrink: 0; transition: transform .2s; }
.sm-acc-btn.open .sm-acc-chevron { transform: rotate(180deg); }
.sm-acc-body { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.sm-acc-body.open { max-height: 1200px; padding: 18px 22px 22px; }
.sm-acc-block { margin-bottom: 16px; }
.sm-acc-block:last-child { margin-bottom: 0; }
.sm-acc-block-hdr { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--sky); margin-bottom: 6px; }
.sm-acc-block-txt { font-size: 14px; color: var(--slate); line-height: 1.75; font-weight: 300; }
.sm-acc-block-txt p { margin: 0 0 6px; }
.sm-acc-block-txt p:last-child { margin-bottom: 0; }

/* ── Legal pages ──────────────────────────────────────────── */
.legal-wrap { max-width: 720px; margin: 0 auto; }
.legal-block { padding: 24px 0; border-bottom: 1px solid var(--border); }
.legal-block:last-child { border-bottom: none; }
.legal-hdr { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.legal-txt { font-size: 15px; color: var(--slate); line-height: 1.8; font-weight: 300; margin-bottom: 10px; }
.legal-txt:last-child { margin-bottom: 0; }
.legal-txt strong { color: var(--navy); font-weight: 600; }
.legal-list { margin: 10px 0 10px 0; display: flex; flex-direction: column; gap: 8px; }
.legal-list li { font-size: 14px; color: var(--slate); line-height: 1.7; font-weight: 300; padding-left: 18px; position: relative; }
.legal-list li::before { content: '·'; position: absolute; left: 4px; color: var(--sky); font-weight: 700; }
.legal-list li strong { color: var(--navy); font-weight: 600; }
.legal-intro { font-size: 13px; color: var(--slate-light); margin-bottom: 8px; }
.legal-copy { font-size: 12px; color: var(--slate-light); text-align: center; padding: 32px 0 0; }

/* ── Contact page ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
}
.contact-info p { font-size: 15px; color: var(--slate); line-height: 1.75; font-weight: 300; margin-bottom: 20px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--sky);
  text-decoration: none; transition: color .15s;
}
.contact-email:hover { color: var(--sky-light); }
.contact-meta { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.contact-meta-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; color: var(--slate); font-weight: 300; }
.contact-meta-item strong { color: var(--navy); font-weight: 600; min-width: 100px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.contact-field input,
.contact-field select,
.contact-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px; font-family: var(--font-body);
  color: var(--navy); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-success {
  background: #dcfce7; border: 1px solid #86efac;
  border-radius: var(--radius); padding: 16px 20px;
  font-size: 15px; color: var(--green); font-weight: 500;
  display: none;
}

/* ── Shared JS scroll reveal ──────────────────────────────── */
/* (applied via data-reveal in HTML, activated by inline script) */

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .standalone-nav-links { display: none; }
  .standalone-footer-inner { grid-template-columns: 1fr; }
  .standalone-footer-links { flex-direction: column; gap: 10px; align-items: flex-start; }
  .cta-section { padding: 64px 0; }
}

/* ── Hamburger ────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── Mobile nav dropdown ──────────────────────────────────── */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color .15s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--sky); }
.nav-mobile .btn {
  margin-top: 8px;
  width: 100%;
  text-align: center;
}

@media (max-width: 720px) {
  .standalone-nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .standalone-nav-cta { display: none; }
}

/* ── Delete account page ──────────────────────────────────── */
.legal-warn {
  background-color: rgba(217,119,6,.08);
  border: 1px solid rgba(217,119,6,.28);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.legal-warn-hdr { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #b45309; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.legal-warn .legal-txt { color: var(--navy-light); margin-bottom: 8px; }
.legal-warn .legal-txt:last-child { margin-bottom: 0; }
.legal-sub { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; margin: 20px 0 8px; }
.legal-steps { margin: 10px 0 12px; padding: 0; list-style: none; counter-reset: legal-step; display: flex; flex-direction: column; gap: 10px; }
.legal-steps li { counter-increment: legal-step; position: relative; padding-left: 34px; font-size: 15px; color: var(--slate); line-height: 1.7; font-weight: 300; }
.legal-steps li::before { content: counter(legal-step); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background-color: var(--sky-pale); color: var(--sky); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.legal-steps li strong { color: var(--navy); font-weight: 600; }
