/* ================================================================
   VITTO AGTECH — DESIGN SYSTEM LAYER
   Loaded after styles.css. Adds modern component styling on top of
   the existing Bootstrap utility classes. Reuses the site's existing
   color tokens only (--primary-color/--secondary-color/--accent-color
   defined in styles.css) — no new colors are introduced here.
================================================================ */

:root {
  --vt-radius: 0.75rem;
  --vt-radius-lg: 1rem;
  --vt-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05);
  --vt-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --vt-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --vt-transition: 0.2s ease;
}

/* ---- Feature cards ---- */
.feature-card {
  transition: transform var(--vt-transition), box-shadow var(--vt-transition),
    border-color var(--vt-transition);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vt-shadow-md);
  border-color: var(--accent-color);
}
.feature-card .icon-feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.12);
  font-size: 1.25rem;
}

/* ---- Section title / label ---- */
.section-title {
  letter-spacing: -0.01em;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* ================================================================
   PAGE HERO — full-bleed image or plain variant
================================================================ */
.page-hero {
  position: relative;
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero--compact {
  padding: 2rem 0;
}
.page-hero--image {
  padding: 0;
  overflow: hidden;
  min-height: clamp(280px, 40vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.page-hero--image .section-title,
.page-hero--image .page-hero__sub {
  color: #fff;
}
.page-hero__sub {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-top: 0.5rem;
}

/* ================================================================
   NAV polish (CSS only — no scroll/transparency behavior change)
================================================================ */
#mainNav {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
#mainNav .nav-link {
  transition: color var(--vt-transition);
}
#mainNav .dropdown-menu {
  border: none;
  box-shadow: var(--vt-shadow-md);
  border-radius: var(--vt-radius);
}
#mainNav .btn {
  transition: transform var(--vt-transition), box-shadow var(--vt-transition);
}
#mainNav .btn:hover {
  transform: translateY(-1px);
}

/* ================================================================
   FOOTER — circular social icons, reusing bg-green/white
================================================================ */
footer.bg-green .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background var(--vt-transition), border-color var(--vt-transition);
}
footer.bg-green .social-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ================================================================
   BUTTON hover-lift (existing colors only)
================================================================ */
.btn-success,
.btn-outline-success,
.btn-primary,
.btn-outline-primary {
  transition: transform var(--vt-transition), box-shadow var(--vt-transition),
    background-color var(--vt-transition), color var(--vt-transition);
}
.btn-success:hover,
.btn-outline-success:hover,
.btn-primary:hover,
.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--vt-shadow-sm);
}

/* ---- Contact modal polish ---- */
.modal-content {
  border: none;
  border-radius: var(--vt-radius-lg);
  box-shadow: var(--vt-shadow-lg);
}
