/* Modern UI refresh for CV. J.J. Tiga Putri Agrica
   Loaded after the legacy stylesheet so existing functionality remains intact. */
:root {
  --agrica-green: #2f6b3f;
  --agrica-green-dark: #173e27;
  --agrica-green-soft: #eaf4ec;
  --agrica-accent: #e69a2d;
  --agrica-ink: #173126;
  --agrica-muted: #6c7b72;
  --agrica-surface: #ffffff;
  --agrica-bg: #f5f8f4;
  --agrica-line: #e3eae4;
  --agrica-shadow: 0 16px 38px rgba(24, 62, 39, .10);
  --agrica-radius: 18px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--agrica-bg);
  color: var(--agrica-ink);
  font-family: "Raleway", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--agrica-green); transition: color .2s ease, opacity .2s ease, transform .2s ease; }
a:hover, a:focus { color: var(--agrica-green-dark); text-decoration: none; }
img { max-width: 100%; }
.content-wrapper { background: var(--agrica-bg); }
.container { max-width: 1200px; }

/* Top contact bar */
.agrica-topbar {
  background: var(--agrica-green-dark);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  letter-spacing: .01em;
}
.agrica-topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.agrica-topbar a { color: #fff; }
.agrica-topbar a:hover { opacity: .82; }
.agrica-topbar__left, .agrica-topbar__right { display: flex; align-items: center; gap: 18px; }
.agrica-topbar i { margin-right: 6px; }

/* Header / navigation */
.nav-type-1 { background: var(--agrica-surface); box-shadow: 0 5px 22px rgba(23,49,38,.07); position: relative; z-index: 101; }
.nav-type-1 .navbar { margin-bottom: 0; border: 0; background: transparent; min-height: 0; }
.navigation { background: #fff; }
.agrica-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 0 12px; }
.agrica-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--agrica-green-dark); min-width: 0; }
.agrica-brand:hover { color: var(--agrica-green-dark); }
.agrica-brand img { width: 64px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.agrica-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.agrica-brand__name { font-weight: 800; letter-spacing: .01em; font-size: 21px; }
.agrica-brand__tagline { margin-top: 5px; color: var(--agrica-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.agrica-header-contact { display: flex; align-items: center; gap: 10px; color: var(--agrica-muted); font-size: 13px; }
.agrica-header-contact .icon { width: 38px; height: 38px; border-radius: 50%; background: var(--agrica-green-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--agrica-green); }

.agrica-navline { border-top: 1px solid var(--agrica-line); }
.nav-wrap { min-height: 56px; }
.navbar-nav { float: left; }
.navbar-nav > li { margin-right: 4px; }
.navbar-nav > li > a {
  color: var(--agrica-ink);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  padding: 18px 14px;
  line-height: 20px;
  border-radius: 10px;
}
.navbar-nav > li > a:hover, .navbar-nav > li > a:focus, .navbar-nav > .active > a {
  color: var(--agrica-green);
  background: var(--agrica-green-soft);
}
.navbar-nav .dropdown > i { right: 7px; top: 21px; color: var(--agrica-muted); }
.navbar .dropdown-menu {
  border: 1px solid var(--agrica-line);
  border-radius: 14px;
  box-shadow: var(--agrica-shadow);
  padding: 9px;
  min-width: 230px;
}
.navbar .dropdown-menu > li > a { border-radius: 9px; padding: 9px 12px; color: var(--agrica-ink); font-size: 13px; }
.navbar .dropdown-menu > li > a:hover { background: var(--agrica-green-soft); color: var(--agrica-green); }
.agrica-nav-search { float: right; width: 255px; margin-top: 9px; position: relative; }
.agrica-nav-search input {
  height: 38px; border: 1px solid var(--agrica-line); border-radius: 12px; background: #f8faf8; box-shadow: none; padding: 8px 42px 8px 13px; font-size: 12px;
}
.agrica-nav-search input:focus { border-color: rgba(47,107,63,.5); box-shadow: 0 0 0 3px rgba(47,107,63,.08); background: #fff; }
.agrica-nav-search button { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0; background: transparent; color: var(--agrica-green); border-radius: 9px; }
.navbar-toggle { margin: 10px 0 10px 12px; border: 1px solid var(--agrica-line); border-radius: 10px; padding: 9px; }
.navbar-toggle .icon-bar { background: var(--agrica-green-dark); }

/* Hero */
.agrica-hero-wrap { padding: 24px 0 0; }
.agrica-hero-wrap .entry-slider { border-radius: 24px; overflow: hidden; box-shadow: var(--agrica-shadow); background: var(--agrica-green-dark); }
#flexslider-hero, #flexslider-hero .slides, #flexslider-hero .slides > li { border-radius: 24px; overflow: hidden; }
#flexslider-hero .slides > li { position: relative; min-height: 430px; background: var(--agrica-green-dark); }
#flexslider-hero img.agrica-hero-image {
  width: 100% !important; height: 430px !important; object-fit: cover; display: block; opacity: .82;
}
.agrica-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,46,27,.88) 0%, rgba(15,46,27,.56) 46%, rgba(15,46,27,.13) 78%, rgba(15,46,27,.06) 100%); }
.agrica-hero-content { position: absolute; z-index: 3; left: 7%; top: 50%; transform: translateY(-50%); width: min(620px, 76%); color: #fff; text-align: left; }
.agrica-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; background: rgba(255,255,255,.08); margin-bottom: 14px; }
.agrica-hero-content h1 { color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; margin: 0 0 12px; font-weight: 800; text-transform: none; letter-spacing: -.02em; }
.agrica-hero-content p { color: rgba(255,255,255,.9); font-size: 15px; max-width: 560px; margin: 0 0 22px; }
.agrica-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.agrica-btn, .btn.btn-md, .product-description-wrap .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 800; font-size: 12px; letter-spacing: .02em; transition: .2s ease; text-transform: none;
}
.agrica-btn--primary, .btn.btn-md { background: var(--agrica-accent); color: #fff; border-color: var(--agrica-accent); }
.agrica-btn--primary:hover, .btn.btn-md:hover { background: #cd8221; color: #fff; border-color: #cd8221; transform: translateY(-1px); }
.agrica-btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.08); }
.agrica-btn--ghost:hover { color: #fff; background: rgba(255,255,255,.16); }

/* Home intro / trust items */
.agrica-trust-strip { padding: 24px 0 6px; }
.agrica-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.agrica-trust-item { background: #fff; border: 1px solid var(--agrica-line); border-radius: 15px; padding: 17px 18px; display: flex; align-items: center; gap: 13px; }
.agrica-trust-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: var(--agrica-green-soft); color: var(--agrica-green); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.agrica-trust-item strong { display: block; color: var(--agrica-green-dark); font-size: 13px; margin-bottom: 2px; }
.agrica-trust-item span { display: block; color: var(--agrica-muted); font-size: 11px; line-height: 1.5; }

/* Sections and headings */
.section-wrap { padding-top: 58px; padding-bottom: 58px; }
.heading-row { margin-bottom: 26px; }
.heading.uppercase { text-transform: none; font-size: 29px; font-weight: 800; color: var(--agrica-green-dark); letter-spacing: -.02em; }
.heading.uppercase small { color: inherit; font-size: inherit; font-weight: inherit; }
.agrica-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.agrica-section-head h2 { margin: 0; color: var(--agrica-green-dark); font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.agrica-section-head p { margin: 6px 0 0; color: var(--agrica-muted); font-size: 13px; }
.agrica-section-link { font-weight: 800; font-size: 12px; white-space: nowrap; }

/* Product cards */
.row.row-10 { margin-left: -9px; margin-right: -9px; }
.row.row-10 > [class*="col-"] { padding-left: 9px; padding-right: 9px; }
.product-item {
  background: var(--agrica-surface); border: 1px solid var(--agrica-line); border-radius: var(--agrica-radius); overflow: hidden; box-shadow: 0 8px 24px rgba(24,62,39,.055); margin-bottom: 22px; height: calc(100% - 22px); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-item:hover { transform: translateY(-4px); box-shadow: var(--agrica-shadow); border-color: rgba(47,107,63,.22); }
.product-img { background: linear-gradient(180deg, #fafcf9 0%, #f2f6f1 100%); padding: 18px; overflow: hidden; position: relative; }
.product-img > a:first-child { display: flex; height: 245px; align-items: center; justify-content: center; border-radius: 13px; overflow: hidden; background: #fff; }
.product-img img, .product-img img:first-child { width: 100% !important; height: 245px !important; object-fit: contain !important; margin: 0 !important; }
.product-img .back-img { display: none !important; }
.product-quickview { left: 18px; right: 18px; bottom: 18px; width: auto; border-radius: 11px; background: rgba(23,62,39,.94); font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 12px 10px; }
.product-quickview:hover { background: var(--agrica-green); }
.product-details { padding: 16px 18px 19px; min-height: 118px; }
.product-details h3 { margin: 0 0 9px; line-height: 1.4; }
.product-title { color: var(--agrica-ink); font-size: 14px; font-weight: 800; }
.product-title:hover { color: var(--agrica-green); }
.price { display: block; }
.price ins { text-decoration: none; }
.price .ammount, .price .text-danger { color: var(--agrica-green) !important; font-size: 16px; font-weight: 800; }
.agrica-product-tag { display: inline-flex; background: var(--agrica-green-soft); color: var(--agrica-green); font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 999px; margin-bottom: 9px; }

/* Search result */
.agrica-search-summary { background: #fff; border: 1px solid var(--agrica-line); border-radius: var(--agrica-radius); padding: 22px; margin: 28px 0 0; }
.agrica-search-summary h1 { font-size: 24px; margin: 0 0 5px; color: var(--agrica-green-dark); font-weight: 800; }
.agrica-search-summary p { margin: 0; color: var(--agrica-muted); }
.agrica-empty { background: #fff; border: 1px dashed #cbd9ce; border-radius: var(--agrica-radius); padding: 48px 24px; text-align: center; color: var(--agrica-muted); }
.agrica-empty i { display: block; color: var(--agrica-green); font-size: 34px; margin-bottom: 12px; }

/* Breadcrumbs */
.breadcrumb { background: transparent; border: 0; padding: 22px 0 0; margin: 0; font-size: 11px; }
.breadcrumb > li + li:before { color: #a5b1aa; }
.breadcrumb a { color: var(--agrica-muted); }
.breadcrumb > .active { color: var(--agrica-green); font-weight: 700; }

/* Catalogue sidebar */
.catalogue { padding-top: 34px; }
.sidebar .widget { background: #fff; border: 1px solid var(--agrica-line); border-radius: var(--agrica-radius); padding: 20px; margin-bottom: 18px; box-shadow: 0 7px 22px rgba(24,62,39,.04); }
.sidebar .widget-title { color: var(--agrica-green-dark); text-transform: none; font-size: 16px; font-weight: 800; border-bottom: 1px solid var(--agrica-line); padding-bottom: 12px; margin-bottom: 10px; }
.categories .list-no-dividers li a { display: flex; padding: 9px 10px; border-radius: 9px; color: var(--agrica-muted); }
.categories .list-no-dividers li a:hover, .categories .active-cat > a { background: var(--agrica-green-soft); color: var(--agrica-green); font-weight: 800; }
.pagination-wrap { display: flex; justify-content: center; margin-top: 12px; }
.pagination { float: none !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination a, .pagination .page-numbers { width: 38px; height: 38px; border: 1px solid var(--agrica-line); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--agrica-ink); background: #fff; margin: 0; }
.pagination a:hover, .pagination .current { background: var(--agrica-green); color: #fff; border-color: var(--agrica-green); }

/* Product detail */
.single-product { padding-top: 34px; }
#gallery-main { background: #fff; border: 1px solid var(--agrica-line); border-radius: 22px; padding: 24px; box-shadow: 0 9px 28px rgba(24,62,39,.06); }
#gallery-main .gallery-cell { width: 100%; }
#gallery-main img { max-height: 480px; width: 100%; object-fit: contain; border-radius: 14px; }
.product-description-wrap { background: #fff; border: 1px solid var(--agrica-line); border-radius: 22px; padding: 28px; box-shadow: 0 9px 28px rgba(24,62,39,.06); }
.product-description-wrap h1.product-title { font-size: 28px; color: var(--agrica-green-dark); line-height: 1.25; margin-bottom: 12px; }
.product-description-wrap > .price { margin: 14px 0 18px; }
.product-description-wrap > .price .ammount { font-size: 24px; }
.product_meta .table { margin: 16px 0 24px; border: 1px solid var(--agrica-line); border-radius: 12px; overflow: hidden; }
.product_meta .table td { border-top-color: var(--agrica-line); padding: 11px 9px; vertical-align: middle; }
.tabs-bb .nav-tabs { border-bottom: 1px solid var(--agrica-line); display: flex; gap: 4px; }
.tabs-bb .nav-tabs > li > a { border: 0 !important; border-radius: 10px 10px 0 0; padding: 10px 12px; font-weight: 700; font-size: 11px; color: var(--agrica-muted); }
.tabs-bb .nav-tabs > li.active > a { color: var(--agrica-green); background: var(--agrica-green-soft); }
.tab-content { padding-top: 18px; }
.form-control, textarea { border: 1px solid #d9e2db; border-radius: 10px; box-shadow: none; min-height: 42px; }
.form-control:focus, textarea:focus { border-color: rgba(47,107,63,.55); box-shadow: 0 0 0 3px rgba(47,107,63,.08); }
textarea { width: 100%; padding: 10px 12px; }
.review-body { background: #f8faf8; border: 1px solid var(--agrica-line); border-radius: 12px; padding: 14px; }
.reviews-list > li { margin-bottom: 10px; }
.reviews-list hr, .reviews-list br + hr { display: none; }

/* Content pages */
.about-us, .contact, .faq { padding-top: 34px; }
.about-us .row, .contact .row, .faq .row { background: #fff; border: 1px solid var(--agrica-line); border-radius: 22px; padding: 30px; box-shadow: 0 9px 28px rgba(24,62,39,.055); }
.about-intro, .contact h4.uppercase, .faq h2.uppercase { text-transform: none; color: var(--agrica-green-dark); font-weight: 800; letter-spacing: -.01em; }
.statistic { background: var(--agrica-green-soft); border-radius: 18px; padding: 25px 15px; text-align: center; }
.statistic span { color: var(--agrica-green); font-weight: 800; }
.contact iframe { border-radius: 16px; min-height: 470px; }
.contact-info { background: #f8faf8; border-radius: 16px; padding: 22px; }
.toggle .acc-panel { border: 1px solid var(--agrica-line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.toggle .acc-panel a { color: var(--agrica-ink); font-weight: 800; }
.toggle .panel-content { background: #f8faf8; border-radius: 12px; margin: -2px 0 12px; padding: 15px; }
.service-item-box { border: 1px solid var(--agrica-line); border-radius: 16px; box-shadow: none; }

/* Footer */
.footer.footer-type-1 { background: var(--agrica-green-dark) !important; margin-top: 60px; }
.footer-widgets { padding-top: 52px; padding-bottom: 38px; border-color: rgba(255,255,255,.1); }
.footer-widgets .widget-title { color: #fff; font-size: 13px; text-transform: none; font-weight: 800; letter-spacing: .01em; }
.footer-widgets p, .footer-address, .footer-get-in-touch p, .footer-get-in-touch address > span { color: rgba(255,255,255,.72); font-size: 12px; }
.footer-widgets a { color: rgba(255,255,255,.8) !important; }
.footer-widgets a:hover { color: #fff !important; }
.footer .social-icons a { background: rgba(255,255,255,.1); color: #fff !important; }
.footer .social-icons a:hover { background: var(--agrica-green); }
.bottom-footer { background: #102b1c !important; border: 0; }
.bottom-footer .copyright { color: rgba(255,255,255,.65); font-size: 11px; }
#back-to-top a { background: rgba(255,255,255,.10); color: #fff; border-radius: 10px; }

/* Alerts */
.alert { border: 0; border-radius: 12px; box-shadow: 0 6px 18px rgba(24,62,39,.06); }

@media (max-width: 991px) {
  .agrica-topbar__right { display: none; }
  .agrica-brand-row { padding: 12px 0; }
  .agrica-header-contact { display: none; }
  .agrica-brand__name { font-size: 17px; }
  .agrica-brand img { width: 54px; height: 46px; }
  .agrica-navline { min-height: 56px; }
  .navbar-header { float: none; }
  .navbar-toggle { display: block; float: right; }
  .navbar-collapse.collapse { display: none !important; }
  .navbar-collapse.collapse.in { display: block !important; }
  .navbar-nav { float: none !important; margin: 8px 0 12px; }
  .navbar-nav > li { float: none; margin: 2px 0; }
  .navbar-nav > li > a { padding: 11px 12px; }
  .agrica-nav-search { float: none; width: 100%; margin: 8px 0 15px; }
  .navbar .dropdown-menu { position: static; float: none; box-shadow: none; border: 0; background: #f8faf8; width: 100%; margin-top: 4px; }
  .agrica-trust-grid { grid-template-columns: 1fr; }
  .catalogue-col.right { float: none; }
  .left-sidebar { margin-top: 22px; }
  .product-description-wrap { margin-top: 18px; }
}

@media (max-width: 767px) {
  .agrica-topbar .container { min-height: 32px; }
  .agrica-topbar__left span:not(:first-child) { display: none; }
  .agrica-brand__tagline { display: none; }
  .agrica-brand__name { font-size: 15px; }
  .agrica-brand img { width: 48px; height: 40px; }
  .agrica-hero-wrap { padding-top: 14px; }
  .agrica-hero-wrap .entry-slider, #flexslider-hero, #flexslider-hero .slides, #flexslider-hero .slides > li { border-radius: 16px; }
  #flexslider-hero .slides > li { min-height: 360px; }
  #flexslider-hero img.agrica-hero-image { height: 360px !important; }
  .agrica-hero-overlay { background: linear-gradient(90deg, rgba(15,46,27,.90), rgba(15,46,27,.48)); }
  .agrica-hero-content { left: 8%; width: 84%; }
  .agrica-hero-content h1 { font-size: 29px; }
  .agrica-hero-content p { font-size: 13px; line-height: 1.6; }
  .section-wrap { padding-top: 40px; padding-bottom: 40px; }
  .agrica-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .agrica-section-head h2, .heading.uppercase { font-size: 23px; }
  .product-img > a:first-child { height: 230px; }
  .product-img img, .product-img img:first-child { height: 230px !important; }
  .product-description-wrap { padding: 20px; }
  .product-description-wrap h1.product-title { font-size: 23px; }
  .about-us .row, .contact .row, .faq .row { padding: 18px; border-radius: 16px; }
  .contact iframe { min-height: 320px; height: 320px; }
  .footer-widgets { padding-top: 38px; }
}
