/* ===== Moshe Shuver Insurance ===== */
:root {
  --primary: #0D4B78;
  --primary-deep: #08304D;
  --green: #1E8449;
  --green-hov: #145A32;
  --blue-accent: #007AFF;
  --blue-soft: #D9ECFF;
  --blue-soft-border: #9DCBFF;
  --green-soft: #DDF9E5;
  --green-soft-hover: #C8F2D4;
  --bg: #F8FBFD;
  --bg-alt: #ECF4FA;
  /* Slightly darker for contrast */
  --white: #FFFFFF;
  --text-gray: #334155;
  /* Better contrast */
  --border: #E2E8F0;

  --ff: 'Heebo', sans-serif;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --fast: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  --primary: #02324d;
  --primary-deep: #061725;
  --green: #41B37C;
  --green-hov: #329565;
  --blue-accent: #153A58;
  --blue-soft: #DDE8F1;
  --blue-soft-border: #B8CCDA;
  --green-soft: #D7F1E3;
  --green-soft-hover: #C3E7D4;
  --bg: #F5F8FA;
  --bg-alt: #E5EEF3;
  display: block;
  /* Ensure footer is at the bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Ensure footer is at the bottom */
main {
  flex: 1;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 40px;
  color: var(--primary);
}

.centered {
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  font-weight: 500;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 30px;
  transition: var(--fast);
  font-size: 1.1rem;
}

.btn-solid i {
  margin-left: 8px;
  font-size: 0.9em;
}

.btn-solid:hover {
  background: var(--green-hov);
}

.btn-solid:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 40px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 900;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.header-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1;
}

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

.nav-a {
  font-weight: 400;
  font-size: 1.05rem;
  opacity: 0.8;
  transition: var(--fast);
  position: relative;
}

.nav-a:hover {
  opacity: 1;
}

.nav-a.active {
  opacity: 1;
  font-weight: 700;
}

.nav-a.active::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue-accent));
  border-radius: 4px 4px 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header {
  background: var(--green);
  border-radius: 20px;
  font-weight: 500;
  padding: 8px 24px;
  font-size: 1rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  transition: var(--fast);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 100px 0 60px;
  min-height: 650px;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 100px;
  background-image:
    linear-gradient(to left, rgba(10, 42, 67, 0.6) 0%, rgba(10, 42, 67, 0.2) 35%, rgba(10, 42, 67, 0) 60%),
    url('hero-bg-contract.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-text {
  text-align: right;
  margin-bottom: 60px;
  margin-top: 40px;
}

.rubber-stamp {
  display: inline-block;
  position: absolute;
  top: -72px;
  left: 12px;
  color: var(--green);
  width: 140px;
  height: 140px;
  transform: rotate(-15deg);
  opacity: 0;
  animation: stampIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.3s;
  pointer-events: none;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp-svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes stampIn {
  0% {
    transform: scale(2) rotate(-15deg);
    opacity: 0;
  }

  100% {
    transform: scale(1) rotate(-15deg);
    opacity: 0.95;
  }
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--primary);
}

.hero-text h1 .typewriter,
.hero-text h1 .cursor {
  text-shadow:
    0 0 15px rgba(255, 255, 255, 1),
    0 0 30px rgba(255, 255, 255, 0.9),
    0 0 45px rgba(255, 255, 255, 0.8),
    0 0 60px rgba(255, 255, 255, 0.6);
}

.hero-text .hero-subtitle {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* Lead Box */
.lead-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.lead-form-grid {
  display: flex;
  gap: 40px;
}

.form-side {
  flex: 1;
}

.right-side {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.form-header {
  margin-bottom: 20px;
}

.form-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.inputs-row {
  display: flex;
  gap: 16px;
}

.inputs-row .field {
  flex: 1;
}

.field {
  position: relative;
  margin-bottom: 16px;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--primary);
  transition: var(--fast);
  font-family: inherit;
  direction: rtl !important;
  text-align: right !important;
}

.field input:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(53, 160, 91, 0.1);
  background: var(--white);
}

.field input::placeholder,
.field select::placeholder,
.field textarea::placeholder { /* Contrast fix */
  color: #757575;
  text-align: right;
  direction: rtl;
}

.field select {
  appearance: none;
  cursor: pointer;
  color: #555;
}

.chevron {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  color: #555;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.field.bad input,
.field.bad select {
  border-color: #E53E3E;
}

.success {
  position: absolute;
  inset: 0;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.success.show {
  opacity: 1;
  pointer-events: auto;
}

.success-inner {
  text-align: center;
}

.success h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--green);
}

.success p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-gray);
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-submit.loading .btn-label {
  display: none;
}

.btn-submit.loading .spinner {
  display: inline-block;
}

/* ===== LOGOS STRIP ===== */
.logos-strip {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
}

.logos-track {
  display: inline-flex;
  width: max-content;
  animation: slideRTL 30s linear infinite;
}

.logos-strip:hover .logos-track {
  animation-play-state: paused;
}

.logos-flex {
  display: inline-flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: nowrap;
  gap: 80px;
  padding: 0 40px;
}

.logo-img {
  height: 60px;
  max-width: none;
  object-fit: contain;
  transition: var(--fast);
  flex-shrink: 0;
}

.logo-img:hover {
  transform: scale(1.05);
}

.clal-logo {
  height: 85px;
}

/* Clal logo usually needs to be slightly larger to visually match proportions */
.menora-logo {
  height: 160px;
}

/* Menora logo often has more vertical padding */
.pc-logo {
  height: 130px;
}

/* PassportCard is tall */
.phoenix-logo {
  height: 120px;
}

/* Phoenix logo often needs adjusting */

@keyframes slideRTL {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== THE STORY ===== */
.story-section {
  padding: 80px 0;
  background: var(--bg);
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.story-content h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 30px;
  line-height: 1.2;
}

.story-content p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.story-content .highlight-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  background: rgba(53, 160, 91, 0.1);
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  margin: 30px 0;
}

.story-cta {
  margin-top: 50px;
}

/* ===== ABOUT ME ===== */
.about-me {
  padding: 80px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.about-text {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--primary);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-image {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-text {
    padding: 40px 25px;
  }
}

.study-page .wrap {
  display: flex;
  justify-content: flex-end;
}

.study-page-content {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  padding-right: 24px;
}


/* ===== WHY ME ===== */
.why-me {
  padding: 80px 0;
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.why-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--fast);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--green);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 5px;
}

.google-badge i {
  color: var(--blue-accent);
  font-size: 1.1rem;
}

.google-badge span {
  font-size: 0.85rem;
  color: #5B6E80;
  font-weight: 500;
  font-family: Arial, sans-serif;
  letter-spacing: 0.5px;
}

.stars {
  color: #D79A18;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary);
}

.why-card p {
  font-size: 1.05rem;
  color: var(--text-gray);
}

/* ===== DETAILED SERVICES V2 ===== */
.services-detailed {
  padding: 80px 0;
  background: #f9f6f1;
}

.services-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 24px;
  border-bottom: 1px solid #e0dbd3;
  text-decoration: none;
  color: inherit;
  transition: background var(--fast), transform var(--fast);
}

.service-row:first-child {
  border-top: 1px solid #e0dbd3;
}

.service-row:hover {
  background: rgba(46, 139, 87, 0.04);
}

.service-row:hover .service-link {
  opacity: 1;
  color: var(--green);
}

.service-row:hover .service-illust svg {
  transform: scale(1.08);
}

.service-illust {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.service-illust svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.service-info {
  flex: 1;
}

.service-info h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2E8B57;
  margin-bottom: 8px;
}

.service-info p {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 8px;
}

.service-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2E8B57;
  opacity: 0.6;
  transition: opacity var(--fast), color var(--fast);
}

/* Keep old classes for backward compat / responsive */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-item {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--fast);
}

a.service-item {
  color: inherit;
  text-decoration: none;
}

.service-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  background: var(--white);
  transform: translateY(-4px);
}

.service-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(53, 160, 91, 0.2);
  line-height: 1;
}

.service-item h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary);
}

.service-item p {
  font-size: 1rem;
  color: var(--text-gray);
}

/* ===== TARGET AUDIENCE ===== */
.audience {
  padding: 80px 0;
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.audience .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.audience-sub {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto 50px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.aud-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: var(--radius);
  backdrop-filter: blur(5px);
}

.aud-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--green);
}

.aud-card p {
  font-size: 1.05rem;
  opacity: 0.9;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 80px 0;
  background: var(--bg);
}

.testimonials-header {
  padding-bottom: 0;
}

.testi-marquee {
  width: 100%;
  position: relative;
  padding: 40px 0;
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
  /* Important for consistent animation direction */
}

.testi-track { /* Performance fix: use transform for animation */
  display: inline-flex;
  /* Changed from flex to match logos */
  gap: 30px;
  padding: 0 15px;
  /* Add padding to match half the gap */
  animation: slideTestimonials 80s linear infinite; 
}

.testi-track:hover {
  animation-play-state: paused;
}

@keyframes slideTestimonials {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testi-card {
  width: 400px;
  flex-shrink: 0;
  background: var(--white);
  padding: 30px;
  border-radius: 20px 20px 4px 20px;
  /* Message bubble shape */
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  white-space: normal;
  /* Allow text to wrap inside the card */
  text-align: right;
}

.testi-card p {
  color: var(--primary-deep);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.testi-card h3 {
  color: var(--primary);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 80px 0;
  background: var(--primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(6, 23, 37, 0.12);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.faq-q {
  width: 100%;
  text-align: right;
  background: var(--green);
  padding: 22px 28px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--fast);
  position: relative;
  z-index: 1;
}

.faq-q:hover {
  background: var(--green-hov);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--white);
  opacity: 0.7;
  flex-shrink: 0;
  /* Prevents the icon from shrinking */
  transition: transform 0.3s ease;
}

.faq-icon .vert-line {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(90deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
  border-top: 1px solid rgba(13, 75, 120, 0.10);
}

.faq-item.active .faq-a {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
}

.faq-a p {
  padding: 20px 28px 22px;
  font-size: 1.08rem;
  color: var(--primary-deep);
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

/* ===== BOTTOM CTA ===== */
.bottom-cta {
  padding: 80px 0;
  background: var(--bg-alt);
}

.contact-phone-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.contact-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid rgba(46, 102, 132, 0.2);
  border-radius: 999px;
  background: #f7fbfd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.footer-tag {
  margin-top: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cta-box {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.b-inputs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.privacy-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: var(--text-gray);
}

.privacy-check input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(180deg, var(--primary-deep), #061B26);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0 20px;
  text-align: center;
}

.footer-columns {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-col h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-nav a {
  color: var(--white);
  font-weight: 400;
  font-size: 0.9rem;
  transition: color var(--fast);
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-info a {
  color: var(--white);
  font-weight: 600;
}

.footer-info i {
  color: var(--green);
  margin-left: 6px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: color var(--fast);
}

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

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

.footer-tag {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
}

@media(max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    gap: 40px;
  }
}

@media(max-width: 991px) {
  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text .hero-subtitle {
    font-size: 2rem;
  }

  .lead-form-grid {
    flex-direction: column;
    gap: 30px;
  }

  .right-side {
    border-left: none;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
    padding-bottom: 30px;
  }

  .nav {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    background: var(--primary);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
  }

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

  .nav-a.active::after {
    bottom: -8px;
  }

  .burger {
    display: flex;
  }

  .header-actions .btn-header {
    display: none;
  }

  .about-grid,
  .why-grid,
  .services-list {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .b-inputs {
    flex-direction: column;
  }

  .testi-card {
    width: 300px;
    padding: 24px;
  }

  .logos-flex {
    gap: 48px;
    padding: 0 24px;
  }

  .logo-img {
    height: 50px;
  }

  .menora-logo {
    height: 130px;
  }

  .pc-logo {
    height: 108px;
  }

  .phoenix-logo {
    height: 100px;
  }
}

@media(max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-text h1,
  .hero-text .hero-subtitle {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  }


  .inputs-row {
    flex-direction: column;
  }

  .hero-bg {
    background-position: center;
  }

  .hero-bg::after {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.4) 100%);
  }

  .hero-text {
    text-align: center;
  }

  .hero-content {
    gap: 28px;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .lead-box,
  .cta-box {
    width: 100%;
  }

  .lead-box {
    padding: 20px 16px;
  }

  .lead-form-grid,
  .about-grid,
  .services-list,
  .audience-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .service-item,
  .why-card,
  .aud-card,
  .testi-card {
    padding: 22px;
  }

  .service-item {
    gap: 14px;
  }

  .service-num {
    font-size: 2rem;
  }

  .testi-card {
    width: 86vw;
    max-width: 320px;
  }

  .testi-track {
    gap: 18px;
  }

  .logos-strip {
    padding: 28px 0;
  }

  .logos-flex {
    gap: 28px;
    padding: 0 16px;
  }

  .logo-img {
    height: 42px;
  }

  .clal-logo {
    height: 64px;
  }

  .menora-logo {
    height: 108px;
  }

  .pc-logo {
    height: 92px;
  }

  .phoenix-logo {
    height: 88px;
  }

  .story-content h2,
  .about-text h2,
  .section-title,
  .cta-box h2 {
    font-size: 1.8rem;
  }

  .story-content p,
  .about-text p,
  .service-item p,
  .aud-card p,
  .testi-card p,
  .faq-a p {
    font-size: 1rem;
    max-width: 100%;
  }

  .cta-box {
    padding: 30px 20px;
  }

  .field input,
  .field select,
  .btn-submit {
    font-size: 1rem;
  }
}

@media(max-width: 480px) {
  .header-inner {
    height: 68px;
  }

  .header-brand-logo {
    height: 38px;
  }

  .logo-title {
    font-size: 1.1rem;
  }

  .logo-subtitle {
    font-size: 0.75rem;
  }

  .hero {
    padding: 72px 0 44px;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .hero-text .hero-subtitle {
    font-size: 1.15rem;
  }

  .lead-box {
    padding: 16px 12px;
  }

  .form-header h3 {
    font-size: 1rem;
  }

  .btn-solid,
  .btn-submit,
  .btn-large,
  .btn-header {
    width: 100%;
    justify-content: center;
  }

  .service-item,
  .why-card,
  .aud-card,
  .testi-card,
  .cta-box {
    border-radius: 18px;
  }

  .logos-flex {
    gap: 18px;
  }

  .logo-img {
    height: 36px;
  }

  .clal-logo {
    height: 56px;
  }

  .menora-logo {
    height: 92px;
  }

  .pc-logo {
    height: 82px;
  }

  .phoenix-logo {
    height: 78px;
  }

  .success h3 {
    font-size: 1.4rem;
  }

  .success p {
    font-size: 1rem;
  }
}

@media(max-width: 420px) {
  .nav {
    padding: 18px 16px;
  }

  .nav-a {
    font-size: 1rem;
  }

  .hero-text h1 {
    font-size: 1.65rem;
  }

  .hero-text .hero-subtitle {
    font-size: 1.05rem;
  }

  .section-title,
  .story-content h2,
  .about-text h2,
  .cta-box h2 {
    font-size: 1.5rem;
  }

  .faq-q {
    padding: 18px 20px;
  }

  .faq-a p {
    padding: 16px 20px 18px;
  }

  .service-item {
    flex-direction: column;
  }

  .service-num {
    font-size: 1.7rem;
  }
}

/* ===== Fade-in on Scroll Animation ===== */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== INNER PAGES ===== */
.subpage-main {
  background-color: var(--bg-alt);
}

.inner-hero {
  position: relative;
  background: var(--primary);
  color: var(--white);
  padding: 100px 0 60px;
  text-align: center;
  overflow: hidden;
}

.inner-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(135deg, rgba(10, 42, 67, 0.95) 0%, rgba(13, 75, 120, 0.85) 100%), url('main-bg.webp');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.inner-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.inner-hero .highlight-text {
  display: inline-block;
  background: rgba(65, 179, 124, 0.2);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.inner-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.inner-hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.article-section {
  padding: 80px 0;
  background: var(--white);
}

.article-section .story-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-section h2 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 30px;
  font-weight: 800;
}

.article-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 24px;
}

/* ===== 404 Page ===== */
.not-found-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  flex-grow: 1;
  background-color: var(--bg);
}

.not-found-content h1 {
  font-size: 8rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 10px;
}

.not-found-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.not-found-content p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 500px;
}

/* ===== Mobile Floating Action Buttons ===== */
.mobile-fab {
  /* This container is now just for semantics, buttons are positioned individually */
  display: none;
}

.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  z-index: 800;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  animation: fabPulse 2.6s ease-in-out infinite;
}

.fab-btn i {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

@keyframes fabPulse {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.02);
  }
}

.fab-btn span {
  display: none;
  /* Hide text, only show icon */
}

.fab-whatsapp {
  right: 20px;
  /* Right side for RTL */
  color: #25D366;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.fab-whatsapp:hover {
  background: rgba(37, 211, 102, 0.16);
  transform: scale(1.1) translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.22);
}

.fab-whatsapp:hover i {
  transform: rotate(8deg) scale(1.05);
}

.fab-phone {
  left: 20px;
  /* Left side for RTL */
  color: var(--green);
  background: rgba(13, 75, 120, 0.08);
  border: 1px solid rgba(13, 75, 120, 0.2);
  box-shadow: 0 4px 12px rgba(13, 75, 120, 0.12);
}

.fab-phone:hover {
  background: rgba(13, 75, 120, 0.16);
  transform: scale(1.1) translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(13, 75, 120, 0.2);
}

.fab-phone:hover i {
  transform: rotate(-8deg) scale(1.05);
}

@media (max-width: 768px) {
  .mobile-fab {
    display: flex;
  }

  body {
    padding-bottom: 0;
    /* No longer needed as buttons are on the sides */
  }

  /* Move UserWay accessibility widget to the upper-left on mobile */
  #userway-accessibility-icon,
  #userway-accessibility-button,
  [id*="userway"],
  [class*="userway"] {
    top: 90px !important;
    bottom: auto !important;
    left: 12px !important;
    right: auto !important;
    transform: none !important;
  }
}

/* Global Readability */
p {
  font-size: 1.1rem;
  /* Slightly larger text */
  max-width: 75ch;
  /* Limit line length so eyes don't get tired */
}

/* Typewriter Effect */
.cursor {
  display: inline-block;
  width: 4px;
  height: 0.9em;
  background-color: var(--primary);
  margin-right: 6px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

.cursor.typing {
  animation: none;
  opacity: 1;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.typewriter {
  color: var(--green);
  /* Highlights the changing text */
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 100px 0 0;
  font-size: 0.95rem;
  color: var(--text-gray);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin: 0 4px;
  color: #94a3b8;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--fast);
}

.breadcrumbs a:hover {
  color: var(--green);
  text-decoration: underline;
}

.breadcrumbs li:last-child {
  color: var(--text-gray);
  font-weight: 500;
}

/* ===== Related Services (Internal Linking) ===== */
.related-services {
  padding: 60px 0 40px;
  background: var(--bg-alt);
}

.related-services .section-title {
  text-align: center;
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-card {
  display: block;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-gray);
  transition: box-shadow var(--fast), transform var(--fast);
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.related-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.related-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Sub-page adjustments ===== */
.subpage-main .about-me {
  padding-top: 20px;
}

/* ===== DASHBOARD UI ===== */
.dashboard-bg {
  background: #f0f4f8 !important;
}

.dashboard-container {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 30px;
}

.dashboard-header h1 {
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.dashboard-header p {
  color: var(--primary-deep);
  font-size: 1.2rem;
}

.dashboard-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.dash-input-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-input-group label {
  font-weight: 600;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.dash-input-group input {
  direction: ltr;
  text-align: center;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--primary-deep);
  transition: 0.3s;
}

.dash-input-group input:focus {
  border-color: var(--green);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(65, 179, 124, 0.1);
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 900px) {
  .dashboard-content {
    flex-direction: row;
  }
}

.chart-area {
  width: 100%;
  flex: 2;
  position: relative;
  min-height: 350px;
}

.summary-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.box-final {
  background: #E8F5EE;
  border: 1px solid #C8E6C9;
}

.box-deposits {
  background: #FFF3E0;
  border: 1px solid #FFE0B2;
}

.box-profit {
  background: #E3F2FD;
  border: 1px solid #BBDEFB;
}

.box-icon {
  font-size: 2.2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.box-final .box-icon {
  color: #2E8B57;
}

.box-deposits .box-icon {
  color: #F57C00;
}

.box-profit .box-icon {
  color: #1976D2;
}

.box-text {
  display: flex;
  flex-direction: column;
}

.box-text span {
  font-size: 0.95rem;
  color: var(--primary-deep);
  font-weight: 500;
  margin-bottom: 2px;
}

.box-text strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
}