/* =========================================================
   CITIUS TARIM — "Engineered Precision" Stylesheet
   Modern-industrial visual identity derived from the
   Citius Tarim logo (ink navy + steel azure).
   Sharp geometry, squared icon chips, diagonal accents.
   ========================================================= */

:root {
  --primary-color: #12222E;   /* Ink navy (CITIUS wordmark) */
  --primary-light: #1D3E52;
  --secondary-color: #1C89C4; /* Steel azure */
  --secondary-light: #46A6DC;
  --accent-color: #14A2DB;    /* Vivid azure (gear mark) */
  --accent-dark: #0E85B8;
  --text-dark: #17242C;
  --text-muted: #5A6B76;
  --light-bg: #EEF3F7;        /* Cool off-white */
  --white: #FFFFFF;
  --line: #DDE5EC;
  --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.75;
  font-size: 1rem;
}

a { text-decoration: none; transition: all .25s ease; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.01em;
}

.section-padding { padding: 100px 0; }
@media (max-width: 767px) { .section-padding { padding: 60px 0; } }

/* Section tag — small-caps with a leading azure bar */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-color);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
}
.text-center .section-tag { justify-content: center; }

.section-title {
  font-size: 2.35rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
@media (max-width: 767px) { .section-title { font-size: 1.8rem; } }

.bg-light-soft { background-color: var(--light-bg); }

p { color: var(--text-muted); }

/* =========================================================
   BUTTONS — sharp, technical
   ========================================================= */
.btn-brand {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 2px;
  letter-spacing: .6px;
  text-transform: lowercase;
  font-size: 0.82rem;
  transition: all .25s ease;
}
.btn-brand:hover {
  background-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20,162,219,0.28);
}
.btn-brand-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.65);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 2px;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.btn-brand-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}
.btn-brand-secondary {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 2px;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.btn-brand-secondary:hover {
  background-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background-color: var(--primary-color);
  color: #C4D2DC;
  font-size: 0.82rem;
  padding: 9px 0;
  letter-spacing: .3px;
}
.top-bar a { color: #C4D2DC; }
.top-bar a:hover { color: var(--accent-color); }
.top-bar i { margin-right: 7px; color: var(--accent-color); }

/* =========================================================
   NAVBAR
   ========================================================= */
.main-navbar {
  background-color: var(--white);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line), 0 6px 22px rgba(18,34,46,0.05);
  border-top: 3px solid var(--accent-color);
  transition: all .3s ease;
}
.main-navbar.scrolled { padding: 8px 0; box-shadow: 0 2px 20px rgba(18,34,46,0.10); }
.main-navbar .navbar-brand img { height: 76px; }
.main-navbar .nav-link {
  color: var(--primary-color);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 14px;
  padding: 8px 0 !important;
  position: relative;
}
.main-navbar .nav-link.active,
.main-navbar .nav-link:hover { color: var(--accent-color); }
.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background-color: var(--accent-color);
}
.main-navbar .btn-brand { font-size: 0.75rem; white-space: nowrap; padding: 10px 20px; }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero-slider { position: relative; }
.hero-slide {
  height: 90vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,22,30,0.92) 0%, rgba(11,22,30,0.75) 45%, rgba(11,22,30,0.35) 100%),
    linear-gradient(0deg, rgba(11,22,30,0.55) 0%, rgba(11,22,30,0) 40%);
}
/* diagonal azure accent slash at the bottom-left */
.hero-slide::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 140px; height: 5px;
  background: var(--accent-color);
  z-index: 2;
}
.hero-slide .container { position: relative; z-index: 3; }
.hero-slide .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-color);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.hero-slide .hero-tag::before {
  content: '';
  width: 34px; height: 2px;
  background: var(--accent-color);
  display: inline-block;
}
.hero-slide h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.08;
  max-width: 820px;
  letter-spacing: -0.02em;
}
.hero-slide p {
  color: #D5DFE7;
  font-size: 1.15rem;
  max-width: 580px;
  margin: 22px 0 34px;
}
@media (max-width: 767px) {
  .hero-slide { height: 82vh; min-height: 480px; }
  .hero-slide h1 { font-size: 2.15rem; }
  .hero-slide p { font-size: 1rem; }
}
.hero-slider .carousel-indicators { bottom: 22px; margin-left: 12%; justify-content: flex-start; }
.hero-slider .carousel-indicators button {
  background-color: transparent;
  border: 2px solid rgba(255,255,255,.7);
  width: 12px; height: 12px; border-radius: 0;
  transform: rotate(45deg);
  opacity: 1;
  margin: 0 7px;
}
.hero-slider .carousel-indicators button.active { background-color: var(--accent-color); border-color: var(--accent-color); }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 5%; opacity: 0.6; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { opacity: 1; }

/* =========================================================
   PAGE HERO (sub pages)
   ========================================================= */
.page-hero {
  height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,22,30,0.93) 0%, rgba(11,22,30,0.72) 100%);
}
.page-hero .container { position: relative; z-index: 2; padding-left: 34px; }
.page-hero .container::before {
  content: '';
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 62px;
  background: var(--accent-color);
}
.page-hero h1 { color: var(--white); font-size: 2.8rem; margin-bottom: 10px; }
.page-hero .breadcrumb-custom {
  color: #C4D2DC;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.page-hero .breadcrumb-custom a { color: var(--accent-color); }
.page-hero .breadcrumb-custom a:hover { color: var(--white); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: 3px;
  width: 100%;
  box-shadow: 0 24px 50px rgba(18,34,46,0.20);
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 90px; height: 90px;
  border-top: 4px solid var(--accent-color);
  border-left: 4px solid var(--accent-color);
  z-index: 1;
}
.about-img-wrap .badge-float {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px 26px;
  border-radius: 3px;
  border-bottom: 4px solid var(--accent-color);
  box-shadow: 0 14px 30px rgba(18,34,46,0.28);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
@media (max-width: 991px) { .about-img-wrap .badge-float { right: 12px; } }
.about-img-wrap .badge-float .num { font-size: 1.9rem; font-weight: 700; color: var(--accent-color); display: block; letter-spacing: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text-dark);
  font-weight: 500;
}
.check-list li::before {
  content: '\F26E';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0; top: 1px;
  color: var(--accent-color);
  font-size: 1.15rem;
}

/* =========================================================
   FEATURE CARDS (Why Choose Us) — squared chips, top hairline
   ========================================================= */
.feature-card {
  background-color: var(--white);
  border-radius: 3px;
  padding: 34px 30px;
  height: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  transition: all .3s ease;
  position: relative;
}
.feature-card:hover {
  border-top-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(18,34,46,0.10);
  transform: translateY(-5px);
}
.feature-card .icon-wrap {
  width: 58px; height: 58px;
  border-radius: 3px;
  background-color: rgba(20,162,219,0.10);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  transition: all .3s ease;
}
.feature-card:hover .icon-wrap { background-color: var(--accent-color); color: var(--white); }
.feature-card h5 { font-size: 1.12rem; margin-bottom: 11px; }
.feature-card p { font-size: 0.94rem; margin-bottom: 0; }

/* =========================================================
   CTA SECTION — ink overlay + diagonal azure band
   ========================================================= */
.cta-section {
  background-color: var(--primary-color);
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(11,22,30,0.94) 0%, rgba(18,34,46,0.82) 55%, rgba(28,137,196,0.55) 100%);
  z-index: 0;
}
.cta-section::after {
  content: '';
  position: absolute;
  right: -60px; top: 0; bottom: 0;
  width: 200px;
  background: var(--accent-color);
  opacity: .16;
  transform: skewX(-14deg);
  z-index: 0;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 12px; font-size: 2.2rem; }
.cta-section p { color: #CBD8E1; margin-bottom: 0; }

/* =========================================================
   PRODUCTS / CATEGORY CARDS
   ========================================================= */
.product-card {
  background-color: var(--white);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .3s ease;
  height: 100%;
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--accent-color);
  transition: width .35s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(18,34,46,0.14); }
.product-card:hover::after { width: 100%; }
.product-card .product-img { height: 240px; overflow: hidden; }
.product-card .product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-card .product-body { padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card .product-body h5 { margin-bottom: 0; font-size: 1.15rem; }
.product-card .product-body::after {
  content: '\F138';
  font-family: 'bootstrap-icons';
  color: var(--accent-color);
  font-size: 1.15rem;
  transition: transform .3s ease;
}
.category-card-link:hover .product-body::after { transform: translateX(5px); }

.category-card-link { display: block; color: inherit; text-decoration: none; }
.category-card-link .product-card { cursor: pointer; }
.category-card-link:hover .product-card h5 { color: var(--accent-color); }

/* =========================================================
   ITEM CARDS (category pages)
   ========================================================= */
.item-card {
  background-color: var(--white);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .3s ease;
  height: 100%;
}
.item-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(18,34,46,0.13); border-color: var(--secondary-light); }
.item-card .item-img { height: 210px; overflow: hidden; position: relative; }
.item-card .item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item-card:hover .item-img img { transform: scale(1.08); }
.item-card .item-body { padding: 20px 22px; border-left: 3px solid var(--accent-color); }
.item-card .item-body h5 { margin-bottom: 0; font-size: 1.02rem; }

/* =========================================================
   MISSION / VISION
   ========================================================= */
.mv-card {
  background-color: var(--white);
  border-radius: 3px;
  padding: 40px 34px;
  height: 100%;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-color);
  transition: all .3s ease;
}
.mv-card:hover { box-shadow: 0 20px 42px rgba(18,34,46,0.10); transform: translateY(-4px); }
.mv-card:nth-child(2) .mv-card, .mv-card.alt { border-left-color: var(--secondary-color); }
.mv-card i {
  font-size: 1.5rem;
  color: var(--accent-color);
  background: rgba(20,162,219,0.10);
  width: 56px; height: 56px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.mv-card h4 { margin-bottom: 14px; font-size: 1.4rem; }
.mv-card p { margin-bottom: 0; }

/* =========================================================
   VALUE PILLS (defined for completeness; not used unless
   the client document lists core values)
   ========================================================= */
.value-pill {
  background-color: var(--white);
  border-radius: 3px;
  padding: 30px 22px;
  text-align: center;
  height: 100%;
  border: 1px solid var(--line);
}
.value-pill i {
  font-size: 1.6rem;
  color: var(--accent-color);
  background-color: rgba(20,162,219,0.10);
  width: 58px; height: 58px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.value-pill h6 { font-weight: 700; margin-bottom: 8px; }
.value-pill p { font-size: 0.9rem; margin-bottom: 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-info-card {
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 3px;
  padding: 44px 34px;
  height: 100%;
  border-bottom: 4px solid var(--accent-color);
}
.contact-info-card h4 { color: var(--white); margin-bottom: 26px; }
.contact-info-item { display: flex; align-items: flex-start; margin-bottom: 28px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .ci-icon {
  width: 46px; height: 46px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-item .ci-text small {
  display: block;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.7rem;
  font-family: var(--font-head);
  margin-bottom: 4px;
}
.contact-info-item .ci-text a,
.contact-info-item .ci-text span { color: #E6EDF2; font-weight: 500; }
.contact-info-item .ci-text a:hover { color: var(--accent-color); }

.contact-form-wrap {
  background-color: var(--white);
  border-radius: 3px;
  padding: 44px;
  border: 1px solid var(--line);
}
.contact-form-wrap .form-control {
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 2px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.contact-form-wrap .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(20,162,219,0.14);
}
.contact-form-wrap label { color: var(--primary-color); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background-color: var(--primary-color); color: #AFC0CB; }
.site-footer .footer-top { padding: 74px 0 44px; }
.site-footer h5 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 14px;
}
.site-footer h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 3px;
  background-color: var(--accent-color);
}
.site-footer .footer-brand-text {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.site-footer .footer-brand-text img { height: 100px; }
.site-footer p { font-size: 0.92rem; color: #AFC0CB; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 13px; }
.site-footer ul li a { color: #AFC0CB; font-size: 0.93rem; }
.site-footer ul li a:hover { color: var(--accent-color); padding-left: 5px; }
.site-footer ul li i { color: var(--accent-color); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 20px 0;
  font-size: 0.85rem;
  color: #93A6B2;
}
.footer-bottom a { color: var(--accent-color); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 46px; height: 46px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(20,162,219,0.35);
  opacity: 0; visibility: hidden;
  transition: all .3s ease;
  z-index: 999;
  font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--accent-dark); transform: translateY(-3px); }

.preloader-fade { animation: fadeInUp .7s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   PRODUCTS DROPDOWN (desktop)
   ========================================================= */
.main-navbar .dropdown-menu {
  border: none;
  border-top: 3px solid var(--accent-color);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 16px 34px rgba(18,34,46,0.16);
  padding: 10px;
  margin-top: 8px;
  min-width: 262px;
}
.main-navbar .dropdown-item {
  color: var(--primary-color);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 11px 16px;
  border-radius: 2px;
}
.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
  background-color: rgba(20,162,219,0.09);
  color: var(--accent-color);
  padding-left: 20px;
}
@media (min-width: 992px) {
  .main-navbar .dropdown-menu { display: none; animation: fadeInUp .2s ease both; }
  .main-navbar .dropdown-menu.show { display: block; }
}

/* =========================================================
   MOBILE NAVBAR
   ========================================================= */
@media (max-width: 991.98px) {
  .top-bar { display: none; }
  .main-navbar .navbar-brand img { height: 38px; }
  .main-navbar .navbar-collapse { flex-basis: 100%; width: 100%; }
  .main-navbar .navbar-collapse.show,
  .main-navbar .navbar-collapse.collapsing {
    padding: 10px 0 14px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  .main-navbar .navbar-nav { flex-direction: column; align-items: flex-start !important; }
  .main-navbar .navbar-nav .nav-link { margin: 0; padding: 11px 0 !important; }
  .main-navbar .navbar-nav .nav-item { width: 100%; }
  .nav-products-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .mobile-cat-toggle {
    background: none; border: none;
    padding: 6px 8px;
    color: var(--primary-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform .25s ease;
    line-height: 1;
  }
  .mobile-cat-toggle.open { transform: rotate(180deg); }
  .main-navbar .navbar-nav .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 0 4px 16px !important;
    margin-top: 0 !important;
    animation: none !important;
    display: none;
  }
  .main-navbar .navbar-nav .dropdown-menu.show { display: block; }
  .main-navbar .navbar-nav .dropdown-item { padding: 9px 12px !important; }
}
