/* =========================================================
   PARNADI AGROTECH — Advanced polish, motion & responsiveness
   Layered on top of main.css / our_exports.css / gallery.css
   ========================================================= */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --brand-navy: #0a2540;
  --brand-blue: #0056b3;
  --brand-cyan: #00b4d8;
  --brand-orange: #ff6b35;
  --surface-glow: radial-gradient(1200px 600px at 10% -10%, rgba(0, 86, 179, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 180, 216, 0.07), transparent 50%);
  --glass: rgba(255, 255, 255, 0.78);
  --ring: 0 0 0 3px rgba(0, 86, 179, 0.18);
}

/* ---------- Base refinements ---------- */
html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 86, 179, 0.18);
  color: var(--brand-navy);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #eef2f7;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 999px;
  border: 2px solid #eef2f7;
}

img {
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.portfolio-filters li:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* ---------- Page progress ---------- */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 10050;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan), var(--brand-orange));
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.45);
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 180, 216, 0.18), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(0, 86, 179, 0.22), transparent 45%),
    #06182b;
  transition: opacity 0.55s var(--ease-out-expo), visibility 0.55s;
}

/* Disable legacy spinner from main.css (conflicts with branded loader) */
#preloader:before {
  display: none !important;
  content: none !important;
  animation: none !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

#preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader .preloader-logo,
#preloader .preloader-brand,
#preloader .preloader-bar,
#preloader .preloader-progress-label {
  position: relative;
  z-index: 2;
}

#preloader .preloader-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: preloaderPulse 1.4s ease-in-out infinite;
}

#preloader .preloader-brand {
  color: #fff;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

#preloader .preloader-bar {
  width: min(220px, 55vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

#preloader .preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-cyan), #fff, var(--brand-orange));
  animation: preloaderShine 1.1s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes preloaderShine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* ---------- Header / brand ---------- */
.header {
  background: var(--glass) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.header .logo {
  gap: 0.65rem;
  text-decoration: none;
}

.header .logo-img,
.footer .logo-img {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 6px 16px rgba(0, 86, 179, 0.22);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.35s ease;
}

.header .logo:hover .logo-img {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 86, 179, 0.32);
}

.header .header-brand,
.header .sitename.header-brand {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 6px !important;
  font-size: clamp(0.78rem, 1.5vw, 1rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  max-width: min(420px, 48vw);
}

.header .brand-parnadi {
  color: var(--brand-blue);
  letter-spacing: 0.04em;
}

.header .brand-agrotech {
  color: var(--brand-navy);
  letter-spacing: 0.02em;
}

.header .brand-exim {
  color: var(--brand-cyan);
  font-weight: 500;
  font-size: 0.9em;
}

.navmenu .nav-link {
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navmenu .nav-link:not(.nav-link-contact)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.35s var(--ease-out-expo);
}

.navmenu .nav-link:not(.nav-link-contact):hover::after,
.navmenu .nav-link:not(.nav-link-contact).active::after {
  width: 55%;
}

.nav-link-contact {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease !important;
}

.nav-link-contact:hover {
  transform: translateY(-3px) scale(1.02) !important;
}

/* ---------- Hero (compact banner) ---------- */
#hero.hero,
.hero {
  isolation: isolate;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.index-page {
  padding-top: var(--parnadi-header-height, 75px) !important;
}

body.index-page .header,
body.index-page #header.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
}

.premium-slider,
#hero:not(.hero-cinematic) #heroSlider {
  height: min(34vw, 360px) !important;
  max-height: 360px !important;
  min-height: 200px !important;
  overflow: hidden !important;
}

#hero:not(.hero-cinematic) #heroSlider .slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  z-index: 0;
  pointer-events: none;
  background: #0a2540;
}

#hero:not(.hero-cinematic) #heroSlider .slide {
  background-size: contain !important;
  background-position: center center !important;
  background-color: #0a2540;
  transform: none !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transition: opacity 0.85s var(--ease-out-expo), visibility 0.85s;
}

/* Keep admin image-only banners clean; light vignette only at edges */
#heroSlider .slide-overlay {
  background: linear-gradient(
    180deg,
    rgba(6, 24, 43, 0.18) 0%,
    rgba(6, 24, 43, 0.05) 45%,
    rgba(6, 24, 43, 0.28) 100%
  );
  z-index: 1;
}

#heroSlider .slide.image-only .slide-overlay {
  background: linear-gradient(
    180deg,
    rgba(6, 24, 43, 0.12) 0%,
    transparent 40%,
    rgba(6, 24, 43, 0.22) 100%
  ) !important;
}

/* Keep hero arrows over the slider image and fully clickable */
#hero.hero {
  position: relative;
}

#hero .premium-controls {
  position: static;
  z-index: 5;
}

#hero .navigation-arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(34vw, 360px);
  max-height: 360px;
  margin: 0;
  padding: 0 14px;
  transform: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

#hero .navigation-arrows .arrow {
  pointer-events: auto;
  z-index: 21;
  width: 44px;
  height: 44px;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.35s var(--ease-spring), background 0.3s ease, box-shadow 0.3s ease;
}

#hero .navigation-arrows .arrow:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.premium-controls .arrow {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.35s var(--ease-spring), background 0.3s ease, box-shadow 0.3s ease;
}

.premium-controls .arrow:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.scroll-indicator {
  cursor: pointer;
  animation: scrollFloat 2.2s ease-in-out infinite;
}

@keyframes scrollFloat {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- Sections (spacing owned by layout-system.css) ---------- */
.section {
  overflow-x: clip;
  overflow-y: visible;
  height: auto;
  min-height: 0;
}

/* Hero / landing banner keeps its own cinematic height */
#hero.hero,
#hero.hero-cinematic,
.hero.section {
  padding: 0 !important;
  height: auto;
  min-height: 0;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface-glow);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.section > .container,
.section > .carousel-viewport,
.section > .container-fluid {
  position: relative;
  z-index: 1;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  letter-spacing: -0.02em;
  padding-bottom: 0.75rem;
}

.section-title h2::after {
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan), var(--brand-orange));
  background-size: 200% 100%;
  animation: titleShimmer 4s linear infinite;
}

.section-title p {
  max-width: 720px;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.7;
}

@keyframes titleShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---------- About ---------- */
.about .about-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 25px 60px rgba(10, 37, 64, 0.18);
}

.about .about-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 2;
}

.about .about-media::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 28px;
  border: 3px solid rgba(0, 180, 216, 0.45);
  top: -14px;
  left: -14px;
  z-index: 0;
  animation: frameDrift 6s ease-in-out infinite;
}

.about .about-media img {
  display: block;
  width: 100%;
  border-radius: 24px;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease-out-expo);
  border: none !important;
  box-shadow: none !important;
}

.about .about-media:hover img {
  transform: scale(1.08);
}

.about-content ul li {
  position: relative;
  overflow: hidden;
}

.about-content ul li::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(0, 180, 216, 0.08), transparent);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.about-content ul li:hover::before {
  transform: translateX(120%);
}

.about-content ul li i {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(0, 180, 216, 0.16));
  font-size: 1.45rem !important;
  margin-top: 0 !important;
}

@keyframes frameDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, 8px); }
}

/* ---------- Services ---------- */
.service-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 86, 179, 0.08) !important;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%) !important;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s ease, border-color 0.35s ease !important;
}

.service-item::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  right: -50px;
  top: -50px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.16), transparent 70%);
  transition: transform 0.5s ease;
}

.service-item:hover {
  transform: translateY(-12px) !important;
  border-color: rgba(0, 86, 179, 0.22) !important;
  box-shadow: 0 22px 50px rgba(10, 37, 64, 0.14) !important;
}

.service-item:hover::after {
  transform: scale(1.35);
}

.service-item .icon {
  display: inline-flex !important;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(0, 180, 216, 0.14));
  transition: transform 0.45s var(--ease-spring);
}

.service-item:hover .icon {
  transform: rotate(-8deg) scale(1.08);
}

.service-item .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-item .read-more i {
  transition: transform 0.3s ease;
}

.service-item:hover .read-more i {
  transform: translateX(5px);
}

/* ---------- Portfolio ---------- */
.portfolio-filters li {
  border-radius: 999px !important;
  padding: 0.65rem 1.35rem !important;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.04);
}

.portfolio-card,
.portfolio-content {
  border-radius: 14px !important;
  overflow: hidden;
}

.portfolio-content img {
  transition: transform 0.7s var(--ease-out-expo);
}

.portfolio-content:hover img {
  transform: scale(1.08);
}

.portfolio-info {
  backdrop-filter: blur(6px);
}

/* ---------- Exports / Gallery carousels ---------- */
.success-exports,
.gallery {
  position: relative;
}

.success-exports .section-title h2::after,
.gallery .section-title h2::after {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)) !important;
}

.carousel-viewport {
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.se_container .card,
.gallery .card,
.success-exports .card,
.gallery-card,
.export-card {
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s ease !important;
}

.se_container .card:hover,
.gallery .card:hover,
.success-exports .card:hover,
.gallery-card:hover,
.export-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 22px 45px rgba(10, 37, 64, 0.16) !important;
}

/* ---------- Promoters ---------- */
#team .promoters-showcase {
  max-width: 560px !important;
  padding: 2rem !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 20px 50px rgba(10, 37, 64, 0.1) !important;
  animation: softFloat 5.5s ease-in-out infinite;
}

#team .promoter-item {
  width: min(180px, 42vw) !important;
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.director-popup-backdrop.is-open,
.director-popup-backdrop[aria-hidden="false"] {
  animation: fadeBackdrop 0.35s ease;
}

@keyframes fadeBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-radius: 16px !important;
  border: 1px solid rgba(0, 86, 179, 0.08) !important;
  background: #fff;
  margin-bottom: 1rem !important;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.faq-item:hover {
  border-color: rgba(0, 86, 179, 0.18) !important;
  transform: translateY(-2px);
}

.faq-item.faq-active {
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.1);
  border-color: rgba(0, 86, 179, 0.28) !important;
}

.faq-item h3 {
  cursor: pointer;
  padding-right: 2.5rem;
  transition: color 0.3s ease;
}

.faq-item.faq-active h3 {
  color: var(--brand-blue);
}

.faq-toggle {
  transition: transform 0.35s var(--ease-spring), color 0.3s ease !important;
}

.faq-item.faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--brand-blue);
}

.faq-content {
  transition: max-height 0.45s var(--ease-out-expo), opacity 0.35s ease;
}

/* ---------- Contact (compact premium) ---------- */
#contact .section-title {
  margin-bottom: 1.25rem !important;
  padding-bottom: 0 !important;
}

#contact .section-title p {
  margin-bottom: 0;
}

#contact .row.gy-4 {
  --bs-gutter-y: 1rem;
}

.contact .info-wrap {
  border-radius: 18px;
  background: linear-gradient(160deg, #0a2540 0%, #0d3b66 55%, #0a6aa0 100%);
  color: #fff;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.22);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact .info-wrap::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  right: -50px;
  bottom: -50px;
}

.contact .info-item {
  position: relative;
  z-index: 1;
  padding: 0.7rem 0 !important;
  margin-bottom: 0.35rem !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  align-items: flex-start;
}

.contact .info-item:hover {
  transform: translateX(4px) !important;
  box-shadow: none !important;
}

.contact .info-item:last-child {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0.15rem !important;
}

.contact .info-item i {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-size: 1.05rem !important;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.contact .info-item h3 {
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.contact .info-item p {
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.php-email-form {
  background: #fff;
  border: 1px solid rgba(0, 86, 179, 0.08);
  border-radius: 18px;
  padding: 1.15rem 1.25rem 1.2rem;
  box-shadow: 0 14px 32px rgba(10, 37, 64, 0.07);
}

.php-email-form .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.php-email-form .form-control {
  border-radius: 10px;
  border: 1px solid #dbe3ee;
  padding: 0.55rem 0.8rem;
  min-height: 42px;
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 0 !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  background: #f8fafc;
}

.php-email-form textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.php-email-form .form-control:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.14);
  background: #fff;
  transform: none;
}

.php-email-form .captcha-row {
  margin-top: 0.15rem;
}

.php-email-form .captcha-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.php-email-form .contact-submit-wrap {
  margin-top: 0.35rem;
}

.php-email-form button[type="submit"] {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(0, 86, 179, 0.24);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  width: auto;
  min-width: 160px;
}

.php-email-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 86, 179, 0.32);
}

.captcha-wrap img {
  border-radius: 8px;
  border: 1px solid #dbe3ee !important;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.06);
  height: 42px;
  width: auto;
}

.captcha-reload {
  color: var(--brand-orange) !important;
  font-size: 1.05rem !important;
  display: inline-flex;
  margin-top: 0;
  transition: transform 0.35s var(--ease-spring);
}

.captcha-reload:hover {
  transform: rotate(-180deg);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 180, 216, 0.12), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(255, 107, 53, 0.1), transparent 35%);
  pointer-events: none;
}

.footer a {
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
  transform: translateX(4px);
  color: var(--brand-cyan) !important;
}

.footer-credit-link {
  color: #9fdd9f !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.footer-credit-link:hover {
  color: #c8f2c8 !important;
  letter-spacing: 0.02em;
}

/* ---------- Scroll top ---------- */
.scroll-top {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)) !important;
  box-shadow: 0 12px 28px rgba(0, 86, 179, 0.35) !important;
  transition: transform 0.35s var(--ease-spring), opacity 0.3s ease !important;
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.05);
}

.scroll-top.active {
  animation: scrollTopIn 0.45s var(--ease-spring);
}

@keyframes scrollTopIn {
  from { transform: translateY(16px) scale(0.8); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ---------- Service details page ---------- */
.service-details-page .service-details {
  border-radius: 24px;
  overflow: hidden;
}

.service-details-page .services-img {
  border-radius: 20px;
  transition: transform 0.7s var(--ease-out-expo), box-shadow 0.45s ease;
}

.service-details-page .services-img:hover {
  transform: scale(1.03);
}

/* ---------- Ripple ---------- */
.ripple-host {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.65s linear;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------- Responsive matrix ---------- */
@media (max-width: 1199.98px) {
  .header .header-brand {
    max-width: 36vw;
  }

  .premium-slider,
  #heroSlider {
    height: min(38vw, 320px) !important;
    max-height: 320px !important;
  }

  #hero .navigation-arrows {
    height: min(38vw, 320px);
    max-height: 320px;
  }
}

@media (max-width: 991.98px) {
  .about .about-media {
    margin-bottom: 1.5rem;
  }

  .about-content h3 {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
  }

  .contact .info-wrap {
    margin-bottom: 0.5rem;
  }

  #team .promoters-showcase {
    animation: none;
  }

  #team .promoters-row {
    justify-content: center !important;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: var(--parnadi-header-height, 64px);
  }

  .header {
    min-height: 64px;
    padding: 10px 0;
  }

  .header .logo-img,
  .footer .logo-img {
    width: 42px !important;
    height: 42px !important;
  }

  .header .header-brand {
    max-width: calc(100vw - 120px);
    font-size: 0.78rem !important;
    gap: 4px !important;
  }

  .premium-slider,
  #heroSlider {
    height: min(42vw, 260px) !important;
    max-height: 260px !important;
    min-height: 180px !important;
  }

  #hero .navigation-arrows {
    height: min(42vw, 260px);
    max-height: 260px;
  }

  .section {
    scroll-margin-top: 78px;
  }

  .service-item {
    padding: 1.5rem !important;
  }

  .php-email-form {
    padding: 1.25rem;
  }

  .carousel-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  #team .promoters-showcase {
    max-width: 100% !important;
    padding: 1.25rem !important;
  }

  #team .promoter-item {
    width: min(150px, 44vw) !important;
  }

  #team .promoter-passport {
    width: 118px !important;
    height: 150px !important;
  }

  .footer-top .row > [class*="col-"] {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .header .brand-exim {
    display: none;
  }

  .premium-slider,
  #heroSlider {
    height: min(48vw, 220px) !important;
    max-height: 220px !important;
    min-height: 160px !important;
  }

  .premium-controls .navigation-arrows {
    display: none;
  }

  .about-content ul li {
    padding: 1.1rem !important;
  }

  .about-content ul li i {
    width: 44px;
    height: 44px;
    margin-right: 0.9rem !important;
  }

  .portfolio-filters {
    gap: 0.55rem !important;
  }

  .portfolio-filters li {
    padding: 0.55rem 1rem !important;
    font-size: 0.82rem !important;
  }

  .php-email-form button[type="submit"] {
    width: 100%;
  }

  .scroll-top {
    right: 14px !important;
    bottom: 14px !important;
  }
}

@media (max-width: 380px) {
  .header .brand-agrotech {
    font-size: 0.9em;
  }

  #team .promoters-row {
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }

  #team .promoter-item {
    width: 100% !important;
    max-width: 220px;
  }
}

/* Large desktops */
@media (min-width: 1400px) {
  .premium-slider,
  #heroSlider {
    height: min(32vw, 380px) !important;
    max-height: 380px !important;
  }

  #hero .navigation-arrows {
    height: min(32vw, 380px);
    max-height: 380px;
  }

  .section-title p {
    max-width: 760px;
  }
}

/* Touch devices: reduce hover-only motion */
@media (hover: none) and (pointer: coarse) {
  .service-item:hover,
  .about-content ul li:hover,
  .portfolio-content:hover,
  .faq-item:hover {
    transform: none !important;
  }

  #team .promoters-showcase {
    animation: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #heroSlider .slide {
    transform: none !important;
    transition: opacity 0.3s ease !important;
  }
}

/* Spacing/grid ownership moved to assets/css/layout-system.css */
