/* Official Author Website for שני כהן מטלון 
   Includes 1-to-1 Tranzila Checkout Form matching user reference screenshot */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;600;700;800&family=Rubik:ital,wght@0,400;0,500;0,700;0,900;1,400&family=Varela+Round&display=swap');

:root {
  /* Strict Pomelli Brand Book Color Palette */
  --pomelli-deep-purple: #1e1045;
  --pomelli-primary-violet: #583cdb;
  --pomelli-coral-red: #f45b69;
  --pomelli-warm-gold: #ffbe0b;
  --pomelli-soft-mint: #06d6a0;
  --pomelli-cyan-blue: #118ab2;
  
  /* Tranzila Specific Palette (from reference screenshot) */
  --tranzila-green: #68bd1e;
  --tranzila-cyan-btn: #0083a9;
  --tranzila-cyan-hover: #006b8a;

  /* Surfaces & Neutral Tones */
  --bg-canvas: #fefcf8;
  --bg-card-light: #ffffff;
  --bg-purple-tint: #f4f0ff;
  --bg-footer-dark: #12092b;
  
  --text-dark: #1c1d2e;
  --text-muted: #62657e;
  --text-light: #ffffff;
  
  --shadow-soft: 0 12px 30px rgba(88, 60, 219, 0.12);
  --shadow-hover: 0 18px 40px rgba(244, 91, 105, 0.2);
  --radius-pill: 50px;
  --radius-card: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Varela Round', 'Rubik', 'Assistant', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-canvas);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Background Sparkles Canvas */
#sparklesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Announcement Top Bar */
.top-bar {
  background: linear-gradient(90deg, var(--pomelli-primary-violet), var(--pomelli-coral-red));
  color: var(--text-light);
  text-align: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar span {
  background: var(--pomelli-warm-gold);
  color: var(--pomelli-deep-purple);
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 0.85rem;
  margin-left: 8px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(88, 60, 219, 0.1);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pomelli-primary-violet);
  font-family: 'Rubik', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
}

.author-logo span.sparkle {
  color: var(--pomelli-warm-gold);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--pomelli-coral-red);
}

.btn-pomelli {
  background: linear-gradient(135deg, var(--pomelli-primary-violet), var(--pomelli-coral-red));
  color: #ffffff;
  font-weight: 800;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.btn-pomelli:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.btn-pomelli-outline {
  background: #ffffff;
  color: var(--pomelli-primary-violet);
  border: 2px solid var(--pomelli-primary-violet);
  font-weight: 800;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.btn-pomelli-outline:hover {
  background: var(--bg-purple-tint);
  transform: translateY(-2px);
}

/* Wave Divider Component */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.wave-divider .shape-fill {
  fill: var(--bg-purple-tint);
}

/* Hero Section */
.author-hero {
  background: linear-gradient(135deg, var(--pomelli-deep-purple) 0%, #2e1657 100%);
  color: #ffffff;
  padding: 80px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 190, 11, 0.2);
  border: 1px solid var(--pomelli-warm-gold);
  color: var(--pomelli-warm-gold);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 40%, var(--pomelli-warm-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(244, 91, 105, 0.3);
  background: #ffffff;
}

.hero-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(0deg, rgba(30, 16, 69, 0.95) 0%, rgba(30, 16, 69, 0) 100%);
  color: #fff;
  text-align: center;
}

.hero-card-overlay h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.hero-card-overlay p {
  color: var(--pomelli-warm-gold);
  font-weight: 800;
}

/* Quote Section */
.quote-section {
  background: var(--bg-purple-tint);
  padding: 60px 0;
  text-align: center;
}

.quote-card {
  max-width: 860px;
  margin: 0 auto;
}

.quote-mark {
  font-size: 4rem;
  color: var(--pomelli-primary-violet);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: -20px;
}

.quote-content {
  font-family: 'Rubik', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--pomelli-primary-violet);
  line-height: 1.6;
  margin-bottom: 16px;
}

.quote-by {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* Section Header Component */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--pomelli-primary-violet);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Section: About Shani */
.about-section {
  padding: 90px 0;
  background: var(--bg-canvas);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.author-image-box img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  display: block;
  margin: 0 auto;
}

.about-bio h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 2.2rem;
  color: var(--pomelli-primary-violet);
  margin-bottom: 16px;
}

.about-bio p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.bio-highlight {
  background: var(--bg-purple-tint);
  border-right: 4px solid var(--pomelli-coral-red);
  padding: 20px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--pomelli-primary-violet);
  margin-top: 24px;
}

/* Section: Books & Products Catalog */
.books-section {
  padding: 90px 0;
  background: var(--bg-purple-tint);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  border: 1px solid rgba(88, 60, 219, 0.08);
}

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

.product-thumb {
  position: relative;
  text-align: center;
  background: var(--pomelli-deep-purple);
}

.product-thumb img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--pomelli-warm-gold);
  color: var(--pomelli-deep-purple);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 0.85rem;
}

.product-details {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-details h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 1.6rem;
  color: var(--pomelli-primary-violet);
  margin-bottom: 10px;
}

.product-details p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-price-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.product-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pomelli-deep-purple);
}

/* Section: Who is it for? */
.audience-section {
  padding: 90px 0;
  background: var(--bg-canvas);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.audience-box {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(88, 60, 219, 0.08);
  transition: transform 0.3s ease;
}

.audience-box:hover {
  transform: translateY(-6px);
}

.audience-icon-wrap {
  font-size: 2.8rem;
  background: var(--bg-purple-tint);
  width: 72px;
  height: 72px;
  line-height: 72px;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.audience-box h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 1.35rem;
  color: var(--pomelli-primary-violet);
  margin-bottom: 10px;
}

.audience-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Section: Testimonials & Reviews */
.reviews-section {
  padding: 90px 0;
  background: var(--bg-purple-tint);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.review-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: var(--pomelli-warm-gold);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.review-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-style: italic;
}

.review-author-name {
  font-weight: 800;
  color: var(--pomelli-primary-violet);
  font-size: 1.1rem;
}

.review-author-title {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Section: Contact Us */
.contact-section {
  padding: 90px 0;
  background: var(--bg-canvas);
}

.contact-card-box {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 48px;
  box-shadow: var(--shadow-soft);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(88, 60, 219, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* 💳 1-to-1 Tranzila Checkout Form Styling (matching user reference screenshot) */
.tranzila-checkout-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.tranzila-sub-header {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.tranzila-logo-box {
  margin-bottom: 24px;
}

.tranzila-brand-title {
  font-family: 'Rubik', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--tranzila-green);
  letter-spacing: -0.5px;
}

.tranzila-field-wrap {
  position: relative;
  margin-bottom: 20px;
}

.tranzila-field-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: none;
  border-bottom: 2px solid #d1d5db;
  border-radius: 0;
  font-size: 1.05rem;
  color: #111827;
  outline: none;
  transition: border-color 0.3s ease;
  text-align: right;
  background: transparent;
}

.tranzila-field-wrap input:focus {
  border-bottom-color: var(--tranzila-cyan-btn);
}

.tranzila-icon-right {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #6b7280;
}

.tranzila-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tranzila-sum-display {
  font-family: 'Rubik', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #111827;
  margin: 24px 0 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.btn-tranzila-credit {
  width: 100%;
  background-color: var(--tranzila-cyan-btn);
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 12px;
}

.btn-tranzila-credit:hover {
  background-color: var(--tranzila-cyan-hover);
}

.btn-tranzila-bit {
  width: 100%;
  background-color: #ffffff;
  color: #111827;
  border: 2px solid #111827;
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  margin-bottom: 16px;
}

.btn-tranzila-bit:hover {
  background-color: #f9fafb;
}

.bit-logo-badge {
  font-weight: 900;
  font-size: 1.3rem;
  color: #000;
  letter-spacing: -1px;
}

.tranzila-required-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 20px;
}

.tranzila-trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: #6b7280;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  margin-bottom: 12px;
}

.tranzila-trust-badges span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.tranzila-footer-legal {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Modal Core */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 9, 43, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 24px;
  padding: 36px;
  max-width: 540px;
  width: 92%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
  text-align: right;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e4f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--pomelli-primary-violet);
}

/* Footer & Legal Links */
footer {
  background: var(--bg-footer-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0;
  text-align: center;
  font-size: 1rem;
}

.footer-legal-links {
  margin-top: 12px;
  font-size: 0.95rem;
}

.footer-legal-links a {
  color: var(--pomelli-warm-gold);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 { font-size: 2.6rem; }
  .nav-menu { display: none; }
  .contact-card-box { padding: 28px; }
  .modal-content { padding: 24px; }
}
