/*
 * base.css — shared styles for every page.
 *
 * Each page sets its own colours by overriding the CSS variables below in its
 * theme file (home.css, turtlehurdle.css, wordstress.css). Everything that
 * looks the same across pages (header, footer, buttons, layout) lives here.
 */

:root {
  /* Default (overridden per page) */
  --bg: #ffffff;
  --text: #1c1c1c;
  --muted: #666666;
  --accent: #4ecdb4;
  --card-bg: rgba(255, 255, 255, 0.6);
  --font-body: "Quicksand", "Trebuchet MS", sans-serif;
  --font-display: var(--font-body);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* ------------------------------------------------------------ Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  text-decoration: none;
  opacity: 0.85;
}

.site-header nav a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Language switcher */
#lang-select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--muted);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
}

/* ------------------------------------------------------------ Layout */

main {
  position: relative;
  z-index: 1;
}

section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 5vw;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------- Hero */

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  letter-spacing: 0.01em;
}

.hero .tagline {
  font-size: clamp(0.9rem, 2.6vw, 1.3rem);
  color: var(--muted);
  max-width: 34em;
}

/* ----------------------------------------------------------- Buttons */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Store buttons (simple text pills; swap for official badges later if wanted) */
.store-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.store-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ------------------------------------------------- Screenshot strip */

/* Horizontal scrolling row of phone screenshots with snap points. */
.screens {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem; /* room for the scrollbar */
}

.screens img {
  height: 480px;
  width: auto;
  border-radius: 18px;
  scroll-snap-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------------------- Feature list */

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.feature-list li {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  backdrop-filter: blur(4px);
}

/* ------------------------------------------------------------ Footer */

.site-footer {
  text-align: center;
  padding: 2.5rem 5vw;
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: inherit;
}

/* ------------------------------------------------------- Responsive */

@media (max-width: 600px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .screens img {
    height: 380px;
  }
}
