:root {
  --bg: #F6F7F6;
  --ink: #101C14;
  --ink-soft: #3D4842;
  --green: #2A5E44;
  --green-dark: #1e4532;
  --mint: #D6E5DD;
  --border: #E2E8E4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

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

ul {
  list-style: none;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 8px;
}

.container-narrow {
  max-width: 900px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 16px;
  }
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 300ms;
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 1024px) {
  .nav-inner {
    height: 80px;
  }
}

.logo-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  transition: color 200ms;
}

.logo-btn:hover {
  color: var(--green);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--mint);
  border: 1px solid var(--border);
}

.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .desktop-only {
    display: flex;
  }

  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 200ms;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--green);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--green);
}

.mobile-menu-btn {
  padding: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.mobile-menu {
  background: white;
  border-top: 1px solid var(--border);
}

.mobile-menu-inner {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  text-align: right;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  width: 100%;
}

.mobile-nav-link.active {
  color: var(--green);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(246, 247, 246, 0.8), rgba(246, 247, 246, 0.6), rgba(246, 247, 246, 1));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* Slightly lift the eyebrow in the hero for better vertical balance */
.hero .eyebrow {
  margin-top: -40px;
  margin-bottom: 8px;
}

.about-text .eyebrow {
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 60px;
  }
}

.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .hero-lede {
    font-size: 20px;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 200ms;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.btn-subtext {
  font-size: 13px;
  color: #ffffff;
  font-weight: 400;
  margin-top: 2px;
}

.btn-arrow {
  transition: transform 200ms;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(-4px);
}

.social-fixed {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 16px;
  z-index: 20;
}

.social-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: var(--ink-soft);
  transition: all 200ms;
}

.social-fixed a:hover {
  color: var(--green);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Sections */
.section {
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 112px 0;
  }
}

/* About section: reduce top padding to move "אודות" upward */
#about.section {
  padding-top: 48px;
}

@media (min-width: 1024px) {
  #about.section {
    padding-top: 64px;
  }
}

.section-white {
  background: white;
}

.section-mint {
  background: rgba(214, 229, 221, 0.3);
}

.section-head {
  text-align: center;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0;
}

.section-head .section-sub {
  margin-top: -4px;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.05;
  color: var(--ink-soft);
  font-weight: 600;
}

#portfolio .section-lede {
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .section-head h2 {
    font-size: 36px;
  }
}

.section-lede {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 4px;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

/* Video */
.video-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* About */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 80px;
  }
}

.about-text h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .about-text h2 {
    font-size: 36px;
  }
}

.about-text p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  bottom: -12px;
  /* rtl: right position visually on the right side */
  right: -12px;
  background: var(--green);
  color: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.exp-number {
  font-size: 30px;
  font-weight: 700;
}

.exp-label {
  font-size: 17px;
  opacity: 0.9;
  font-weight: 400;
}

.exp-label-inline {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
}

/* Services */
.services-grid {
  display: grid;
  gap: 0;
  counter-reset: service;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
}

.service-card {
  counter-increment: service;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.service-card::before {
  content: counter(service, decimal-leading-zero);
  font-family: 'Heebo', sans-serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--green);
  letter-spacing: 0.02em;
  transition: color 300ms ease, -webkit-text-stroke-width 300ms ease, transform 300ms ease;
  width: 64px;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px;
  width: 3px;
  height: 0;
  background: var(--green);
  transform: translateY(-50%);
  transition: height 300ms ease;
}

.service-card:hover::before {
  color: var(--green);
  -webkit-text-stroke-width: 0;
  transform: translateX(-6px);
}

.service-card:hover::after {
  height: 60%;
}

.service-card p {
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  margin: 0;
}

/* Hide the old check icon if still in DOM */
.service-check {
  display: none;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.portfolio-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 500ms;
}

.portfolio-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.portfolio-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-body {
  padding: 24px;
}

.portfolio-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 500;
  font-size: 14px;
}

.download-link:hover {
  text-decoration: underline;
}

/* 3D Viewer portfolio card */
.portfolio-card--3d {
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--green), #4caf88) border-box;
  box-shadow: 0 4px 20px rgba(42, 94, 68, 0.12);
}

.portfolio-card--3d:hover {
  box-shadow: 0 12px 30px rgba(42, 94, 68, 0.22);
}

.portfolio-image {
  position: relative;
}

.badge-3d {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--green), #4caf88);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(42, 94, 68, 0.4);
  pointer-events: none;
}


.badge-portfolio {
  display: inline-block;
  background: var(--mint);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

background: var(--green);
color: white;
padding: 8px 16px;
border-radius: 8px;
transition: background 200ms,
transform 200ms;
}

.download-link--launch:hover {
  background: var(--green-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--mint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}

.contact-label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.contact-value {
  color: var(--ink);
  font-weight: 500;
  transition: color 200ms;
  line-height: 1.5;
}

.contact-value.small {
  font-size: 14px;
}

a.contact-value:hover {
  color: var(--green);
}

/* Footer */
footer {
  background: var(--ink);
  color: white;
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-main h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-main p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 440px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background 200ms;
}

.footer-socials a:hover {
  background: var(--green);
}

footer h4 {
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 200ms;
}

.footer-links button:hover {
  color: white;
}

.footer-hours {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-areas {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-bottom-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.footer-bottom-copy p {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.footer-bottom-left {
  justify-self: start;
  text-align: left;
}

.footer-bottom-right {
  justify-self: end;
  text-align: right;
}

@media (max-width: 767px) {
  .footer-bottom-copy {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-bottom-left,
  .footer-bottom-right {
    justify-self: center;
    text-align: center;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}