﻿/* =========================================================
   site.css (JustDidit)
   - Layout-first, SEO-friendly (no JS-required styling)
   - Single source of truth (avoid duplicated :root/body rules)
   - Shared components: nav, hero, sections, two-column blocks
   ========================================================= */

/* ========== 0) Design tokens ========== */
:root{
  --bg: #fafafa;
  --fg: #111;
  --muted: #555;
  --line: #eaeaea;

  --accent: #5b8cff;

  --max: 1080px;

  /* reusable */
  --radius-sm: 10px;
  --radius: 14px;
}

/* ========== 1) Base / reset ========== */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}
img, svg, video{ display:block; max-width:100%; height:auto; }
a{ color: inherit; }
a:hover{ text-decoration: underline; }

/* ========== 2) Layout helpers ========== */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px;
}

/* ========== 3) Language switch ========== */
.lang-switch{ text-align:right; }
.lang-switch a{ color: var(--accent); text-decoration:none; }
.lang-switch a:hover{ text-decoration:underline; }

/* ========== 4) Global navigation ========== */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand{ font-weight: 800; letter-spacing: .2px; }
.menu{ display:flex; gap:14px; flex-wrap:wrap; }
.menu a{
  text-decoration:none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.menu a:hover{ border-color: var(--line); background:#fff; }
.menu .cta{ border-color: var(--line); background:#fff; }

/* ========== 5) Hero (NO card, NO shadow) ========== */
.hero{
  padding: 72px 16px 24px;
}
.hero h1{
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 900;
}
.hero .lead{
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted);
  margin: 0 0 24px;
}
.hero img{
  width: 100%;
  max-width: 520px;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  /* Intentionally no box-shadow here */
}

/* ========== 6) Sections (cards) ========== */
.section{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  margin: 18px 0;
}
.kicker{
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 8px;
}
.section h2{
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin: 0 0 10px;
}
.muted{ color: var(--muted); }

/* ========== 7) Two-column content blocks ========== */
.two-col{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}
.two-col img{
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f6f6f6;
}

@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; gap: 16px; }
}
