/*
Theme Name: Etaniv
Theme URI: https://www.etaniv.co.il
Author: Etaniv B.Y. Ltd
Author URI: https://www.etaniv.co.il
Description: Custom theme for Etaniv B.Y. Ltd — Water and Environment Technologies. Reproduces the approved Etaniv mockup as a multi-page WordPress site with Customizer-editable content and a built-in contact form.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: etaniv
*/

/* ======================================================================
   ETANIV THEME — design ported verbatim from the approved mockup.
   Only the outer page chrome was adapted for WordPress (admin bar, etc.).
   To make the site full-width instead of the centered 960px "card",
   change ".s" max-width to none and remove the border/shadow/radius.
   ====================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f0f0; display: flex; justify-content: center; padding: 20px; }
.s { color: #2C2C2A; max-width: 960px; width: 100%; background: #fff; border: 1px solid #ccc; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.10); }

/* ── BEIGE NAV BAR ── */
.nav { background: #F4F8FC; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #D0E4F0; position: relative; z-index: 1000; min-height: 58px; }
.logo-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.logo-circles { position: relative; width: 40px; height: 30px; flex-shrink: 0; }
.lc1 { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #5BAAAA; opacity: 0.85; }
.lc2 { position: absolute; left: 12px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: #E8A84C; opacity: 0.9; }
.logo-img { max-height: 40px; width: auto; display: block; }
.logo-name { font-size: 17px; font-weight: 600; color: #4A4A42; }
.logo-sub { font-size: 9px; color: #E8A84C; font-style: italic; margin-top: 1px; }
.nav-right { display: flex; align-items: center; gap: 2px; }
.nav-cta { background: #5BAAAA; color: #fff; border: none; border-radius: 6px; padding: 8px 18px; font-size: 12px; font-weight: 600; cursor: pointer; margin-left: 10px; text-decoration: none; display: inline-block; }
.nav-cta:hover { background: #3D7A7A; }
.ni { position: relative; display: flex; align-items: stretch; }
.ni-btn { display: flex; align-items: center; gap: 4px; padding: 0 13px; height: 58px; background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-size: 12px; color: #5F5E5A; font-family: inherit; white-space: nowrap; transition: all 0.15s; text-decoration: none; }
.ni-btn:hover { color: #3D7A7A; border-bottom-color: #5BAAAA; background: rgba(91,170,170,0.06); }
.ni-btn.active { color: #3D7A7A; border-bottom-color: #5BAAAA; }
.ni-btn .arr { font-size: 8px; color: #5BAAAA; transition: transform 0.15s; }
.ni:hover .ni-btn .arr { transform: rotate(180deg); }
.dd { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #D0E4F0; border-top: 2px solid #5BAAAA; border-radius: 0 0 8px 8px; box-shadow: 0 8px 28px rgba(0,0,0,0.10); min-width: 220px; z-index: 2000; overflow: hidden; }
.ni:hover .dd { display: block; }
.dd-head { padding: 8px 14px 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #5BAAAA; background: #F4F8FC; border-bottom: 1px solid #D0E4F0; }
.dd-page { display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 12px; font-weight: 600; color: #4A4A42; cursor: pointer; border-bottom: 1px solid #D0E4F0; transition: background 0.12s; text-decoration: none; }
.dd-page:hover { background: #E4F4F4; color: #3D7A7A; }
.dd-page::before { content: "→"; color: #5BAAAA; }
.dd-item { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12px; color: #5F5E5A; cursor: pointer; transition: background 0.12s; text-decoration: none; }
.dd-item:hover { background: #E4F4F4; color: #3D7A7A; }
.dd-item::before { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: #5BAAAA; flex-shrink: 0; }

/* ── PAGES ── */
.pg { display: block; }

/* ── SHARED ── */
.hero { background: #2C2C26; padding: 52px 40px 44px; }
.htag { font-size: 10px; letter-spacing: 1.4px; color: #E8A84C; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: 26px; font-weight: 500; color: #fff; line-height: 1.35; max-width: 580px; margin-bottom: 14px; text-align: justify; }
.hero p { font-size: 13px; color: #A8A89E; line-height: 1.7; max-width: 540px; margin-bottom: 28px; text-align: justify; }
.hbtns { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.bp { background: #5BAAAA; color: #fff; border: none; border-radius: 6px; padding: 10px 22px; font-size: 12px; cursor: pointer; text-decoration: none; display: inline-block; }
.bs { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); border-radius: 6px; padding: 10px 22px; font-size: 12px; cursor: pointer; text-decoration: none; display: inline-block; }
.stats { display: flex; gap: 32px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); flex-wrap: wrap; }
.sn { font-size: 24px; font-weight: 600; color: #E8A84C; }
.sl { font-size: 11px; color: #A8A89E; margin-top: 2px; }
.sec { padding: 40px; background: #fff; }
.sec-alt { padding: 40px; background: #F4F8FC; }
.stag { font-size: 10px; letter-spacing: 1.2px; color: #5BAAAA; text-transform: uppercase; margin-bottom: 8px; }
.sec h2, .sec-alt h2 { font-size: 20px; font-weight: 600; color: #4A4A42; margin-bottom: 8px; }
.slead { font-size: 13px; color: #5F5E5A; margin-bottom: 22px; line-height: 1.65; max-width: 600px; text-align: justify; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { border: 1px solid #E0EAF0; border-radius: 10px; padding: 18px; background: #fff; cursor: pointer; transition: border-color 0.15s; text-decoration: none; display: block; }
.card:hover { border-color: #5BAAAA; }
.ci-t { width: 36px; height: 36px; border-radius: 8px; background: #E4F4F4; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.ci-g { width: 36px; height: 36px; border-radius: 8px; background: #FDF3E3; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.card h3 { font-size: 13px; font-weight: 600; color: #4A4A42; margin-bottom: 5px; }
.card p { font-size: 11px; color: #5F5E5A; line-height: 1.55; text-align: justify; }
.tag { display: inline-block; font-size: 10px; padding: 2px 9px; border-radius: 20px; }
.tt { background: #E4F4F4; color: #3D7A7A; }
.tg { background: #FDF3E3; color: #C4832A; }
.tw { background: #F0EDE8; color: #6B5B3E; }
.proj-card { border: 1px solid #E0EAF0; border-radius: 10px; overflow: hidden; background: #fff; }
.proj-img { height: 60px; background: #E4F4F4; display: flex; align-items: center; justify-content: center; }
.proj-body { padding: 13px; }
.proj-result { font-size: 11px; color: #5BAAAA; font-weight: 600; margin-top: 5px; }
.dl-link { font-size: 10px; color: #5BAAAA; cursor: pointer; margin-top: 7px; display: block; text-decoration: none; }
.team-card { text-align: center; }
.av { width: 90px; height: 110px; border-radius: 8px; background: #E4F4F4; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 10px; border: 1.5px dashed #5BAAAA; position: relative; overflow: hidden; }
.av-g { width: 90px; height: 110px; border-radius: 8px; background: #FDF3E3; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 10px; border: 1.5px dashed #E8A84C; position: relative; overflow: hidden; }
.av img, .av-g img { width: 100%; height: 100%; object-fit: cover; }
.av-icon { font-size: 28px; opacity: 0.5; margin-bottom: 4px; }
.av-label { font-size: 9px; color: #5BAAAA; text-align: center; line-height: 1.3; padding: 0 6px; }
.av-g .av-label { color: #C4832A; }
.tn { font-size: 12px; font-weight: 600; color: #4A4A42; margin-bottom: 2px; }
.tt2 { font-size: 10px; color: #5BAAAA; margin-bottom: 4px; }
.tb { font-size: 10px; color: #5F5E5A; line-height: 1.5; text-align: justify; }
.cta-strip { background: #3D7A7A; padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta-strip h2 { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.cta-strip p { font-size: 12px; color: #C8E4E4; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cd { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.cic { width: 28px; height: 28px; border-radius: 6px; background: #E4F4F4; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cl { font-size: 10px; color: #888; margin-bottom: 1px; }
.cv { font-size: 13px; color: #4A4A42; font-weight: 600; }
.map-box { background: #E4F4F4; border-radius: 8px; height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #D0E4F0; margin-top: 14px; overflow: hidden; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.ff { background: #2C2C26; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.fl { font-size: 14px; font-weight: 600; color: #fff; }
.fl span { font-size: 8px; color: #E8A84C; font-style: italic; display: block; margin-top: 1px; }
.flinks { display: flex; gap: 16px; font-size: 11px; color: #888; flex-wrap: wrap; cursor: pointer; }
.flinks a { color: #888; text-decoration: none; }
.flinks a:hover { color: #5BAAAA; }
.fc { font-size: 10px; color: #666; }
.dvdr { height: 1px; background: #E0EAF0; margin: 0 40px; }
.vbox { margin-top: 20px; padding: 16px 20px; background: #F4F8FC; border-left: 3px solid #E8A84C; border-radius: 0 8px 8px 0; }
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.team-row-2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.svc-block { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 24px; border: 1px solid #E0EAF0; border-radius: 10px; background: #fff; margin-bottom: 14px; }
.svc-num { width: 42px; height: 42px; border-radius: 50%; background: #5BAAAA; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; flex-shrink: 0; }
.svc-body h3 { font-size: 15px; font-weight: 600; color: #4A4A42; margin-bottom: 7px; }
.svc-body p { font-size: 13px; color: #5F5E5A; line-height: 1.65; text-align: justify; margin-bottom: 10px; }
.svc-bul { display: flex; flex-direction: column; gap: 6px; }
.svc-bul div { display: flex; gap: 8px; font-size: 12px; color: #5F5E5A; }
.svc-dot { width: 5px; height: 5px; border-radius: 50%; background: #5BAAAA; margin-top: 6px; flex-shrink: 0; }
input, select, textarea { border: 1px solid #D0E4F0; border-radius: 6px; padding: 8px 10px; font-size: 12px; font-family: inherit; width: 100%; margin-bottom: 0; }
textarea { height: 80px; resize: none; }
label { font-size: 11px; color: #888; display: block; margin-bottom: 3px; margin-top: 10px; }
.form-btn { width: 100%; background: #5BAAAA; color: #fff; border: none; border-radius: 6px; padding: 10px; font-size: 12px; cursor: pointer; margin-top: 10px; }
.form-btn:hover { background: #3D7A7A; }
.form-note { font-size: 11px; padding: 10px 12px; border-radius: 6px; margin-bottom: 14px; line-height: 1.5; }
.form-note.ok { background: #E4F4F4; color: #2C6B6B; border: 1px solid #B7E0E0; }
.form-note.err { background: #FBEDED; color: #9B3B3B; border: 1px solid #E8C7C7; }
.form-note.info { background: #FDF3E3; color: #8A6320; border: 1px solid #EAD6A8; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ── BOTTOM DARK PAGE BAR ── */
.pagebar { background: #2C2C26; padding: 0 24px; display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,0.08); min-height: 38px; flex-wrap: wrap; }
.pb { padding: 0 15px; height: 38px; display: flex; align-items: center; font-size: 11px; color: rgba(255,255,255,0.5); cursor: pointer; background: transparent; border: none; border-top: 2px solid transparent; font-family: inherit; white-space: nowrap; transition: all 0.15s; text-decoration: none; }
.pb:hover { color: rgba(255,255,255,0.9); }
.pb.on { color: #E8A84C; border-top-color: #E8A84C; font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  body { padding: 0; }
  .s { border-radius: 0; border: none; }
  .nav { flex-wrap: wrap; }
  .nav-right { flex-wrap: wrap; }
  .g3, .g4, .g2, .cgrid, .team-row, .team-row-2 { grid-template-columns: 1fr 1fr; }
  .svc-block { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .g3, .g4, .g2, .cgrid, .team-row, .team-row-2 { grid-template-columns: 1fr; }
  .hero { padding: 36px 22px; }
  .sec, .sec-alt, .cta-strip, .ff { padding-left: 22px; padding-right: 22px; }
}

/* keep content clear of the WP admin bar when logged in */
.admin-bar .nav { top: 0; }
