/* ============================================================
   Titanium for Electronic Systems — public site styles
   Brand palette (from company logo):
     --purple      #4D0FA3  titanium purple (primary)
     --purple-dark #3A0B7C
     --charcoal    #242121  logo text / dark sections
     --lavender    #F5F3FA  light section bg
   ============================================================ */

:root {
  --purple: #4D0FA3;
  --purple-dark: #3A0B7C;
  --purple-light: #A78BFA;
  --purple-tint: #EFE9FA;
  --charcoal: #242121;
  --charcoal-2: #34303B;
  --line-dark: #4A4457;
  --lavender: #F5F3FA;
  --border: #E5E1EE;
  --text: #242430;
  --muted: #6B6580;
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--purple);
  display: inline-block;
  margin-bottom: 10px;
}
.on-dark .eyebrow, .slide-content .eyebrow { color: var(--purple-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  letter-spacing: .02em;
}
.btn-accent { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-accent:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); margin-left: 10px; }
.btn-ghost:hover { border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--charcoal); border-color: var(--border); }
.btn-ghost-dark:hover { border-color: var(--purple); color: var(--purple); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-white { background: #fff; color: var(--purple); }
.btn-white:hover { background: var(--purple-tint); }

/* ---------- topbar ---------- */
.topbar { background: var(--purple); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #E9E1F8; margin-right: 18px; }
.topbar a:hover { color: #fff; }
.topbar-social a { margin: 0 0 0 14px; }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(36,33,33,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; }
.brand-logo { height: 54px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a, .nav-drop > a {
  color: var(--charcoal); font-weight: 500; font-size: 15px;
  padding: 10px 0; position: relative;
}
.main-nav > a:hover, .nav-drop > a:hover { color: var(--purple); }
.main-nav > a.active, .nav-drop > a.active { color: var(--purple); }
.main-nav > a.active::after, .nav-drop > a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--purple);
}
.nav-cta { padding: 10px 20px !important; color: #fff !important; }

.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  box-shadow: 0 14px 32px rgba(36,33,33,.12);
  display: none; flex-direction: column; padding: 6px 0;
  border-radius: 0 0 8px 8px;
}
.nav-drop:hover .nav-drop-menu { display: flex; }
.nav-drop-menu a { color: var(--text); padding: 10px 18px; font-size: 14px; }
.nav-drop-menu a:hover { background: var(--purple-tint); color: var(--purple); }
.nav-drop-menu .ext { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: .2s; }

/* ---------- hero / slider ---------- */
.hero { position: relative; background: var(--purple-dark); }
.slider { position: relative; overflow: hidden; }
.slide {
  min-height: 480px;
  background-size: cover; background-position: center;
  display: none; align-items: center; position: relative;
}
.slide.active { display: flex; }
.static-hero {
  background:
    radial-gradient(ellipse at 78% 15%, rgba(167,139,250,.25), transparent 55%),
    linear-gradient(150deg, #2C0861 10%, var(--purple) 65%, #6318C9);
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(44,8,97,.88) 15%, rgba(44,8,97,.35) 70%);
}
.slide-content { position: relative; z-index: 2; color: #fff; padding-top: 60px; padding-bottom: 60px; max-width: 1200px; }
.slide-content h1 { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 14px; max-width: 660px; }
.slide-content p { font-size: 18px; color: #E4DCF5; margin-bottom: 26px; max-width: 560px; }
.slide-content .btn-accent { background: #fff; color: var(--purple); border-color: #fff; }
.slide-content .btn-accent:hover { background: var(--purple-tint); }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(36,33,33,.4); color: #fff;
  border: 1px solid rgba(255,255,255,.3); width: 44px; height: 44px;
  font-size: 24px; cursor: pointer; border-radius: 5px;
}
.slider-arrow:hover { background: #fff; color: var(--purple); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.dot { width: 26px; height: 4px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; }
.dot.active { background: #fff; }

/* ---------- sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--lavender); }
.section-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; color: var(--charcoal); }
.section-head .eyebrow { width: 100%; margin-bottom: 0; }
.link-more { margin-left: auto; font-weight: 600; color: var(--purple); font-size: 15px; }
.link-more:hover { text-decoration: underline; }

.grid { display: grid; gap: 22px; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* category cards */
.cat-card {
  background: linear-gradient(150deg, var(--purple-dark), var(--purple));
  color: #fff; padding: 26px;
  border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(77,15,163,.35); }
.cat-card h3 { font-size: 19px; }
.cat-card p { color: #E0D6F4; font-size: 14px; flex: 1; }
.cat-link { color: #fff; font-family: var(--font-mono); font-size: 13px; opacity: .9; }
.cat-card.cat-ext { background: var(--charcoal); }
.cat-card.cat-ext:hover { box-shadow: 0 14px 34px rgba(36,33,33,.35); }
.cat-card.cat-ext p { color: #C9C4CE; }

/* product cards */
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(77,15,163,.14); border-color: var(--purple); }
.product-thumb { position: relative; aspect-ratio: 4/3; background: var(--lavender); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.thumb-placeholder {
  font-family: var(--font-display); font-weight: 700; font-size: 40px;
  color: #C6BDDB;
}
.thumb-placeholder.big { font-size: 90px; }
.badge-new {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--purple); color: #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; letter-spacing: .1em;
}
.badge-new.inline { position: static; display: inline-block; margin-right: 8px; }
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 5px; }
.product-cat { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.product-info h3 { font-size: 16px; color: var(--charcoal); }
.product-capacity { font-family: var(--font-mono); font-size: 13px; color: var(--purple); }

/* ---------- generators band ---------- */
.gen-band { background: var(--charcoal); color: #fff; padding: 60px 0; }
.gen-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.gen-inner h2 { font-size: 28px; margin-bottom: 12px; }
.gen-inner p { color: #C9C4CE; margin-bottom: 22px; max-width: 560px; }
.gen-partner {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em;
  color: var(--purple-light); text-transform: uppercase; display: block; margin-bottom: 8px;
}
.gen-cta { text-align: right; }

/* ---------- about strip / CTA ---------- */
.about-strip { background: var(--lavender); }
.about-strip-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-strip h2 { font-size: 30px; margin-bottom: 14px; color: var(--charcoal); }
.about-strip p { color: var(--muted); margin-bottom: 24px; }
.about-points { display: flex; flex-direction: column; gap: 16px; }
.point {
  background: #fff; border-left: 4px solid var(--purple);
  padding: 16px 20px; border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 14px rgba(36,33,33,.06);
  display: flex; flex-direction: column; gap: 3px;
}
.point strong { font-family: var(--font-display); font-size: 17px; color: var(--charcoal); }
.point span { color: var(--muted); font-size: 14px; }

.cta-band { background: var(--purple); padding: 42px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 26px; }
.cta-band .btn-dark { background: #fff; color: var(--purple); }
.cta-band .btn-dark:hover { background: var(--purple-tint); }

/* ---------- page head ---------- */
.page-head {
  background: linear-gradient(150deg, #2C0861 10%, var(--purple) 70%, #6318C9);
  color: #fff; padding: 56px 0;
}
.page-head h1 { font-size: clamp(28px, 4vw, 42px); }
.page-head p { color: #E4DCF5; margin-top: 10px; max-width: 640px; }
.page-head .eyebrow { color: var(--purple-light); }
.page-head-slim { padding: 22px 0; }
.breadcrumb { font-size: 14px; color: #D5C9EE; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #fff; }

/* ---------- filter chips ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font-family: var(--font-mono); font-size: 13px;
  border: 1px solid var(--border); padding: 7px 16px; border-radius: 999px;
  color: var(--muted); transition: all .15s;
}
.chip:hover { border-color: var(--purple); color: var(--purple); }
.chip.active { background: var(--purple); border-color: var(--purple); color: #fff; }

.empty-note { color: var(--muted); }
.empty-note a { color: var(--purple); text-decoration: underline; }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.gallery-main {
  border: 1px solid var(--border); border-radius: 12px; background: var(--lavender);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gthumb {
  width: 76px; height: 60px; border: 2px solid var(--border); border-radius: 8px;
  background: var(--lavender); cursor: pointer; overflow: hidden; padding: 0;
}
.gthumb img { width: 100%; height: 100%; object-fit: contain; }
.gthumb.active, .gthumb:hover { border-color: var(--purple); }

.product-meta h1 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 14px; color: var(--charcoal); }
.spec-chip {
  display: inline-block; font-family: var(--font-mono); font-size: 13px;
  background: var(--purple-tint); color: var(--purple);
  padding: 6px 14px; border-radius: 5px; margin-bottom: 16px; letter-spacing: .06em;
  border: 1px solid #DCCFF5;
}
.product-meta .lead { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.product-desc { margin-top: 56px; }
.product-desc h2 { font-size: 24px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid var(--purple); display: inline-block; color: var(--charcoal); }
.desc-body { color: #3B3745; max-width: 820px; }

/* ---------- about page ---------- */
.about-page { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; }
.about-text { font-size: 17px; }
.about-points-page .point { background: var(--lavender); box-shadow: none; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.contact-info h2 { font-size: 24px; margin-bottom: 18px; color: var(--charcoal); }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; border-left: 4px solid var(--purple); padding-left: 14px; }
.contact-list strong { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a:hover { color: var(--purple); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: 15px;
  border: 1px solid #D8D3E4; border-radius: 8px; padding: 12px;
  transition: border-color .15s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--purple); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .btn { align-self: flex-start; }

.alert { padding: 16px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert-ok { background: #EBF6EE; border: 1px solid #9FD8B0; color: #1C6B36; }
.alert-err { background: #FBEAEA; border: 1px solid #E8A9A9; color: #8C2626; }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: #C9C4CE; }
.footer-trace {
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--purple) 0 40px, transparent 40px 52px,
    var(--line-dark) 52px 120px, transparent 120px 132px);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px; padding-top: 54px; padding-bottom: 44px;
}
.footer-logo { height: 58px; width: auto; }
.footer-about { font-size: 14px; margin-top: 16px; color: #A49EAD; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .06em; margin-bottom: 14px; text-transform: uppercase; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.site-footer ul a:hover { color: var(--purple-light); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 16px 0; font-size: 13px; color: #8A8492; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-strip-inner, .product-detail, .about-page, .contact-grid, .gen-inner { grid-template-columns: 1fr; gap: 34px; }
  .gen-cta { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar-social { display: none; }
  .nav-toggle { display: block; }
  .brand-logo { height: 44px; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 22px; gap: 4px; border-bottom: 3px solid var(--purple);
    box-shadow: 0 18px 30px rgba(36,33,33,.14);
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav > a, .nav-drop > a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-drop-menu { position: static; display: flex; border: 0; background: transparent; padding-left: 14px; box-shadow: none; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .slide { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- clients logo strip ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.client-logo {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  height: 96px; display: flex; align-items: center; justify-content: center;
  padding: 16px; transition: all .18s ease;
  filter: grayscale(1); opacity: .75;
}
.client-logo:hover { filter: none; opacity: 1; border-color: var(--purple); box-shadow: 0 10px 24px rgba(77,15,163,.12); transform: translateY(-3px); }
.client-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
@media (max-width: 600px) {
  .clients-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .client-logo { height: 78px; padding: 12px; }
}
