/* Crocco static landing page styles */
:root {
  --brand-primary: #0d6efd;
  --brand-bg: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

html, body {
  scroll-behavior: smooth; /* fallback for non-JS */
}
body { position: relative; }

/* Ensure anchored sections activate correctly under a fixed navbar */
.section,
header[id],
section[id] {
  scroll-margin-top: 100px; /* aligns section activation beneath fixed nav */
}

.bg-gradient {
  background: var(--brand-bg);
}

.section {
  padding: 72px 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 24px;
}

/* Hero visuals */
.hero-visual .placeholder-title,
.hero-visual .placeholder-subtitle,
.hero-visual .placeholder-graph {
  background: #e9f2ff;
  border-radius: 8px;
}
.hero-visual .placeholder-title {
  width: 180px;
  height: 20px;
}
.hero-visual .placeholder-subtitle {
  width: 120px;
  height: 16px;
  margin-top: 8px;
}
.hero-visual .placeholder-graph {
  height: 140px;
}

/* Features */
.feature {
  padding: 20px;
  text-align: center;
}
.feature i {
  font-size: 28px;
  color: var(--brand-primary);
}

/* Navbar shadow tweak */
.navbar.shadow-sm {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

/* Contact form */
#contactForm .form-control::placeholder {
  color: rgba(255,255,255,0.85);
}
#contactForm .form-feedback {
  color: #fff;
}

/* Hero overlay styles */
.hero-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}
.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(13,110,253,0.25), transparent 60%),
              radial-gradient(800px 400px at 90% 20%, rgba(111,66,193,0.18), transparent 60%);
}
.hero-wrap img.hero-bg {
  width: 100%;
  max-width: 1920px;
  object-fit: cover;
  filter: brightness(0.55); /* slightly darker to boost text contrast */
}
.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 10%;
  height: 80%; /* occupy 80% of the image height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  /* add a subtle dark gradient overlay for readability */
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35));
  backdrop-filter: saturate(1.2) brightness(1.05);
}
.hero-overlay .headline {
  max-width: 1000px;
  padding: 1.5rem 2rem;
}
.hero-overlay .headline h1,
.hero-overlay .headline p {
  color: #fff; /* ensure strong contrast */
  text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* subtle clarity on busy images */
}
.hero-overlay .actions {
  margin-top: 1rem;
  display: flex;
  gap: .75rem;
  justify-content: center;
}
.hero-overlay .actions .btn-outline-light {
  border-color: rgba(255,255,255,0.9);
}

/* Keep enhanced headline and CTA styles */
.hero-title {
  font-size: clamp(2.25rem, 3.5vw + 1rem, 4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-top: .75rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.2vw + .5rem, 1.35rem);
  color: rgba(255,255,255,0.92);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center; /* center align buttons */
}
.hero-cta .btn {
  border-radius: 999px; /* pill shape */
  padding: .6rem 1.25rem; /* comfortable touch target */
  font-weight: 600;
}
.hero-cta .btn-primary {
  box-shadow: 0 10px 30px rgba(13,110,253,0.35);
  background-image: linear-gradient(135deg, #0d6efd 0%, #3d8bfd 60%, #0b5ed7 100%);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-cta .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(13,110,253,0.45);
}
.hero-cta .btn-outline-light {
  border-color: rgba(255,255,255,0.85);
  background-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(2px);
}
.hero-cta .btn-outline-light:hover {
  background-color: rgba(255,255,255,0.14);
}
.hero-cta .btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

/* Subtle animated shine accent on headline */
.hero-headline-shine {
  position: relative;
}
.hero-headline-shine::after {
  content: "";
  position: absolute;
  top: 0; left: -20%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: heroShine 6s ease-in-out infinite;
}
@keyframes heroShine {
  0% { left: -30%; }
  50% { left: 110%; }
  100% { left: 110%; }
}

/* Modern navbar enhancements */
.navbar {
  transition: background-color .25s ease, box-shadow .25s ease;
}
.navbar.fixed-top.bg-dark {
    padding: 1rem 0;
  background-color: rgba(22,22,22,0.65) !important;
  backdrop-filter: saturate(1.2) blur(8px);
}
.navbar.scrolled {
  background-color: rgba(22,22,22,0.85) !important;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
}

/* Brand pulse on hover */
.navbar-brand {
  position: relative;
}
.navbar-brand::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #0d6efd, #9ec5fe);
  transition: width .24s ease;
}
.navbar-brand:hover::after { width: 60%; }

/* Link underline animation (exclude CTA button) */
.navbar .nav-link:not(.btn) {
  position: relative;
  padding: .25rem .5rem;
  margin: 0 .25rem;
  color: rgba(255,255,255,0.85) !important;
}
.navbar .nav-link:not(.btn)::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #0d6efd, #9ec5fe);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}
.navbar .nav-link:not(.btn):hover::after,
.navbar .nav-link:not(.btn):focus-visible::after { transform: scaleX(1); }

/* Mouseover subtle lift for non-CTA links */
.navbar .nav-link:not(.btn):hover { transform: translateY(-1px); }

/* Active state glow for all nav links */
.navbar .nav-link.active { color: #fff !important; text-shadow: 0 0 18px rgba(13,110,253,0.35); }

/* CTA nav button unified styles + active state */
.navbar .nav-link.btn {
  border-radius: 999px;
  padding: .35rem .85rem;
  margin-left: .5rem;
}
.navbar .nav-link.btn.active {
  box-shadow: 0 8px 24px rgba(13,110,253,0.45);
}

/* Mobile nav adjustments */
@media (max-width: 992px) {
  .navbar .nav-link::after { display: none; }
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .display-5 { font-size: 2rem; }
  .hero-wrap img.hero-bg { height: 360px; }
  .hero-overlay { top: 10%; height: 80%; }
}

/* Navbar brand logo sizing */
.brand-logo {
  width: 60px;
  height: 60px;
    margin: -.5rem 0;
}
