/* ==========================================================================
   Global Tubings Components — Stylesheet
   Palette: Orange (#FF6A00) + White + Charcoal, high-contrast, next-gen UI
   ========================================================================== */

:root {
  --orange:       #ff6a00;
  --orange-dark:  #e85d00;
  --orange-soft:  #fff2e8;
  --ink:          #16181d;
  --ink-2:        #2b2f38;
  --grey:         #5b6270;
  --grey-light:   #eef1f5;
  --white:        #ffffff;
  --line:         #e6e9ef;

  --shadow-sm:  0 2px 10px rgba(22, 24, 29, .06);
  --shadow-md:  0 12px 30px rgba(22, 24, 29, .10);
  --shadow-lg:  0 24px 60px rgba(22, 24, 29, .16);
  --shadow-orange: 0 14px 34px rgba(255, 106, 0, .32);

  --radius:    16px;
  --radius-lg: 26px;
  --maxw:      1500px;

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(22px, 4vw, 48px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: 15px 30px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--btn-pad);
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(255,106,0,.42); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.section-head p  { color: var(--grey); margin-top: 14px; font-size: 1.06rem; }

.section     { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--grey-light); }
.section-muted { background: #fafaf8; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.navbar.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; background:#fff; border-radius: 10px; padding: 3px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-head); }
.brand-text strong { font-size: 1.06rem; font-weight: 800; color: var(--ink); }
.brand-text em { font-style: normal; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.navbar:not(.scrolled) .brand-text strong { color: #fff; }
.navbar:not(.scrolled) .brand-text em { color: #ffd9bd; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  padding: 9px 13px; border-radius: 100px; color: var(--ink-2);
  transition: color .2s, background .2s; white-space: nowrap;
}
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.92); }
.nav-links a:hover { color: var(--orange); }
.navbar:not(.scrolled) .nav-links a:hover { color:#fff; background: rgba(255,255,255,.14); }
.nav-links a.nav-cta { background: var(--orange); color:#fff !important; box-shadow: var(--shadow-orange); }
.nav-links a.nav-cta:hover { background: var(--orange-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; border-radius: 3px; background: var(--ink); transition: .3s var(--ease); }
.navbar:not(.scrolled) .nav-toggle span { background: #fff; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* Crossfading background slideshow — long, gentle fade for a calm feel */
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 2.2s cubic-bezier(.4, 0, .2, 1);   /* soft ease-in-out, no snap */
  will-change: opacity;
  /* very slow continuous drift so motion never feels abrupt */
  animation: heroDrift 24s ease-in-out infinite alternate;
}
.hero-slide.is-active { opacity: 1; }
@keyframes heroDrift { from { transform: scale(1.04); } to { transform: scale(1.10); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(16,17,21,.92) 0%, rgba(16,17,21,.72) 42%, rgba(16,17,21,.30) 100%),
    linear-gradient(to top, rgba(255,106,0,.20), transparent 45%);
}
/* two-column hero: text left, video right */
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(30px, 5vw, 64px);
  padding-top: 110px; padding-bottom: 70px;
}
.hero-content { max-width: 620px; }
.hero .eyebrow { color: #ffb27d; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); font-weight: 800; line-height: 1.07; text-wrap: balance; }
.hero h1 .accent { color: var(--orange); }
.hero-tagline { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem,2.2vw,1.35rem); color:#fff; margin-top: 18px; }
.hero-sub { max-width: 520px; margin-top: 16px; font-size: 1.04rem; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Dual-video widget (main player + 2 thumbnails) ---------- */
.hero-video { line-height: 0; }

/* main large player */
.vw-main {
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  border: 4px solid rgba(255,255,255,.9);
  background: #000; overflow: hidden; position: relative;
}
.vw-main video {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover; display: block; background: #000;
  border-radius: calc(var(--radius-lg) - 4px);
}
/* title + toggle bar over the bottom */
.vw-titlebar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  pointer-events: none;   /* let native controls stay clickable; button re-enables itself */
}
.vw-now {
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: #fff; line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.vw-toggle {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--orange); color: #fff; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: 8px 14px; border-radius: 100px; box-shadow: var(--shadow-orange);
  transition: background .2s, transform .2s; white-space: nowrap;
}
.vw-toggle:hover { background: var(--orange-dark); transform: translateY(-2px); }
.vw-toggle svg { width: 16px; height: 16px; }
.vw-toggle-label b { font-weight: 800; }

/* two thumbnails */
.vw-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.vw-thumb {
  position: relative; border: 2px solid transparent; border-radius: 14px; overflow: hidden;
  background: #000; cursor: pointer; padding: 0; aspect-ratio: 16/10;
  transition: border-color .2s, transform .2s;
}
.vw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .7; transition: opacity .2s; }
.vw-thumb:hover img { opacity: .9; }
.vw-thumb.is-active { border-color: var(--orange); }
.vw-thumb.is-active img { opacity: 1; }
.vw-play {
  position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,106,0,.92); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.4); transition: transform .2s;
}
.vw-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.vw-thumb:hover .vw-play { transform: scale(1.1); }
.vw-thumb.is-active .vw-play { opacity: 0; }
.vw-thumb-name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  font-family: var(--font-head); font-weight: 600; font-size: .72rem; color: #fff;
  text-align: left; padding: 18px 10px 8px; line-height: 1.15;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
}

.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 100px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 4px; height: 8px; border-radius: 4px; background: #fff; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%,100%{opacity:0;transform:translate(-50%,14px)} }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip { background: var(--ink); color: #fff; padding: 26px 0; }
.trust-inner { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: center; }
.trust-inner > span { font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.trust-logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
/* Logos are mixed-format colour images — show them on white chips at full fidelity */
.trust-logos img {
  height: 42px; width: auto; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 8px 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .25s var(--ease);
}
.trust-logos img:hover { transform: translateY(-3px); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.about-media { position: relative; }
.about-media > img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background:#fff; }
.about-badge {
  position: absolute; right: -14px; bottom: -22px;
  background: var(--orange); color:#fff; border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-orange); text-align: center;
}
.about-badge strong { display:block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge span { font-size: .82rem; line-height: 1.3; opacity: .95; }

.about-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 18px; }
.about-text p  { color: var(--grey); margin-bottom: 16px; }
.about-points { margin-top: 22px; display: grid; gap: 12px; }
.about-points li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink-2); }
.about-points li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange);
  display: grid; place-items: center; font-weight: 800; font-size: .8rem;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { background: linear-gradient(120deg, var(--orange) 0%, var(--orange-dark) 100%); color: #fff; padding: clamp(46px,7vw,72px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { position: relative; padding: 10px; }
.stat + .stat::before, .stat:nth-child(n+2)::before {
  content:""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 1px; height: 54px; background: rgba(255,255,255,.24);
}
.stat-num { display:block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.stat-label { font-size: .95rem; opacity: .92; margin-top: 8px; display: block; }

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
  /* it's a <button> now — reset native styles */
  width: 100%; text-align: left; font-family: inherit; cursor: pointer; color: inherit;
  display: block;
}
.cap-card::after {
  content:""; position:absolute; inset: auto auto -40% -40%;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,0,.12), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.cap-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.cap-card:hover::after { opacity: 1; }
.cap-icon {
  width: 62px; height: 62px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.7rem;
  background: var(--orange-soft); margin-bottom: 20px;
  transition: transform .35s var(--ease);
}
.cap-card:hover .cap-icon { transform: scale(1.08) rotate(-4deg); }
.cap-card h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 10px; }
.cap-card p  { color: var(--grey); font-size: .98rem; }
.cap-more {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--orange);
  transition: transform .25s var(--ease);
}
.cap-card:hover .cap-more { transform: translateX(4px); }

/* ---------- Capability modal ---------- */
.cap-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.cap-modal[hidden] { display: none; }
.cap-modal-backdrop {
  position: absolute; inset: 0; background: rgba(16,17,21,.62);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .26s;
}
.cap-modal.open .cap-modal-backdrop { opacity: 1; }
.cap-modal-box {
  position: relative; z-index: 1; background: #fff;
  width: min(560px, 100%); max-height: 88vh; overflow: hidden;   /* box itself never scrolls */
  border-radius: var(--radius-lg); padding: 12px;                /* thin frame around scroll area */
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.97); opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.cap-modal.open .cap-modal-box { transform: none; opacity: 1; }

/* inner scroll area — scrollbar lives fully INSIDE, away from the rounded corners */
.cap-modal-scroll {
  max-height: calc(88vh - 24px);
  overflow-y: auto;
  padding: 28px 22px 22px 26px;
  border-radius: calc(var(--radius-lg) - 12px);
  /* Firefox premium scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}
/* WebKit (Chrome / Edge / Safari) premium scrollbar */
.cap-modal-scroll::-webkit-scrollbar { width: 8px; }
.cap-modal-scroll::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.cap-modal-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 100px;
  border: 2px solid #fff;          /* slim floating look */
  background-clip: padding-box;
}
.cap-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--orange-dark);
  border: 2px solid #fff; background-clip: padding-box;
}
.cap-modal-close {
  position: absolute; top: 18px; right: 20px; z-index: 3;
  width: 40px; height: 40px; border: none; background: var(--grey-light);
  border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--ink-2);
  cursor: pointer; transition: background .2s, transform .2s;
}
.cap-modal-close:hover { background: var(--orange-soft); color: var(--orange); transform: rotate(90deg); }
.cap-modal-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.8rem; background: var(--orange-soft); margin-bottom: 16px;
}
.cap-modal-box .eyebrow { margin-bottom: 6px; }
.cap-modal-box h3 { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; margin-bottom: 14px; }
.cap-modal-body p { color: var(--grey); font-size: 1rem; margin-bottom: 14px; }
.cap-modal-box .btn { margin-top: 8px; }

/* ==========================================================================
   PRODUCTS GALLERY
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* machineries: 4 photos in a balanced 2x2 grid */
.gallery-machines { grid-template-columns: repeat(2, 1fr); max-width: 940px; margin-inline: auto; }
.gallery-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); background: #fff; aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 40px 20px 18px; color: #fff; font-family: var(--font-head); font-weight: 700;
  background: linear-gradient(to top, rgba(16,17,21,.85), transparent);
  transform: translateY(4px); opacity: 0; transition: opacity .3s, transform .3s;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.section-dark { background: var(--orange-soft); color: var(--ink); }
.section-dark .section-head p { color: var(--grey); }
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content:""; position: absolute; left: 50%; translate: -50% 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--orange), rgba(255,106,0,.20)); }
.tl-item { position: relative; width: 50%; padding: 14px 40px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even){ left: 50%; }
.tl-item::before {
  content:""; position: absolute; top: 22px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--orange-soft); box-shadow: 0 0 0 4px rgba(255,106,0,.25);
}
.tl-item:nth-child(odd)::before  { right: -8px; }
.tl-item:nth-child(even)::before { left: -8px; }
.tl-year { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--orange-dark); margin-bottom: 4px; }
.tl-item p { color: var(--ink-2); font-size: .98rem; }

/* ==========================================================================
   MISSION
   ========================================================================== */
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mission-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px;
  background: #fff; box-shadow: var(--shadow-sm); position: relative;
  border-top: 4px solid var(--orange);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mission-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mission-tag { font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.mission-card h3 { font-size: 1.24rem; font-weight: 700; margin: 12px 0 12px; }
.mission-card p  { color: var(--grey); font-size: .98rem; }

/* ==========================================================================
   CUSTOMERS
   ========================================================================== */
.cust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 30px; }
.cust-logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  height: 130px; display: grid; place-items: center; padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cust-logo:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cust-logo img { max-height: 64px; width: auto; object-fit: contain; }
.cust-note { text-align: center; color: var(--grey); max-width: 700px; margin: 0 auto; }
.cust-note strong { color: var(--ink); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px,5vw,64px); align-items: stretch; }
.contact-info h2 { font-size: clamp(1.8rem,3.6vw,2.6rem); font-weight: 800; margin-bottom: 14px; }
.contact-info > p { color: var(--grey); margin-bottom: 28px; }
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: var(--orange-soft); display: grid; place-items: center; font-size: 1.2rem;
}
.contact-list strong { display: block; font-family: var(--font-head); margin-bottom: 2px; }
.contact-list div { color: var(--grey); font-size: .96rem; }
.contact-list a { color: var(--orange); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- WhatsApp QR card ---------- */
.wa-card {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 28px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.wa-qr {
  flex: 0 0 auto; width: 132px; height: 132px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.wa-qr img { width: 100%; height: 100%; display: block; }
.wa-text { flex: 1; min-width: 200px; }
.wa-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange-dark); background: var(--orange-soft); padding: 4px 11px; border-radius: 100px; margin-bottom: 8px;
}
.wa-badge svg { width: 15px; height: 15px; fill: var(--orange); }
.wa-text h3 { font-family: var(--font-head); font-size: 1.16rem; font-weight: 700; margin-bottom: 6px; }
.wa-text p { color: var(--grey); font-size: .92rem; margin-bottom: 14px; }
.btn-wa {
  background: var(--orange); color: #fff; box-shadow: var(--shadow-orange);
  --btn-pad: 12px 22px;
}
.btn-wa svg { width: 20px; height: 20px; fill: #fff; }
.btn-wa:hover { background: var(--orange-dark); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(255,106,0,.44); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;   /* stretch to match left column height */
}
/* the requirement field grows to absorb extra height so there's no gap */
.contact-form .field:has(textarea) { flex: 1; display: flex; flex-direction: column; }
.contact-form .field textarea { flex: 1; min-height: 120px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fafbfc; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 4px rgba(255,106,0,.12);
}
.field textarea { resize: vertical; }

/* phone: country-code select + number input */
.phone-row { display: flex; gap: 10px; }
.phone-row select {
  flex: 0 0 auto; width: 108px;
  font-family: var(--font-body); font-size: 1rem;
  padding: 13px 12px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fafbfc; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.phone-row select:focus {
  outline: none; border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 4px rgba(255,106,0,.12);
}
.phone-row input { flex: 1; }

.form-note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: .92rem; font-weight: 600; }
.form-note.ok  { background: #e8f7ee; color: #1c7a44; }
.form-note.err { background: #fdecec; color: #c23636; }

/* ==========================================================================
   CERTIFICATIONS
   ========================================================================== */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.cert-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cert-card > a {
  display: block; background: #f4f6f9; padding: 22px;
  border-bottom: 1px solid var(--line); position: relative;
}
.cert-card > a::after {
  content: "\1F50D  View"; position: absolute; top: 14px; right: 14px;
  background: rgba(22,24,29,.82); color: #fff; font-size: .74rem; font-weight: 600;
  font-family: var(--font-head); padding: 6px 12px; border-radius: 100px;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
.cert-card:hover > a::after { opacity: 1; transform: translateY(0); }
.cert-card img {
  width: 100%; height: 340px; object-fit: contain; margin-inline: auto;
  transition: transform .4s var(--ease);
}
.cert-card:hover img { transform: scale(1.02); }
.cert-card figcaption { padding: 26px 28px 30px; }
.cert-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); background: var(--orange-soft);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 12px;
}
.cert-card figcaption strong { display: block; font-family: var(--font-head); font-size: 1.24rem; font-weight: 700; margin-bottom: 10px; }
.cert-card figcaption p { color: var(--grey); font-size: .96rem; }
.cert-note { text-align: center; color: var(--grey); margin-top: 26px; font-size: .92rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--orange-soft); color: var(--ink-2); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { width: 54px; background: #fff; border-radius: 10px; padding: 4px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.footer-brand p { font-size: .96rem; color: var(--grey); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a, .footer-contact a { transition: color .2s; color: var(--ink-2); }
.footer-links a:hover, .footer-contact a:hover { color: var(--orange-dark); }
.footer-contact p { margin-bottom: 8px; font-size: .95rem; color: var(--grey); }
.footer-bottom { border-top: 1px solid rgba(255,106,0,.20); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; color: var(--grey); }

/* "developed by Efficova" credit strip */
.footer-credit { background: var(--orange); }
.footer-credit .container { padding-top: 12px; padding-bottom: 12px; text-align: center; }
.footer-credit p { font-size: .86rem; color: #fff; font-weight: 500; }
.footer-credit a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; transition: opacity .2s; }
.footer-credit a:hover { opacity: .82; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center;
  font-size: 1.3rem; box-shadow: var(--shadow-orange);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange-dark); }

/* ==========================================================================
   SCROLL REVEAL
   Progressive enhancement: content is ALWAYS visible by default. The hidden
   start-state only applies when JS has added .js-anim to <html>, so if JS
   fails/blocks/loads late, nothing ever disappears.
   ========================================================================== */
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .cap-grid, .mission-grid, .gallery, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin-inline: auto; }
  .cust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .cert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; padding: 90px 22px 30px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--ink-2) !important; background: none !important; padding: 14px 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a.nav-cta { background: var(--orange) !important; color:#fff !important; border-radius: 100px; text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.open span { background: var(--ink); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .stat:nth-child(3)::before { display: none; }

  /* timeline collapses to single side */
  .timeline::before { left: 8px; }
  .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding: 12px 12px 12px 40px; }
  .tl-item::before { left: 0 !important; right: auto !important; }

  /* hero stacks: text on top, video below */
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 100px; padding-bottom: 50px; }
  .hero-content { max-width: 640px; }
  .hero-video { max-width: 560px; }
}

@media (max-width: 520px) {
  .cap-grid, .gallery, .mission-grid, .cust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-badge { right: 10px; }
  .btn { --btn-pad: 14px 24px; width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
