/* Codecook — static rebuild of www.codecook.com */
:root {
  --green: #96bf48;
  --fg: #212529;
  --dark-gray: #495057;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --light-gray: #f1f3f5;
  --section-gray: #f8f9fa;
  --line: rgba(0, 0, 0, .05);
  --font: 'Alef', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --header-h: 81px;
}
html[lang="en"] { --font: 'Roboto', -apple-system, system-ui, 'Segoe UI', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); color: var(--fg); background: #fff; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: var(--green); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { width: 16px; height: 16px; flex-shrink: 0; }

.container { max-width: 120rem; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }

.eyebrow { display: block; text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--green); margin-bottom: 16px; }
.h2 { font-size: 36px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 32px; }
.h2-sm { font-size: 36px; font-weight: 700; line-height: 1.375; margin-bottom: 32px; }
.lead { font-size: 18px; color: var(--dark-gray); line-height: 1.75; }
@media (min-width: 768px) { .h2 { font-size: 60px; line-height: 1.1; } .h2-sm { font-size: 48px; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.logo { height: 48px; display: flex; align-items: center; }
.logo img { height: 100%; width: auto; }
.logo:hover { opacity: .8; }
.main-nav { display: none; gap: 40px; margin-inline-start: 48px; margin-inline-end: auto; }
.main-nav a { position: relative; font-size: 14px; color: var(--dark-gray); transition: color .2s; }
.main-nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; height: 1px; width: 0; background: var(--green); transition: width .3s; }
.main-nav a:hover { color: #000; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--green); }
.header-actions { display: none; align-items: center; gap: 24px; }
.btn-pill { background: #000; color: #fff; font-size: 14px; height: 36px; padding: 0 24px; border-radius: 999px; display: inline-flex; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.1); transition: background .2s; }
.btn-pill:hover { background: var(--green); }
.lang-picker { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 500; color: inherit; cursor: pointer; transition: color .2s; }
.lang-btn:hover { color: var(--green); }
.lang-picker .flag { font-size: 18px; line-height: 1; }
.lang-menu { display: none; position: absolute; top: calc(100% + 4px); inset-inline-end: 0; min-width: 128px; padding: 4px; background: #fff; color: var(--fg); border: 1px solid rgba(33,37,41,.1); border-radius: 6px; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); z-index: 60; }
.lang-picker.open .lang-menu { display: block; animation: menuIn .15s ease-out; }
.lang-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; background: none; border: 0; border-radius: 3px; font-family: 'Roboto', 'Alef', sans-serif; font-size: 14px; color: inherit; cursor: pointer; text-align: start; }
.lang-menu button:hover { background: rgba(33,37,41,.1); }
.lang-menu button.selected { background: rgba(150,191,72,.1); color: var(--green); }
.mobile-lang { margin-inline-start: auto; }
.mobile-lang .lang-label { display: none; }
@keyframes menuIn { from { opacity: 0; transform: scale(.95); } }
.burger { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--fg); }
.burger svg { width: 24px; height: 24px; }
.mobile-menu { display: none; flex-direction: column; padding: 8px 24px 24px; gap: 4px; border-top: 1px solid var(--line); }
.mobile-menu a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.site-header.open .mobile-menu { display: flex; }
@media (min-width: 768px) {
  .main-nav, .header-actions { display: flex; }
  .burger, .mobile-lang, .mobile-menu, .site-header.open .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #000; min-height: 85vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 160px 0 128px; }
@media (min-width: 768px) { .hero { padding-top: 192px; } }
.hero-bg { position: absolute; inset: 0; background: url('../assets/img/hero-bg.jpg') center/cover no-repeat; opacity: .4; }
.hero-dim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-a { top: 25%; right: 25%; width: 384px; height: 384px; background: rgba(150,191,72,.1); filter: blur(150px); animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.glow-b { bottom: 25%; left: 25%; width: 320px; height: 320px; background: rgba(150,191,72,.05); filter: blur(120px); }
.hero-content { position: relative; z-index: 10; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title { font-size: 60px; font-weight: 700; line-height: 1.25; letter-spacing: -.03em; color: #fff; margin-bottom: 8px; direction: ltr; }
.hero-sub { color: var(--green); font-size: 18px; font-weight: 400; letter-spacing: .025em; margin: 0 0 48px; }
.hero-text { color: var(--gray-300); font-size: 16px; line-height: 1.625; max-width: 672px; margin-bottom: 48px; }
@media (min-width: 768px) { .hero-title { font-size: 96px; } .hero-sub { font-size: 24px; } .hero-text { font-size: 18px; } }
.hero-buttons { display: grid; gap: 16px; justify-content: center; }
/* Side by side from 640px; 1fr columns keep both buttons as wide as the wider one */
@media (min-width: 640px) { .hero-buttons { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.btn { height: 56px; padding: 0 32px; border-radius: 2px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all .3s; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.btn-green { background: var(--green); color: #000; }
.btn-green:hover { background: #fff; }
.btn-outline { background: var(--fg); border: 1px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #000; }
.scroll-line { display: none; position: absolute; bottom: 48px; left: 50%; width: 1px; height: 64px; background: linear-gradient(to bottom, var(--green), transparent); animation: bounce 1s infinite; }
@media (min-width: 768px) { .scroll-line { display: block; } }

/* ---------- Services ---------- */
.services { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .services { padding-top: 128px; padding-bottom: 128px; } }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
.services-intro .sticky { position: sticky; top: 128px; }
.services-intro .lead { max-width: 448px; margin-bottom: 32px; }
.rule { display: none; width: 64px; height: 1px; background: rgba(0,0,0,.2); }
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 4fr 8fr; }
  .rule { display: block; }
}
.service-list { display: flex; flex-direction: column; gap: 32px; }
.service-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 32px; transition: border-color .5s; }
@media (min-width: 768px) { .service-card { padding: 48px; } }
.service-card:hover { border-color: rgba(150,191,72,.5); }
.service-card .num { position: absolute; top: 0; right: 0; padding: 24px; font-size: 96px; line-height: 1; color: #000; opacity: .2; z-index: 20; pointer-events: none; }
.service-body { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 768px) { .service-body { grid-template-columns: 1fr 1fr; } }
.service-card h3 { font-size: 24px; font-weight: 700; line-height: 1.375; margin-bottom: 16px; color: #000; transition: color .3s; }
@media (min-width: 768px) { .service-card h3 { font-size: 30px; } }
.service-card:hover h3 { color: var(--green); }
.service-lead { color: var(--dark-gray); line-height: 1.625; margin-bottom: 24px; }
.service-text { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; line-height: 1.5; }
.text-link { text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; letter-spacing: .05em; color: #000; transition: transform .3s, color .2s; }
.service-card:hover .text-link { transform: translateX(8px); }
.text-link:hover { color: var(--green); }
.service-img { height: 192px; overflow: hidden; border-radius: 2px; }
@media (min-width: 768px) { .service-img { height: 256px; } }
.service-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: all .7s; }
.service-card:hover .service-img img { filter: grayscale(0); transform: scale(1.05); }

/* ---------- Expertise ---------- */
.expertise { background: var(--section-gray); padding: 96px 0; }
@media (min-width: 768px) { .expertise { padding: 128px 0; } }
.section-head { margin-bottom: 64px; }
.section-head .h2 { font-size: 48px; }
@media (min-width: 768px) { .section-head .h2 { font-size: 60px; } }
.section-head .lead { max-width: 672px; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 32px; height: 100%; transition: border-color .3s; }
.feature:hover { border-color: rgba(150,191,72,.5); }
.feature h3 { font-size: 20px; font-weight: 400; color: #000; margin-bottom: 16px; transition: color .3s; }
@media (min-width: 768px) { .feature h3 { font-size: 24px; } }
.feature:hover h3 { color: var(--green); }
.feature p { color: var(--dark-gray); line-height: 1.625; }

/* ---------- Philosophy ---------- */
.philosophy { position: relative; background: #000; color: #fff; padding: 128px 0; overflow: hidden; }
.philosophy-bg { position: absolute; inset: 0; background: url('../assets/img/philosophy-bg.jpg') center/cover no-repeat; opacity: .1; pointer-events: none; }
.philosophy-grid { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr; gap: 80px; align-items: start; }
@media (min-width: 1024px) { .philosophy-grid { grid-template-columns: 1fr 1fr; } }
.philosophy .h2 { margin-bottom: 48px; }
.philosophy-text { color: var(--gray-300); font-size: 18px; line-height: 1.78; }
.pillars { display: flex; flex-direction: column; gap: 32px; }
.pillar { display: flex; align-items: flex-start; gap: 24px; padding: 24px; border-left: 1px solid rgba(255,255,255,.1); transition: all .3s; }
.pillar:hover { border-left-color: var(--green); background: rgba(255,255,255,.05); }
.pillar svg { width: 24px; height: 24px; color: var(--green); margin-top: 4px; }
.pillar h4 { font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--gray-400); }

/* ---------- CTA ---------- */
.cta { background: #f5f6f8; padding: 96px 0; text-align: center; }
.cta p { font-size: 20px; color: var(--dark-gray); max-width: 672px; margin: 0 auto 48px; line-height: 1.75; }
.btn-cta { display: inline-flex; align-items: center; justify-content: center; height: 64px; padding: 0 48px; background: #000; color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); transition: all .3s; }
.btn-cta:hover { background: var(--green); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }

/* ---------- Contact ---------- */
.contact { padding-top: 128px; padding-bottom: 128px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-info .lead { margin-bottom: 48px; }
.mail-link { display: inline-flex; align-items: center; gap: 16px; font-size: 20px; transition: color .2s; }
.mail-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--light-gray); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.mail-link:hover { color: var(--green); }
.mail-link:hover .mail-icon { background: var(--green); color: #fff; }
.contact-form { background: #fff; padding: 32px; border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .contact-form { padding: 48px; } }
.form-row { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .05em; color: var(--gray-500); }
.field input, .field textarea { font-family: 'Open Sans', -apple-system, system-ui, sans-serif; font-size: 14px; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid #e5e7eb; border-radius: 0; padding: 16px 0; outline: none; transition: border-color .2s; resize: none; }
[dir="rtl"] .field input#email { text-align: right; }
.field input::placeholder, .field textarea::placeholder { color: rgba(33,37,41,.5); }
.field input:hover, .field textarea:hover { border-bottom-color: rgba(33,37,41,.3); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--green); }
.btn-submit { margin-top: 16px; width: 100%; height: 56px; background: #000; color: #fff; border: 0; font-family: var(--font); font-size: 18px; font-weight: 700; cursor: pointer; transition: background .2s; }
.btn-submit:hover { background: var(--green); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; background: #000; }
.form-status { color: var(--green); font-weight: 700; }
.form-status.error { color: #dc2626; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-form { position: relative; }

/* On success the form card flips over to a light-gray back with the confirmation */
.form-flip { perspective: 1600px; }
.form-flip-inner { position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.65,0,.35,1); }
.form-flip.flipped .form-flip-inner { transform: rotateY(180deg); }
.form-flip .contact-form, .form-done { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.form-done { position: absolute; inset: 0; transform: rotateY(180deg); background: var(--light-gray); border: 1px solid var(--line); border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 32px; outline: none; }
.form-done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.form-done-icon svg { width: 36px; height: 36px; }
.form-done h3 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.form-done p { font-size: 18px; color: var(--dark-gray); line-height: 1.6; max-width: 360px; }
.form-again { margin-top: 16px; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #000; cursor: pointer; border-bottom: 1px solid currentColor; transition: color .2s; }
.form-again:hover { color: var(--green); }
@media (prefers-reduced-motion: reduce) { .form-flip-inner { transition: none; } }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; padding: 64px 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-top { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px; }
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: center; } }
.footer-logo { height: 64px; width: auto; filter: invert(1); margin-bottom: 16px; }
.footer-tag { color: var(--gray-400); font-size: 14px; max-width: 320px; }
.footer-links { display: flex; gap: 32px; font-size: 14px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--gray-400); transition: color .2s; }
.footer-links a.green { color: var(--green); }
.footer-links a:hover { color: #fff; }
.footer-links .lang-btn { color: #555; }
.footer-links .lang-btn:hover { color: var(--green); }
.footer-links .lang-menu { top: auto; bottom: calc(100% + 4px); }
.footer-bottom { margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #4b5563; text-align: center; }
@media (min-width: 768px) { .footer-bottom { text-align: left; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px; background: var(--green); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 50; opacity: 0; transform: translateY(16px); pointer-events: none; transition: all .2s; }
.to-top svg { width: 24px; height: 24px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.2); opacity: .9; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes pulse { 50% { opacity: .5; } }
@keyframes bounce { 0%, 100% { transform: translate(-50%, -25%); animation-timing-function: cubic-bezier(.8,0,1,1); } 50% { transform: translate(-50%, 0); animation-timing-function: cubic-bezier(0,0,.2,1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow-a, .scroll-line { animation: none; }
}

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; direction: ltr; }
.legal .container { max-width: 56rem; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-500); margin-bottom: 32px; transition: color .2s; }
.legal .back:hover { color: var(--green); }
.legal h1 { font-size: 48px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.legal .updated { color: var(--gray-500); margin-bottom: 48px; }
.legal h2 { font-size: 24px; font-weight: 700; margin: 40px 0 16px; }
.legal p, .legal li { color: var(--dark-gray); line-height: 1.75; }
.legal ul { padding-left: 24px; margin: 16px 0; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--green); }

/* Arrows point toward reading direction */
[dir="ltr"] .flip svg { transform: scaleX(-1); }

/* English uses Roboto Bold where the Hebrew uses Alef */
html[lang="en"] .pillar h4, html[lang="en"] .service-card .num, html[lang="en"] .feature h3 { font-weight: 700; }
html[lang="en"] .hero-sub { font-weight: 500; }
