/*
Theme Name: Flex Labels - 2026
Author: trivia info it
Author URI: http://trivia.co.in/
Description: Bootstrap based wp theme for Flex Labels
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  /* Premium Corporate Palette */
  --brand-dark: #111418;
  --brand-darker: #0a0c0f;
  --brand-slate: #4a5568;
  --brand-slate-light: #718096;
  --brand-accent-blue: #0076b6; /* Refined from logo */
  --brand-accent-orange: #e85d1c; /* Refined from logo */
  --brand-light: #f8f9fa;
  --brand-border: #e2e8f0;

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  /* Shadows & Effects */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.9);
}

/*Wordpress editor styles start*/

.entry-content img {
  margin: 0 0 1.5em 0;
}
.alignleft,
img.alignleft {
  margin-right: 1.5em;
  display: inline;
  float: left;
}
.alignright,
img.alignright {
  margin-left: 1.5em;
  display: inline;
  float: right;
}
.aligncenter,
img.aligncenter {
  margin-right: auto;
  margin-left: auto;
  display: block;
  clear: both;
}
.alignnone,
img.alignnone {
  /* not sure about this one */
}
.wp-caption {
  margin-bottom: 1.5em;
  text-align: center;
  padding-top: 5px;
}
.wp-caption img {
  border: 0 none;
  padding: 0;
  margin: 0;
}
.wp-caption p.wp-caption-text {
  line-height: 1.5;
  font-size: 10px;
  margin: 0;
}
.wp-smiley {
  margin: 0 !important;
  max-height: 1em;
}
blockquote.left {
  margin-right: 20px;
  text-align: right;
  margin-left: 0;
  width: 33%;
  float: left;
}
blockquote.right {
  margin-left: 20px;
  text-align: left;
  margin-right: 0;
  width: 33%;
  float: right;
}

/*Wordpress editor styles end*/
/* Base Overrides */
/* ==========================================================================
   FLEXO LABEL - ELITE CORPORATE THEME (WP PRODUCTION)
   Dependencies: Bootstrap 5, Google Fonts
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL & TYPOGRAPHY
   ========================================================================== */
body {
  font-family: var(--font-body);
  color: var(--brand-dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -1px;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.5px;
}

p.lead {
  font-size: 1.25rem;
  color: var(--brand-slate);
  line-height: 1.7;
  font-weight: 300;
}

a {
  color: var(--brand-accent-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--brand-accent-orange);
}

/* ==========================================================================
   2. SLIM CORPORATE HEADER
   ========================================================================== */
.site-header {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.3s ease;
}

.navbar {
  padding: 0.25rem 0; /* Minimized height */
}

.navbar-brand img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark) !important;
  letter-spacing: 0.8px;
  padding: 1rem 0.6rem !important;
  position: relative;
}

/* Modern Underline Hover Effect */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background-color: var(--brand-accent-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   3. BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn-primary {
  background-color: var(--brand-accent-blue);
  border: none;
  padding: 0.875rem 2.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--brand-accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(232, 93, 28, 0.2);
}

.btn-outline {
  border: 2px solid var(--brand-dark);
  color: var(--brand-dark);
  padding: 0.875rem 2.5rem;
  font-weight: 600;
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* ==========================================================================
   4. HOMEPAGE SPECIFICS
   ========================================================================== */
.hero-section {
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  position: relative;
  overflow: hidden;
}
/* ==========================================================================
   CLIENT MARQUEE (HORIZONTAL FIX)
   ========================================================================== */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  position: relative;
  /* Adding a subtle gradient fade on the edges looks premium */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-content {
  display: flex;
  flex-direction: row; /* Forces strict horizontal alignment */
  flex-wrap: nowrap; /* Prevents logos from dropping to the next line */
  align-items: center; /* Centers them vertically */
  justify-content: space-around;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Restrict Logo Sizes so they don't break the flexbox */
.client-logo-wrapper {
  flex-shrink: 0; /* Prevents squishing */
}

.client-marquee-logo {
  max-height: 65px !important;
  max-width: 180px !important;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: pointer;
}

.client-marquee-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ==========================================================================
   5. BENTO GRID & PRODUCT CARDS (Product Hub)
   ========================================================================== */
.bento-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 118, 182, 0.3); /* Subtle blue border on hover */
}

.bento-card-img-wrapper {
  background: var(--brand-light);
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.bento-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.bento-card:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   6. SINGLE PRODUCT & SIDEBAR
   ========================================================================== */
.product-hero-image {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  object-fit: cover;
  margin-bottom: 4rem;
  border-radius: 0 0 24px 24px;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
}

.sidebar-widget.catalogue-download {
  background: var(--brand-dark);
  color: #ffffff;
  border: none;
}

.sidebar-widget.catalogue-download h4 {
  color: #ffffff;
}

.sidebar-widget.catalogue-download p {
  color: #a0aec0;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  color: var(--brand-slate);
  border-bottom: 1px solid var(--brand-border);
  font-weight: 500;
}

.sidebar-menu li:last-child a {
  border-bottom: none;
}
.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  color: var(--brand-accent-blue);
  padding-left: 5px;
}

/* Product Content Styling for WP Editor */
.product-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.product-content ul {
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}
.product-content ul li {
  margin-bottom: 0.5rem;
  color: var(--brand-slate);
}
.product-content ul li strong {
  color: var(--brand-dark);
}
/* ==========================================================================
   7. FLOATING CTA & FOOTER
   ========================================================================== */
.cta-overlap-container {
  position: relative;
  z-index: 20;
  margin-bottom: -120px; /* Overlaps exactly over the dark footer */
}

.site-footer {
  background-color: #0b111a !important; /* Force dark background */
  color: rgba(255, 255, 255, 0.5);
  padding-top: 180px !important; /* Accounts for the floating CTA */
  padding-bottom: 2rem;
  margin-top: 0;
}

.site-footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 0.75rem;
}

/* Base link state for the footer */
.site-footer a,
.footer-menu li a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Hover effects for all footer links and social icons */
.site-footer a:hover,
.footer-menu li a:hover,
.hover-white:hover {
  color: #ffffff !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
}
/* ==========================================================================
   8. FORMS (Contact & Leads)
   ========================================================================== */
.form-control,
.form-select {
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  color: var(--brand-dark);
  background-color: #fafafa;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(0, 118, 182, 0.1);
  border-color: var(--brand-accent-blue);
  background-color: #ffffff;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES (Desktop, Tablet, Mobile)
   ========================================================================== */
@media (max-width: 991px) {
  /* Tablet Adjustments */
  .hero-section {
    padding: 6rem 0 4rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  .footer-cta-wrapper {
    margin-bottom: -80px;
  }
  .site-footer {
    padding-top: 140px;
  }
  .sticky-sidebar {
    position: relative;
    top: 0;
    margin-top: 3rem;
  }
  .navbar-collapse {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }
}

@media (max-width: 767px) {
  /* Mobile Adjustments */
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .floating-cta {
    padding: 3rem 1.5rem;
    border-radius: 16px;
  }
  h1 {
    font-size: 2rem;
  }
  .marquee-track img {
    margin: 0 2rem;
    height: 40px;
  }
  .product-hero-image {
    height: 40vh;
    min-height: 250px;
    border-radius: 0;
  }
}
/* ==========================================================================
   READ MORE / LESS COMPONENT
   ========================================================================== */
.read-more-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.read-more-content {
  max-height: 400px; /* Default collapsed height */
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.read-more-content.is-expanded {
  max-height: 5000px; /* Arbitrary large number to reveal all content */
}

.read-more-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 90%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.read-more-content.is-expanded + .read-more-overlay {
  opacity: 0;
}

/* Sidebar Product Menu Override */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-menu li a {
  display: flex;
  padding: 0.75rem 0;
  color: var(--brand-slate);
  border-bottom: 1px solid var(--brand-border);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sidebar-menu li:last-child a {
  border-bottom: none;
}
.sidebar-menu li a:hover,
.sidebar-menu li.current-menu-item > a {
  color: var(--brand-accent-blue);
  padding-left: 8px;
}

/* ==========================================================================
   ABOUT PAGE - READ MORE & SIDEBAR
   ========================================================================== */
.read-more-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.read-more-content {
  max-height: 350px; /* Adjust this to show more/less text initially */
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.read-more-content.is-expanded {
  max-height: 5000px;
}

.read-more-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 90%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.read-more-content.is-expanded + .read-more-overlay {
  opacity: 0;
}

/* Sidebar Styling */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Fix for dynamic sidebar alignment */
.sidebar-menu li a {
  display: flex;
  justify-content: flex-start !important; /* Forces everything to the left */
  align-items: center;
  padding: 0.75rem 0;
  color: var(--brand-slate);
  border-bottom: 1px solid var(--brand-border);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-menu li a:hover {
  color: var(--brand-accent-blue);
  padding-left: 5px; /* Creates that nice slide-in effect */
}
.sidebar-menu li:last-child a {
  border-bottom: none;
}
