/* Foundation Investment Partners — single-page site
   Three horizontal bands: brand (white) / statement (navy) / footer (dark navy) */

/* Self-hosted fonts — kept local (not linked from fonts.googleapis.com) so no
   visitor data is sent to Google just to load the page. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-400.woff2') format('woff2');
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/eb-garamond-400.woff2') format('woff2');
}

:root {
  --navy-logo:    #414C75; /* sampled from the brand mark */
  --navy-mid:     #1B223C; /* bottom band background */
  --blue-grey:    #E0F1F3; /* middle band background */
  --ink:          #1A1A1A;
  --paper:        #FFFFFF;
  --cream:        #F4F2ED;

  --serif-display: 'Cormorant Garamond', 'EB Garamond', 'Times New Roman', serif;
  --serif-text:    'EB Garamond', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--serif-text);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4rem 6vw;
}

/* --- Top band: brand mark, 30% --- */
.band--brand {
  background: var(--paper);
  flex: 3 1 0;
  min-height: 30vh;
}

.brand-logo {
  width: min(46vw, 480px);
  min-width: 220px;
  height: auto;
}

/* --- Middle band: statement, 50% --- */
.band--statement {
  background: var(--blue-grey);
  flex: 5 1 0;
  min-height: 50vh;
}

.statement {
  max-width: 760px;
  text-align: center;
}

.statement p {
  font-family: var(--serif-display);
  color: var(--navy-logo);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.3vw + 0.6rem, 1.45rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0 0 1.3rem 0;
  text-align: justify;
  text-align-last: center;
  hyphens: none;
}

.statement p:last-child {
  margin-bottom: 0;
}

/* --- Bottom band: contact + regulatory, 20% --- */
.band--footer {
  background: var(--navy-mid);
  flex: 2 1 0;
  min-height: 20vh;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-content {
  max-width: 900px;
  text-align: center;
}

.footer-address,
.footer-email {
  font-family: var(--serif-text);
  color: var(--cream);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem 0;
  white-space: nowrap;
}

.footer-email a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 242, 237, 0.35);
  transition: border-color 0.2s ease;
}

.footer-email a:hover,
.footer-email a:focus-visible {
  border-color: rgba(244, 242, 237, 0.9);
}

.footer-legal {
  font-family: var(--serif-text);
  color: rgba(244, 242, 237, 0.62);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 0.9rem 0 0 0;
  white-space: nowrap;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .band {
    padding: 3rem 7vw;
  }

  .band--brand {
    min-height: 30vh;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .brand-logo {
    width: 80vw;
    min-width: 0;
  }

  .band--statement {
    min-height: 50vh;
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .statement p {
    /* vw-based, not a fixed rem: since the panel's side padding is also
       vw-based, this keeps the text-width-to-container-width ratio (and
       therefore the line count) consistent across phone sizes, rather
       than gaining an extra line on wider phones and losing one on
       narrow ones. */
    font-size: clamp(0.82rem, 3.84vw, 1.05rem);
    line-height: 1.3;
    margin-bottom: 1.1rem;
  }

  .band--footer {
    min-height: 20vh;
  }

  .footer-address,
  .footer-email {
    font-size: 0.95rem;
    white-space: normal;
  }

  .footer-legal {
    font-size: 0.57rem;
    white-space: normal;
  }
}
