/* ═══════════════════════════════════════════════
   CPIF · Shared Stylesheet
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=Figtree:wght@300;400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:       #000000;
  --navy-mid:   #666666;
  --navy-light: #eeeeee;
  --gold:       #c42026;
  --gold-light: #c42026;
  --gold-pale:  #c42026;
  --cream:      #d3d3d3;
  --off:        #F0EDE4;
  --text:       #000000;
  --text-sec:   #666666;
  --text-muted: #d3d3d3;
  --border-light: #E4DFD3;
  --border-gold: rgba(255,0,9,0.2);
  --font-serif: 'Playfair Display', serif;
  --font-mono:  'DM Mono', monospace;
  --font-body:  'Calibri', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
	text-align: justify;
}

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── NAVIGATION ── */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,0,9,0.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1;
}
.logo span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.14em;
  margin-top: 3px;
  font-weight: 400;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 3px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.6); transition: all 0.2s; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy);
  padding: 0.85rem 1.75rem; border-radius: 3px;
  font-weight: 600; font-size: 0.85rem;
  text-decoration: none; border: none; cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: rgba(255,255,255,0.75);
  padding: 0.85rem 1.5rem; border-radius: 3px;
  font-weight: 500; font-size: 0.85rem;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--navy);
  padding: 0.75rem 1.5rem; border-radius: 3px;
  font-weight: 500; font-size: 0.83rem;
  text-decoration: none; border: 1px solid var(--border-light);
  transition: border-color 0.2s;
  font-family: var(--font-body);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── LINKS ── */
.link-gold {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}
.link-gold:hover { color: var(--gold-light); }

/* ── SECTION PRIMITIVES ── */
.section-light { background: var(--cream); padding: 5rem 0; }
.section-off   { background: var(--off);   padding: 5rem 0; }
.section-dark  { background: var(--navy);  padding: 5rem 0; }

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
  border-left: 2px solid var(--gold);
  padding-left: 0.75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1.18;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.section-lead {
  color: var(--text-sec);
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 0;
}

/* Dark section overrides */
.section-dark .section-title { color: #fff; }
.section-dark .section-lead  { color: rgba(255,255,255,0.45); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.page-hero .section-title { color: #fff; }
.page-hero .section-lead  { color: rgba(255,255,255,0.5); margin-top: 0.5rem; }
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.breadcrumb a { color: rgba(255,255,255,0.35); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 270px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.confidencial-strip {
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 3px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.confidencial-strip svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.confidencial-strip p {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
}
.confidencial-strip strong { color: rgba(255,255,255,0.7); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.2);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-sec);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ── UTILITY ── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 2rem 0;
}
.tag {
  display: inline-block;
  background: var(--gold-pale);
  color: #f1f1f1;
  font-size: 0.63rem;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.tag-dark {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  font-size: 0.63rem;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  display: inline-block;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-mid);
    padding: 1.5rem 2.5rem;
    border-top: 1px solid rgba(201,168,76,0.15);
    gap: 1rem;
  }
  .container { padding: 0 1.5rem; }
}
