/* =========================================================
   CV. CITRA JAYA - site.css   (light / futuristic theme)

   Palette : cool white-blue surfaces, slate ink, brand red accent
   Type    : Orbitron (logo, headings) + Rajdhani (menu, body)

   NAVIGATION NOTE
   The menu is written mobile-first: the base rules ARE the phone menu
   (tap the hamburger, tap a row's arrow to open its submenu). Hover-driven
   dropdowns only exist inside the desktop query at the bottom of the
   navigation section, so a touch device can never get a "sticky hover"
   that hides an opened submenu (the old bug).
   ========================================================= */

:root{
  --bg:            #f3f6fb;
  --bg-2:          #e6ecf5;
  --surface:       #ffffff;
  --glass:         rgba(255, 255, 255, 0.78);
  --ink:           #0b1220;
  --text:          #1e293b;
  --text-muted:    #475569;
  --text-dim:      #5c6b80;
  --border:        rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.20);

  --red:           #d70000;   /* text-safe brand red (AA on white) */
  --red-bright:    #ff2b2b;   /* glows / gradients */
  --red-deep:      #9f0000;
  --red-soft:      rgba(215, 0, 0, 0.07);
  --red-glow:      rgba(255, 43, 43, 0.30);

  --radius:        14px;
  --gutter:        clamp(16px, 4vw, 56px);
  /* Left/right inset that lines header, menu, footer and hero card up with the
     centred 1100px content column on wide screens (equals --gutter on phones). */
  --edge:          max(var(--gutter), calc(50% - 550px + var(--gutter)));
  --header-h:      64px;
  --nav-h:         52px;

  --shadow-sm:     0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 16px rgba(15, 23, 42, 0.05);
  --shadow-md:     0 12px 32px rgba(15, 23, 42, 0.12);

  --font-display:  'Orbitron', system-ui, sans-serif;
  --font-body:     'Rajdhani', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html{
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(215, 0, 0, 0.10);
}

body{
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

/* Soft colour glows + a blueprint grid that fades out downwards.
   Fixed pseudo-elements (not background-attachment) so it is smooth on iOS. */
body::before,
body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before{
  background:
    radial-gradient(900px 480px at 6% -6%, rgba(255, 43, 43, 0.10), transparent 62%),
    radial-gradient(800px 480px at 100% 0%, rgba(56, 110, 255, 0.10), transparent 58%);
}
body::after{
  background:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

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

:focus-visible{ outline: 2px solid var(--red); outline-offset: 2px; }

.skip-link{
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus{ top: 12px; }

/* ---------- App shell ---------- */
.app-shell{
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main-content{
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* =========================================================
   SECTION 1 + 2 : HEADER and MENU (one sticky bar)
   ========================================================= */
.site-top{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
          backdrop-filter: saturate(1.5) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-top::before{               /* thin brand-red light strip along the very top */
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--red-bright), var(--red-deep) 38%, rgba(159, 0, 0, 0) 100%);
}

.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) - 3px);
  padding: 0 var(--edge);
}

.logo-block{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.logo-img{
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.logo-text{
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(14px, 4.4vw, 26px);
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--red);
  text-shadow: 0 2px 14px rgba(255, 43, 43, 0.22);
}
.logo-text::after{
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-bright), var(--red-deep), transparent);
}

/* ---------- Hamburger (phone / tablet / touch) ---------- */
.menu-toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span{
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2){ opacity: 0; }
.menu-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu: PHONE / TOUCH layout (the default) ---------- */
.site-nav{ position: static; }

.nav-list{
  display: none;                      /* opened by the hamburger (.open) */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.nav-list.open{ display: flex; }

.nav-list > li{
  display: flex;
  flex-wrap: wrap;                    /* lets the submenu drop onto its own full-width line */
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.nav-list > li:last-child{ border-bottom: 0; }

.nav-link{
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--edge);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-link::before{                    /* active marker (left bar on phone) */
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--red-bright), var(--red-deep));
  transform: scaleY(0);
  transition: transform 0.25s ease;
}
.nav-link.active{ color: var(--red); }
.nav-link.active::before{ transform: scaleY(1); }

/* Arrow button that opens / closes a submenu */
.dropdown-toggle{
  flex: 0 0 56px;
  margin-right: calc(var(--edge) - 6px);   /* centres the arrow under the 44px hamburger button */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: none;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
}
.dropdown-toggle::before{
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.has-dropdown.open > .dropdown-toggle{ color: var(--red); }
.has-dropdown.open > .dropdown-toggle::before{ transform: translateY(2px) rotate(-135deg); }
.has-dropdown.open > .nav-link{ color: var(--ink); }
.has-dropdown.open > .nav-link.active{ color: var(--red); }

/* Submenu: hidden until its parent gets .open, then a plain visible block.
   There is deliberately NO opacity / visibility / :hover rule on this element
   in the phone layout. */
.dropdown{
  display: none;
  flex: 0 0 100%;
  padding: 4px 0 10px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.has-dropdown.open > .dropdown{ display: block; }

.dropdown a{
  position: relative;
  display: block;
  padding: 13px var(--edge) 13px calc(var(--edge) + 18px);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--text);
}
.dropdown a::before{                  /* small red bullet */
  content: "";
  position: absolute;
  left: var(--edge);
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.55;
}
.dropdown a:active{ color: var(--red); background: var(--red-soft); }

/* ---------- Menu: DESKTOP layout (wide screen AND a real mouse) ---------- */
@media (min-width: 901px) and (hover: hover){

  :root{ --header-h: 84px; }

  .site-header{ height: calc(var(--header-h) - 3px); }
  .logo-img{ height: 48px; }

  .menu-toggle,
  .dropdown-toggle{ display: none; }

  .site-nav{
    padding: 0 var(--edge) 0 calc(var(--edge) - 16px);   /* -16px = the first link's own padding */
    border-top: 1px solid var(--border);
  }

  .nav-list{
    display: flex;
    flex-direction: row;
    position: static;
    max-height: none;
    height: var(--nav-h);
    overflow: visible;
    gap: 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-list > li{
    position: relative;
    flex-wrap: nowrap;
    border: 0;
  }

  .nav-link{
    min-height: 0;
    padding: 0 16px;
    font-size: 15px;
  }
  .nav-link::before{                  /* active / hover marker becomes an underline */
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 0;
    width: auto;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red-bright), var(--red-deep));
    box-shadow: 0 0 10px var(--red-glow);
    transform: scaleX(0);
    transition: transform 0.28s ease;
  }
  .nav-link:hover{ color: var(--ink); }
  .nav-link:hover::before,
  .nav-link.active::before{ transform: scaleX(1); }
  .nav-link.active:hover{ color: var(--red); }

  .has-dropdown > .nav-link::after{   /* small chevron next to the label */
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.6;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
  }
  .has-dropdown:hover > .nav-link::after,
  .has-dropdown:focus-within > .nav-link::after{ transform: translateY(1px) rotate(-135deg); }

  /* Dropdown panels - hover (or keyboard focus) to reveal */
  .dropdown{
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-top: 2px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown{
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown a{
    padding: 10px 14px;
    font-size: 15px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  }
  .dropdown a::before{ display: none; }
  .dropdown a:hover{
    background: var(--red-soft);
    color: var(--ink);
    padding-left: 20px;
  }
}

/* =========================================================
   SECTION 3 : MAIN CONTENT
   ========================================================= */
.page-inner{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter);
  animation: rise 0.45s ease both;
}
@keyframes rise{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: none; }
}

.page-inner h1{
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.page-inner h1 span{ color: var(--red); }
.page-inner h1::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red-bright), var(--red-deep));
  box-shadow: 0 0 12px var(--red-glow);
}

.lead{
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

.breadcrumb{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.breadcrumb a{ color: var(--red); }
.breadcrumb a:hover{ text-decoration: underline; }

.notice{
  display: inline-block;
  margin-top: 24px;
  padding: 12px 18px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-left: 3px solid var(--red);
  border-radius: 8px;
}
.notice a{ color: var(--red); font-weight: 600; }
.notice a:hover{ text-decoration: underline; }

/* ---------- Home hero slideshow ---------- */
/* Almost a full screen, so the first thing seen is the photos; the start of the text below
   peeks in at the bottom, which invites scrolling. */
.hero{
  position: relative;
  flex: 0 0 auto;
  height: clamp(300px, calc(100vh - 200px), 760px);
  height: clamp(300px, calc(100dvh - 200px), 760px);
  overflow: hidden;
  background: var(--bg-2);
}
.hero-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.visible{ opacity: 1; }

/* HUD-style corner brackets */
.hero::before,
.hero::after{
  content: "";
  position: absolute;
  z-index: 6;
  width: 30px;
  height: 30px;
  border: 0 solid var(--red-bright);
  pointer-events: none;
}
.hero::before{ top: 14px; left: 14px; border-top-width: 3px; border-left-width: 3px; }
.hero::after{ right: 14px; bottom: 14px; border-right-width: 3px; border-bottom-width: 3px; }

/* Screen-reader-only text (the home page heading, since the hero shows pictures only) */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Home: text under the slideshow ---------- */
.home-intro{ padding-top: clamp(28px, 4vw, 52px); }
.home-intro h1{ font-size: clamp(20px, 2.6vw, 30px); }
.home-lead{ max-width: 860px; margin-bottom: 12px; font-size: 18px; line-height: 1.65; }
.home-lead strong{ color: var(--ink); }
.home-tiles{ margin-top: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.home-actions{ display: flex; flex-wrap: wrap; gap: 12px; max-width: none; margin-top: 26px; }

/* ---------- Cards (Products / Downloads overview) ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-top: 28px;
}
.card{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red-bright), var(--red-deep));
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:active::before{ transform: scaleX(1); }
.card-eyebrow{
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
}
.card-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
}
.card-text{ font-size: 16px; color: var(--text-muted); }

@media (hover: hover){
  .card:hover{
    transform: translateY(-3px);
    border-color: rgba(215, 0, 0, 0.28);
    box-shadow: var(--shadow-md);
  }
  .card:hover::before{ transform: scaleX(1); }
}

/* ---------- Download pages ---------- */
.dl-category{ margin-top: 34px; }
.dl-category-title{
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.dl-category-title::before{
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-bright), var(--red-deep));
  box-shadow: 0 0 10px var(--red-glow);
}

.dl-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  max-width: 940px;
}
.dl-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dl-get{                              /* round download-arrow badge */
  flex-shrink: 0;
  padding: 6px;
  width: 30px;
  height: 30px;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 50%;
}
.dl-item > span{ display: inline-flex; align-items: center; gap: 8px; }
.dl-item .dl-icon{                    /* small text marker used on product pages */
  flex-shrink: 0;
  font-size: 13px;
  color: var(--red);
}
.dl-note{
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.dl-item:has(.dl-note){               /* feature line with a description: title above, note below */
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}
.dl-item.is-pending{
  border-left-color: var(--border-strong);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.dl-badge{
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-2);
  border-radius: 999px;
}
a.dl-item:active{ background: var(--red-soft); }
@media (hover: hover){
  a.dl-item:hover{
    transform: translateX(3px);
    border-color: rgba(215, 0, 0, 0.30);
    border-left-color: var(--red);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- Price / Stock PDF page ---------- */
.doc-head{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 20px;
}
.doc-actions{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.doc-frame{
  height: 80vh;
  height: 80dvh;
  min-height: 420px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.doc-frame embed{ display: block; width: 100%; height: 100%; }
.doc-fallback{ max-width: none; margin-top: 16px; text-align: center; font-size: 15px; color: var(--text-muted); }
.doc-fallback a{ color: var(--red); font-weight: 700; }

.doc-head > form{ margin-bottom: 18px; }   /* the admin "Sign out" button */
.doc-updated{ max-width: none; margin: -4px 0 14px; font-size: 15px; color: var(--text-dim); }

/* ---------- Admin: stock / price upload ---------- */
.admin-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
  margin-top: 26px;
}
.admin-card{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.admin-card h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.admin-meta{ display: grid; gap: 4px; font-size: 15px; color: var(--text-muted); }
.admin-meta strong{ color: var(--ink); }
.admin-links a{ font-size: 15px; font-weight: 600; color: var(--red); }
.admin-links a:hover{ text-decoration: underline; }
.admin-card form{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
}
.admin-card label{ font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.admin-card .form-error{ margin-top: 0; max-width: none; }
.admin-card .btn{ align-self: flex-start; }

input[type="file"]{
  width: 100%;
  padding: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
}
input[type="file"]::file-selector-button{
  margin-right: 12px;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.admin-archive summary{ cursor: pointer; font-weight: 600; color: var(--text-muted); }
.admin-archive ul{ display: grid; gap: 6px; margin-top: 10px; }
.admin-archive li{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14.5px; color: var(--text-muted); }
.admin-archive a{ font-weight: 600; color: var(--red); }

.form-success{
  max-width: none;
  margin-top: 22px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #0b5d2c;
  background: rgba(37, 211, 102, 0.10);
  border: 1px solid rgba(15, 122, 63, 0.30);
  border-left: 3px solid #128c4a;
  border-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary{
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  box-shadow: 0 8px 22px rgba(215, 0, 0, 0.28);
}
.btn-ghost{
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border-strong);
}
@media (hover: hover){
  .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(215, 0, 0, 0.36); }
  .btn-ghost:hover{ transform: translateY(-2px); background: var(--red-soft); }
}

/* ---------- Inquiry form ---------- */
.inquiry-form{
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 660px;
  margin-top: 26px;
  padding: clamp(18px, 3vw, 32px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-row{ display: flex; flex-direction: column; gap: 6px; }
.form-row-split{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-split > div{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.inquiry-form label{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.inquiry-form .req{ color: var(--red); }

.inquiry-form input,
.inquiry-form textarea{
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;                 /* 16px stops iOS zooming into the field */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus{
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 0, 0, 0.16);
}
.inquiry-form [aria-invalid="true"]{ border-color: var(--red); }

.char-counter{
  align-self: flex-end;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.char-counter.is-limit{ color: var(--red); font-weight: 700; }

.btn-submit{ align-self: flex-start; }

.form-error{
  max-width: 660px;
  margin-top: 22px;
  padding: 12px 16px;
  font-size: 15px;
  color: #7f0000;
  background: rgba(215, 0, 0, 0.06);
  border: 1px solid rgba(215, 0, 0, 0.25);
  border-left: 3px solid var(--red);
  border-radius: 8px;
}
.form-error ul{ margin-top: 6px; padding-left: 18px; list-style: disc; }
.form-error + .form-error{ margin-top: 12px; }

/* Honeypot - off-screen, invisible to people and screen readers */
.hp-field{
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Confirmation modal ---------- */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 18, 32, 0.45);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn{ from{ opacity: 0; } to{ opacity: 1; } }

.modal-card{
  width: 100%;
  max-width: 400px;
  padding: 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.25);
}
.modal-card h2{
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}
.modal-card p{ margin-bottom: 24px; font-size: 16px; color: var(--text-muted); }

/* ---------- Error pages ---------- */
.error-page{ text-align: left; }
.error-code{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 14vw, 128px);
  line-height: 1;
  color: var(--red);
  text-shadow: 0 6px 30px rgba(255, 43, 43, 0.25);
}
.error-page .btn{ margin-top: 26px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 44px;
  padding: 8px var(--edge);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.visitor-counter{
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.visitor-counter #visitor-count{
  font-weight: 700;
  color: var(--red);
}

/* =========================================================
   CONTENT PAGES : Company Profile, Products, Contact
   ========================================================= */

/* running text; :where() keeps this easy to override with any class */
:where(.page-inner) p{ max-width: 720px; line-height: 1.6; color: var(--text-muted); }
:where(.page-inner) p a{ font-weight: 600; color: var(--red); }
:where(.page-inner) p a:hover{ text-decoration: underline; }

/* ---------- Tags ---------- */
.tag{
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.tag-agent{ color: var(--red); background: var(--red-soft); border-color: rgba(215, 0, 0, 0.35); }

/* ---------- Company profile ---------- */
.profile-badges{ display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 26px; }
.profile-badge{
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 160px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.badge-num{ font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); }
.badge-label{ font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }

.profile-lead{ max-width: 820px; font-size: 17px; }
.profile-lead strong{ font-weight: 700; color: var(--ink); }
.profile-lead.is-tight{ margin-top: 8px; }

.vm-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 32px 0 10px;
}
.vm-card{
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.vm-label{
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.vm-card p{ max-width: none; font-size: 16px; line-height: 1.65; }
.vm-card ul{ display: flex; flex-direction: column; gap: 11px; }
.vm-card li{ position: relative; padding-left: 18px; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.vm-card li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.section-intro{ margin-bottom: 14px; }
.dl-item.is-more{                     /* "... and many more" closes a list */
  color: var(--text-dim);
  background: transparent;
  border-style: dashed;
  border-left-style: solid;
  box-shadow: none;
}

.profile-subgroup{ margin-bottom: 22px; }
.profile-subgroup-title{
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec-table-wrap + .profile-subgroup-title{ margin-top: 28px; }   /* several tables in a row */
.profile-subgroup-title.is-first{ margin-top: 0; }

/* ---------- Product pages ---------- */
.product-header{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 8px;
}
.product-header-text{ flex: 1 1 360px; min-width: min(100%, 280px); }
.product-header-text h1{ margin-bottom: 14px; }
.product-tagline{ max-width: 540px; margin-bottom: 18px; font-size: 18px; }
.product-badges{ display: flex; flex-wrap: wrap; gap: 8px; }
.product-hero-img{
  flex: 1 1 320px;
  max-width: 460px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.product-hero-img img{ display: block; width: 100%; height: auto; }

.range-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  max-width: 760px;
  margin-top: 20px;
}
.range-card{
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.range-value{ margin-bottom: 6px; font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--ink); }
.range-label{ font-size: 14px; letter-spacing: 0.03em; color: var(--text-muted); }

.feature-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
  margin-top: 20px;
}
.feature-card{
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.feature-title{ margin-bottom: 8px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.feature-card p{ max-width: none; font-size: 15px; line-height: 1.55; }

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 20px;
}
.gallery-item{
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.gallery-item img{ display: block; width: 100%; height: 200px; object-fit: cover; background: #fff; }
.gallery-item figcaption{ padding: 10px 14px; font-size: 13.5px; line-height: 1.4; color: var(--text-muted); }

/* Specification tables */
.spec-table-wrap{
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.spec-table{ width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th,
.spec-table td{ padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td{ border-bottom: 0; }
.spec-table tr > th{ width: 240px; font-weight: 700; color: var(--ink); background: var(--bg); }
.spec-table tr > td{ color: var(--text); }

/* number tables (model / current / power ...): keep each row on one line, scroll sideways if needed */
.spec-table-compact th,
.spec-table-compact td{ white-space: nowrap; }
.spec-table-compact thead th{
  width: auto;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
}
.spec-table-compact td{ color: var(--text-muted); }
.spec-table-compact td:first-child{ font-weight: 700; color: var(--ink); }

.dims-layout{ display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; margin-top: 20px; }
.dims-img{
  flex: 1 1 320px;
  max-width: 380px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.dims-table-col{ flex: 1 1 420px; min-width: min(100%, 280px); }
.dims-table-col .spec-table-wrap{ margin-top: 0; }
.dims-note{ max-width: 560px; margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }

.sourcing-cta{
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 820px;
  margin-top: 24px;
  padding: 18px 22px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 43, 43, 0.07), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(215, 0, 0, 0.28);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.sourcing-icon{
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(215, 0, 0, 0.3);
  border-radius: 50%;
}
.sourcing-cta p{ max-width: none; margin: 0; line-height: 1.5; color: var(--text); }
.sourcing-cta a{ font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact page ---------- */
.contact-downloads{ display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 4px; }
.contact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  max-width: 900px;
  margin-top: 28px;
}
.contact-card{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.contact-icon{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 50%;
}
.contact-text{ min-width: 0; }
.contact-label{
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-value{ font-size: 17px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.contact-value a:hover{ color: var(--red); }

.contact-card-wa{ border-left-color: #25d366; background: linear-gradient(135deg, rgba(37, 211, 102, 0.10), var(--surface) 70%); }
.contact-icon-wa{ color: #128c4a; background: rgba(37, 211, 102, 0.16); }
.wa-tap{ display: block; margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: #0f7a3f; }
@media (hover: hover){
  a.contact-card:hover{ transform: translateX(3px); box-shadow: var(--shadow-md); }
}

.contact-map{
  max-width: 900px;
  height: 340px;
  margin-top: 32px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe{ display: block; width: 100%; height: 100%; border: 0; }

/* =========================================================
   SMALL SCREENS (spacing / layout only - the menu is handled above)
   ========================================================= */
@media (max-width: 780px){
  .lead{ font-size: 16px; }

  .hero{ min-height: 300px; }

  .form-row-split{ grid-template-columns: 1fr; }
  .btn-submit{ align-self: stretch; }

  .doc-frame{ min-height: 360px; }

  .sourcing-cta{ align-items: flex-start; }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-map{ height: 240px; }
  .product-header{ flex-direction: column; align-items: stretch; }
  .product-hero-img{ max-width: 100%; order: -1; }
  .gallery-item img{ height: 170px; }
  .dims-layout{ flex-direction: column; }
  .dims-img{ max-width: 100%; }
  .spec-table tr > th{ width: 38%; white-space: normal; }
  .spec-table td{ min-width: 0; }

  .site-footer{ justify-content: center; text-align: center; font-size: 12px; }
}

@media (max-width: 380px){
  .logo-img{ height: 34px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation: none !important;
    transition: none !important;
  }
}
