/* ---------------------------------------------------------------
        INVOCAS GROUP LLC  MODERN INSTITUTIONAL DESIGN
        FULLY UTILIZING ROOT COLOR VARIABLES | HERO BACKGROUND IMAGE + RESPONSIVE
        REDESIGNED TEXT SIZE SYSTEM | ENHANCED READABILITY & SCALING
        ADDED CUSTOM CAROUSEL STYLES FOR GALLERY & PARTNER SLIDERS
        HERO CROSSFADE FIX INCLUDED (NO BLANK FLASH)
        --------------------------------------------------------------- */

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

/* ========== DEFINED COLOR SYSTEM (USER VARIABLES) ========== */
:root {
  --bg-primary: #ffffff;
  --bg-soft: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-muted: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --blue-primary: #1e3a8a;
  --blue-accent: #2563eb;
  --blue-glow: #38bdf8;
  --orange-primary: #f97316;
  --orange-deep: #ea580c;
  --orange-soft: #fdba74;
  --gold-primary: #fbbf24;
  --gold-deep: #d4af37;
  --gold-soft: #fef3c7;
  --green-success: #22c55e;
  --green-flow: #10b981;
  --green-soft: #dcfce7;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --shadow-sm: rgba(15, 23, 42, 0.06);
  --shadow-md: rgba(15, 23, 42, 0.1);
  --shadow-lg: rgba(15, 23, 42, 0.16);
  --transition: all 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  --font-base: 1rem;
  --font-sm: 0.875rem;
  --font-xs: 0.75rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.875rem;
  --font-4xl: 2.25rem;
  --font-5xl: 3rem;
  --font-6xl: 3.75rem;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: var(--font-base);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.display,
.navbar-brand {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.display-1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
}
.display-2 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}
.display-3 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}
.display-4 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
h1,
.h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2,
.h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}
h3,
.h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}
h4,
.h4 {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
}
h5,
.h5 {
  font-size: 1.125rem;
  font-weight: 600;
}
h6,
.h6 {
  font-size: 1rem;
  font-weight: 600;
}
.lead {
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}
p,
.text-body {
  font-size: var(--font-base);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
small,
.small-text {
  font-size: var(--font-sm);
  line-height: 1.5;
}
ul li,
ol li {
  font-size: var(--font-base);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.nav-link-invocas {
  font-size: 0.95rem;
  font-weight: 500;
}

.btn {
  font-size: var(--font-sm);
  letter-spacing: 0.01em;
}

.btn-primary-orange,
.btn-outline-gold {
  font-size: 0.9rem;
}

.badge-premium {
  font-size: 0.75rem;
  padding: 0.4rem 1.2rem;
}

.card-premium p,
.card-premium .lead {
  font-size: 0.95rem;
}

.product-tile-premium h4 {
  font-size: 1.25rem;
  font-weight: 700;
}

.product-tile-premium small {
  font-size: 0.8rem;
  line-height: 1.4;
}

.stat-number-premium {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.testimonial-premium p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-premium h5 {
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-premium p {
  font-size: 0.9rem;
}

footer p,
footer li,
footer .small {
  font-size: 0.85rem;
  line-height: 1.6;
}

#insights ul li span.text-secondary,
#insights ul li {
  font-size: 0.95rem;
  line-height: 1.6;
}

#insights p {
  font-size: 0.95rem;
  line-height: 1.65;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-muted);
}

::-webkit-scrollbar-thumb {
  background: var(--orange-primary);
  border-radius: 10px;
}

/* ================= NAVBAR ================= */

.navbar-invocas {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.9rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 15px var(--shadow-sm);
}

.nav-link-invocas {
  color: var(--text-secondary);
  margin: 0 0.6rem;
  transition: var(--transition);
  position: relative;
}

.nav-link-invocas:hover,
.nav-link-invocas.active {
  color: var(--orange-primary);
}

.nav-link-invocas::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: var(--orange-primary);
  transition: width 0.25s ease;
}

.nav-link-invocas:hover::after,
.nav-link-invocas.active::after {
  width: 50%;
}

/* ================= BUTTONS ================= */

.btn-primary-orange {
  background: linear-gradient(
    105deg,
    var(--orange-primary),
    var(--orange-deep)
  );
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.25);
  color: white;
}

.btn-primary-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
  background: linear-gradient(105deg, var(--orange-deep), var(--gold-primary));
  color: white;
}

.btn-outline-gold {
  border: 1.5px solid var(--gold-primary);
  background: transparent;
  color: var(--gold-primary);
  border-radius: 60px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.3);
}

/* ================= HERO SECTION FIX ================= */

.hero-invocas {
  padding: 200px 0 120px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

/* HERO OVERLAY */
.hero-invocas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.75),
    rgba(15, 23, 42, 0.65)
  );
  z-index: 3;
}

/* HERO BACKGROUND LAYERS */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
  transform: scale(1.02);
}

/* FIRST VISIBLE LAYER */
.hero-bg-1 {
  opacity: 1;
  z-index: 1;
}

/* SECOND HIDDEN LAYER */
.hero-bg-2 {
  opacity: 0;
  z-index: 2;
}

/* HERO CONTENT ABOVE BACKGROUND */
.hero-invocas .container {
  position: relative;
  z-index: 4;
}

/* OPTIONAL PREMIUM SLOW MOTION */
.hero-bg-1,
.hero-bg-2 {
  animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.07);
  }
}

/* ================= BADGES ================= */

.badge-premium {
  background: var(--gold-soft);
  border: 1px solid var(--gold-primary);
  border-radius: 60px;
  letter-spacing: 1px;
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ================= TRADINGVIEW ================= */

.tradingview-widget-container {
  margin-top: 2rem;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  box-shadow: 0 12px 30px var(--shadow-md);
}

#tradingview_oil {
  height: 400px;
  width: 100%;
}

/* ================= CARDS ================= */

.card-premium {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
  box-shadow: 0 4px 12px var(--shadow-sm);
}

.card-premium:hover {
  border-color: var(--orange-primary);
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -12px var(--shadow-md);
}

.icon-glow-premium {
  background: rgba(249, 115, 22, 0.1);
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--orange-primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card-premium:hover .icon-glow-premium {
  background: var(--orange-primary);
  color: white;
}

/* ================= STATS ================= */

.stat-number-premium {
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.stat-card-premium {
  background: var(--bg-primary);
  border-radius: 28px;
  padding: 1.8rem 1rem;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--shadow-sm);
}

.stat-card-premium:hover {
  border-color: var(--orange-primary);
  transform: translateY(-5px);
}

/* ================= PRODUCTS ================= */

.product-tile-premium {
  background: var(--bg-soft);
  border-radius: 28px;
  padding: 1.8rem;
  text-align: center;
  border-bottom: 3px solid var(--orange-primary);
  transition: var(--transition);
}

.product-tile-premium:hover {
  transform: translateY(-6px);
  background: var(--bg-primary);
  border-bottom-color: var(--gold-primary);
  box-shadow: 0 12px 24px var(--shadow-sm);
}

.product-tile-premium i {
  color: var(--orange-primary);
  font-size: 2rem;
}

.physical-badge-premium {
  background: rgba(249, 115, 22, 0.12);
  border-radius: 40px;
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--orange-primary);
  display: inline-block;
  margin-top: 12px;
}

/* ================= TESTIMONIALS ================= */

.testimonial-premium {
  background: var(--bg-primary);
  border-radius: 28px;
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 12px var(--shadow-sm);
}

.testimonial-premium:hover {
  border-color: var(--orange-primary);
  transform: translateY(-4px);
}

/* ================= FAQ ================= */

.faq-premium {
  background: var(--bg-primary);
  border-radius: 24px;
  padding: 1.6rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.faq-premium:hover {
  border-color: var(--orange-primary);
  background: var(--bg-soft);
}

.faq-premium h5 {
  color: var(--orange-primary);
  font-weight: 700;
}

/* ================= FOOTER ================= */

footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-light);
  padding: 70px 0 40px;
}

footer h3,
footer h5 {
  color: var(--text-primary);
}

footer p,
footer ul li a,
.text-secondary {
  color: var(--text-secondary);
}

footer ul li a:hover {
  color: var(--orange-primary);
  transition: var(--transition);
}

/* ================= UTILITIES ================= */

.bg-navy-section {
  background: var(--bg-soft);
}

.text-gold {
  color: var(--gold-primary);
}

.text-orange {
  color: var(--orange-primary);
}

.text-green-profit {
  color: var(--green-success);
}

hr {
  border-color: var(--border-light);
  opacity: 0.6;
}

/* ================= INPUTS ================= */

input.form-control {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  border-radius: 60px;
  padding: 0.8rem 1.5rem;
  font-size: var(--font-sm);
  transition: var(--transition);
}

input.form-control:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
  outline: none;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .hero-invocas {
    padding: 150px 0 100px;
  }

  .navbar-invocas .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  body {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  #tradingview_oil {
    height: 320px;
  }

  .hero-invocas {
    padding: 130px 0 70px;
  }

  .card-premium {
    padding: 1.5rem;
  }

  .btn-primary-orange,
  .btn-outline-gold {
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
  }

  .lead {
    font-size: 1rem;
  }

  .gallery-carousel .carousel-item img {
    height: 280px;
  }

  .partner-card {
    min-width: 110px;
    padding: 0.8rem;
  }
}

@media (max-width: 576px) {
  #tradingview_oil {
    height: 280px;
  }

  .badge-premium {
    font-size: 0.65rem;
    padding: 0.3rem 1rem;
  }
}

/* ================= AOS ================= */

[data-aos] {
  transition-timing-function: cubic-bezier(0.2, 0.9, 0.4, 1);
}

/* ================= CAROUSELS ================= */

.gallery-carousel .carousel-item img {
  height: 460px;
  object-fit: cover;
  border-radius: 28px;
}

.partner-carousel .carousel-item .partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.partner-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 1rem 1.2rem;
  text-align: center;
  transition: 0.2s;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}

.partner-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange-primary);
  box-shadow: 0 15px 25px -10px var(--shadow-md);
}

.partner-card i {
  font-size: 2.2rem;
  color: var(--orange-primary);
  background: rgba(249, 115, 22, 0.08);
  padding: 12px;
  border-radius: 60px;
}

.partner-card span {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.partner-logo {
  width: 80px;
  height: 45px;
  object-fit: contain;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
  transform: scale(1.08);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 20px;
  background-size: 50%;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--orange-primary);
  width: 10px;
  height: 10px;
  border-radius: 20px;
}

.region-tag {
  background: var(--bg-soft);
  border-radius: 32px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
}

.region-tag i {
  color: var(--orange-primary);
  font-size: 1.75rem;
}

/* ================= SMALL FONT OVERRIDES ================= */

.list-unstyled.mt-4 li,
.list-unstyled.mt-4 li span {
  font-size: 12px !important;
}

#insights ul.list-unstyled li,
#insights ul.list-unstyled li span,
.list-unstyled.mt-3 li,
.list-unstyled.mt-3 li span {
  font-size: 12px !important;
}
