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

/* Base */
body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #f5f1e8;
  font-weight: 400;
}

/* Headings: elegant serif */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inria Serif', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: #2c3e50;
}

/* Nav and buttons: clean sans-serif */
nav, .btn, .nav-links a, footer {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}

header {
  background-color: #f5f1e8;
  padding: 1rem 2rem 2rem 2rem; /* add extra bottom padding */
}

.full-width-line {
  border: none;
  height: 5px;
  background-color: #b83e01;
  width: 100vw;  /* full viewport width */
  margin: 0;     /* no extra spacing */
}

/* --- NAVIGATION --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center; /* vertically centers logo and links */
  gap: 20px;
}

.nav-left img {
  display: block;
  height: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 48px; /* matches logo height for perfect alignment */
}

.nav-links a:hover {
  color: #c4652d;
}

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

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 4px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #2c3e50;
  color: #2c3e50;
}

.btn-secondary:hover {
  background-color: #2c3e50;
  color: #fff;
}

.btn-primary {
  background-color: #2c3e50;
  color: #fff;
  border: 2px solid #2c3e50;
}

.btn-primary:hover {
  background-color: #c4652d;
  color: #fff;
}

.btn-orange {
  background-color: #c4652d;
  color: white;
  height: 42px;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  margin-left: 0.5rem;
  border: 2px solid #c4652d;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-orange:hover {
  background-color: #fff;
  color: #c4652d;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  width: 25px;
  background: #2c3e50;
  margin: 4px 0;
  border-radius: 2px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-left,
  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    display: none;
  }

  .nav-left.active,
  .nav-right.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

/* --- MAIN CONTENT --- */
main {
  padding: 2rem;
  font-size: 1.2rem;
}

main > section {
  margin-bottom: 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero > div {
  margin-bottom: 4rem;
}

.hero h1 span {
  color: #c4652d;
}

/* Features */
h3 {
  color: #b83e01;
}

.features {
  margin-top: 3rem;
}

.features h2 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-card h3 {
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.media-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem; /* spacing between flow and video */
  margin: 2rem 0;
  width: 100%;
}

.media-item {
  width: 100%;
  max-width: 1000px; /* same width for both */
  border-radius: 12px; /* rounded corners for both */
  overflow: hidden;    /* ensures rounded corners work on child */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Container for both Flow and Video */
/* Container for both Flow and Video */
.flow-container {
  max-width: 1000px;
  width: 100%;
  margin: 2rem auto 3rem;
  border-radius: 0;
  overflow: hidden;              /* ensures PNG fits nicely */
  background-color: #f5f1e8;     /* solid background */
  padding: 2rem 1rem;
  box-sizing: border-box;
  display: block;
}

.flow-container h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.flow-container img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto 0;
  border-radius: 0;
  background-color: #ffffff;  /* force PNG background (just in case transparency exists) */
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .flow-container {
    padding: 1.5rem 1rem;
  }

  .flow-container img {
    margin-top: 1rem;
  }
}


.video-container {
  max-width: 1000px;
  width: 100%;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  background-color: transparent;
}

/* Remove aspect-ratio from flow-container for mobile responsiveness */
.video-container iframe {
  width: 100%;
  aspect-ratio: 16/9;   /* keeps video proportion */
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Optional spacing for mobile */
@media (max-width: 768px) {
  .video-container {
    margin: 2rem 1rem;
  }
}

/* --- CTA --- */
.cta {
  margin-top: 3rem;
}

.cta h2 {
  margin-bottom: 1rem;
}

/* --- FOOTER --- */
footer {
  background-color: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 1rem 2rem 2rem 2rem;
  font-weight: bold;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  height: 42px;
  font-size: 1rem;
}

.newsletter-form button {
  height: 42px;
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  color: #c4652d;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Tooltip / tail tip styling */
.tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #555; /* subtle underline for info */
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: max-content;
  max-width: 220px;
  background-color: #f5f1e8;
  color: #b83e01;
  text-align: left;
  border-radius: 5px;
  padding: 0.5rem;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
  .tooltip .tooltiptext {
    max-width: 180px;
    font-size: 0.8rem;
  }
}
