/* /css/shared.css */
/* Loaded on every page via base.html */

/* ================= FOOTER CTA ================= */
.fcta-section {
  position: relative;
  background: #e05a1e;
  padding: 100px 80px;
  text-align: center;
  overflow: hidden;
}
.fcta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0,0,0,0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: fctaBgShift 8s ease-in-out infinite alternate;
}
@keyframes fctaBgShift {
  from { opacity: 0.8; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.06); }
}
.fcta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.fcta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.fcta-eyebrow {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.fcta-title {
  font-family: "Syne", sans-serif;
  font-size: 65px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1.2px;
  line-height: 1.1;
}
.fcta-sub {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  max-width: 380px;
  line-height: 1.6;
}
.fcta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.fcta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #e05a1e;
  font-family: "Syne", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.fcta-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(224,90,30,0.08) 50%, transparent 65%);
  transform: translateX(-150%);
  transition: transform 0.5s ease;
}
.fcta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.fcta-btn-primary:hover::after {
  transform: translateX(200%);
}
.fcta-btn-arr {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.fcta-btn-primary:hover .fcta-btn-arr {
  transform: translateX(6px);
}
.fcta-btn-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 14px 28px;
  border-radius: 10px;
  transition: background 0.25s, border-color 0.25s, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.fcta-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-3px);
}

/* ================= FOOTER ================= */
.site-footer {
  background: #030303;
  padding: 80px 80px 0;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 80px; right: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: filter 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.footer-logo:hover img {
  filter: brightness(1.1);
  transform: scale(1.04);
}
.footer-tagline {
  font-size: 12.5px;
  color: rgba(255,255,255,0.28);
  line-height: 1.7;
}
.footer-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-social {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, transform 0.35s cubic-bezier(0.16,1,0.3,1), background 0.3s, box-shadow 0.3s;
}
.footer-social:hover {
  border-color: #e05a1e;
  color: #e05a1e;
  background: rgba(224,90,30,0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(224,90,30,0.2);
}
.footer-col h4.footer-col-title {
  font-family: "Syne", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}
.footer-col h4.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 0;
  height: 1px;
  background: #e05a1e;
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.footer-col:hover h4.footer-col-title::after {
  width: 24px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.3s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
}
.footer-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-col ul li a svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255,255,255,0.2);
  transition: color 0.2s;
}
.footer-col ul li a:hover svg {
  color: rgba(255,255,255,0.4);
}
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}
.footer-address svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255,255,255,0.2);
}
.footer-map-link {
  font-size: 12px !important;
  color: #e05a1e !important;
  letter-spacing: 0.4px;
  margin-top: 4px;
}
.footer-map-link:hover {
  color: #ff7a40 !important;
  letter-spacing: 0.8px !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom span {
  font-size: 11.5px;
  color: rgba(255,255,255,0.2);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 11.5px;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  transition: color 0.2s, letter-spacing 0.3s;
}
.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.3px;
}

/* ================= SHARED PAGE PATTERNS ================= */
/* page-hero, back-btn, page-transition used across multiple pages */
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 80px 72px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 9px 18px;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  transition: color 0.25s, border-color 0.25s, transform 0.35s cubic-bezier(0.16,1,0.3,1);
  margin-bottom: 32px;
  width: fit-content;
}
.back-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  transform: translateX(-4px);
}

/* ── Performance ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════
   SHARED RESPONSIVE — applies to every page
   Footer, FCTA, page-hero, back-btn
═══════════════════════════════════════════ */

/* TABLET 769px–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .fcta-section { padding: 80px 40px; }
  .fcta-title { font-size: 34px; }
  .site-footer { padding: 60px 40px 0; }
  .site-footer::before { left: 40px; right: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 48px; align-items: start; }
  .page-hero-content { padding: 120px 40px 60px; }
}

/* SMALL LAPTOP 1025px–1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
  .fcta-section { padding: 90px 60px; }
  .site-footer { padding: 70px 60px 0; }
  .site-footer::before { left: 60px; right: 60px; }
  .page-hero-content { padding: 140px 60px 72px; }
}

/* MOBILE max 768px */
@media (max-width: 768px) {

  /* ── FOOTER CTA ── */
  .fcta-section { padding: 60px 24px; }
  .fcta-title { font-size: 28px; letter-spacing: -0.5px; }
  .fcta-sub { font-size: 13px; }
  .fcta-buttons { flex-direction: column; width: 100%; }
  .fcta-btn-primary,
  .fcta-btn-secondary { width: 100%; justify-content: center; padding: 14px 20px; }

  /* ── FOOTER ── */
  .site-footer { padding: 48px 24px 0; }
  .site-footer::before { left: 24px; right: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* ── SHARED PAGE HERO ── */
  .page-hero-content { padding: 100px 24px 48px; }
  .back-btn { font-size: 11px; padding: 8px 14px; margin-bottom: 24px; }

  /* ── NAVBAR LOGO — fix flicker ── */
  .navbar { padding: 10px 20px; }
  .nav-logo img { width: 100px; height: 40px; }
}

/* SMALL MOBILE max 480px */
@media (max-width: 480px) {
  .fcta-title { font-size: 24px; }
  .page-hero-content { padding: 90px 20px 40px; }
}


/* ================================================================
   MOBILE BRIGHTNESS + PREMIUM POLISH  (auto-generated)
   Hard hex values — correct at ANY screen brightness level
================================================================ */
@media (max-width: 768px) {

  /* CARD BACKGROUNDS */
  .why-card, .infra-stat-box, .infra-floor, .quality-pillar,
  .story-img-cell, .explore-card, .pl-card, .bake-card, .ind-card,
  .machine-card, .blog-card, .timeline-card, .featured-card,
  .stat-block, .r-card, .t-card, .pkg-card, .pkg-info-card,
  .pkg-manpower-card, .contact-info-card, .post-sidebar-box,
  .flow-step-box, .iot-card, .infra-img-main, .tl-img-frame,
  .why-features .why-card, .cert-grid .cert-card,
  .export-panel, .r-card, .rating-callout { background: #1e1e1e; border-color: #3a3a3a; }

  /* BODY / DESCRIPTION TEXT */
  .why-card p, .infra-floor-body, .infra-floor-detail, .infra-intro,
  .quality-intro, .quality-pillar-body-inner li, .quality-pillar-sub,
  .story-body-text p, .explore-card-desc, .explore-header-sub,
  .about-hero-desc, .section-body, .why-header-right p,
  .pl-card-desc, .pl-hero-sub, .pl-card-flow span,
  .machine-card-desc, .bake-card-desc, .blog-card-excerpt,
  .blog-card-subtitle, .featured-desc, .timeline-desc,
  .tl-body, .r-quote, .t-card-quote, .pkg-desc, .pkg-info-sub,
  .line-meta-text, .post-content p, .detail-desc, .hero-desc,
  .page-sub, .csa-sub, .ind-sub, .bake-sub, .about-body,
  .process-sub, .cta-sub, .card-models, .card-count,
  .terms-clause-body p, .pp-section p, .pp-list li,
  .contact-subtitle, .footer-tagline, .blog-hero-desc,
  .step-label, .cta-sub { color: #cccccc; }

  /* SECONDARY / LABEL TEXT */
  .about-hero-stat-label, .infra-stat-box-label, .pl-stat-label,
  .csa-stat-l, .stat-label, .t-stat-label, .pkg-info-label,
  .pkg-manpower-label, .card-cat, .section-eyebrow,
  .line-hero-eyebrow, .flow-step-num, .blog-card-date,
  .post-hero-date, .r-loc, .t-card-loc, .cert-milestone-label,
  .line-nav-prev-hint, .line-nav-next-hint, .contact-info-label,
  .breadcrumb, .breadcrumb a, .back-btn,
  .pkg-machine-note { color: #aaaaaa; }

  /* CARD TITLES */
  .why-card h3, .infra-floor-name, .quality-pillar-title,
  .explore-card-title, .pl-card-name, .machine-card-name,
  .bake-card-name, .blog-card-title, .featured-name,
  .timeline-event-name, .tl-headline, .t-card-name,
  .pkg-card-name, .card-name, .cta-title,
  .models-cta-text h4, .iot-card-title,
  .contact-info-value { color: #ffffff; font-size: 15px; }

  /* STAT NUMBERS */
  .about-hero-stat-num, .infra-stat-box-num, .pl-stat-num,
  .csa-stat-n, .stat-num, .t-stat-num, .pkg-info-value,
  .pkg-manpower-value, .history-meta-num,
  .rating-big { color: #ffffff; font-size: 24px; }

  /* PILL / TAG CHIPS */
  .pl-card-capacity, .pl-card-machine-tag, .infra-badge,
  .line-meta-badge, .tl-tag, .model-tag, .card-tag,
  .pkg-tag, .pkg-material, .detail-tag,
  .filter-pill, .filter-btn { background: #252525; border-color: #3d3d3d; color: #cccccc; }

  /* SECTION TITLES */
  .section-title, .pl-lines-title, .pl-overview-title,
  .bake-title, .ind-title, .about-title, .featured-title,
  .timeline-title, .t-hero-title { font-size: clamp(28px, 7vw, 40px); }

  /* FLOW */
  .flow-step-name { color: #ffffff; }
  .flow-step-box { background: #1e1e1e; border-color: #3a3a3a; }

  /* FOOTER */
  .footer-col ul li a { color: #aaaaaa; }
  .footer-col h4.footer-col-title { color: #888888; }
  .footer-address { color: #aaaaaa; }
  .footer-bottom span, .footer-bottom-links a { color: #666666; }

  /* TESTIMONIALS */
  .t-card-quote, .r-quote { color: #cccccc; }
  .cert-milestone-year { color: #888888; }

  /* PACKAGES */
  .pkg-machine-name { color: #eeeeee; }
  .pkg-capacity-row span { color: #cccccc; }
  .pkg-capacity-row span:first-child { color: #eeeeee; }
  .pkg-note, .pkg-desc { color: #cccccc; }

  /* BLOG */
  .post-related-title { color: #cccccc; }

  /* MACHINE / MODEL */
  .detail-desc, .iot-card-desc, .right-sub,
  .models-cta-text p { color: #cccccc; }
  .specs-table td:first-child { color: #aaaaaa; }
  .specs-table td:last-child { color: #eeeeee; }

  /* PRIVACY / TERMS */
  .terms-notice, .pp-note { color: #cccccc; }
}

@media (max-width: 480px) {
  .pl-card-name, .machine-card-name, .bake-card-name,
  .why-card h3, .explore-card-title { font-size: 14px; }
  .section-title, .pl-lines-title { font-size: clamp(26px, 8vw, 34px); }
}


/* ================================================================
   PREMIUM MICRO-ANIMATIONS (auto-generated)
   Smooth, tasteful — respects prefers-reduced-motion
================================================================ */

/* Scroll reveal base */
.reveal, .fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible, .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* Card hover lift — premium feel */
.why-card, .infra-stat-box, .infra-floor, .explore-card,
.pl-card, .bake-card, .ind-card, .machine-card, .blog-card,
.featured-card, .stat-block, .r-card, .t-card, .pkg-card,
.pkg-info-card, .timeline-card, .contact-info-card {
  transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Shimmer on card hover */
.why-card::after, .explore-card::after, .pl-card::after,
.machine-card::after, .blog-card::after, .pkg-card::after {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,90,30,0.6), transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.4s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-card:hover::after, .explore-card:hover::after,
.pl-card:hover::after, .machine-card:hover::after,
.blog-card:hover::after, .pkg-card:hover::after {
  opacity: 1; transform: scaleX(1);
}

/* Stat number count-up glow on hover */
.about-hero-stat:hover .about-hero-stat-num,
.infra-stat-box:hover .infra-stat-box-num,
.stat-block:hover .stat-number {
  text-shadow: 0 0 20px rgba(255,255,255,0.15);
}

/* Link underline slide */
.footer-col ul li a,
.drawer-link,
.toc-pill,
.filter-pill {
  transition: color 0.25s, padding-left 0.3s cubic-bezier(0.16,1,0.3,1),
              background 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

/* Button press feedback */
.nav-cta:active, .fcta-btn-primary:active,
.line-cta-btn-primary:active, .pkg-cta-primary:active,
.enquire-submit:active {
  transform: scale(0.97) translateY(0);
}

/* Image scale on card hover */
.bake-card:hover .bake-card-img,
.ind-line-pill:hover .ind-line-pill-icon img,
.blog-card:hover img { transform: scale(1.06); }

/* Smooth border-radius pulse on active nav item */
.island-item.active .island-icon svg {
  filter: drop-shadow(0 0 4px rgba(224,90,30,0.6));
}

/* Orange accent line slide-in on section hover */
.pl-card-cta-text, .view-btn, .blog-card-cta,
.explore-card-cta, .featured-details {
  transition: letter-spacing 0.35s cubic-bezier(0.16,1,0.3,1),
              opacity 0.3s, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

/* Tablet-specific enhancements */
@media (min-width: 769px) and (max-width: 1024px) {
  .why-card:hover, .explore-card:hover, .pl-card:hover,
  .machine-card:hover, .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(224,90,30,0.06);
  }
}

/* Desktop-specific enhancements */
@media (min-width: 1025px) {
  .why-card:hover, .explore-card:hover, .pl-card:hover,
  .machine-card:hover, .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 72px rgba(0,0,0,0.65), 0 0 0 1px rgba(224,90,30,0.07);
  }
  /* Subtle parallax depth on hero sections */
  .pl-hero-bg, .about-hero-orb, .blog-hero-orb {
    will-change: transform;
  }
}

/* Mobile — no hover transforms (tap only) */
@media (max-width: 768px) {
  .why-card:hover, .explore-card:hover, .pl-card:hover,
  .machine-card:hover, .blog-card:hover, .infra-floor:hover,
  .quality-pillar:hover { transform: none; }
  .why-card:active { transform: scale(0.98); }
  .pl-card:active, .blog-card:active, .machine-card:active { transform: scale(0.98); }
  .island-item:active { transform: scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}


/* ================================================================
   DESKTOP READABILITY BOOST — bigger, bolder text site-wide
================================================================ */
@media (min-width: 769px) {

  body {
    font-size: 16px;
  }

  p, .section-body, .story-body-text p, .why-card p, .infra-intro,
  .quality-intro, .quality-pillar-body-inner li, .explore-card-desc,
  .about-hero-desc, .why-header-right p, .card-models,
  .pkg-desc, .post-content p, .hero-desc, .page-sub, .csa-sub,
  .ind-sub, .bake-sub, .about-body, .process-sub, .cta-sub,
  .blog-card-excerpt, .machine-card-desc, .bake-card-desc {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.62) !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
  }

  h1, h2, h3, .section-title, .why-card h3, .infra-floor-name,
  .quality-pillar-title, .explore-card-title, .card-name,
  .machine-card-name, .bake-card-name, .cta-title {
    font-weight: 700 !important;
  }

  .about-hero-stat-label, .infra-stat-box-label, .card-cat,
  .section-eyebrow, .eyebrow-tag {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 500 !important;
  }

}