/* R4 Consulting - stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ─── Custom properties ─────────────────────────────────────────── */

:root {
  --blue:      #00208B;
  --blue-dk:   #001265;
  --orange:    #ED8000;
  --white:     #F8F6F2;
  --cream:     #F2EEE5;
  --bg:        #DEDAD4;
  --grey:      #8A8F98;
  --dark-text: #3A4252;
}

/* ─── Reset & base ─────────────────────────────────────────────── */

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

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

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  background-color: var(--cream);
  color: var(--dark-text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Typography ───────────────────────────────────────────────── */

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-text);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1.1rem;
  color: var(--dark-text);
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--orange);
}

/* ─── Accessibility ─────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Layout ───────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Navigation ───────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid rgba(0, 32, 139, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Nav brand - R4 compact mark */
.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.r4-nav__r {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 28px;
  color: var(--blue);
  line-height: 1;
}

.r4-nav__4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--orange);
  line-height: 1;
}

.r4-nav__rule {
  display: block;
  width: 2.5px;
  height: 24px;
  background: var(--orange);
  margin: 0 16px;
  flex-shrink: 0;
}

.r4-nav__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 7.5px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: rgba(0, 32, 139, 0.5);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.15s;
}

.nav__links a:hover {
  color: var(--dark-text);
}

/* ─── Page main ─────────────────────────────────────────────────── */

.page-main {
  flex: 1;
}

/* ─── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  min-height: 44px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.btn--primary {
  background-color: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}

.btn--primary:hover {
  background-color: var(--blue-dk);
  border-color: var(--blue-dk);
  color: var(--white);
}

/* ─── Content pages ────────────────────────────────────────────── */

.content {
  padding-top: 96px;
  padding-bottom: 80px;
}

.content__header {
  padding: 60px 0 48px;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 56px;
}

.content__header h1 {
  font-size: 2.2rem;
  max-width: 640px;
  line-height: 1.25;
}

/* ─── Sections ─────────────────────────────────────────────────── */

.section {
  margin-bottom: 56px;
}

.section__body p {
  color: var(--dark-text);
  margin-bottom: 1.1rem;
}

/* ─── Grid list ─────────────────────────────────────────────────── */

.grid-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.8rem;
}

.grid-list li {
  background-color: var(--white);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  color: var(--dark-text);
  font-size: 0.9rem;
  line-height: 1.55;
  border: 1px solid rgba(0, 32, 139, 0.06);
  border-left: 2px solid rgba(0, 32, 139, 0.15);
}

/* ─── Plain list ───────────────────────────────────────────────── */

.plain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.plain-list li {
  color: var(--dark-text);
  font-size: 0.9rem;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.6;
}

.plain-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 400;
}

/* ─── People ───────────────────────────────────────────────────── */

.people {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.person {
  background-color: var(--white);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(0, 32, 139, 0.06);
}

.person__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.4rem;
}

.person__bio {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.person__email {
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.person__email a {
  color: var(--grey);
  font-size: 0.85rem;
}

.person__email a:hover {
  color: var(--orange);
}

/* ─── CTA block ────────────────────────────────────────────────── */

.cta-block {
  border-top: 1px solid rgba(0, 32, 139, 0.1);
  padding-top: 48px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.cta-block__text {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ─── Footer ───────────────────────────────────────────────────── */

.footer {
  background-color: var(--cream);
  border-top: 1px solid rgba(0, 32, 139, 0.1);
  padding: 2.4rem 0;
}

.footer__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: center;
}

.footer__contact a {
  color: var(--grey);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
}

.footer__contact a:hover {
  color: var(--orange);
}

.footer__contact .sep {
  color: rgba(138, 143, 152, 0.4);
  font-size: 0.85rem;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.footer__meta span {
  color: var(--grey);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
}

/* ─── Responsive ───────────────────────────────────────────────── */

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .nav__inner {
    padding: 0 1.2rem;
  }

  .nav__links {
    gap: 1.2rem;
  }

  .r4-nav__r,
  .r4-nav__4 {
    font-size: 24px;
  }

  .r4-nav__rule {
    height: 20px;
    margin: 0 12px;
  }

  .container {
    padding: 0 1.2rem;
  }

  .grid-list {
    grid-template-columns: 1fr;
  }

  .content__header {
    padding: 40px 0 36px;
  }

  .cta-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner {
    padding: 0 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__meta {
    align-items: flex-start;
  }
}
