/* clanlaunchpad — Finnish Stone Cabin Social Play */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg: #F2EDE4;
  --bg-warm: #E8E0D4;
  --surface: #FFFCFA;
  --ink: #1C1917;
  --muted: #6B6560;
  --copper: #C45C26;
  --copper-dark: #A34A1E;
  --copper-soft: rgba(196, 92, 38, 0.12);
  --moss: #4A7C59;
  --moss-soft: rgba(74, 124, 89, 0.14);
  --border: rgba(28, 25, 23, 0.1);
  --border-strong: rgba(28, 25, 23, 0.18);
  --shadow: 0 12px 36px rgba(28, 25, 23, 0.08);
  --shadow-soft: 0 4px 18px rgba(28, 25, 23, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.modal-open { overflow: hidden; }

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

a { color: var(--copper); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--copper-dark); }

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.logo-link:hover { color: var(--copper); }
.logo-link img { width: 40px; height: 40px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a.active { color: var(--copper); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.player-badge {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  background: var(--moss-soft);
  border: 1px solid rgba(74, 124, 89, 0.25);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--moss);
}

.player-badge.visible { display: flex; }

.player-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

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

.btn-primary {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover { color: var(--copper); }

.btn-moss {
  background: var(--moss);
  color: #fff;
  border-color: var(--moss);
}

.btn-moss:hover {
  background: #3d6649;
  border-color: #3d6649;
  color: #fff;
}

.btn-sm { padding: 0.48rem 1rem; font-size: 0.86rem; }

/* ── Hero ── */
.hero {
  padding: 3.5rem 0 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(196, 92, 38, 0.07), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(74, 124, 89, 0.06), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--copper-soft);
  border: 1px solid rgba(196, 92, 38, 0.2);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--copper);
}

.hero-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ── Sections ── */
.section { padding: 4.5rem 0; }

.section-alt {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.stone-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.section-header p { color: var(--muted); }

/* ── Game Cards ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.game-card--wide { grid-column: span 2; }

.game-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-warm);
}

.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover .game-card-img img { transform: scale(1.04); }

.game-card-body {
  padding: 1.25rem 1.35rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.game-card-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
}

/* ── About Split ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  margin: 1.25rem 0;
}

.about-list li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--copper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── CTA ── */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-banner img {
  width: 100%;
  aspect-ratio: 21/8;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(28, 25, 23, 0.82) 0%, rgba(28, 25, 23, 0.45) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3rem;
  color: #fff;
}

.cta-overlay h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.65rem;
  max-width: 28rem;
}

.cta-overlay p {
  font-size: 0.98rem;
  opacity: 0.88;
  max-width: 32rem;
  margin-bottom: 1.25rem;
}

/* ── Page Hero (subpages) ── */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-hero p { color: var(--muted); max-width: 540px; }

/* ── Content Pages ── */
.content-page { padding: 3rem 0 4rem; flex: 1; }

.content-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-soft);
  max-width: 780px;
}

.content-body h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.65rem;
}

.content-body h2:first-child { margin-top: 0; }

.content-body p,
.content-body li {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 0.75rem;
}

.content-body ul,
.content-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.content-body a { font-weight: 600; }

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.contact-info h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.contact-detail {
  margin-bottom: 1rem;
  font-size: 0.94rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-success {
  padding: 0.85rem 1rem;
  background: var(--moss-soft);
  border: 1px solid rgba(74, 124, 89, 0.3);
  border-radius: var(--radius-sm);
  color: var(--moss);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: rgba(255, 252, 250, 0.75);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img { width: 44px; margin-bottom: 0.75rem; }

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFCFA;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: 0.88rem; line-height: 1.6; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFCFA;
  margin-bottom: 0.85rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
  color: rgba(255, 252, 250, 0.65);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--copper); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 252, 250, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 252, 250, 0.5);
}

.disclaimer-bar {
  background: var(--copper-soft);
  border-top: 1px solid rgba(196, 92, 38, 0.15);
  padding: 0.65rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--copper-dark);
  font-weight: 600;
}

/* ── Modals & Overlays ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.2);
}

.modal-header {
  padding: 1.75rem 1.75rem 0;
  text-align: center;
}

.modal-header img {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
}

.modal-header h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-body { padding: 1.25rem 1.75rem 1.75rem; }

.age-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.age-actions .btn { width: 100%; }

.age-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: 1rem 1.75rem 0;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.auth-tab.active {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-form .btn { width: 100%; margin-top: 0.25rem; }

.auth-error {
  display: none;
  padding: 0.65rem 0.85rem;
  background: rgba(196, 92, 38, 0.1);
  border: 1px solid rgba(196, 92, 38, 0.25);
  border-radius: var(--radius-sm);
  color: var(--copper-dark);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.auth-error.visible { display: block; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(28, 25, 23, 0.1);
  padding: 1rem 0;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.88rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid,
  .about-split,
  .contact-grid { grid-template-columns: 1fr; }

  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card--wide { grid-column: span 1; }

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

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

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 99;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .header-actions .btn-sm { padding: 0.4rem 0.7rem; font-size: 0.8rem; }

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

  .cta-overlay { padding: 1.75rem; }

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

  .content-body { padding: 1.5rem; }
}
