/* =============================================
   FARPIC AGROINDUSTRIAL - Custom Theme Override
   Colors: Blue #1B56A5 | Dark Gray #3A3F45
   ============================================= */

:root {
  --farpic-blue: #1B56A5;
  --farpic-blue-dark: #144089;
  --farpic-blue-light: #2e6ec4;
  --farpic-gray: #3A3F45;
  --farpic-gray-light: #5a6370;
  --farpic-light-bg: #f5f7fa;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: #fff;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  color: #555;
}

a {
  color: var(--farpic-blue);
  transition: .3s all ease;
}
a:hover, a:focus {
  text-decoration: none;
  color: var(--farpic-blue-dark);
  outline: none !important;
}

/* ── Navbar ── */
.ftco-navbar-light {
  background: var(--farpic-gray) !important;
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: 0;
}
@media (max-width: 991.98px) {
  .ftco-navbar-light {
    background: #2a2e33 !important;
    position: sticky;
    top: 0;
    padding: 10px 15px;
  }
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  font-size: 14px;
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
  padding-left: 24px;
  padding-right: 24px;
  font-weight: 500;
  color: #fff;
  position: relative;
  opacity: 1 !important;
  letter-spacing: .5px;
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: 0;
  left: 0;
  background-color: var(--farpic-blue);
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.2s ease-in-out 0s;
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
  color: #fff;
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover:before {
  visibility: visible;
  transform: scaleX(1);
}
.ftco-navbar-light .navbar-nav > .nav-item.active > a {
  color: #fff;
}
.ftco-navbar-light .navbar-nav > .nav-item.active > a:before {
  visibility: visible;
  background-color: var(--farpic-blue);
  transform: scaleX(1);
}

/* Logo area */
.navbar-brand {
  color: #000;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 30px;
}
.navbar-brand span { color: var(--farpic-blue); }

.logo-farpic {
  height: 82px;
  width: auto;
  mix-blend-mode: multiply;
}

.top-bar {
  background: #f0f2f5;
  border-bottom: 1px solid #e0e4ea;
}
.top-bar .social-media p a {
  border: 1px solid #ccc;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.top-bar .social-media p a span { color: #555; }
.top-bar .social-media p a:hover {
  background: var(--farpic-blue);
  border-color: var(--farpic-blue);
}
.top-bar .social-media p a:hover span { color: #fff; }

/* ── Hero Slider ── */
.hero-wrap .overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  content: '';
  opacity: .55;
  background: linear-gradient(135deg, #0a1628 0%, #1B56A5 100%);
}
.hero-wrap .slider-text h1 {
  font-size: 70px;
  color: #fff;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}
@media (max-width: 991.98px) {
  .hero-wrap .slider-text h1 { font-size: 38px; }
}
.hero-wrap .slider-text h2,
.owl-carousel.home-slider .slider-item .slider-text h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  color: #90c4ff !important;
}
.hero-wrap .slider-text .subheading {
  font-size: 15px;
  color: #90c4ff;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
}
.btn-hero {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 36px;
  background: var(--farpic-blue);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .5px;
  border: 2px solid var(--farpic-blue);
  transition: .3s;
}
.btn-hero:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-hero-outline {
  display: inline-block;
  margin-top: 20px;
  margin-left: 12px;
  padding: 14px 36px;
  background: transparent;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .5px;
  border: 2px solid rgba(255,255,255,.6);
  transition: .3s;
}
.btn-hero-outline:hover {
  background: #fff;
  color: var(--farpic-blue);
  border-color: #fff;
}

/* ── Services section ── */
.services .icon {
  width: 90px;
  height: 90px;
  background: var(--farpic-blue);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  z-index: 0;
  box-shadow: 0px 10px 30px -4px rgba(27,86,165,.35);
}
.services .icon:before {
  position: absolute;
  top: 20%; left: 50%; bottom: 0; right: 0;
  content: '';
  background: rgba(27,86,165,.25);
  border-radius: 50%;
  z-index: -1;
  width: 40px; height: 40px;
}
.services .icon span {
  font-size: 60px;
  color: #fff;
}
.services .media-body h3 {
  font-weight: 700;
  font-size: 18px;
  color: var(--farpic-gray);
}

.services-2 .icon span { color: var(--farpic-gray); }
.services-2:nth-child(1) { background: rgba(0,0,0,.04); }
.services-2:nth-child(2) {
  background: var(--farpic-blue);
  color: #fff;
}
.services-2:nth-child(2) h3 { color: #fff; }
.services-2:nth-child(2) .icon:after { border-color: rgba(255,255,255,.4) !important; }
.services-2:nth-child(2) .icon:before { background: rgba(255,255,255,.2) !important; }
.services-2:nth-child(2) .icon span { color: #fff !important; }
.services-2:nth-child(3) { background: var(--farpic-gray); }
.services-2:nth-child(3) .icon:before { background: rgba(255,255,255,.1) !important; }
.services-2:nth-child(3) .icon span { color: #90c4ff !important; }
.services-2:nth-child(3) .text { color: rgba(255,255,255,.8); }
.services-2:nth-child(3) .text h3 { color: #fff; }
.services-2 .icon:before { background: rgba(27,86,165,.2); }

/* ── About tabs ── */
.tabulation-2 .nav-pills .nav-item .nav-link {
  background: #fff;
  border-radius: 4px;
  color: #333;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.1);
}
.tabulation-2 .nav-pills .nav-item .nav-link.active {
  color: #fff;
  background: var(--farpic-blue);
  border-color: var(--farpic-blue);
}

/* ── Counter ── */
#section-counter:after {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  content: '';
  z-index: -1;
  opacity: 1;
  width: 50%;
  background: var(--farpic-blue);
}

/* ── Work/Projects ── */
.work:after {
  background: var(--farpic-gray);
  opacity: 0;
}
.work:hover:after { opacity: .75; }
.work .icon { background: var(--farpic-blue); }
.work h2 a:hover { color: #90c4ff; }

/* ── bg-primary / accent ── */
.bg-primary { background: var(--farpic-blue) !important; }
.bg-secondary { background: var(--farpic-blue) !important; }

.btn.btn-primary {
  background: var(--farpic-blue) !important;
  border: 1px solid var(--farpic-blue) !important;
  color: #fff !important;
}
.btn.btn-primary:hover {
  background: var(--farpic-blue-dark) !important;
  border-color: var(--farpic-blue-dark) !important;
}

/* ── Heading sections ── */
.heading-section .subheading {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--farpic-blue);
}
.heading-section h2 {
  font-weight: 700;
  color: var(--farpic-gray);
  font-size: 32px;
}
.heading-section-white .subheading { color: #90c4ff; }
.heading-section-white h2 { color: #fff; }

/* ── Icon video button ── */
.icon-video { background: var(--farpic-blue); }

/* ── Testimony ── */
.testimony-section { background: var(--farpic-gray) !important; }

/* ── Footer ── */
.footer {
  background: #1e2228;
  color: rgba(255,255,255,.6);
}
.footer .footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.footer ul li a {
  color: rgba(255,255,255,.55);
  transition: .3s;
}
.footer ul li a:hover { color: var(--farpic-blue-light); }
.footer .contact-form .form-control {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  border-radius: 4px;
}
.footer .contact-form .form-control::-webkit-input-placeholder { color: rgba(255,255,255,.35); }
.footer .contact-form .submit {
  background: var(--farpic-blue);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: .3s;
}
.footer .contact-form .submit:hover { background: var(--farpic-blue-dark); }
.footer .aside-stretch-right {
  background: #16191d;
}
.footer .copyright { color: rgba(255,255,255,.4); font-size: 13px; }
.footer .copyright a { color: var(--farpic-blue-light); }
.ftco-footer-social li a {
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  font-size: 16px;
  transition: .3s;
}
.ftco-footer-social li a:hover {
  background: var(--farpic-blue);
  border-color: var(--farpic-blue);
  color: #fff;
}

/* ── Newsletter ── */
.subscribe-form .form-control {
  border-radius: 4px 0 0 4px;
  border: none;
  height: 50px;
}
.subscribe-form .submit {
  background: var(--farpic-gray);
  color: #fff;
  border: none;
  padding: 0 24px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: .3s;
}
.subscribe-form .submit:hover { background: #2a2e33; }

/* ── Page hero (inner pages) ── */
.hero-wrap-2 {
  background-color: var(--farpic-gray);
}
.hero-wrap-2 .overlay {
  background: linear-gradient(135deg, #0a1628 0%, var(--farpic-blue) 100%);
  opacity: .7;
}

/* ── Search form in nav ── */
.searchform {
  border: 1px solid rgba(255,255,255,.15);
}
.searchform .search {
  background: var(--farpic-blue);
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ── Blog cards ── */
.blog-entry .heading a { color: var(--farpic-gray); }
.blog-entry .heading a:hover { color: var(--farpic-blue); }
.meta a { color: var(--farpic-blue); }

/* ── Loader ── */
#ftco-loader .path { stroke: var(--farpic-blue); }

/* ── Services detail page ── */
.service-card {
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 32px 28px;
  margin-bottom: 24px;
  background: #fff;
  transition: .3s;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(27,86,165,.15);
  border-color: var(--farpic-blue);
  transform: translateY(-3px);
}
.service-card .service-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--farpic-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card .service-icon span {
  font-size: 36px;
  color: #fff;
}
.service-card h4 {
  font-weight: 700;
  color: var(--farpic-gray);
  font-size: 18px;
  margin-bottom: 10px;
}
.service-card p { color: #666; font-size: 15px; }

/* ── Contact page ── */
.contact-info-box {
  border-radius: 8px;
  background: var(--farpic-blue);
  color: #fff;
  padding: 32px;
  height: 100%;
}
.contact-info-box h3 { color: #fff; font-weight: 700; }
.contact-info-box .info-item {
  display: flex; align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-box .info-item .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}
.contact-info-box .info-item .icon span { color: #fff; font-size: 20px; }
.contact-info-box .info-item p { margin: 0; color: rgba(255,255,255,.85); }
.contact-info-box .info-item strong { color: #fff; display: block; }

.contact-form-box {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.contact-form-box .form-control {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 15px;
  color: #333;
}
.contact-form-box .form-control:focus {
  border-color: var(--farpic-blue);
  box-shadow: 0 0 0 3px rgba(27,86,165,.12);
}
.contact-form-box .btn-submit {
  background: var(--farpic-blue);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: .3s;
  width: 100%;
}
.contact-form-box .btn-submit:hover { background: var(--farpic-blue-dark); }

/* ── Section title divider ── */
.section-title-line {
  width: 60px;
  height: 4px;
  background: var(--farpic-blue);
  border-radius: 2px;
  margin: 12px auto 24px;
}
.section-title-line.left { margin-left: 0; }

/* ── Breadcrumb inner pages ── */
.breadcrumbs span a { color: rgba(255,255,255,.7); }
.breadcrumbs span a:hover { color: #90c4ff; }

/* ── Responsive tweaks ── */
@media (max-width: 767px) {
  .btn-hero, .btn-hero-outline {
    display: block;
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
}
