/* ============================================================
   Almog Child — home.css
   Loaded ONLY on pages using the "Custom Home" template.
============================================================ */

:root {
  --ink:        #1b2430;
  --ink-soft:   #3c4756;
  --paper:      #f6f4ef;
  --white:      #ffffff;
  --brass:      #b08d4f;
  --brass-soft: #d8c49a;
  --line:       #e3ded2;
  --display:    'Heebo', sans-serif;
  --body:       'Heebo', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *    { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  direction: rtl;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---- HEADER ---- */
#site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(27, 36, 48, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--display);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}
.logo span {
  color: var(--brass);
  font-weight: 400;
  font-size: .78rem;
  display: block;
  letter-spacing: .25em;
  margin-top: 2px;
}
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav ul a { color: #d8dde4; font-size: .95rem; font-weight: 600; transition: color .2s; }
.nav ul a:hover,
.nav ul a:focus-visible { color: var(--brass-soft); }
.nav ul a.cta-link {
  border: 1px solid var(--brass);
  color: var(--brass-soft);
  padding: 9px 20px;
  border-radius: 2px;
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.nav ul a.cta-link:hover { background: var(--brass); color: var(--ink); }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  right: 8px;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: .25s;
}
.burger span        { top: 19px; }
.burger span::before { top: -8px; }
.burger span::after  { top:  8px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero .slide.on { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,27,37,.85) 0%,
    rgba(20,27,37,.25) 55%,
    rgba(20,27,37,.35) 100%
  );
}
.hero-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: 72px;
  color: #fff;
}
.eyebrow {
  display: inline-block;
  color: var(--brass-soft);
  letter-spacing: .3em;
  font-size: .8rem;
  font-weight: 600;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.25;
  max-width: 720px;
}
.hero p {
  max-width: 560px;
  margin-top: 18px;
  color: #e6e2d8;
  font-weight: 300;
  font-size: 1.05rem;
}
.hero-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 2px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--body);
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-soft); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-soft); }

.hero-dots {
  position: absolute;
  bottom: 26px;
  inset-inline-start: 24px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 34px;
  height: 3px;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s;
}
.hero-dots button.on { background: var(--brass); }

/* ---- ABOUT ---- */
.about-section {
  background: var(--white);
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid h2 {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 20px;
}
.about-grid h2 em { color: var(--brass); font-style: normal; }
.about-grid p     { color: var(--ink-soft); margin-bottom: 14px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-inline-start: 2px solid var(--brass);
  padding-inline-start: 40px;
}
.stat b    { font-family: var(--display); font-size: 2.6rem; font-weight: 700; display: block; line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: .9rem; }

/* ---- PROJECTS ---- */
.projects-section { padding: 96px 0; }
.projects-section.bg-light { background: var(--white); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 44px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 { font-family: var(--display); font-size: 2rem; font-weight: 500; }
.rule  { flex: 1; height: 1px; background: var(--line); min-width: 60px; }

.tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; padding: 5px 14px; border-radius: 2px; text-transform: uppercase; }
.tag-mkt  { background: var(--brass);    color: var(--ink); }
.tag-plan { background: var(--ink);      color: var(--brass-soft); }
.tag-exec { background: #5c6b7d;         color: #fff; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.proj-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.proj-card:hover { box-shadow: 0 18px 40px rgba(27,36,48,.12); transform: translateY(-4px); }

.proj-thumb {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.proj-thumb .tag { position: absolute; top: 14px; inset-inline-start: 14px; }

.proj-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.proj-body h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.proj-body p  { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.more { margin-top: 16px; color: var(--brass); font-weight: 700; font-size: .9rem; display: inline-block; }
.more::after { content: "←"; margin-inline-start: 6px; transition: margin .2s; }
.proj-card:hover .more::after { margin-inline-start: 12px; }

/* ---- FEATURED ---- */
.feature-section {
  background: var(--ink);
  color: #fff;
  padding: 96px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.feature-text h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 18px;
}
.feature-text p { color: #c8cfd8; font-weight: 300; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.gallery div { aspect-ratio: 4/3; background-size: cover; background-position: center; filter: saturate(.9); }
.gallery div:first-child { grid-column: span 2; aspect-ratio: 16/8; }

/* ---- FORM ---- */
.form-card {
  background: var(--white);
  color: var(--ink);
  padding: 36px;
  border-top: 3px solid var(--brass);
}
.form-card h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: 6px; }
.form-sub     { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  border-radius: 2px;
  direction: rtl;
}
.field input:focus { outline: 2px solid var(--brass); border-color: var(--brass); }

.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); margin: 10px 0; cursor: pointer; }
.check-row input { margin-top: 4px; accent-color: var(--brass); }

.full-w     { width: 100%; margin-top: 12px; }
.form-note  { font-size: .75rem; color: #8b8577; margin-top: 10px; }

/* ---- CONTACT BAND ---- */
.contact-band { background: var(--brass); padding: 64px 0; }
.band-inner   { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact-band h2 { font-family: var(--display); font-size: 1.8rem; color: var(--ink); }
.band-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-dark  { background: var(--ink); color: var(--brass-soft); border-color: var(--ink); }
.btn-dark:hover { background: #0f1620; }

/* ---- FOOTER ---- */
#site-footer {
  background: #141b25;
  color: #9aa4b0;
  padding: 64px 0 32px;
  font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-logo { font-family: var(--display); color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.footer-logo span { color: var(--brass); font-weight: 400; font-size: .78rem; display: block; letter-spacing: .25em; }
#site-footer h4     { color: #fff; font-size: 1rem; margin-bottom: 14px; }
#site-footer ul     { list-style: none; }
#site-footer li     { margin-bottom: 8px; }
#site-footer a:hover { color: var(--brass-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  font-size: .82rem;
}

/* ---- FLOATING BUTTONS ---- */
.floaters {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floaters a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .2s;
}
.floaters a:hover { transform: scale(1.08); }
.f-wa  { background: #25d366; }
.f-tel { background: var(--ink); border: 1px solid var(--brass); }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .proj-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav ul {
    position: fixed;
    top: 76px;
    inset-inline: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    display: none;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav ul.open { display: flex; }
  .nav ul li   { padding: 12px 24px; }
  .burger      { display: block; }
  .proj-grid   { grid-template-columns: 1fr; }
  .stats       { grid-template-columns: 1fr; padding-inline-start: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery     { grid-template-columns: 1fr; }
  .gallery div:first-child { grid-column: span 1; }
}

/* ---- RTL ALIGNMENT ---- */
.hero-content,
.hero h1,
.hero p,
.hero-actions,
.about-grid h2,
.about-grid p,
.section-head h2,
.proj-body h3,
.proj-body p,
.proj-body .more,
.contact-band h2,
.band-inner,
.footer-grid,
.footer-bottom,
#site-footer h4,
#site-footer li {
  text-align: right;
}
.hero-actions { justify-content: flex-end; }

@media (max-width: 700px) {
  .hero-actions { align-items: flex-end; }
  .section-head { flex-direction: column; align-items: flex-end; gap: 8px; }
  .section-head h2 { width: 100%; }
  .band-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- HERO TEXT FIX ---- */
.hero h1 { max-width: 100%; }
.hero p   { max-width: 100%; }

/* ---- HERO RIGHT ALIGN FIX ---- */
.hero h1 { max-width: 100%; text-align: right; }
.hero p   { max-width: 100%; text-align: right; }
.hero-content { text-align: right; }
.hero-actions { justify-content: flex-end; }
@media (max-width: 700px) {
  .hero-actions { align-items: flex-end; }
}

/* ---- BUTTONS RIGHT ALIGN ---- */
.hero-actions {
  justify-content: flex-start !important;
  flex-direction: row-reverse !important;
}

/* ---- BUTTONS CENTER ---- */
.hero-actions {
  justify-content: center !important;
  flex-direction: row !important;
}

/* ---- BUTTONS ALIGN WITH TEXT (desktop) ---- */
@media (min-width: 701px) {
  .hero-actions {
    justify-content: flex-end !important;
    flex-direction: row !important;
  }
}

/* ---- BUTTONS RIGHT (desktop) ---- */
@media (min-width: 701px) {
  .hero-actions {
    justify-content: flex-start !important;
    flex-direction: row !important;
  }
}
