/*
Theme Name: סמי מחזור ברזל ומתכות
Theme URI: https://buymetal.co.il
Description: תמה מותאמת אישית לאתר תדמית של עסק למיחזור ברזל ומתכות. עיצוב מודרני וכהה עם RTL מלא.
Author: Sami Scrap Metal
Author URI: https://buymetal.co.il
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sami-scrap-metal
Tags: rtl-language-support, one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ================================
   CSS RESET & BASE
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  overflow-x: hidden;
}

body {
  font-family: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================================
   CSS VARIABLES
   ================================ */

:root {
  /* צבעי ליבה */
  --color-primary: #1a1a1a;
  --color-accent: #F5A623;
  --color-accent-dark: #D4891A;
  --color-accent-light: #FBBE5E;

  /* רקעים */
  --color-bg: #111111;
  --color-bg-alt: #161616;
  --color-surface: #1e1e1e;
  --color-surface-2: #252525;

  /* גבולות */
  --color-border: #2d2d2d;
  --color-border-light: #3a3a3a;

  /* טקסט */
  --color-text: #f0f0f0;
  --color-text-muted: #9e9e9e;
  --color-text-faint: #666666;
  --color-white: #ffffff;

  /* מצבים */
  --color-success: #25D366;
  --color-error: #e74c3c;
  --color-warning: #f39c12;

  /* טיפוגרפיה */
  --font-primary: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  
  /* גדלי טקסט */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* מרווחים */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 900; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }

p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-light);
}

/* ================================
   BUTTONS
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 0.5rem;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #111;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.btn-whatsapp {
  background: var(--color-success);
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #111;
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.15rem;
}

/* ================================
   LAYOUT UTILITIES
   ================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
}

.section-lg {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
  .section-lg { padding: 6rem 0; }
}

/* ================================
   SECTION TITLES
   ================================ */

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 4rem;
  height: 3px;
  background: var(--color-accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--color-text-muted);
  text-align: center;
  font-size: 1rem;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   GRID SYSTEMS
   ================================ */

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.grid-3 {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(245, 166, 35, 0.6);
  }
}

.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* ================================
   RESPONSIVE UTILITIES
   ================================ */

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ================================
   ACCESSIBILITY
   ================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ================================
   RTL OVERRIDES
   ================================ */

.flex-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .text-left {
  text-align: right;
}

[dir="rtl"] .text-right {
  text-align: left;
}
