/* landing-v2.css — WikiMapping landing page redesign
   Brand:  #177AB5 (blue)  #0b5e92 (dark blue)  #8BC441 (green)
   Layout: screenshot-driven, alternating left/right rows
*/

:root {
  --wm-blue: #177AB5;
  --wm-blue-dark: #0b5e92;
  --wm-green: #8BC441;
  --wm-green-dark: #79b035;
  --wm-bg: #ffffff;
  --wm-bg-alt: #f4f7fb;
  --wm-bg-dark: #1a2332;
  --wm-text: #2d3748;
  --wm-muted: #64748b;
  --wm-radius: 10px;
  --wm-max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--wm-text);
  background: var(--wm-bg);
  line-height: 1.6;
}

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

/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: var(--wm-blue);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 56px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: #fff; font-size: 1.2rem; font-weight: 700;
}
.nav-brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: #fff; padding: 0.4rem 0.85rem; border-radius: 4px;
  font-size: 0.85rem; transition: background 0.2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.15); }
.btn-nav-register {
  background: var(--wm-green) !important; font-weight: 600;
}
.btn-nav-register:hover { background: var(--wm-green-dark) !important; }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 10rem 1.5rem 5rem;
  text-align: center;
  background: url('/css/img/seville.jpg') center/cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(18,18,28,0.7);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.65;
  opacity: 0.88;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* Buttons (shared) */
.btn-hero {
  display: inline-block; padding: 0.85rem 2rem; font-size: 1rem;
  font-weight: 600; border-radius: 6px; transition: transform 0.15s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.btn-primary { background: var(--wm-green); color: #fff; }
.btn-primary:hover { background: var(--wm-green-dark); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-inline {
  display: inline-block; color: var(--wm-blue); font-weight: 600;
  font-size: 1rem; margin-top: 0.5rem;
  border-bottom: 2px solid var(--wm-green);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.btn-inline:hover { color: var(--wm-blue-dark); }

/* ═══════════════════════════════════════════════════════
   SHOWCASE — alternating screenshot + text rows
   ═══════════════════════════════════════════════════════ */
.showcase {
  padding: 5rem 1.5rem;
}
.section-inner {
  max-width: var(--wm-max);
  margin: 0 auto;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.showcase-row:last-child { margin-bottom: 0; }

.showcase-row.reverse {
  grid-template-columns: 1.3fr 1fr;
}
.showcase-row.reverse .showcase-text { order: 2; }
.showcase-row.reverse .showcase-img { order: 1; }

.showcase-text h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--wm-text);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}
.showcase-text p {
  color: var(--wm-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 0.5rem;
}

.showcase-img img {
  border-radius: var(--wm-radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

/* Image pair (side by side for scale section) */
.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.img-pair img {
  border-radius: var(--wm-radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

/* ═══════════════════════════════════════════════════════
   AUDIENCE — who it's for
   ═══════════════════════════════════════════════════════ */
.audience-section {
  padding: 5rem 1.5rem;
  background: var(--wm-bg-alt);
}
.audience-section h2 {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--wm-blue);
  margin: 0 0 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.audience-card {
  background: #fff;
  border-radius: var(--wm-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  text-align: center;
}
.audience-card i {
  font-size: 1.8rem;
  color: var(--wm-blue);
  margin-bottom: 0.75rem;
  display: block;
}
.audience-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--wm-text);
}
.audience-card p {
  font-size: 0.85rem;
  color: var(--wm-muted);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   SETUP + STORY — single showcase rows with bg
   ═══════════════════════════════════════════════════════ */
.setup-section {
  padding: 5rem 1.5rem;
}
.story-section {
  padding: 5rem 1.5rem;
  background: var(--wm-bg-alt);
}

/* ═══════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════ */
.cta-section {
  padding: 5rem 1.5rem;
  background: var(--wm-bg-dark);
  color: #fff;
  text-align: center;
}
.cta-inner {
  max-width: 650px;
  margin: 0 auto;
}
.cta-section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 1rem;
}
.cta-section p {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.85;
  margin: 0 0 2rem;
}
.cta-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.cta-trust {
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0;
}
.cta-trust i { margin-right: 0.35rem; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.landing-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--wm-muted);
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
.footer-row {
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 0.5rem;
}
.footer-row a { color: var(--wm-muted); transition: color 0.2s; }
.footer-row a:hover { color: var(--wm-blue); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .showcase-row.reverse .showcase-text { order: 1; }
  .showcase-row.reverse .showcase-img { order: 2; }

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

@media (max-width: 600px) {
  .landing-nav { padding: 0 1rem; }
  .nav-links a { padding: 0.35rem 0.5rem; font-size: 0.78rem; }

  .hero { padding: 8rem 1rem 3rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }

  .showcase { padding: 3rem 1rem; }
  .showcase-row { margin-bottom: 3rem; }
  .showcase-text h2 { font-size: 1.35rem; }

  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { text-align: left; }
  .audience-card i { display: inline; margin-right: 0.5rem; font-size: 1.2rem; }

  .img-pair { grid-template-columns: 1fr; }

  .cta-section { padding: 3rem 1rem; }
}
