/* Global Styles */
:root {
  --primary-red: #ff6b00; /* Volunteen Orange */
  --secondary-blue: #0056b3;
  --text-dark: #1a1a1a;
  --text-grey: #555555;
  --bg-light: #f5f7fa;
  --white: #ffffff;
}

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

html {
  overflow-x: hidden;
}

body {
  font-family: "Rubik", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

/* Header / Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8%;
  background-color: transparent; /* Seamless with hero bg */
  position: relative;
  z-index: 100;
}

.brand-logo {
  display: flex;
  align-items: center;
}

/* Volunteen Logo Style */
.logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-red);
  text-shadow: 2px 2px 0px var(--secondary-blue);
  font-style: italic;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links li a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--primary-red);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr; /* Ratio emphasizing the image space like the original */
  gap: 40px;
  align-items: center;
  padding: 20px 8% 80px;
  min-height: 80vh;
  max-width: 1400px;
  margin: 0 auto; /* Center the grid on ultra-wide screens */
  width: 100%;
}

.hero-content {
  width: 100%;
  /* Increased max-width to accomodate longer Hebrew lines without wrapping */
  max-width: 800px;
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.2; /* Slightly increased for better readability */
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero-line {
  display: block;
  /* Prevent wrapping */
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero-title {
    /* Fluid typography: 4.5vw ensures it fits on 320px screens */
    font-size: clamp(1rem, 4.5vw, 2rem);
    line-height: 1.3;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-grey);
  margin-bottom: 40px;
  max-width: 480px;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-red);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
}

/* ===================================================================
   PREMIUM HERO CTA BUTTON — $10k feel
   Animated gradient, shimmer sweep, pulse ring, micro-interactions
   =================================================================== */

.btn-hero-cta {
  /* Layout */
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 48px 16px;
  min-width: 280px;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden; /* contain shimmer + pulse */
  z-index: 1;
  isolation: isolate;

  /* Animated gradient background */
  background: linear-gradient(
    135deg,
    #ff6b00 0%,
    #ff8534 25%,
    #ff6b00 50%,
    #e85d00 75%,
    #ff6b00 100%
  );
  background-size: 300% 300%;
  animation: ctaGradientShift 4s ease infinite;

  /* Typography */
  font-family: "Rubik", sans-serif;
  color: #fff;

  /* Shadow — layered for depth */
  box-shadow:
    0 4px 15px rgba(255, 107, 0, 0.35),
    0 8px 30px rgba(255, 107, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.08);

  /* Smooth transitions for hover */
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

/* ---------- Gradient shift keyframes ---------- */
@keyframes ctaGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ---------- Main content row (icon + text) ---------- */
.btn-hero-cta__content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.btn-hero-cta__content i {
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

/* ---------- Sublabel ("no credit card") ---------- */
.btn-hero-cta__sublabel {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* ---------- Shimmer sweep overlay ---------- */
.btn-hero-cta__shimmer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.btn-hero-cta__shimmer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.35) 55%,
    transparent 60%
  );
  transform: skewX(-20deg);
  animation: ctaShimmerSweep 3s ease-in-out infinite;
}

@keyframes ctaShimmerSweep {
  0% {
    left: -75%;
  }
  100% {
    left: 150%;
  }
}

/* ---------- Pulse ring animation ---------- */
.btn-hero-cta__pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

.btn-hero-cta__pulse::before,
.btn-hero-cta__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 107, 0, 0.5);
  animation: ctaPulseRing 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.btn-hero-cta__pulse::after {
  animation-delay: 1.25s;
}

@keyframes ctaPulseRing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* ---------- Hover state ---------- */
.btn-hero-cta:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 8px 25px rgba(255, 107, 0, 0.45),
    0 16px 50px rgba(255, 107, 0, 0.25),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-hero-cta:hover .btn-hero-cta__content i {
  animation: ctaRocketShake 0.5s ease;
}

@keyframes ctaRocketShake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-12deg) translateY(-2px);
  }
  40% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(4deg);
  }
}

/* ---------- Active / pressed state ---------- */
.btn-hero-cta:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow:
    0 2px 10px rgba(255, 107, 0, 0.3),
    0 4px 15px rgba(255, 107, 0, 0.15);
  transition-duration: 0.1s;
}

/* ---------- Focus ring for accessibility ---------- */
.btn-hero-cta:focus-visible {
  outline: 3px solid rgba(255, 107, 0, 0.6);
  outline-offset: 4px;
}

/* ===== END PREMIUM HERO CTA ===== */

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

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

/* ---------- Hero secondary: wrapper so "How to use" + "Login" sit together on mobile ---------- */
.hero-actions__secondary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ---------- Hero secondary row: "How to use" + "Login" ---------- */
.hero-actions .btn-hero-secondary {
  flex-shrink: 0;
}

/* ---------- Hero Login button — noticeable, solid, next to "how to use" ---------- */
.btn-hero-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
  border: 2px solid var(--secondary-blue);
  background: linear-gradient(
    180deg,
    #0066cc 0%,
    var(--secondary-blue) 50%,
    #004080 100%
  );
  color: var(--white);
  box-shadow:
    0 4px 14px rgba(0, 86, 179, 0.35),
    0 2px 6px rgba(0, 86, 179, 0.2);
}

.btn-hero-login i {
  font-size: 1rem;
  opacity: 0.95;
}

.btn-hero-login:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 86, 179, 0.45),
    0 4px 10px rgba(0, 86, 179, 0.25);
  background: linear-gradient(
    180deg,
    #0077ee 0%,
    #0066cc 50%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
}

.btn-hero-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.3);
}

.btn-hero-login:focus-visible {
  outline: 3px solid rgba(0, 86, 179, 0.6);
  outline-offset: 3px;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}

.hero-image img {
  max-width: 939.9921875px; /* Base desktop size */
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Animation for floating effect */
  animation: float 6s ease-in-out infinite;
}

/* Desktop: give image column more space so img max-width can take effect */
@media (min-width: 992px) {
  .hero-section {
    grid-template-columns: 0.4fr 1.6fr; /* more space for image */
    max-width: 1800px;
    gap: 48px;
  }
  .hero-image {
    min-width: 0; /* allow grid to shrink if needed */
  }
  .hero-image img {
    max-width: 1150px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Desktop: stack CTA on top, secondary row (Login + How it works) below — all same width */
  .hero-actions {
    flex-direction: column;
    align-items: stretch; /* both CTA and secondary row share the same width automatically */
    gap: 18px;
  }

  .hero-actions__secondary {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
  }

  /* Orange CTA: stretches to exactly match the combined secondary row width */
  .btn-hero-cta {
    padding: 22px 44px 18px;
    width: 100%;
    min-width: 0;
    max-width: none; /* let it fill the same space as the two buttons below */
    justify-content: center;
  }

  .btn-hero-cta__content {
    font-size: 1.25rem;
    line-height: 1.4;
    gap: 12px;
  }

  .btn-hero-cta__content i {
    font-size: 1.15rem;
  }

  /* Blue Login: equal size sibling to "How it works" */
  .btn-hero-login {
    flex: 1;
    padding: 16px 28px;
    font-size: 1rem;
    justify-content: center;
  }

  .btn-hero-login i {
    font-size: 1rem;
  }

  /* Outlined "How it works": equal visual weight — same flex, font, padding */
  .hero-actions .btn-hero-secondary {
    flex: 1;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
  }

  .hero-description {
    max-width: 650px;
    font-size: 1.5rem;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Accessibility Badge */
.accessibility-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary-red);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 200;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .navbar {
    padding: 20px 5%;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-section {
    display: flex; /* Switch back to flex for column layout */
    flex-direction: column;
    padding: 0 5% 20px;
    height: auto;
    min-height: auto;
    gap: 0;
    overflow-x: hidden;
  }

  .hero-line {
    white-space: normal; /* Allow wrap on mobile to prevent horizontal scroll */
  }

  .hero-image {
    order: 1;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
  }

  /* Tablet Size */
  .hero-image img {
    max-width: 727.9921875px;
    width: 100%;
    max-height: none;
  }

  .hero-content {
    order: 2;
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  .hero-title {
    /* Fluid typography for tablet/small desktop */
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-top: 10px; /* Reduced margin */
    gap: 16px; /* Spacing between primary and secondary buttons */
  }

  /* How to use + Login next to each other on mobile */
  .hero-actions__secondary {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .btn {
    width: auto;
    padding: 8px 24px; /* Reduced padding */
  }

  .btn-hero-login {
    min-width: 140px;
    padding: 12px 24px;
  }

  .btn-hero-secondary {
    min-width: 140px;
    padding: 12px 24px !important;
    font-size: 1rem;
  }

  /* Premium CTA — mobile: full-width, bigger tap target */
  .btn-hero-cta {
    width: 100%;
    max-width: 380px;
    min-width: 0;
    padding: 22px 32px 18px;
    font-size: 1rem;
  }

  .btn-hero-cta__content {
    font-size: 1.2rem;
    gap: 8px;
  }

  .btn-hero-cta__sublabel {
    font-size: 0.7rem;
  }

  /* Speed up shimmer on mobile for more visual punch */
  .btn-hero-cta__shimmer::after {
    animation-duration: 2.4s;
  }
}

/* Mobile Specific Override */
@media (max-width: 767px) {
  .navbar .brand-logo .logo-img {
    height: 70px;
  }

  .hero-image {
    max-height: 300px;
    overflow: hidden;
    transform: none;
    margin-bottom: 0;
    justify-content: center;
  }

  .hero-image img {
    max-width: 100%;
    height: 300px;
    width: auto;
    object-fit: contain;
    object-position: center top;
  }

  .hero-title {
    font-size: clamp(1.1rem, 4.3vw, 1.5rem);
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .hero-tagline {
    font-size: 0.8rem !important;
    margin-bottom: 5px !important;
  }

  .hero-description {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .hero-actions {
    margin-top: 6px;
    gap: 10px;
  }

  .btn-hero-cta {
    max-width: 100%;
    padding: 16px 28px 12px;
    border-radius: 54px;
  }

  .btn-hero-cta__content {
    font-size: 1.05rem;
  }

  .btn-hero-cta__sublabel {
    font-size: 0.65rem;
  }

  .btn-hero-login,
  .btn-hero-secondary {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
  }

  .navbar {
    margin-bottom: 0;
  }

  
  .hero-section {
    padding-top: 8px;
  }
}
