/* La Perla Company — audit opt-in site
   Shared stylesheet. Externalized so the CSP can forbid inline styles. */

:root {
  --navy-1:    #07111F;
  --navy-2:    #0A1A2F;
  --navy-3:    #0F2440;
  --gold:      #C5A05C;
  --gold-lt:   #D9BF7E;
  --gold-rule: rgba(197, 160, 92, 0.35);
  --cream:     #F4EAD5;
  --cream-2:   #FAF7EF;
  --white:     #FFFFFF;
  --ink:       #1a1208;
  --ink-m:     #6d6252;
  --line:      #ded4c1;
  --err:       #b3261e;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --max:   720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.legal { line-height: 1.68; }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--gold); color: var(--navy-1);
  font-size: .8rem; font-weight: 700;
  padding: .6rem 1.2rem; z-index: 9999;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ─── Nav ───────────────────────────────────────────────────── */
nav { background: var(--navy-1); border-bottom: 1px solid var(--gold-rule); }
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 1rem clamp(1.25rem, 5vw, 2rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.nav-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-brand span {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--cream); letter-spacing: .01em;
}
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a {
  font-size: .82rem; color: rgba(255,255,255,.62);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--gold-lt); }

/* ─── Layout ────────────────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 2rem) 4rem; }
body.legal main { padding-top: clamp(2.5rem, 6vw, 4rem); }

.eyebrow, .label {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow { margin-bottom: 1.1rem; }
.label { margin-bottom: .9rem; }

h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  line-height: 1.14; letter-spacing: -.01em;
  color: var(--navy-1); margin-bottom: 1.1rem;
}
body.legal h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.16; margin-bottom: .7rem; }

.lede {
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  color: var(--ink-m); max-width: 34em; font-weight: 300;
}

/* ─── Legal pages ───────────────────────────────────────────── */
.effective {
  font-size: .85rem; color: var(--ink-m);
  margin-bottom: 2.4rem; padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
body.legal h2 {
  font-family: var(--serif); font-weight: 700; font-size: 1.22rem;
  color: var(--navy-1); margin: 2.2rem 0 .7rem;
}
body.legal p, body.legal li { font-size: .945rem; color: var(--ink-m); }
body.legal p { margin-bottom: .85rem; }
body.legal ul { margin: 0 0 .95rem 1.15rem; }
body.legal li { margin-bottom: .4rem; }
body.legal strong { color: var(--ink); font-weight: 600; }
body.legal a { color: var(--navy-3); text-decoration: underline; }

.callout {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 1.1rem 1.3rem; margin: 1.1rem 0 1.3rem;
}
.callout p:last-child { margin-bottom: 0; }
.contact-name { color: var(--ink); font-weight: 600; }

/* ─── Deliverables ──────────────────────────────────────────── */
.deliverables {
  margin: 2.2rem 0 2.6rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.5rem clamp(1.2rem, 3vw, 1.8rem);
}
.deliverables li {
  list-style: none; display: flex; gap: .8rem;
  padding: .55rem 0; font-size: .95rem; color: var(--ink-m);
}
.deliverables li::before { content: "\2192"; color: var(--gold); font-weight: 600; flex-shrink: 0; }
.deliverables strong { color: var(--ink); font-weight: 600; }

/* ─── Form ──────────────────────────────────────────────────── */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
label { font-size: .84rem; font-weight: 500; color: var(--ink); margin-bottom: .35rem; }
.req { color: var(--err); }

input[type="text"], input[type="email"], input[type="tel"], select {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 7px; padding: .68rem .8rem; width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,160,92,.16);
  outline: none;
}
input::placeholder { color: #b3a894; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236d6252' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
  padding-right: 2.2rem;
}
.field.invalid input, .field.invalid select { border-color: var(--err); }
.err-msg { font-size: .78rem; color: var(--err); margin-top: .3rem; display: none; }
.field.invalid .err-msg { display: block; }

/* Honeypot — hidden from humans, visible to naive bots. Never display:none,
   which some bots detect; move it out of the viewport instead. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

/* ─── Consent block ─────────────────────────────────────────── */
fieldset {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white);
  padding: 1.3rem clamp(1.1rem, 3vw, 1.5rem);
  margin: 1.4rem 0 1.3rem;
}
legend {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-m); padding: 0 .5rem; margin-left: -.5rem;
}
.consent { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem 0; }
.consent + .consent { border-top: 1px solid #efe9dc; margin-top: .5rem; padding-top: 1rem; }
.consent input[type="checkbox"] {
  appearance: none; flex-shrink: 0;
  width: 20px; height: 20px; margin-top: .15rem;
  border: 1.5px solid #c3b8a3; border-radius: 4px;
  background: var(--white); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.consent input[type="checkbox"]:checked {
  background: var(--gold) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%2307111F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.5 3.5L11 1.5'/%3E%3C/svg%3E") center no-repeat;
  border-color: var(--gold);
}
.consent label {
  font-size: .845rem; font-weight: 400; line-height: 1.55;
  color: var(--ink-m); margin: 0; cursor: pointer;
}
.consent label strong { color: var(--ink); font-weight: 600; }
.consent label a { color: var(--navy-3); text-decoration: underline; }

/* ─── Button + fine print ───────────────────────────────────── */
button[type="submit"] {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  letter-spacing: .01em; color: var(--cream);
  background: var(--navy-1); border: 1px solid var(--navy-1);
  border-radius: 8px; padding: .95rem 1.4rem; width: 100%;
  cursor: pointer; transition: background .2s, transform .08s;
}
button[type="submit"]:hover { background: var(--navy-3); }
button[type="submit"]:active { transform: translateY(1px); }
button[type="submit"][disabled] { opacity: .55; cursor: not-allowed; }

.fineprint {
  font-size: .78rem; color: var(--ink-m);
  text-align: center; margin-top: .9rem; line-height: 1.6;
}
.fineprint a { color: var(--navy-3); text-decoration: underline; }

.notice {
  display: none;
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 1rem 1.2rem; font-size: .89rem;
  color: var(--ink-m); margin-bottom: 1.1rem; line-height: 1.6;
}
.notice.show { display: block; }
.notice a { color: var(--navy-3); text-decoration: underline; }
.notice.error { border-left-color: var(--err); background: #fdf6f5; color: var(--err); }

/* ─── Footer ────────────────────────────────────────────────── */
footer { background: var(--navy-1); border-top: 1px solid var(--gold-rule); margin-top: 2rem; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 1.6rem clamp(1.25rem, 5vw, 2rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: rgba(255,255,255,.45);
}
.footer-brand { font-family: var(--serif); font-size: .95rem; color: rgba(244,234,213,.75); }
.footer-inner a { color: rgba(255,255,255,.55); text-decoration: underline; }
.footer-links { display: flex; gap: 1.1rem; }

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
}
