/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

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

:root {
  --color-bg:        #faf8f4;
  --color-text:      #2c2c2c;
  --color-muted:     #7a7a7a;
  --color-accent:    #8b5c2a;
  --color-accent-lt: #c49a6c;
  --color-white:     #ffffff;
  --font-main:  'Georgia', 'Times New Roman', serif;
  --font-ui:    'Segoe UI', Arial, sans-serif;
  --radius:     8px;
  --transition: 0.3s ease;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  line-height: 1.7;
  direction: rtl;
}

h1, h2, h3 { font-family: var(--font-main); font-weight: 400; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
p  { color: var(--color-muted); }

.subtitle {
  font-size: 1.05rem;
  margin-bottom: 2.8rem;
  max-width: 640px;
  margin-inline: auto;
}

/* ============================================================
   PARALLAX
============================================================ */
.parallax-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* תמונה 1 — הירו */
.hero {
  min-height: 80vh;
  background-image:
    linear-gradient(rgba(20,20,20,0.52), rgba(20,20,20,0.38)),
    url('https://cmgames.nitzshacharenv.com/wp-content/uploads/2026/03/olgavolkovitskaia-books-8067850_1920.jpg');
}

/* תמונה 2 — סקשן תחתון */
.divider {
  min-height: 420px;
  background-image:
    linear-gradient(rgba(20,20,20,0.60), rgba(20,20,20,0.44)),
    url('https://cmgames.nitzshacharenv.com/wp-content/uploads/2026/03/kian2018-traditional-chinese-medicine-3528232_1920.jpg');
}

.section-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* ============================================================
   HERO CONTENT
============================================================ */
.hero-content {
  text-align: center;
  color: var(--color-white);
}

.hero-content h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.hero-content > p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

/* ============================================================
   DIVIDER CONTENT
============================================================ */
.divider-content {
  text-align: center;
  color: var(--color-white);
}

.divider-content blockquote {
  font-family: var(--font-main);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

.divider-content cite {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-style: normal;
}

/* ============================================================
   FLAT SECTIONS
============================================================ */
.flat-section {
  background: var(--color-bg);
  padding: 6rem 2rem;
}

.text-center { text-align: center; }

/* ============================================================
   CARDS
============================================================ */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-white);
  border: 1px solid rgba(139,92,42,0.1);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.card-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.card h3   { color: var(--color-accent); margin-bottom: 0.5rem; }

/* ============================================================
   GAMES GRID
============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.game-card {
  background: var(--color-white);
  border: 1px solid rgba(139,92,42,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  text-align: center;
}

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

.game-thumb {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #e8ddd0 0%, #c9b99a 100%);
}

.game-card h3 { margin: 1.2rem 1.2rem 0.4rem; color: var(--color-text); }
.game-card p  { font-size: 0.9rem; padding: 0 1.2rem; margin-bottom: 1.5rem; }

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.75rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font-ui);
}

.btn-primary:hover { background: #7a4e22; transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  margin-bottom: 1.5rem;
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.btn-secondary:hover { background: var(--color-accent); color: var(--color-white); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .games-grid, .cards-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .games-grid, .cards-row { grid-template-columns: 1fr; }
  .parallax-section { background-attachment: scroll; }
}

