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

:root {
  --orange:  #f5a623;
  --orange-d:#d4891a;
  --dark:    #2c2c2c;
  --gray-bg: #d9d9d9;
  --white:   #ffffff;
  --text:    #333333;
  --text-lt: #555555;
  --border:  #c8c8c8;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.18);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ─── Typography ────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }

.section-heading-orange {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 2.5rem;
}
.section-label-orange {
  display: block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: .6rem;
}

.drop-cap {
  float: left;
  font-size: 3.8rem; font-weight: 800; line-height: .8;
  margin: .05em .12em 0 0;
  color: var(--orange);
}

/* ─── Layout ────────────────────────────────────────────────────────────── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 5rem 0; }
.section-gray { background: var(--gray-bg); }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 2rem; border-radius: 6px;
  font-size: .95rem; font-weight: 600; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--orange); color: var(--dark); }
.btn-primary:hover { background: var(--orange-d); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

/* ─── NAV ───────────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20,20,20,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .3s;
}
#nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.5); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--white); letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: .1rem; }
.nav-links li a {
  color: rgba(255,255,255,.8);
  font-size: .88rem; font-weight: 500; font-style: italic;
  padding: .3rem .9rem; transition: color .2s;
}
.nav-links li a:hover { color: var(--orange); }
.nav-sep { color: rgba(255,255,255,.3); font-size: .9rem; user-select: none; }
.nav-links li:last-child a { font-weight: 700; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ─── HERO ──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: flex-end;
  padding-top: 64px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.35) 100%),
    url('images/hero-bg.jpg') center/cover no-repeat;
  background-color: #1a2a3a;
}
.hero-inner { position: relative; z-index: 1; padding-bottom: 6rem; max-width: 680px; }
.hero-logo { margin-bottom: 1.5rem; }
.hero-logo img { width: 90px; height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.hero-title {
  color: var(--orange); font-style: italic; font-weight: 800;
  margin-bottom: .6rem; text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-tagline {
  font-size: 1.5rem; font-weight: 500; color: var(--white);
  text-shadow: 0 1px 8px rgba(0,0,0,.5); margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── INTRO ─────────────────────────────────────────────────────────────── */
.intro-inner {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start;
}
.intro-text {
  font-size: 1.05rem; color: var(--text); line-height: 1.75;
  margin-bottom: 2.5rem; overflow: hidden;
}

/* ─── ACCORDION ─────────────────────────────────────────────────────────── */
.accordion-group { display: flex; flex-direction: column; gap: 0; }

.accordion-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item:first-child { border-top: 1px solid var(--border); }
/* In 2-col grid, manage borders per column */
.accordion-2col .accordion-item { border-top: 1px solid var(--border); }

.accordion-trigger {
  width: 100%; display: flex; align-items: center; gap: .85rem;
  background: none; border: none; cursor: pointer;
  padding: 1rem 0; text-align: left;
  transition: background .15s;
}
.accordion-trigger:hover .accordion-title { color: var(--orange); }

.check-icon, .app-check {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.check-icon svg, .app-check svg { width: 13px; height: 13px; stroke: white; }

.app-check { width: 32px; height: 32px; }
.app-check svg { width: 15px; height: 15px; }

.accordion-title {
  flex: 1; font-size: .97rem; font-weight: 700; color: var(--dark);
  transition: color .2s;
}

.accordion-arrow {
  flex-shrink: 0; width: 20px; height: 20px;
  color: var(--text-lt); transition: transform .3s;
}
.accordion-arrow svg { width: 20px; height: 20px; stroke: currentColor; }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }

.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
}
.accordion-item.open .accordion-body { max-height: 600px; }

.accordion-body p {
  font-size: .85rem; color: var(--text-lt);
  line-height: 1.7; padding-bottom: 1.1rem;
}

/* ─── ILLUSTRATIONS ─────────────────────────────────────────────────────── */
.illus-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem; justify-items: center;
}
.illus-item { text-align: center; }
.illus-item figure { display: flex; flex-direction: column; align-items: center; }
.illus-link { display: block; }
.illus-link figure img {
  max-height: 130px; width: auto; object-fit: contain;
  transition: transform .3s;
}
.illus-link:hover figure img { transform: scale(1.08); }
.illus-link:hover figcaption { color: var(--orange); }
.illus-item figure.no-img { opacity: .3; }
.illus-item figcaption {
  font-size: .82rem; font-weight: 700; font-style: italic;
  color: var(--dark); margin-top: .6rem;
}

/* ─── PHOTO STRIP ───────────────────────────────────────────────────────── */
.photo-strip { overflow: hidden; }
.photo-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.photo-strip-inner img {
  width: 100%; height: 280px; object-fit: cover; display: block;
  transition: transform .4s;
}
.photo-strip-inner img:hover { transform: scale(1.04); }

/* ─── VIDEO ─────────────────────────────────────────────────────────────── */
#video h2 { margin-bottom: 1.75rem; }
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  background: #000;
}
.video-wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ─── PRODUCTS ──────────────────────────────────────────────────────────── */
.product-row {
  display: grid; grid-template-columns: 1fr 1fr 1.5fr;
  gap: 2.5rem; align-items: center;
  padding: 3rem 0; border-bottom: 1px solid var(--border);
}
.product-row:last-child { border-bottom: none; }

.product-row-illus { display: flex; justify-content: center; }
.product-row-illus img {
  max-height: 200px; width: auto; object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.1));
}
.product-row-illus-placeholder {
  height: 160px; width: 100%; background: rgba(0,0,0,.04);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}

.product-row-info h3 {
  font-size: 1.1rem; font-weight: 700; font-style: italic;
  color: var(--dark); margin-bottom: .9rem;
}
.product-row-info ul { margin-bottom: 1rem; }
.product-row-info ul li {
  font-size: .88rem; color: var(--text-lt);
  padding: .18rem 0; display: flex; align-items: center; gap: .5rem;
}
.product-row-info ul li::before { content: '•'; color: var(--orange); font-size: 1.2rem; line-height: 1; }
.product-row-info p { font-size: .82rem; color: var(--text-lt); font-weight: 600; line-height: 1.55; }

/* ─── PRODUCT GALLERY ───────────────────────────────────────────────────── */
.product-gallery {
  display: grid; gap: 5px;
  border-radius: var(--radius); overflow: hidden;
}
.gallery-count-1 { grid-template-columns: 1fr; }
.gallery-count-2 { grid-template-columns: 1fr 1fr; }
.gallery-count-3 { grid-template-columns: 1fr 1fr; }
.gallery-count-3 .gallery-item:first-child { grid-column: span 2; }
.gallery-count-4 { grid-template-columns: 1fr 1fr; }
.gallery-count-5,
.gallery-count-6,
.gallery-count-7,
.gallery-count-8 { grid-template-columns: repeat(4, 1fr); }
.gallery-count-5 .gallery-item,
.gallery-count-6 .gallery-item,
.gallery-count-7 .gallery-item,
.gallery-count-8 .gallery-item { aspect-ratio: 1; }

.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
  display: block;
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-more {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.6rem; font-weight: 800;
  letter-spacing: -.02em;
  transition: background .2s;
}
.gallery-item:hover .gallery-more { background: rgba(0,0,0,.65); }

/* ─── LIGHTBOX ──────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lb-content {
  max-width: 90vw; max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  max-width: 90vw; max-height: 82vh;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  user-select: none;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.12); border: none;
  color: var(--white); cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }

.lb-close {
  top: 1.25rem; right: 1.5rem;
  width: 44px; height: 44px; font-size: 1.6rem; line-height: 1;
}
.lb-prev, .lb-next {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; font-size: 2rem; line-height: 1;
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

.lb-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .85rem; font-weight: 500;
  background: rgba(0,0,0,.4); padding: .3rem .9rem; border-radius: 100px;
}

/* ─── MODEL ACCORDION ───────────────────────────────────────────────────── */
.model-list { margin-bottom: 1rem; }

.model-item { border-bottom: 1px solid var(--border); }
.model-item:first-child { border-top: 1px solid var(--border); }

.model-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; background: none; border: none; cursor: pointer;
  padding: .6rem 0; text-align: left;
}
.model-trigger:hover .model-name { color: var(--orange); }

.model-name {
  font-size: .88rem; font-weight: 600; color: var(--dark);
  transition: color .2s;
  display: flex; align-items: center; gap: .5rem;
}
.model-name::before { content: '•'; color: var(--orange); font-size: 1.1rem; line-height: 1; }

.model-arrow {
  flex-shrink: 0; width: 16px; height: 16px; color: var(--text-lt);
  transition: transform .25s;
}
.model-arrow svg { width: 16px; height: 16px; stroke: currentColor; }
.model-item.open .model-arrow { transform: rotate(180deg); }

.model-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.model-item.open .model-body { max-height: 300px; }

.model-specs {
  width: 100%; border-collapse: collapse;
  margin-bottom: .75rem;
}
.model-specs td {
  padding: .3rem .5rem; font-size: .8rem; vertical-align: top;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.model-specs td:first-child {
  font-weight: 700; color: var(--dark); white-space: nowrap;
  width: 40%; padding-left: 0;
}
.model-specs td:last-child { color: var(--text-lt); }
.model-note { color: var(--text-lt) !important; font-style: italic; }

.datasheet-link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .6rem; margin-bottom: .75rem;
  padding: .45rem 1rem;
  background: var(--orange); color: var(--dark);
  border-radius: 6px; font-size: .8rem; font-weight: 700;
  transition: background .2s, transform .15s;
}
.datasheet-link:hover { background: var(--orange-d); transform: translateY(-1px); }
.datasheet-link svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ─── GENERAL GALLERY ───────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.gallery-grid .gallery-item {
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
}
.gallery-grid .gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
  display: block;
}
.gallery-grid .gallery-item:hover img { transform: scale(1.06); }

/* ─── ABOUT ─────────────────────────────────────────────────────────────── */
.about-inner {
  display: grid; grid-template-columns: 200px 1fr; gap: 3.5rem; align-items: start;
}
.about-logo img {
  width: 160px; height: auto; margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.15));
}
.about-content { overflow: hidden; }
.about-text {
  font-size: .95rem; color: var(--text-lt); line-height: 1.75; margin-bottom: 1.75rem; overflow: hidden;
}
.about-photos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
  border-radius: var(--radius); overflow: hidden;
}
.about-photos img { width: 100%; height: 160px; object-fit: cover; transition: transform .3s; }
.about-photos img:hover { transform: scale(1.05); }

/* ─── CONTACT ───────────────────────────────────────────────────────────── */
.contact-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start;
}
.contact-map iframe { border-radius: var(--radius); display: block; box-shadow: var(--shadow); }

.contact-email { font-size: 1.8rem; font-weight: 800; margin-bottom: .75rem; }
.contact-email a { color: var(--orange); transition: color .2s; }
.contact-email a:hover { color: var(--orange-d); }

.contact-address { font-style: normal; font-size: .9rem; color: var(--text-lt); margin-bottom: 2rem; }

.contact-form { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-lt); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 6px; padding: .65rem .9rem;
  color: var(--dark); font-family: var(--font); font-size: .92rem; outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }
.form-group textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { margin-top: .25rem; }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
footer { background: #1a1a1a; border-top: 1px solid rgba(255,255,255,.06); padding: 2.5rem 0 1.5rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand span { color: rgba(255,255,255,.5); font-size: .88rem; font-style: italic; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,.45); font-size: .82rem; font-style: italic; transition: color .2s; }
.footer-nav a:hover { color: var(--orange); }
.footer-copy {
  color: rgba(255,255,255,.25); font-size: .78rem;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.25rem; width: 100%; text-align: center;
}

/* ─── TOAST ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: #16a34a; color: white; padding: .9rem 1.5rem;
  border-radius: 8px; font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: .3s cubic-bezier(.34,1.56,.64,1);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .intro-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-row { grid-template-columns: 1fr 1fr; }
  .product-row-gallery { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .accordion-2col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .product-row { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-logo { text-align: center; }
  .about-photos { grid-template-columns: 1fr 1fr; }
  .photo-strip-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(20,20,20,.97); padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,.08); gap: 0;
  }
  .nav-links.open .nav-sep { display: none; }
  .nav-links.open li a { display: block; padding: .65rem 0; font-size: 1rem; }
  .nav-toggle { display: flex; }
}
@media (max-width: 500px) {
  .section { padding: 3.5rem 0; }
  .hero-actions { flex-direction: column; }
  .illus-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .photo-strip-inner { grid-template-columns: 1fr 1fr; }
  .lb-prev { left: .5rem; }
  .lb-next { right: .5rem; }
}
