/* =================================================
   VARIABLES & RESET
================================================= */

/* Accent color for buttons, links, nav, etc. */
:root {
  --accent-color: #244944;
  --accent-hover: #1f403e;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #222;
}

/* Reset some basics */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  background: #fff;
  scroll-behavior: smooth;
}

/* Utility for smaller footer text */
.small-text {
  font-size: 0.9rem;
  color: #666;
}

/* -------------------------------------------------
   LINK & TEXT ACCENTS
-------------------------------------------------- */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* .link-accent: used where we want links in accent color */
.link-accent {
  color: var(--accent-color);
}

.link-accent:hover {
  color: var(--accent-hover);
}

/* =================================================
   HEADER & NAVBAR
================================================= */
header {
  background-color: var(--accent-color) !important;
}

.navbar-brand,
.nav-link {
  color: #fff !important;
}

.nav-link:hover {
  color: #e0f2f1 !important;
}

/* =================================================
   HERO SECTION
================================================= */
.hero {
  position: relative;
  background-image: url('/default.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
  z-index: 0;
  min-height: 90vh; /* ensures hero fills almost entire viewport */
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #fff 100%
  );
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.text-shadow {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Hero typography */
#hero-title {
  font-weight: 700;
  letter-spacing: 1px;
}

/* Hero button override (Bootstrap’s btn-primary replaced) */
.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-light);
  border: none;
  transition: background-color 0.2s;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--accent-hover);
  color: var(--text-light);
}

/* Larger hero button */
.hero .btn-accent {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* =================================================
   SECTION HEADINGS
================================================= */
.section-heading {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =================================================
   FEATURES SECTION (ALTERNATING LAYOUT)
================================================= */

.features-hero {
  position: relative;
  overflow: hidden; 
  background: 
    url('/features.jpg') center center/cover no-repeat,
    rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
  min-height: 60vh;
  padding: 3rem 0;
}

/* simple fade‐to‐white at bottom */
.features-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px; /* adjust for stronger/softer fade */
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
  pointer-events: none;
}

/* ensure hero text remains above */
.features-hero > * {
  position: relative;
  z-index: 1;
}

/* Each row gets extra vertical padding */
.feature-row {
  padding: 2rem 0;
}

/* Alternate background for even‐numbered feature rows */
#features-list .feature-row:nth-child(even) {
  background-color: #f8f9fa;
}

/* Ensure each feature image container is fixed height */
.feature-img {
  width: 100%;
  height: 300px; /* fixed height for consistency */
  object-fit: cover; /* crop or scale to cover the container */
}

/* ================================
   FEATURES CARD GRID & RATIO
   (1-2-3 columns + 16:9 cards)
================================= */

/* Features grid: auto-flow 1–2–3 columns as space allows */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  );
}

/* Card wrapper */
.feature-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Ensure image covers the 16×9 box */
.object-fit-cover {
  object-fit: cover;
}

/* Overlay sits on top */
.feature-overlay {
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

/* Title always at top */
.feature-overlay .card-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 4vw, 1.4rem);
  color: #fff;
}

/* Text fills the middle */
.feature-overlay .card-text {
  margin: 0 0 1rem;
  flex: 1;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #eee;
}

/* Button pinned at bottom, consistent size */
.feature-overlay .btn-accent {
  margin-top: auto;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

/* Simple mobile padding tweak */
@media (max-width: 400px) {
  .feature-overlay {
    padding: 1rem !important;
  }
}



/* =================================================
   DOCUMENTATION SECTION
================================================= */

.docs-hero {
  position: relative;
  overflow: hidden;
  background: 
    url('/documentation.jpg') center center/cover no-repeat,
    rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
  min-height: 60vh;
  padding: 3rem 0; /* equivalent to .py-5 spacing */
}

/* simple fade‐to‐white at bottom of docs hero */
.docs-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px; /* adjust this for a stronger or softer fade */
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
  pointer-events: none;
}

/* ensure docs hero text appears above the fade overlay */
.docs-hero > * {
  position: relative;
  z-index: 1;
}

/* =================================================
   ACCORDION COLLAPSE STATES
   (all collapsed by default via Bootstrap classes)
================================================= */
/* No extra CSS needed—Bootstrap’s .accordion-button.collapsed does this */


#documentation {
  padding: 4rem 2rem;
}

#documentation h2 {
  margin-bottom: 1.5rem;
}

#documentation p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

#documentation .btn-accent {
  padding: 0.6rem 1.5rem;
}

/* =================================================
   PRICING HERO
================================================= */
.pricing-hero {
  position: relative;
  overflow: hidden;
  background:
    url('/pricing.jpg') center center/cover no-repeat,
    rgba(0, 0, 0, 0.7); /* slight dark overlay, optional */
  background-blend-mode: overlay;
  min-height: 60vh;
  padding: 3rem 0;
}



/* fade‐to‐white at bottom of pricing hero */
.pricing-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px; /* adjust for stronger/softer fade */
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
  pointer-events: none;
}

/* ensure hero text remains above the fade */
.pricing-hero > * {
  position: relative;
  z-index: 1;
}

/* =================================================
   PRICING CARDS LAYOUT
================================================= */
#pricing-cards {
  background: #fff;
}

#pricing-cards .section-heading {
  margin-bottom: 2rem;
}

/* Make all cards equal height, spacing, etc. */
#pricing-cards .card {
  border: none;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

#pricing-cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure card lists and buttons have consistent spacing */
#pricing-cards .card-body {
  display: flex;
  flex-direction: column;
}

#pricing-cards .card-body ul {
  list-style: disc inside;
  margin-left: 1rem;
}

#pricing-cards .card-body .btn-accent {
  margin-top: auto;
}

/* Pricing font-size overrides */
#pricing .card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
#pricing .card-subtitle {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
#pricing .card-text {
  font-size: 1rem;
}


/* =================================================
   PRICING TABLE – preserve dark background & text‐light
================================================= */
#pricing-table {
  background: var(--bg-dark);
  color: #fff;
}
#pricing-table .section-heading {
  color: #fff;
}

/* Make table rows a bit taller for readability */
#pricing-table table th,
#pricing-table table td {
  padding: 1rem 0.5rem;
}

/* =================================================
    CONTACT HERO
==================================================*/

.contact-hero {
  position: relative;
  overflow: hidden;
  background:
    url('/contact.jpg') center center / cover no-repeat,
    rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
  min-height: 60vh;
  padding: 3rem 0;
}

.contact-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
  pointer-events: none;
}

.contact-hero > * {
  position: relative;
  z-index: 1;
}


/* =================================================
   CONTACT & SUBSCRIBE
================================================= */
#contact {
  margin-bottom: 0;
  padding: 4rem 2rem;
}

#contact h2 {
  margin-bottom: 1.5rem;
}

#contact p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Re‐use btn-accent on “Subscribe” */
#contact .btn-accent {
  padding: 0.55rem 1.3rem;
}

/* Input‐group adjustments */
#contact .input-group .form-control {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-right: none;
}

#contact .input-group .btn-accent {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-left: none;
}

/* =================================================
   FOOTER
================================================= */
footer {
  background: var(--bg-light);
  padding: 2rem;
  margin-top: 0;
}

footer .small-text {
  color: #666;
}
