/* ============================================
   ADAPTATION.WORK — ENGLISH SITE
   Global CSS for all pages
   ============================================ */

/* ==== 0. FONTS ==== */
@font-face {
  font-family: 'Polin';
  src: url('../fonts/Polin-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Polin';
  src: url('../fonts/PolinMedium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Polin';
  src: url('../fonts/Polin-Extrabold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==== 1. CSS VARIABLES / DESIGN TOKENS ==== */
:root {
  --yellow: #FFDC09;
  --dark: #1A1A1A;
  --white: #FFFFFF;
  --magenta: #DD37D0;
  --gray-bg: #F8F8F8;
  --gray-light: #F3F3F3;
  --border: #E8E8E8;
  --text-muted: #666666;
  --text-body: #333333;
  --container-max: 1200px;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

/* ==== 2. RESET & BASE ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Polin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==== 3. TYPOGRAPHY ==== */
h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--dark);
}

h2 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark);
}

h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--dark);
}

h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark);
}

p {
  margin-bottom: 16px;
  color: var(--text-body);
}

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

a:hover {
  color: var(--yellow);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* ==== 4. LAYOUT: CONTAINER & SECTIONS ==== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-padding {
  padding: 100px 0;
}

/* ==== 5. NAVIGATION ==== */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow var(--transition);
}

nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  color: var(--yellow);
}

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

.nav-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition);
}

.nav-menu a:hover {
  color: var(--yellow);
}

.nav-cta {
  background: var(--yellow);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: #FFE033;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ==== 6. HERO SECTION ==== */
.hero {
  padding: 120px 0 100px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero h1 {
  font-size: 64px;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-subhead {
  font-size: 24px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* ==== 7. BUTTONS ==== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--dark);
}

.btn-primary:hover {
  color: var(--dark);
  background: #FFE033;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 220, 9, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

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

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  color: var(--dark);
  border-color: var(--dark);
  background: var(--gray-bg);
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* ==== 8. LOGO BAR ==== */
.logo-bar {
  background: var(--gray-bg);
  padding: 60px 0;
  text-align: center;
}

.logo-bar-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.logo-bar h3 {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 500;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.logos-grid span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.logos-grid span::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--border);
}

.logos-grid span:first-child::before {
  display: none;
}

/* ==== 9. STATS SECTION ==== */
.stats {
  padding: 80px 0;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item h2 {
  font-size: 48px;
  color: var(--yellow);
  margin-bottom: 8px;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ==== 10. PRODUCTS GRID ==== */
.products-section {
  padding: 100px 0;
}

.products-section h2 {
  text-align: center;
  margin-bottom: 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.product-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card h3 {
  margin-bottom: 16px;
}

.product-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-badge {
  display: inline-block;
  background: var(--gray-bg);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

/* ==== 11. TESTIMONIALS ==== */
.testimonials-section {
  padding: 100px 0;
  background: var(--gray-bg);
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border-left: 4px solid var(--yellow);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.testimonial-text {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==== 12. ABOUT TEASER ==== */
.about-teaser {
  padding: 100px 0;
}

.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-teaser-content h2 {
  margin-bottom: 24px;
}

.about-teaser-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--dark);
  transition: all var(--transition);
}

.about-teaser-link:hover {
  gap: 12px;
  color: var(--yellow);
}

.about-teaser-image {
  width: 100%;
  height: 400px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
}

/* ==== 13. FORMS ==== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 220, 9, 0.1);
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ==== 14. FOOTER ==== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
  margin-top: 100px;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-section a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-credit {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ==== 15. HERO WITH IMAGE ==== */
.hero-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 100px 0;
}

.hero-with-image-content h1 {
  margin-bottom: 20px;
}

.hero-with-image-image {
  width: 100%;
  background: var(--gray-bg);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
}

/* ==== 16. FEATURE CARDS ==== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.feature-item {
  padding: 30px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.feature-item:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-item h4 {
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-item p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==== 17. CHAPTER LIST ==== */
.chapters {
  background: var(--gray-bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
}

.chapter {
  padding: 20px 30px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.chapter:last-child {
  border-bottom: none;
}

.chapter:hover {
  background: var(--white);
}

.chapter-title {
  font-weight: 500;
  color: var(--dark);
}

.chapter-number {
  color: var(--yellow);
  font-weight: 700;
  font-size: 14px;
}

/* ==== 18. CONTRIBUTORS ==== */
.contributors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.contributor {
  text-align: center;
  padding: 20px;
}

.contributor-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.contributor-title {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==== 19. BUY SECTION ==== */
.buy-section {
  background: var(--gray-bg);
  padding: 60px 0;
  margin-top: 80px;
}

.buy-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.buy-option {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid var(--border);
  transition: all var(--transition);
}

.buy-option:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-lg);
}

.buy-option h4 {
  margin-bottom: 16px;
}

.buy-option .btn {
  margin-top: 20px;
}

/* ==== 20. CLIENT LOGOS GRID ==== */
.client-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.client-logo {
  padding: 30px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.client-logo:hover {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
}

/* ==== 21. OFFERINGS ==== */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 60px 0;
}

.offering-card {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.offering-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-lg);
}

.offering-card h3 {
  margin-bottom: 16px;
}

.offering-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==== 22. ARTICLES LIST ==== */
.articles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.article-item {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-item:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow);
  background: var(--gray-light);
}

.article-info h3 {
  margin-bottom: 8px;
  margin-top: 0;
}

.article-desc {
  color: var(--text-muted);
  font-size: 15px;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-weight: 600;
  white-space: nowrap;
  transition: gap var(--transition);
}

.article-link:hover {
  gap: 12px;
  color: var(--yellow);
}

/* ==== 23. ANIMATIONS ==== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* ==== 24. RESPONSIVE DESIGN ==== */
@media (max-width: 1024px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

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

  .hero-with-image {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contributors {
    grid-template-columns: repeat(3, 1fr);
  }

  .buy-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-logos {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  body {
    font-size: 16px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subhead {
    font-size: 18px;
  }

  .hero-ctas {
    gap: 12px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-large {
    padding: 14px 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stat-item h2 {
    font-size: 36px;
  }

  .product-card {
    padding: 30px;
  }

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

  .about-teaser-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-teaser-image {
    height: 300px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

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

  .contributors {
    grid-template-columns: repeat(2, 1fr);
  }

  .buy-options {
    grid-template-columns: 1fr;
  }

  .client-logos {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero-with-image-image {
    aspect-ratio: 4 / 3;
  }

  .chapter {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .logos-grid {
    gap: 12px;
    flex-direction: column;
    font-size: 13px;
  }

  .logos-grid span {
    gap: 8px;
  }

  .testimonial {
    padding: 20px;
  }

  .article-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .article-link {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==== 25. UTILITY CLASSES ==== */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt {
  margin-top: 40px;
}

.mb {
  margin-bottom: 40px;
}

.mt-lg {
  margin-top: 80px;
}

.mb-lg {
  margin-bottom: 80px;
}

.flex {
  display: flex;
}

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

.gap {
  gap: 20px;
}

.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.highlight {
  color: var(--yellow);
  font-weight: 600;
}

.img-placeholder {
  background: var(--gray-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
}

.lior-photo {
  width: 100%;
  max-width: 300px;
  height: 300px;
  margin: 0 auto;
}

/* ── Button hover color fix: prevent global a:hover from overriding ── */
a.btn:hover, button.btn:hover,
a.btn-primary:hover, a.btn-secondary:hover, a.btn-ghost:hover,
.nav-cta:hover { color: inherit; }
a.btn-primary:hover { color: var(--dark) !important; }
a.btn-secondary:hover { color: var(--white) !important; }
a.btn-ghost:hover { color: var(--dark) !important; }
