/*
 * Global styling for the ProBeleggen single–page site.
 * The design uses a dark colour palette with warm accent tones to
 * convey a sense of sophistication and reliability. Typography and
 * spacing are tuned for readability on both desktop and mobile.
 */

/* Reset some default margins and paddings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f5f5f5;
  background-color: #001f3f; /* deep navy background inspired by the video */
  line-height: 1.6;
  font-size: 16px;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Hero section */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Video background fills the hero section */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
}

/* Dark overlay to enhance contrast */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* Corner badge for hero section */
.corner-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #0077c8;
  color: #ffffff;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

/* Tagline beneath the main hero heading */
.tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: #cfd8dc;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Primary call‑to‑action button for AI prediction */
.cta-button {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background-color: #0077c8; /* vivid blue accent matching video colors */
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  margin: 0.3rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #005a96;
}

/* WhatsApp contact button */
.wa-button {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background-color: #25d366; /* WhatsApp green */
  color: #0a1325;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  margin: 0.3rem;
  transition: background-color 0.3s ease;
}

.wa-button:hover {
  background-color: #1eb85a;
}

/* Container to align hero buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* Section headings */
.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f2f2f2;
  text-align: center;
}

.section {
  margin-top: 3rem;
}

/* Table styling */
.stock-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.stock-table th,
.stock-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.stock-table thead {
  background-color: #002f5e;
}

.stock-table thead th {
  font-weight: 600;
  color: #f5f5f5;
}

.stock-table tbody tr:nth-child(odd) {
  background-color: #011f3b;
}

.stock-table tbody tr:nth-child(even) {
  background-color: #02264d;
}

/* Colours for percentage changes based on updated palette */
.positive {
  color: #25d366; /* WhatsApp green for positive change */
  font-weight: 600;
}

.negative {
  color: #e53935; /* bright red for negative change */
  font-weight: 600;
}

/* Prediction form */
.predict-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

#ticker-input {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
  color: #0a1325;
}

.predict-form button {
  padding: 0.5rem 1rem;
  background-color: #0077c8; /* align with primary accent */
  border: none;
  border-radius: 0 4px 4px 0;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.predict-form button:hover {
  background-color: #005a96;
}

.disclaimer {
  font-size: 0.85rem;
  color: #b0b3b8;
  margin-top: 1rem;
  text-align: center;
}

.disclaimer a {
  color: #0077c8;
}

/* Benefits section */
.benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.benefit {
  flex: 1;
  min-width: 250px;
  background-color: #0f213f;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit h3 {
  margin-top: 1rem;
  margin-bottom: 0.6rem;
  color: #0077c8; /* accent blue for benefit titles */
  font-size: 1.6rem;
  font-weight: 700;
}

.benefit p {
  color: #d2d6dc;
  font-size: 1rem;
}

.benefit-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* Expertise section */
#expertise {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
#expertise h2 {
  margin-bottom: 1rem;
  color: #f2f2f2;
}
#expertise p {
  color: #d2d6dc;
  font-size: 1rem;
  line-height: 1.5;
}

/* How‑it‑works section */
#how-it-works {
  margin-top: 3rem;
}

.how-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.how-steps .step {
  flex: 1;
  min-width: 250px;
  background-color: #0f213f;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.how-steps .step h3 {
  color: #0077c8;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.how-steps .step p {
  color: #d2d6dc;
  font-size: 1rem;
  line-height: 1.4;
}

/* FAQ section */
#faq {
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#faq .faq-item {
  margin-bottom: 1.5rem;
  background-color: #0f213f;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#faq .faq-item h3 {
  color: #0077c8;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
}

#faq .faq-item p {
  color: #d2d6dc;
  font-size: 1rem;
  line-height: 1.4;
}

/* Modal overlay with fade/slide animation */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
}

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

/* Modal inner box styling remains from earlier definitions */
.modal-content {
  background-color: #0f213f;
  border-radius: 8px;
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Contact section */
#contact {
  text-align: center;
}

#contact p {
  font-size: 1.1rem;
  color: #d2d6dc;
}


/* Modal heading */
.modal-content h3 {
  color: #0077c8;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Modal description */
.modal-content p {
  color: #d2d6dc;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* WhatsApp button inside modal should fill available width */
.modal-content .wa-button {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0.5rem 0 1rem 0;
}

/* Close button styling */
.close-button {
  padding: 0.5rem 1rem;
  border: 1px solid #b0b3b8;
  background-color: transparent;
  color: #b0b3b8;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.close-button:hover {
  background-color: #b0b3b8;
  color: #0a1325;
}

/* Footer */
footer {
  background-color: #08192e;
  color: #8894aa;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #0f213f;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .benefits {
    flex-direction: column;
    align-items: center;
  }
  .benefit {
    max-width: 350px;
  }
}