/* ============================================
   Superposition Investments — Design System
   ============================================ */

/* --- Section A: CSS Custom Properties --- */

:root {
  /* Surfaces */
  --color-bg:            #F7F4EF;
  --color-bg-alt:        #EEEAE2;
  --color-border:        #D8D3CA;

  /* Typography */
  --color-text:          #1A1917;
  --color-text-secondary:#5A5450;
  --color-text-muted:    #8A857D;

  /* Brand */
  --color-brand:         #1C4F5E;
  --color-brand-dark:    #14404F;
  --color-brand-tint:    #D0E7EC;

  /* CTA — used ONLY on buttons */
  --color-cta:           #9E5822;
  --color-cta-hover:     #7D4218;

  /* Semantic */
  --color-confirm:       #2D6A4F;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-body-weight: 300;

  /* Layout */
  --max-width:        860px;
  --max-width-wide:   1200px;
  --nav-height:       72px;
  --section-pad-v:    5rem;
  --section-pad-v-sm: 3rem;
}

/* --- Section B: Reset and Base --- */

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

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
}

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

a {
  color: var(--color-brand);
  text-decoration: underline;
}
a:hover {
  color: var(--color-brand-dark);
}

/* Semi-bold lead convention: strong renders at 600, never 700 */
strong {
  font-weight: 600;
}

/* --- Section C: Headings --- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-brand);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--color-text); margin-top: 2rem; }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0 0 1.25rem; }

/* --- Section D: Layout --- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad-v) 0;
}

.section--sm {
  padding: var(--section-pad-v-sm) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

/* Every page has a fixed nav; body content clears it */
.page-body {
  padding-top: var(--nav-height);
}

/* --- Section E: Navigation --- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-brand);
  border-bottom: 1px solid var(--color-brand-dark);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: auto;
}
.nav__logo:hover { color: rgba(255,255,255,0.85); }

.nav__logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin-left: 0.75rem;
  text-transform: none;
}

.nav__cta {
  margin-left: 2rem;
  flex-shrink: 0;
  font-size: 13px;
  padding: 10px 20px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav__links a:hover  { color: rgba(255,255,255,0.75); }
.nav__links a.active { color: #ffffff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s;
}

/* Scrolled state — subtle elevation */
.nav--scrolled {
  box-shadow: 0 2px 8px rgba(28,79,94,0.08);
}

/* --- Section F: CTA Buttons --- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
}

/* Primary CTA — copper amber, used on buttons only */
.btn--cta {
  background: var(--color-cta);
  color: #ffffff;
}
.btn--cta:hover {
  background: var(--color-cta-hover);
  color: #ffffff;
  text-decoration: none;
}

/* Secondary outlined button */
.btn--outline {
  background: transparent;
  color: var(--color-brand);
  border: 1.5px solid var(--color-brand);
}
.btn--outline:hover {
  background: var(--color-brand);
  color: #ffffff;
  text-decoration: none;
}

/* --- Section G: Callout Boxes --- */

.callout {
  background: var(--color-brand-tint);
  border-left: 3px solid var(--color-brand);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 2px 2px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* --- Section H: Hero --- */

.hero {
  padding: 5rem 0 4rem;
}

.hero__subhead {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* --- Section I: Lists --- */

ul.content-list,
ol.content-list {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}
ul.content-list li,
ol.content-list li {
  margin-bottom: 0.6rem;
}

/* Definition-style list used in buying criteria */
.dl-criteria {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.dl-criteria li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
}
.dl-criteria li:last-child { border-bottom: none; }
.dl-criteria .dl-label {
  font-weight: 600;
  color: var(--color-brand);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

/* --- Section J: Horizontal Rules --- */

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 3rem 0;
}

/* --- Section K: Footer --- */

.footer {
  background: var(--color-brand);
  color: #ffffff;
  padding: 3.5rem 0 0;
}

.footer a { color: #ffffff; text-decoration: none; opacity: 0.82; }
.footer a:hover { opacity: 1; text-decoration: underline; }

.footer__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  opacity: 0.55;
  margin-bottom: 1rem;
  margin-top: 0;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__col ul li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer__bottom {
  max-width: var(--max-width-wide);
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.78rem;
  opacity: 0.55;
}

/* --- Section L: Form Elements --- */

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: #ffffff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}
.form-confirm {
  color: var(--color-confirm);
  font-weight: 600;
  padding: 1rem;
  border: 1px solid var(--color-confirm);
  border-radius: 2px;
  display: none;
}

/* --- Section N: FAQ --- */

.faq-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.faq-item p {
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.faq-item p:last-child {
  margin-bottom: 0;
}

/* --- Section M: Responsive --- */

@media (max-width: 900px) {
  :root { --section-pad-v: 3.5rem; }
}

@media (max-width: 1024px) {
  html { font-size: 18px; }

  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__mobile-toggle { display: flex; }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-brand);
    border-bottom: 1px solid var(--color-brand-dark);
    padding: 1rem 1.5rem 1.5rem;
  }

  .nav--open .nav__links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 0.75rem 0;
  }
  .nav--open .nav__links li:last-child { border-bottom: none; }

  .nav--open .nav__cta {
    display: block;
    margin: 1rem 1.5rem;
  }

  .hero { padding: 3rem 0 2.5rem; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dl-criteria li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
