/* Base Styles */
:root {
  --primary: #3f6e56;
  --secondary: #292e2b;
  --text: #ffffff;
  --accent: #4a8b6b;
  --light-gray: #f5f5f5;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Chivo", sans-serif;
  color: var(--text);
  background-color: var(--secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(41, 46, 43, 0.95);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #292e2b 0%,
    rgba(41, 46, 43, 0.8) 50%,
    rgba(41, 46, 43, 0.6) 100%
  );
  z-index: 1;
}

.hero-container {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.hero-content {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.hero-left {
  flex: 0 0 55%;
  padding: 2rem;
}

.hero-right {
  flex: 1;
  padding: 2rem;
}

/* Credit Card Ribbons */
.credit-ribbon {
  position: absolute;
  /* stay inside hero section, not sticky */
  left: 0;
  width: 100%;
  margin: 0;
  overflow: visible;
  z-index: 1;
  /* above hero background but below navbar */
  pointer-events: none;
  padding: 0;
  height: auto;
}

.top-ribbon {
  top: 110px;
}

.bottom-ribbon {
  bottom: 110px;
}

.ribbon-track {
  display: flex;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation-duration: 30s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  gap: 40px;
  /* larger gap between cards */
}

.top-ribbon .ribbon-track {
  animation-name: slideLeft;
}

.bottom-ribbon .ribbon-track {
  animation-name: slideRight;
}

.credit-ribbon img {
  width: 100px;
  height: 63px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
}

.credit-ribbon img:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

@keyframes slideRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.hero-left {
  background: var(--secondary);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: right;
  padding: 150px 5% 150px 5%;
  position: relative;
  overflow: visible;
  z-index: 1;
  min-height: 100vh;
  max-height: 60vh;
  margin-top: 0;
}

.cta-card {
  background: rgba(41, 46, 43, 0.95);
  padding: 3rem 2rem;
  border-radius: 18px;
  width: 100%;
  max-width: 500px;
  max-height: 35vh;
  text-align: center;
  margin: 20px auto;
  position: relative;
  z-index: 3;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cta-card h3 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hero-right {
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 8%;
  padding-right: 5%;
  position: relative;
  z-index: 2;
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 0% 100%);
  flex: 1;
  min-height: 32vh;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  line-height: 1;
}

.hero-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-title {
  font-size: 2.2rem;
  color: white;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0;
}

.title-accent {
  color: #1a1e1c;
  background: white;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.cta-form input {
  padding: 15px 25px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  width: 100%;
}

.cta-form button {
  padding: 15px 30px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.cta-form button:hover {
  background-color: #3a7c58;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.cta-form .cta-message {
  min-height: 1.2rem;
  font-size: 0.95rem;
  color: #f1f1f1;
  text-align: center;
}

.cta-form .cta-message.error {
  color: #ff6b6b;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background-color: var(--secondary);
  position: relative;
  overflow: hidden;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2.8rem;
  color: var(--primary);
}

.section-subtitle span {
  background-color: var(--accent);
  font-weight: 600;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 30px auto;
  font-size: 1.4rem;
  color: #e0e0e0;
  line-height: 1.7;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 30px 100px;
  border-radius: 10px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 350px;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.step p {
  color: #ddd;
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 65%;
}

.step-image {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 95px;
  height: 192px;
  /* 9:16 aspect ratio */
  border-radius: 8px;
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.step:hover .step-image {
  transform: scale(1.15) rotate(2deg);
  box-shadow: -8px 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* About Section */
.about {
  padding: 100px 0;
  background: radial-gradient(
      circle at top left,
      rgba(63, 110, 86, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(63, 110, 86, 0.12),
      transparent 55%
    ),
    var(--secondary);
}

.about-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.about-story {
  max-width: 420px;
}

.about-video {
  flex: 2;
  display: flex;
  align-items: center;
  margin: auto 0;
  justify-content: center;
}

.about-video-frame {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.about-video-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.about-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.about-video-play {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.about-video-play i {
  margin-left: 3px;
}

.about-video-play:hover {
  transform: scale(1.05);
  background: rgba(63, 110, 86, 0.9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.about-video-frame.playing .about-video-thumb {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.about-video-frame.playing iframe {
  display: block;
}

.about-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.image-row {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.image-row.right {
  justify-content: flex-end;
}

.about-image {
  width: 210px;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.35s ease;
  position: relative;
  margin: 5px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Our Story text styling */
.about-title {
  margin-bottom: 24px;
  font-size: 2.8rem;
  color: var(--primary);
  text-align: center;
}

.about-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 999px;
}

.about-story {
  max-width: 650px;
  margin: 0 auto;
  padding: 16px 12px 8px;
  font-size: 1rem;
  line-height: 1.8;
  color: #e0e0e0;
  text-align: left;
  position: relative;
}

.about-story::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(63, 110, 86, 0.1) 0%,
    var(--primary) 40%,
    rgba(63, 110, 86, 0.1) 100%
  );
  border-radius: 999px;
}

.about-story p {
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.about-strong {
  font-weight: 700;
  font-size: 1.08rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.about-italic {
  font-style: italic;
}

@media (max-width: 900px) {
  .about-title {
    font-size: 2.1rem;
  }

  .about-story {
    padding: 24px 18px 20px;
  }
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background-color: var(--secondary);
}

.faq h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--primary);
}

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

.faq-item {
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.2);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
}

.toggle-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(0, 0, 0, 0.1);
}

.faq-answer p {
  padding: 0 25px 0;
  margin: 0;
  color: #ddd;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 20px 25px;
}

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

/* Footer */
footer {
  background-color: #1a1e1c;
  padding: 80px 0 20px;
  color: #aaa;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo h2 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.footer-logo p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #aaa;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: #ddd;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(63, 110, 86, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: #777;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .steps-container {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-story {
    max-width: 100%;
  }

  .about-video {
    width: 100%;
    margin-top: 24px;
  }

  .about-video-frame {
    max-width: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  }

  .hero-left,
  .hero-right {
    flex: none;
    width: 100%;
    height: auto;
    padding: 3rem 1rem;
    margin-right: 2rem;
  }

  .hero-right {
    clip-path: none;
    padding: 4rem 1rem;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: 4rem;
  }

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

  .step-image {
    width: 70px;
    height: 125px;
  }
}

/* Mobile adjustments for ribbons */
@media (max-width: 768px) {
  /* Hide moving credit card ribbons on phones */
  .credit-ribbon {
    display: none;
  }

  /* Make hero adapt to content and stack vertically */
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-content {
    flex-direction: column-reverse; /* show heading first, then form */
    align-items: stretch;
  }

  .hero-right {
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
  }

  .hero-left {
    padding: 1.5rem 1.5rem 2.5rem;
    min-height: auto;
    max-height: none;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
    margin: 30px auto;
    max-width: 90%;
  }

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

    100% {
      transform: translateX(-100%) translateZ(0);
    }
  }

  @keyframes slideRight {
    0% {
      transform: translateX(-100%) translateZ(0);
    }

    100% {
      transform: translateX(0) translateZ(0);
    }
  }

  .cta-card {
    padding: 2rem 1.5rem;
    margin: 15px auto;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--secondary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .cta-form {
    flex-direction: column;
    gap: 15px;
  }

  .cta-form button {
    width: 100%;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 300px;
  }

  .about-image {
    width: 150px;
    height: 120px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links h3::after,
  .footer-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-contact p {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .about h2,
  .how-it-works h2,
  .faq h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
  }

  /* Make How Wallzy Works subtitle lighter on phones */
  .section-subtitle {
    font-size: 1.1rem;
    margin: 16px auto 24px;
  }

  .about h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .hero-right {
    padding: 2rem 1rem;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-card h3 {
    font-size: 1.6rem;
  }

  /* Our Story: simpler, centered text and no left accent line on phones */
  .about-story {
    text-align: center;
    padding: 20px 16px;
  }

  .about-story::before {
    content: none;
  }

  .about-story p {
    text-align: center;
  }

  .about-images {
    flex-direction: column;
    align-items: center;
  }

  .image-row {
    justify-content: center !important;
  }
}
