/*
Theme Name: Kotev Technology
Theme URI: https://kotev.co.il
Author: Kotev Technology
Description: תבנית WordPress שמשכפלת במדויק את העיצוב הקיים של אתר קוטב טכנולוגיה - ניתנת לעריכה מלאה (טקסטים, תמונות, מוצרים, לקוחות) מתוך לוח הבקרה של WordPress, בלי לגעת בקוד.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kotev
*/

/* ==========================================================================
   קוטב טכנולוגיה — style.css
   הערה: הכללים והערכים בקובץ זה זהים במדויק לגרסה הקודמת.
   השינוי היחיד הוא פירוק לשורות קריאות, קיבוץ לפי אזור, והערות מסמכות -
   שום ערך צבע, מרחק או גודל לא השתנה, כדי לשמור על העיצוב הקיים ללא שינוי.
   ========================================================================== */

/* -------------------- משתני עיצוב (Design tokens) -------------------- */
:root {
  --navy: #173a5e;
  --blue: #1f77a8;
  --cyan: #27a9cf;
  --light: #f4f6f8;
  --text: #30363d;
  --muted: #66727d;
  --border: #dce3e8;
}

/* -------------------- איפוס בסיסי -------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  color: var(--text);
  background: white;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: auto;
}

/* -------------------- שורת מידע עליונה -------------------- */
.topbar {
  height: 34px;
  background: #24394d;
  color: #dbe5ed;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
}

/* -------------------- כותרת עליונה וניווט -------------------- */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e8eb;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 150px;
  max-height: 65px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.brand-text span {
  font-size: 12px;
  color: #777;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 34px 15px;
  font-size: 15px;
  color: #404b55;
  border-top: 3px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
  border-top-color: var(--cyan);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
}

/* -------------------- אזור Hero / סליידר -------------------- */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #23394d;
}

.slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.8s;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 37, 59, 0.05), rgba(13, 37, 59, 0.7));
}

.hero-copy {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-card {
  max-width: 500px;
  color: white;
  text-shadow: 0 1px 2px #000;
}

.hero-card h1 {
  font-size: 38px;
  line-height: 1.25;
  margin: 0 0 18px;
}

.hero-card p {
  font-size: 19px;
  line-height: 1.75;
  margin: 0;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  margin: 4px;
  cursor: pointer;
}

.hero-dots button.active {
  background: white;
}

/* -------------------- מקטעים כלליים -------------------- */
.section {
  padding: 72px 0;
}

.section.gray {
  background: var(--light);
}

.section.dark {
  background: #1c344b;
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  font-size: 31px;
  color: var(--navy);
  margin: 0 0 12px;
}

.dark .section-title h2 {
  color: white;
}

.section-title p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 820px;
  margin: auto;
}

.dark .section-title p {
  color: #d8e0e7;
}

/* -------------------- כרטיסי מוצרים -------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(25, 50, 70, 0.05);
}

.icon-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--blue);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
}

.card h3 {
  color: var(--navy);
  font-size: 21px;
  margin: 0 0 14px;
}

.card p {
  color: #65717b;
  line-height: 1.75;
  font-size: 15px;
}

.card .more {
  display: inline-block;
  color: var(--blue);
  margin-top: 12px;
  font-weight: bold;
}

/* -------------------- שני טורים (תמונה + טקסט) -------------------- */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
}

.two-column img {
  width: 100%;
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.15);
}

.two-column h2 {
  font-size: 32px;
  color: var(--navy);
  margin-top: 0;
}

.two-column p,
.story p {
  line-height: 1.85;
  color: #596670;
}

/* -------------------- לוגואי לקוחות -------------------- */
.clients {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.client {
  height: 88px;
  background: #fff;
  border: 1px solid #e0e5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.client img {
  max-width: 100%;
  max-height: 65px;
  filter: grayscale(20%);
}

/* -------------------- סיפורי לקוחות -------------------- */
.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story {
  background: white;
  border-top: 4px solid var(--cyan);
  padding: 26px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.story h3 {
  color: var(--navy);
  margin-top: 0;
}

.story strong {
  color: var(--blue);
}

/* -------------------- טופס יצירת קשר וכותרת תחתונה -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}

.contact-form {
  display: grid;
  gap: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #cfd8df;
  font: inherit;
}

.contact-form textarea {
  height: 120px;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: white;
  border: none;
  padding: 13px 28px;
  cursor: pointer;
  font-weight: bold;
}

.footer {
  background: #15293b;
  color: #cbd5dc;
  padding: 36px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer a {
  color: #fff;
}

.copyright {
  background: #102131;
  color: #96a6b2;
  text-align: center;
  padding: 15px;
  font-size: 13px;
}

/* -------------------- עמודי תוכן משניים (page-hero / page-content) -------------------- */
.page-hero {
  background: #203a52;
  color: #fff;
  padding: 60px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: 36px;
}

.page-content {
  padding: 55px 0;
  min-height: 500px;
  line-height: 1.9;
}

.page-content h2,
.page-content h3 {
  color: var(--navy);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-item {
  border: 1px solid var(--border);
  padding: 24px;
  background: #fff;
}

.article-item h2 {
  font-size: 21px;
  margin-top: 0;
}

.article-item p {
  color: #65717b;
}

.privacy {
  white-space: pre-line;
  line-height: 1.85;
}

/* -------------------- רספונסיביות -------------------- */
@media (max-width: 850px) {
  .mobile-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 88px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 15px 24px;
    border-top: 0;
    border-right: 3px solid transparent;
  }

  .cards,
  .stories {
    grid-template-columns: 1fr;
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    height: 430px;
  }

  .hero-card h1 {
    font-size: 30px;
  }

  .brand-text {
    display: none;
  }
}

/* -------------------- תאימות לתפריטי WordPress (wp_nav_menu) --------------------
   wp_nav_menu מפיק פריטי <li> - כלל זה משמר את פריסת ה-flex/inline
   המקורית בלי לשנות שום מרחק, צבע או גודל קיים. */
.nav > li {
  list-style: none;
  margin: 0;
}

.footer-grid li {
  display: inline;
  list-style: none;
}

.footer-grid li:not(:last-child)::after {
  content: " · ";
}

/* -------------------- תאימות לעורך התוכן של WordPress -------------------- */
.page-content img {
  max-width: 100%;
  height: auto;
}

.page-content .alignleft {
  float: left;
  margin: 0 0 1em 1em;
}

.page-content .alignright {
  float: right;
  margin: 0 1em 1em 0;
}

.page-content .aligncenter {
  display: block;
  margin: 0 auto 1em;
}

.page-content ul,
.page-content ol {
  padding-right: 22px;
  margin: 0 0 1em;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

@media (max-width: 480px) {
  .clients {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: none;
  }

  .header-inner {
    height: 72px;
  }

  .nav {
    top: 72px;
  }

  .brand img {
    width: 130px;
  }
}
