/* =========================================================
   Prask Mechatronics — site styles
   Matched to praskdemo2.infilemon.com: orange #f58220, ink #1a1a1a
   ========================================================= */

:root {
  --brand-orange: #f58220;
  --brand-orange-600: #ea580c;
  --ink: #1a1a1a;
  --body-bg: #ffffff;
  --body-color: #1a1a1a;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --section-alt-bg: #f5f5f5;
  --card-bg: #ffffff;
  --card-border: #f3f4f6;
  --header-solid-bg: #ffffff;
  --footer-bg: #14110f;
  --footer-muted: #b9b3ad;
  --input-bg: #ffffff;
  --input-border: #dcdcdc;
  --header-h: 76px;
}

html[data-theme="dark"] {
  --body-bg: #121212;
  --body-color: #f0efec;
  --muted: #b3aea8;
  --muted-2: #9a948d;
  --section-alt-bg: #1a1a1a;
  --card-bg: #1c1c1c;
  --card-border: #2c2c2c;
  --header-solid-bg: #121212;
  --footer-bg: #0a0908;
  --footer-muted: #9a948d;
  --input-bg: #1c1c1c;
  --input-border: #3a3a3a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: var(--body-bg);
  color: var(--body-color);
  transition: background-color .25s ease, color .25s ease;
}

a { text-decoration: none; }

section { scroll-margin-top: var(--header-h); }

.section-alt { background-color: var(--section-alt-bg); }

/* dotted "eyebrow" icon — 4x4 grid of small dots, exactly like the source site */
.eyebrow-icon {
  display: inline-grid;
  grid-template-columns: repeat(4, 4px);
  gap: 3px;
  margin-right: .75rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.eyebrow-icon span {
  width: 4px; height: 4px; border-radius: 50%;
  background: #9ca3af;
}
html[data-theme="dark"] .eyebrow-icon span { background: #4b4b4b; }

.section-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: .35rem;
}
.section-title .accent { color: var(--brand-orange); }
.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.text-brand { color: var(--brand-orange) !important; }
.bg-brand { background-color: var(--brand-orange) !important; }

/* ---------- Buttons (match: lift on hover, darker orange, soft brand shadow) ---------- */
.btn-brand {
  background-color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: .65rem 1.6rem;
  box-shadow: 0 10px 22px -6px rgba(245, 130, 32, .45);
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.btn-brand:hover { background-color: var(--brand-orange-600); border-color: var(--brand-orange-600); color: #fff; transform: translateY(-2px); }
.btn-brand:active { transform: translateY(0); }

.btn-outline-brand {
  background-color: transparent;
  border: 2px solid rgba(255,255,255,.85);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: .6rem 1.55rem;
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.btn-outline-brand:hover { background-color: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-outline-brand:active { transform: translateY(0); }

/* ---------- Header: fixed, transparent over the hero, solid once scrolled ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  box-shadow: none;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header .navbar { width: 100%; padding: 0; }
.site-header.is-scrolled {
  background: var(--header-solid-bg);
  box-shadow: 0 2px 18px rgba(0,0,0,.08);
}
/* nav collapses to a solid panel on mobile regardless of scroll state */
.site-header .navbar-collapse.show,
.site-header .navbar-collapse.collapsing {
  background: var(--header-solid-bg);
  border-radius: 12px;
  margin-top: .5rem;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.brand-hex {
  width: 40px; height: 40px;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-sub { font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: var(--brand-orange); }
.brand-main {
  font-size: .95rem; font-weight: 800; letter-spacing: .01em;
  color: #fff; transition: color .3s ease;
}
.site-header.is-scrolled .brand-main { color: var(--body-color); }
.site-header .navbar-collapse.show .brand-main,
.site-header .navbar-collapse.collapsing .brand-main { color: var(--body-color); }

.navbar-nav .nav-link {
  position: relative;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .5rem .9rem !important;
  transition: color .3s ease;
}
.navbar-nav .nav-link:hover { color: #fff; }
.navbar-nav .nav-link.active { color: var(--brand-orange); }
.site-header.is-scrolled .navbar-nav .nav-link { color: var(--body-color); }
.site-header.is-scrolled .navbar-nav .nav-link:hover,
.site-header.is-scrolled .navbar-nav .nav-link.active { color: var(--brand-orange); }
.navbar-collapse.show .navbar-nav .nav-link,
.navbar-collapse.collapsing .navbar-nav .nav-link { color: var(--body-color); }

.nav-underline {
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link.active .nav-underline { transform: scaleX(1); }

.theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  transition: color .3s ease;
}
.site-header.is-scrolled .theme-toggle,
.navbar-collapse.show .theme-toggle { color: var(--body-color); }

.nav-phone { color: rgba(255,255,255,.9); font-weight: 600; font-size: .88rem; transition: color .3s ease; }
.nav-phone:hover { color: var(--brand-orange); }
.site-header.is-scrolled .nav-phone { color: var(--body-color); }

.btn-sm-pill { padding: .5rem 1.25rem; font-size: .85rem; box-shadow: 0 8px 18px -6px rgba(245,130,32,.5); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26,26,26,.95), rgba(26,26,26,.8) 55%, rgba(26,26,26,.4));
}
.hero-overlay-2 {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26,26,26,.6), rgba(26,26,26,0) 50%, rgba(26,26,26,.3));
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--brand-orange); font-weight: 700; letter-spacing: .08em; font-size: .8rem;
  border: 1px solid rgba(245,130,32,.4); background: rgba(245,130,32,.08);
  border-radius: 999px; padding: .4rem 1rem;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  max-width: 780px;
  text-transform: none;
}
.hero p.lead { color: #d1d5db; max-width: 620px; font-size: 1.1rem; }

.hero-stats {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.hero-stats .stat-num { font-size: 2.1rem; font-weight: 800; color: var(--brand-orange); }
.hero-stats .stat-label { color: #cfcbc5; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Sub-page header banner (About / Products / Facilities / Industries / Contact) ---------- */
.page-header {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 152px 0 64px;
  overflow: hidden;
}
.page-header .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--brand-orange); font-weight: 700; letter-spacing: .08em; font-size: .8rem;
  border: 1px solid rgba(245,130,32,.4); background: rgba(245,130,32,.08);
  border-radius: 999px; padding: .4rem 1rem;
}
.page-header h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-top: 1rem;
  text-transform: none;
  max-width: 760px;
}
.page-header p { color: #d1d5db; max-width: 640px; margin-top: .75rem; margin-bottom: 0; font-size: 1.05rem; }

.page-header-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: .38;
}
.page-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,17,15,.97), rgba(20,17,15,.88) 50%, rgba(20,17,15,.65));
}
.page-header .container { position: relative; z-index: 1; }

/* ---------- Homepage "explore" links to sub-pages ---------- */
.explore-card { text-align: left; padding: 0; overflow: hidden; }
.explore-card .explore-media { aspect-ratio: 16/10; overflow: hidden; }
.explore-card .explore-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.explore-card:hover .explore-media img { transform: scale(1.06); }
.explore-card .explore-body { padding: 1.75rem; }
.explore-card .step-num { width: 48px; height: 48px; border-radius: 12px; font-size: 1.1rem; margin-top: -3.75rem; position: relative; z-index: 1; box-shadow: 0 8px 18px -4px rgba(0,0,0,.35); }
.explore-card h5 { font-weight: 800; margin-top: 1rem; }
.card-link {
  color: var(--brand-orange); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  transition: color .2s ease, gap .2s ease;
}
.card-link:hover { color: var(--brand-orange-600); gap: .6rem; }

/* ---------- Homepage image + text split sections (About teaser, etc.) ---------- */
.split-media { position: relative; border-radius: 16px; overflow: hidden; height: 100%; min-height: 320px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.25); }
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-media-badge {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  background: rgba(20,17,15,.85);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 12px;
  padding: .9rem 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.split-media-badge .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--brand-orange); line-height: 1; }
.split-media-badge .stat-label { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #cfcbc5; }

/* ---------- Homepage Quality Commitment — full-width photo banner ---------- */
.quality-banner {
  position: relative;
  color: #fff;
  padding: 4.5rem 0;
  overflow: hidden;
}
.quality-banner-bg {
  position: absolute; inset: 0;
  background: url('../images/equipment/test-bench.jpg') center/cover no-repeat;
}
.quality-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,17,15,.94), rgba(20,17,15,.86) 55%, rgba(245,130,32,.55));
}
.quality-banner .container { position: relative; z-index: 1; }
.quality-banner p.section-subtitle,
.quality-banner p:not(.section-subtitle) { color: #e5e1db; }
.quality-banner .cert-item { color: #fff; }

/* ---------- Cards ---------- */
.card-plain {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .3s ease;
}
.card-plain:hover { box-shadow: 0 14px 30px rgba(0,0,0,.1); }

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Product cards ---------- */
.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1rem;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 16px 34px rgba(0,0,0,.12); }
.product-photo-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: .75rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover .product-photo-wrap { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,.14); }
.product-photo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.product-body { display: flex; flex-direction: column; flex: 1; }
.product-body h6 { text-transform: uppercase; font-size: .88rem; line-height: 1.25; }
.product-body p { font-size: .8rem; flex: 1; }
.send-inquiry-link { color: var(--brand-orange); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; transition: color .2s ease, gap .2s ease; }
.send-inquiry-link:hover { color: var(--brand-orange-600); gap: .6rem; }

/* ---------- Gallery (Our Plant / Plant Equipment) ---------- */
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; border: 2px solid var(--brand-orange); height: 18rem; }
.gallery-item.gallery-item-sm { height: 12rem; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Activities in Plant — solid orange section, glass cards ---------- */
.activities-section { background: var(--brand-orange); }
.activity-chip {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #fff;
  transition: background-color .25s ease, transform .25s ease;
}
.activity-chip:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }

/* ---------- Why Prask / Software ---------- */
.why-panel {
  background: var(--ink);
  color: #f2f0ed;
  border-radius: 16px 0 0 16px;
  padding: 3rem 2.5rem;
  height: 100%;
}
.why-panel ul { list-style: none; padding: 0; margin: 0; }
.why-panel ul li { padding: .55rem 0; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.why-panel ul li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange); flex-shrink: 0; }

.software-panel {
  background: var(--brand-orange);
  border-radius: 0 16px 16px 0;
  padding: 3rem 2.5rem;
  height: 100%;
}
.software-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.software-card:last-child { margin-bottom: 0; }
.software-badge {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--section-alt-bg);
  color: var(--brand-orange);
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.software-card h6 { margin: 0; font-weight: 800; color: var(--ink); }
.software-card p { margin: 0; font-size: .82rem; color: #6b6b6b; }

@media (max-width: 991.98px) {
  .why-panel { border-radius: 16px 16px 0 0; }
  .software-panel { border-radius: 0 0 16px 16px; }
}

/* ---------- Industries — horizontal cards, 2-col grid, dark coverage box ---------- */
.industry-card {
  display: flex; flex-direction: column;
  background: var(--section-alt-bg);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
@media (min-width: 576px) {
  .industry-card { flex-direction: row; }
  .industry-icon { width: 12rem; height: auto; }
}
.industry-icon { height: 12rem; flex-shrink: 0; overflow: hidden; }
.industry-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.industry-body { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.industry-body h6 { font-size: 1.15rem; font-weight: 800; }
.industry-body ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--muted-2); }
.industry-body ul li { padding: .2rem 0; display: flex; align-items: center; gap: .55rem; }
.industry-body ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange); flex-shrink: 0; }

.coverage-box {
  background: var(--ink);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  color: #d1d5db;
}
.coverage-box h6 { color: #fff; letter-spacing: .05em; }

/* ---------- Certifications ---------- */
.cert-item { display: flex; align-items: center; gap: .75rem; font-weight: 700; padding: .5rem 0; }
.cert-check {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .85rem;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
}
.col-lg-7 > .contact-card { height: 100%; }
.form-control, .form-select {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--body-color);
  border-radius: 8px;
  padding: .65rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 .2rem rgba(245,130,32,.15);
  background-color: var(--input-bg);
  color: var(--body-color);
}
.form-label { font-weight: 600; font-size: .88rem; }

.info-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.info-row:last-child { margin-bottom: 0; }
.info-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--section-alt-bg); color: var(--brand-orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-row h6 { margin: 0; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.info-row p { margin: 0; font-weight: 600; }

.map-frame { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.map-frame iframe { width: 100%; height: 400px; border: 0; display: block; }

.alert-brand-success { background: rgba(245,130,32,.12); border: 1px solid var(--brand-orange); color: var(--body-color); border-radius: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-muted); }
.footer-heading { color: var(--brand-orange); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a, .footer-links span { color: var(--footer-muted); font-size: .92rem; }
.footer-links a:hover { color: var(--brand-orange); }
.footer-muted { color: var(--footer-muted); font-size: .92rem; }
.footer-muted-2 { color: #7a746d; }
.footer-hr { border-color: rgba(255,255,255,.08); margin: 2rem 0 1.25rem; }
.social-links a {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #d8d3cc;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, color .2s ease;
}
.social-links a:hover { background: var(--brand-orange); color: #fff; }

/* ---------- WhatsApp FAB (exact: 56px circle, ping ripple badge) ---------- */
.whatsapp-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(37,211,102,.35);
  z-index: 1040;
  transition: box-shadow .3s ease, transform .3s ease;
}
.whatsapp-fab:hover { box-shadow: 0 14px 30px rgba(37,211,102,.5); transform: translateY(-2px); }
.whatsapp-badge { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; }
.whatsapp-badge .ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: .75;
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.whatsapp-badge .dot {
  position: absolute; inset: 0; border-radius: 50%;
  background: #128C7E;
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* ---------- Scroll-reveal animations (fade + slide up, matches Framer Motion behaviour) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-stats .stat-num,
  .whatsapp-badge .ping { animation: none; }
}

/* ---------- Misc ---------- */
.divider-line { height: 1px; background: var(--card-border); border: 0; }
