/* ═══════════════════════════════════════════════
   LIFTSITE - RTL Hebrew Marketing Site
   Design: trust-first professional services
   Dials: VARIANCE:4 / MOTION:3 / DENSITY:4
   ═══════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --navy:        #007cb0;
  --navy-mid:    #1A3766;
  --navy-light:  #24508a;
  --orange:      #E8500A;
  --orange-dark: #C44008;
  --orange-bg:   rgba(232, 80, 10, 0.08);

  --white:       #FFFFFF;
  --off-white:   #F8F9FB;
  --gray-100:    #EEF0F4;
  --gray-200:    #DDE2EC;
  --gray-400:    #9AABBC;
  --gray-600:    #566070;
  --gray-900:    #1A2232;

  --text-primary:   #1A2232;
  --text-secondary: #566070;
  --text-muted:     #9AABBC;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 4px rgba(0, 124, 176, 0.08);
  --shadow-md:  0 4px 20px rgba(0, 124, 176, 0.12);
  --shadow-lg:  0 12px 40px rgba(0, 124, 176, 0.18);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font:       'Heebo', Arial, sans-serif;

  --nav-height: 70px;
  --container:  1160px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography Utilities ── */
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title--center { text-align: center; }
.section-title--light  { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 55ch;
  text-align: center;
  margin: 0 auto;
}

.section-sub--light { color: rgba(255, 255, 255, 0.72); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.75rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 80, 10, 0.32);
}

.btn--primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 24px rgba(232, 80, 10, 0.42);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(232, 80, 10, 0.3);
}

.btn--large {
  font-size: 1.1rem;
  padding: 0.9rem 2.25rem;
}

.btn--full {
  width: 100%;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 200;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo-icon {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.nav__logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.nav__logo-sub {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav__link--cta {
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(232, 80, 10, 0.35);
}

.nav__link--cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  color: var(--white);
  font-size: 1.6rem;
  padding: 0.25rem;
  line-height: 1;
}

/* Mobile nav panel */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  right: 0;
  left: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s;
  pointer-events: none;
}

.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__mobile-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav__mobile-link:hover,
.nav__mobile-link:focus {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav__mobile-link--cta {
  margin-top: 0.5rem;
  background: var(--orange);
  color: var(--white) !important;
  text-align: center;
  font-weight: 700;
  border-radius: var(--radius-md);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;   /* fallback */
  height: 100svh;  /* small viewport height — fixed value, unaffected by address bar */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--navy-mid) 0%, var(--navy) 45%, #081530 100%);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);           /* promote to GPU layer, prevents iOS repaint on scroll */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Subtle geometric accent */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(232, 80, 10, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(26, 55, 102, 0.8) 0%, transparent 60%);
  pointer-events: none;
}

/* Diagonal stripe accent - subtle industrial feel */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 55%;
  height: 130%;
  background: rgba(255, 255, 255, 0.018);
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero__overlay {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  max-width: 740px;
}


.hero__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(232, 80, 10, 0.12);
  border: 1px solid rgba(232, 80, 10, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
}

.hero__badge-img {
  height: 150px;
  width: auto;
  display: block;
}

.hero__headline {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto 2.25rem;
}

.hero__scroll-line {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about {
  background: var(--off-white);
  padding: 6rem 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__content {
  /* RTL: this is column 1 = appears on the RIGHT (start side) */
}

.section-title {
  margin-bottom: 1rem;
}

.about__lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.about__body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about__body:last-of-type {
  margin-bottom: 2rem;
}

.about__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.credential {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.credential__icon {
  color: var(--orange);
  font-size: 1.1rem;
}

.about__image-wrap {
  position: relative;
  /* RTL: column 2 = appears on the LEFT */
}

.about__image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* Decorative background block behind the image */
.about__image-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 55%;
  background: var(--orange);
  border-radius: var(--radius-lg);
  z-index: 0;
  opacity: 0.18;
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services {
  background: var(--white);
  padding: 6rem 0;
}

.services__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services__header .section-sub {
  margin-top: 0.5rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(232, 80, 10, 0.2);
}

.service-card__icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--orange-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card__icon {
  width: 32px;
  height: 32px;
  color: var(--navy);
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.service-card__body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   GALLERY
══════════════════════════════════════════ */
.gallery {
  background: var(--navy);
  padding: 5rem 0 4rem;
}

.gallery .section-sub {
  text-align: center;
  margin: 0.5rem auto 2.5rem;
}

.carousel-wrap {
  position: relative;
}

.carousel {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background: var(--navy);
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel__slide.active {
  opacity: 1;
  pointer-events: all;
}

.carousel__slide {
  /* centre the image within the fixed-height frame */
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  transition: background var(--transition), transform var(--transition);
}

.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.06);
}

.carousel__btn:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel__btn--prev {
  right: 1.25rem;
}

.carousel__btn--next {
  left: 1.25rem;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.carousel__dot.active {
  background: var(--orange);
  transform: scale(1.3);
}

.carousel__dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel__loading,
.carousel__empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  padding: 3rem 1.5rem;
  font-size: 0.95rem;
}

.carousel__empty code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact {
  background: var(--off-white);
  padding: 6rem 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact__lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0.75rem 0 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.contact__detail a {
  transition: color var(--transition);
}

.contact__detail a:hover,
.contact__detail a:focus-visible {
  color: var(--orange);
}

.contact__detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--orange-bg);
  border-radius: var(--radius-md);
  color: var(--orange);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.form-group:last-of-type {
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-required {
  color: var(--orange);
  margin-right: 0.2rem;
}

.form-input {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--off-white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  direction: rtl;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--navy-mid);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 55, 102, 0.12);
}

.form-input.invalid {
  border-color: #d93025;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

.form-error {
  font-size: 0.82rem;
  color: #d93025;
  min-height: 1em;
  display: block;
}

/* Form feedback messages */
.form-feedback {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  margin-top: 1rem;
  line-height: 1.55;
}

.form-feedback i {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.form-feedback--success {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.form-feedback--error {
  background: rgba(217, 48, 37, 0.08);
  color: #c0392b;
  border: 1px solid rgba(217, 48, 37, 0.2);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--navy);
  padding: 4rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  display: inline-block;
  margin-bottom: 0.6rem;
  text-decoration: none;
}

.footer__logo-img {
  height: 168px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.footer__nav ul,
.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__nav a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__contact li {
  font-size: 0.92rem;
}

.footer__bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about__grid {
    gap: 3rem;
  }
  .contact__grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav__mobile {
    display: block;
  }

  /* Hero */
  .hero::before {
    display: none; /* rotated pseudo-element inside overflow:hidden triggers iOS repaint on scroll */
  }
  .hero__content {
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 3rem;
  }
  .hero__headline {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  /* About */
  .about {
    padding: 4rem 0;
  }
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about__image-wrap {
    order: -1;
  }
  .about__image {
    height: 320px;
  }
  .about__image-accent {
    display: none;
  }

  /* Services */
  .services {
    padding: 4rem 0;
  }
  .services__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-card--center {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }

  /* Gallery */
  .carousel {
    height: 300px;
  }

  /* Contact */
  .contact {
    padding: 4rem 0;
  }
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-form {
    padding: 1.75rem 1.25rem;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .about__credentials {
    flex-direction: column;
  }
  .hero__badge {
    font-size: 0.72rem;
  }
  .carousel {
    height: 240px;
  }
  .carousel__btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ── Focus styles for accessibility ── */
:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


@media (min-width: 769px) {
  .service-card--center {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin-inline: auto;
  }
}