/* ============================================================
   RedMapper — Global Styles
   Clean, modern, black-and-white planetary cartography site
   ============================================================ */

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

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f5f3;
  --light-gray: #e8e8e5;
  --mid-gray: #9a9a96;
  --dark-gray: #2a2a28;
  --accent: #c8c8c0;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1200px;
  --section-pad: 96px 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p { max-width: 72ch; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad); }
.section--dark { background: var(--black); color: var(--white); }
.section--gray { background: var(--off-white); }

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-light {
  color: var(--white);
  border-color: var(--white);
}
.btn-light:hover { background: var(--white); color: var(--black); }
.btn-dark {
  color: var(--black);
  border-color: var(--black);
}
.btn-dark:hover { background: var(--black); color: var(--white); }
.btn-outline-white {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  padding: 9px 20px;
}
.btn-outline-white:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
  overflow: hidden;
}
.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }

.nav__cta {
  margin-left: 8px;
}

/* Mobile nav */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.25s;
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
  }
  .nav__cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 24px;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.hero__title {
  color: var(--white);
  margin-bottom: 28px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.hero__sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Features Section ---------- */
.features {
  padding: 96px 24px;
  background: var(--white);
}

.features__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.features__text h2 { margin-bottom: 20px; }
.features__text p { color: #444; margin-bottom: 28px; }

.features__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.features__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: #333;
}
.features__list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
  margin-top: 8px;
  flex-shrink: 0;
}

.features__image {
  position: relative;
}
.features__image img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}

@media (max-width: 800px) {
  .features__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Dark Band ---------- */
.dark-band {
  background: var(--black);
  color: var(--white);
  padding: 80px 24px;
}

.dark-band__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.1);
}

.dark-band__item {
  padding: 60px 48px;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.dark-band__item:first-child {
  border-right: 1px solid rgba(255,255,255,0.1);
}

.dark-band__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  line-height: 1;
}

.dark-band__item h3 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.dark-band__item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.93rem;
  max-width: 40ch;
}

@media (max-width: 700px) {
  .dark-band__inner { grid-template-columns: 1fr; }
  .dark-band__item:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .dark-band__item { padding: 40px 24px; }
}

/* ---------- Portals Section ---------- */
.portals {
  padding: 96px 24px;
  background: var(--off-white);
}

.portals__header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 64px;
}
.portals__header h2 { margin-bottom: 14px; }
.portals__header p { color: #555; margin: 0 auto; }

.portals__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.portal-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.portal-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.portal-card__img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--light-gray);
  flex-shrink: 0;
}
.portal-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portal-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.portal-card p {
  font-size: 0.88rem;
  color: #666;
  max-width: 28ch;
  margin: 0 auto;
}

.portal-card__link {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.portal-card__link:hover { opacity: 0.6; }

@media (max-width: 900px) {
  .portals__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .portals__grid { grid-template-columns: 1fr; }
}

/* ---------- Atlases Section ---------- */
.atlases {
  padding: 96px 24px;
  background: var(--white);
}

.atlases__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.atlases__text { order: 2; }
.atlases__image { order: 1; }

.atlases__text .eyebrow { display: block; margin-bottom: 16px; }
.atlases__text h2 { margin-bottom: 20px; }
.atlases__text p { color: #444; margin-bottom: 20px; }

.atlas-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.atlas-covers img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.atlases__image img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

@media (max-width: 800px) {
  .atlases__grid { grid-template-columns: 1fr; gap: 48px; }
  .atlases__text { order: 1; }
  .atlases__image { order: 2; }
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 96px 24px;
  background: var(--black);
  color: var(--white);
}

.testimonials__header {
  text-align: center;
  margin-bottom: 64px;
}
.testimonials__header h2 { color: var(--white); }

.testimonials__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.testimonial {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  font-style: italic;
}

.testimonial__attr {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

@media (max-width: 800px) {
  .testimonials__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-gray);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  overflow: hidden;
}
.footer__brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.footer__brand-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.footer__copy {
  font-size: 0.78rem;
  text-align: center;
}

.footer__social {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer__social a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.footer__social a:hover { color: var(--white); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 600px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__social { justify-content: center; }
}

/* ---------- About Page ---------- */
.page-hero {
  padding-top: 68px;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.25);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

.page-hero__content .eyebrow { color: rgba(255,255,255,0.55); }
.page-hero__content h1 { color: var(--white); }

/* Team Section */
.team {
  padding: 96px 24px;
  background: var(--white);
}

.team__intro {
  max-width: 680px;
  margin: 0 auto 72px;
  text-align: center;
}
.team__intro h2 { margin-bottom: 16px; }
.team__intro p { color: #555; margin: 0 auto; }

.team__grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.team-member__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--light-gray);
}
.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-member__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-member__title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 8px;
}

.team-member__bio {
  font-size: 0.9rem;
  color: #555;
  max-width: 32ch;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .team__grid { grid-template-columns: 1fr; }
}

/* Mission Section */
.mission {
  padding: 96px 24px;
  background: var(--off-white);
}

.mission__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.mission__inner h2 { margin-bottom: 24px; }
.mission__inner p { color: #444; margin: 0 auto 20px; font-size: 1.05rem; line-height: 1.75; }

/* ---------- Project Updates Page ---------- */
.updates {
  padding: 96px 24px;
  background: var(--white);
}

.updates__inner {
  max-width: 800px;
  margin: 0 auto;
}

.updates__intro {
  margin-bottom: 64px;
}
.updates__intro h2 { margin-bottom: 14px; }
.updates__intro p { color: #555; }

.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  border-top: 1px solid var(--light-gray);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  scroll-margin-top: 88px;
}

.post-item:last-child {
  border-bottom: 1px solid var(--light-gray);
}

.post-item__meta {
  flex-shrink: 0;
}

.post-item__date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  display: block;
  margin-bottom: 8px;
}

.post-item__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--light-gray);
  padding: 3px 8px;
}

.post-item__content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  line-height: 1.25;
}

.post-item__content p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 16px;
}

.post-item__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 2px;
  margin-top: 20px;
}

.post-read-more {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

@media (max-width: 640px) {
  .post-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .post-item__meta {
    display: flex;
    gap: 12px;
    align-items: center;
  }
}

/* ---------- Page transitions ---------- */
main { padding-top: 68px; }
.hero { padding-top: 0; margin-top: -68px; }

/* (Google Fonts imported at top of file) */
