/*
Theme Name: Bina Maor ISO
Theme URI: https://www.binamaor.com/iso-27001-iso-27000/
Author: Think-Tech Ltd.
Description: ערכת WordPress מקצועית בעברית וב-RTL עבור בינה מאור – הכנת חברות לקבלת תקני ISO.
Version: 2.1
Requires at least: 5.7
Tested up to: 5.7.14
Requires PHP: 7.4
Text Domain: bina-maor-iso
*/

:root {
  --bm-navy: #092d4a;
  --bm-navy-deep: #061f36;
  --bm-teal: #087f8c;
  --bm-teal-light: #dff2f3;
  --bm-gold: #e2ad2f;
  --bm-gold-dark: #c78d12;
  --bm-ink: #102f49;
  --bm-muted: #5d7180;
  --bm-surface: #f4f8fa;
  --bm-border: #dce6eb;
  --bm-white: #fff;
  --bm-shadow: 0 16px 35px rgba(24, 54, 75, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; direction: rtl; background: var(--bm-surface); color: var(--bm-ink); font-family: Arial, "Noto Sans Hebrew", sans-serif; font-size: 16px; line-height: 1.75; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--bm-gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
svg { max-width: 100%; }
.content-width { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; top: 8px; right: 8px; z-index: 99999; padding: 12px 18px; background: white; color: var(--bm-ink); }

.site-header { position: sticky; top: 0; z-index: 100; min-height: 92px; background: var(--bm-navy-deep); color: white; box-shadow: 0 8px 30px rgba(3, 24, 43, .14); }
.header-inner { width: min(1440px, calc(100% - 56px)); min-height: 92px; margin: auto; padding-block: 6px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2vw, 32px); }
.brand, .brand-link { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(21px, 1.6vw, 28px); font-weight: 800; white-space: nowrap; }
.brand-shield { width: 48px; height: 52px; color: white; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: auto; max-height: 65px; }
.primary-navigation { justify-self: stretch; min-width: 0; }
.primary-menu { width: 100%; display: flex; flex-wrap: wrap; align-content: center; align-items: stretch; justify-content: center; column-gap: clamp(8px, 1vw, 18px); row-gap: 0; min-height: 80px; padding: 0; margin: 0; list-style: none; }
.primary-menu li { min-height: 38px; display: flex; position: relative; }
.primary-menu a { display: grid; place-items: center; position: relative; padding: 6px 0; font-size: clamp(20px, 1.3vw, 22px); line-height: 1.25; white-space: nowrap; }
.primary-menu > li > a::after { content: ""; position: absolute; bottom: 1px; right: 50%; width: 0; height: 3px; background: var(--bm-gold); transition: width .2s, right .2s; }
.primary-menu > li.current-menu-item > a::after, .primary-menu > li.current_page_item > a::after, .primary-menu > li > a:hover::after { width: 46px; right: calc(50% - 23px); }
.primary-menu .sub-menu { display: none; position: absolute; top: 100%; right: 0; min-width: 240px; padding: 10px; margin: 0; list-style: none; background: white; color: var(--bm-ink); border-radius: 0 0 10px 10px; box-shadow: var(--bm-shadow); }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 9px 12px; }
.menu-toggle { display: none; width: 44px; height: 42px; padding: 9px; border: 1px solid rgba(255,255,255,.35); border-radius: 7px; background: transparent; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: white; }
.phone-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 218px; padding: 15px 24px; border-radius: 8px; color: #0a2c48; background: linear-gradient(135deg, #f3c24d, var(--bm-gold)); box-shadow: 0 10px 24px rgba(205, 145, 18, .27); font-size: 18px; font-weight: 800; direction: ltr; transition: transform .2s, box-shadow .2s; }
.phone-button:hover { color: #0a2c48; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(205, 145, 18, .33); }
.phone-button svg { width: 20px; height: 20px; }
.header-phone { min-width: 190px; padding: 12px 18px; font-size: 17px; }

.hero { min-height: 435px; padding: 46px clamp(32px, 9vw, 150px) 76px; color: white; background: radial-gradient(circle at 18% 90%, rgba(14, 133, 149, .33), transparent 34%), linear-gradient(120deg, #0b3a5e, #062d4d 65%, #082a45); display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; overflow: hidden; }
.hero-art { min-height: 300px; position: relative; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: -140px -80px -80px -140px; background-image: radial-gradient(circle, rgba(116, 192, 205, .32) 1.7px, transparent 1.7px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(circle, black 0 40%, transparent 72%); mask-image: radial-gradient(circle, black 0 40%, transparent 72%); }
.hero-orb { width: 300px; height: 300px; position: absolute; border-radius: 50%; border: 1px solid rgba(117, 204, 214, .18); box-shadow: inset 0 0 80px rgba(11, 141, 155, .15); }
.hero-art svg { width: 210px; height: 230px; z-index: 2; color: #4f93b7; opacity: .8; filter: drop-shadow(0 15px 22px rgba(0,0,0,.2)); }
.hero-copy { text-align: center; max-width: 760px; justify-self: center; }
.eyebrow { margin: 0 0 20px; font-size: 18px; color: #e6f5f7; }
.eyebrow::after { content: ""; display: inline-block; width: 76px; height: 2px; margin-right: 18px; vertical-align: middle; background: var(--bm-gold); }
.eyebrow.dark { color: var(--bm-teal); font-weight: 700; }
.hero h1 { margin: 0; color: white; font-size: clamp(43px, 4.3vw, 70px); line-height: 1.16; letter-spacing: -.04em; font-weight: 800; }
.hero-lead { margin: 22px 0 30px; font-size: clamp(18px, 1.7vw, 25px); color: #e8f1f5; }
.hero .phone-button { margin-inline: auto; }

.standard-cards { padding: 0 clamp(24px, 9vw, 150px); margin-top: -42px; position: relative; z-index: 3; }
.standard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1180px; margin: auto; }
.standard-card { min-height: 158px; background: white; border: 1px solid #dfe8ed; border-radius: 12px; display: flex; align-items: center; gap: 24px; padding: 28px; box-shadow: var(--bm-shadow); transition: transform .2s, box-shadow .2s; }
.standard-card:hover { color: var(--bm-ink); transform: translateY(-5px); box-shadow: 0 20px 42px rgba(24, 54, 75, .16); }
.standard-card strong { display: block; font-size: 22px; margin-bottom: 8px; }
.standard-card small { display: block; font-size: 15px; line-height: 1.6; color: var(--bm-muted); }
.card-icon { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; border-radius: 50%; color: var(--bm-teal); background: var(--bm-teal-light); }
.card-icon svg { width: 37px; height: 37px; }

.process-section { padding-top: 76px; padding-bottom: 76px; }
.section-heading { display: flex; align-items: center; justify-content: center; gap: 26px; margin-bottom: 38px; text-align: center; }
.section-heading > span { width: 88px; height: 2px; background: var(--bm-gold); }
.section-heading h2 { margin: 0; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.2; }
.section-heading p { color: var(--bm-teal); font-size: 19px; margin: 8px 0 0; }
.section-heading.simple > div { width: 100%; }
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--bm-border); border-radius: 16px; background: white; box-shadow: 0 12px 30px rgba(24, 54, 75, .07); padding: 28px 14px; }
.process-step { padding: 12px 18px; text-align: center; position: relative; }
.process-step:not(:last-child)::after { content: ""; position: absolute; left: -4px; top: 45px; width: 8px; height: 8px; border-top: 2px solid #c9d8df; border-left: 2px solid #c9d8df; transform: rotate(-45deg); }
.step-icon { position: relative; width: 72px; height: 72px; margin: auto; border-radius: 50%; display: grid; place-items: center; border: 2px solid #e0e8ed; color: var(--bm-navy); font-size: 29px; font-weight: 700; }
.step-icon span { position: absolute; right: -10px; top: 20px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--bm-teal); color: white; font-size: 14px; }
.process-step h3 { font-size: 17px; margin: 16px 0 8px; }
.process-step p { color: var(--bm-muted); font-size: 14px; line-height: 1.55; margin: 0; }

.about-section { background: white; padding: 78px 0; }
.about-inner { display: grid; grid-template-columns: 1.5fr .75fr; gap: 72px; align-items: center; }
.about-copy h2 { margin: 0 0 18px; font-size: clamp(34px, 3.3vw, 50px); line-height: 1.15; }
.about-copy > p:not(.eyebrow) { font-size: 18px; line-height: 1.8; color: var(--bm-muted); }
.about-copy ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.about-copy li { position: relative; padding-right: 32px; font-weight: 700; }
.about-copy li::before { content: "✓"; position: absolute; right: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--bm-teal-light); color: var(--bm-teal); }
.profile-card { padding: 36px; text-align: center; background: linear-gradient(150deg, #0b3a5e, var(--bm-navy-deep)); color: white; border-radius: 18px; box-shadow: 0 20px 50px rgba(8, 43, 70, .24); }
.profile-card svg { width: 72px; height: 80px; color: #71b9c3; }
.profile-card h3 { font-size: 24px; margin: 12px 0; }
.profile-card p { color: #d9eaf0; line-height: 1.6; }
.profile-card a { display: inline-block; margin-top: 14px; color: #f3c24d; font-size: 20px; font-weight: 800; direction: ltr; }
.text-link { color: var(--bm-gold-dark); font-weight: 800; }

.original-content, .latest-posts { padding-top: 78px; padding-bottom: 78px; }
.original-content + .latest-posts { padding-top: 12px; }
.entry-content { max-width: 850px; margin-inline: auto; font-size: 17px; line-height: 1.85; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: var(--bm-ink); line-height: 1.3; margin-top: 1.8em; }
.entry-content h1 { font-size: 36px; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content a { color: var(--bm-teal); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-right: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote { margin: 30px 0; padding: 20px 24px; border-right: 4px solid var(--bm-gold); background: #fff; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--bm-border); }
.entry-content th { background: var(--bm-navy); color: white; }
.wp-block-image, .entry-content img { border-radius: 10px; }
.entry-content iframe { max-width: 100%; }
.post-grid, .archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { padding: 30px; border-radius: 14px; background: white; border: 1px solid var(--bm-border); box-shadow: 0 10px 28px rgba(24, 54, 75, .07); }
.post-card > span { color: var(--bm-teal); font-size: 14px; font-weight: 800; }
.post-card h2, .post-card h3 { font-size: 22px; line-height: 1.35; margin: 12px 0; }
.post-card p { color: var(--bm-muted); line-height: 1.65; }

.site-cta { margin-top: 0; margin-bottom: 32px; padding: 28px clamp(32px, 6vw, 82px); border-radius: 14px; background: radial-gradient(circle at left, rgba(11, 143, 155, .25), transparent 28%), var(--bm-navy); color: white; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-cta h2 { margin: 0 0 8px; color: white; font-size: 30px; }
.site-cta p { margin: 0; color: #dcecf1; }

.page-hero { padding: 30px 0; color: white; background: radial-gradient(circle at 15% 100%, rgba(14, 133, 149, .3), transparent 30%), linear-gradient(120deg, #0b3a5e, #062d4d); }
.page-hero .page-professional-title { max-width: 980px; margin: 0 0 8px; color: #d9eaf0; font-size: clamp(24px, 2vw, 30px); line-height: 1.55; font-weight: 600; }
.page-hero h1 { max-width: 900px; margin: 0; color: white; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; }
.page-hero .post-meta { margin: 14px 0 0; color: #d9eaf0; }
.article-shell { margin-top: 42px; margin-bottom: 58px; padding: 48px clamp(24px, 5vw, 70px); border-radius: 16px; background: white; box-shadow: 0 14px 40px rgba(24, 54, 75, .08); }
.featured-image { margin-bottom: 34px; text-align: center; }
.archive-grid { padding-top: 58px; padding-bottom: 70px; }
.navigation.pagination { grid-column: 1 / -1; }
.nav-links { display: flex; gap: 8px; justify-content: center; }
.page-numbers { padding: 8px 14px; border-radius: 6px; background: white; }
.page-numbers.current { background: var(--bm-teal); color: white; }
.not-found { min-height: 55vh; padding: 90px 24px; text-align: center; }
.not-found > span { color: var(--bm-gold); font-size: 88px; font-weight: 900; line-height: 1; }
.not-found h1 { font-size: 42px; margin: 18px 0 0; }
.not-found .phone-button { margin-top: 26px; }

/* Contact Form 7 5.3 compatibility (the version active on the existing site). */
.wpcf7-form { max-width: 760px; margin-inline: auto; }
.wpcf7-form label { display: block; margin-bottom: 18px; color: var(--bm-ink); font-weight: 700; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select { width: 100%; max-width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #bdcdd5; border-radius: 7px; background: #fff; color: var(--bm-ink); font: inherit; }
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus { border-color: var(--bm-teal); outline: 3px solid rgba(8, 127, 140, .16); }
.wpcf7-form input[type="submit"] { min-width: 190px; padding: 13px 24px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #f3c24d, var(--bm-gold)); color: var(--bm-navy); font: inherit; font-weight: 800; cursor: pointer; }
.wpcf7-form .wpcf7-not-valid-tip { color: #9f2424; font-size: 14px; }
.wpcf7-form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border-radius: 7px; }

/* Keep the existing accessibility and cookie controls above the sticky header. */
#open_sogoacc, #sogoacc { z-index: 10000 !important; }
#moove_gdpr_cookie_info_bar, #moove_gdpr_cookie_modal { z-index: 2147483647 !important; }

/*
 * The legacy Call Now Button plugin uses the maximum possible z-index on mobile.
 * Lower it so the legally required cookie notice and its controls stay clickable.
 */
@media screen and (max-width: 650px) {
  html body #callnowbutton { z-index: 9900 !important; }
  html body #moove_gdpr_cookie_info_bar,
  html body #moove_gdpr_cookie_modal,
  html body .gdpr_lightbox,
  html body .gdpr_lightbox-wrap { z-index: 2147483647 !important; pointer-events: auto; }
}

/* Native WordPress 5.7 comments. */
.comments-area { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--bm-border); }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { padding-right: 28px; list-style: none; }
.comment-body { margin-bottom: 20px; padding: 20px; border-radius: 10px; background: var(--bm-surface); }
.comment-form label { display: block; font-weight: 700; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 11px 13px; border: 1px solid #bdcdd5; border-radius: 7px; font: inherit; }
.comment-form input[type="submit"] { padding: 12px 22px; border: 0; border-radius: 7px; background: var(--bm-teal); color: white; font: inherit; font-weight: 700; cursor: pointer; }

.site-footer { padding: 42px 0 0; background: var(--bm-navy-deep); color: white; }
.footer-inner { width: min(1180px, calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; }
.footer-inner strong { font-size: 23px; }
.footer-inner p { max-width: 530px; margin: 6px 0 0; color: #c9dbe4; }
.footer-phone { color: #f3c24d; font-size: 21px; font-weight: 800; direction: ltr; }
.footer-inner ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.footer-bottom { margin-top: 34px; padding: 18px max(24px, calc((100% - 1180px)/2)); border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; color: #b8cbd5; font-size: 14px; }

@media (max-width: 1120px) {
  .header-inner { width: calc(100% - 34px); gap: 18px; }
  .primary-menu { column-gap: 10px; row-gap: 0; }
  .primary-menu a { font-size: 20px; }
  .header-phone { min-width: 160px; font-size: 15px; }
  .hero { padding-inline: 46px; }
  .standard-card { padding: 22px; gap: 14px; }
}

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header, .header-inner { min-height: 76px; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .brand { font-size: 25px; }
  .brand-shield { width: 40px; height: 44px; }
  .menu-toggle { display: block; order: 2; }
  .primary-navigation { display: none; position: absolute; top: 76px; left: 18px; right: 18px; padding: 10px; background: white; color: var(--bm-ink); border-radius: 0 0 12px 12px; box-shadow: var(--bm-shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { min-height: 0; display: grid; gap: 0; }
  .primary-menu li { display: block; }
  .primary-menu a { display: block; padding: 10px 12px; }
  .primary-menu > li > a::after { display: none; }
  .primary-menu .sub-menu { position: static; display: block; box-shadow: none; padding-right: 18px; }
  .header-phone { min-width: auto; padding: 10px 12px; }
  .header-phone svg { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 52px 24px 80px; }
  .hero-art { display: none; }
  .standard-grid, .post-grid, .archive-grid { grid-template-columns: 1fr; max-width: 650px; margin-inline: auto; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .process-step:not(:last-child)::after { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .site-cta { flex-direction: column; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner p { margin-inline: auto; }
  .footer-inner ul { justify-content: center; }
}

@media (max-width: 600px) {
  body.admin-bar .site-header { top: 0; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand-name { font-size: 22px; }
  .header-phone { display: none; }
  .hero h1 { font-size: 41px; }
  .hero-lead { line-height: 1.55; }
  .standard-cards { padding-inline: 14px; }
  .standard-card { min-height: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .section-heading > span { width: 32px; }
  .content-width { width: min(100% - 30px, 1180px); }
  .about-section { padding: 60px 0; }
  .profile-card { padding: 30px 20px; }
  .article-shell { margin-top: 20px; padding: 30px 20px; }
  .site-cta { padding: 30px 20px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
