/* News page hero background */
.hero-news {
  background-image: url('/static/images/perfect.png');
  background-position: center 35%;
  background-size: 180%;
}
header.section {
  padding: 1.5rem 2rem;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#menu-btn {
  border: none;
  background: none;
}
#desktop-nav {
  display: flex;
  gap: 1rem;
}
.login-btn {
  margin-left: 1rem;
}
body {
  font-family: Inter, sans-serif;
  color: #111;
  background-color: #f9f9f9;
  line-height: 1.6;
}
.section {
  padding: 4rem 1.5rem;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}
.doc-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease;
}
.doc-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.grid-3col {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

h1, h2, h3 {
  font-weight: 600;
}
.footer {
  padding: 2rem 1rem;
  background: #1f2937;
  color: #94a3b8;
  text-align: center;
}
.footer-link {
  color: #94a3b8;
  margin: 0 0.5rem;
  text-decoration: none;
}
.button-primary {
  background: var(--primary, #0f4c5c);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  text-align: center;
}
.button-primary:hover {
  color: orange;
}
@media (max-width: 768px) {
  #desktop-nav {
    display: none !important;
  }
  #menu-btn {
    display: block;
    font-size: 1.5rem;
  }
  #mobile-nav.show {
    display: flex !important;
  }
}

/* Base hero layout */
.hero-section {
  position: relative;
  color: white;
  background-repeat: no-repeat;
  background-size: 180%;
  background-position: center center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* overlay */
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-section h1,
.hero-section p {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-section .hero-subtext {
  color: #cbd5e1;
  max-width: 720px;
  margin: 1rem auto 0;
}

/* ✅ Per-page background adjustments (desktop) */
.hero-home     { background-image: url('/static/images/perfect.png'); background-size: cover; background-position: center center; }
.hero-features { background-image: url('/static/images/perfect.png'); background-position: center bottom; background-size: 185%; }
.hero-docs     { background-image: url('/static/images/perfect.png'); background-position: center top; background-size: 180%; }
.hero-pricing  { background-image: url('/static/images/perfect.png'); background-position: center 40%; background-size: 175%; }
.hero-studies  { background-image: url('/static/images/perfect.png'); background-position: center 20%; background-size: 185%; }
.hero-about    { background-image: url('/static/images/perfect.png'); background-position: center 25%; background-size: 180%; }
.hero-contact  { background-image: url('/static/images/perfect.png'); background-position: center bottom; background-size: 165%; }
.hero-legal    { background-image: url('/static/images/perfect.png'); background-position: center 50%; background-size: 160%; }

/* Legal page link colors (scoped) */
/* Applies only to sections that follow the .hero-legal hero on legal.html */
.hero-legal ~ .section.gray a,
.hero-legal ~ .section.gray a:visited {
  color: var(--primary, #0f4c5c);
  text-decoration: underline;
}
.hero-legal ~ .section.gray a:hover {
  color: #0c3e4b;
}

/* ✅ Mobile-friendly override */
@media (max-width: 768px) {
  .hero-section {
    background-size: cover !important;
    background-position: center center !important;
  }

  .hero-section .container {
    padding: 3rem 1.25rem !important;
  }
}

.feature-list {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: #334155;
}

.feature-list li {
  margin: 0.4rem 0;
}
