:root{
  --bg:#f8fafc;--panel:#fff;--muted:rgba(255,255,255,.6);
  --ink:#0f172a;--dim:#475569;--teal:#0f766e;--teal-700:#0e665f;
  --line:#e2e8f0;--shadow:0 10px 24px rgba(2,8,23,.06),0 2px 6px rgba(2,8,23,.06)
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;color:var(--ink);background:#f8fafc;
  overflow-x:hidden;font:16px/1.6 system-ui,Segoe UI,Inter,Arial}
img{max-width:100%;height:auto;display:block}

/* HEADER */
.header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.9);
  backdrop-filter:blur(6px);border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;padding:10px 16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.brand-logo{height:28px;width:auto}
.brand-text{display:flex;flex-direction:column}
.brand-name{font-weight:800;letter-spacing:.2px}
.brand-tagline{color:var(--dim);font-size:12px}
.nav{display:flex;gap:16px;align-items:center}
.nav a{color:#0f172a;text-decoration:none;font-size:14px;padding:8px 10px;border-radius:10px}
.nav a:hover,.nav a.active{color:var(--teal)}
.nav-toggle{display:none;background:none;border:0;padding:8px;cursor:pointer}
.nav-toggle span{display:block;width:20px;height:2px;background:#0b1220;margin:4px 0;border-radius:2px}

/* MOBILE NAV */
@media (max-width:1200px){
  .nav{display:none!important}
  .nav.open{display:flex!important;position:absolute;right:10px;top:60px;
    background:#fff;border:1px solid var(--line);border-radius:12px;
    box-shadow:var(--shadow);padding:10px;flex-direction:column}
  .nav-toggle{display:inline-block!important}
}

/* HERO */
.hero{position:relative;min-height:56vh}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero .unmute{position:absolute;right:16px;bottom:16px;z-index:3;
  background:rgba(15,118,110,.95);color:#fff;border:0;padding:8px 12px;
  border-radius:999px;font-size:14px;cursor:pointer;
  box-shadow:0 4px 12px rgba(2,8,23,.25)}
.hero-overlay{position:absolute;inset:0;
  background:linear-gradient(to top,rgba(2,6,23,.40),
                              rgba(2,6,23,.18),
                              rgba(2,6,23,.04))}
.hero-content{position:relative;z-index:1;max-width:1100px;margin:0 auto;
  padding:72px 16px;color:#fff}
.hero h1{font-size:clamp(32px,5vw,56px);line-height:1.05;margin:0 0 12px;
  font-weight:900}
.hero p{max-width:780px;margin:0 0 18px;color:#e2e8f0}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;
  border-radius:12px;border:1px solid transparent;cursor:pointer;
  font-weight:600;text-decoration:none}
.btn.primary{background:var(--teal);color:#fff}
.btn.primary:hover{background:var(--teal-700)}
.brochure-btn{background:rgba(241,245,249,.30);color:#fff;
  border:1px solid rgba(255,255,255,.3)}
.brochure-btn:hover{background:rgba(241,245,249,.45)}

/* SECTIONS */
.section{max-width:1100px;margin:0 auto;padding:56px 16px}
.section.muted{background:rgba(255,255,255,.65);backdrop-filter:blur(2px);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.two-col{display:grid;grid-template-columns:1.2fr .8fr;gap:24px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow);padding:20px}
.cards-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.cards-2{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}

/* APPS */
.apps-grid{list-style:none;padding-left:0;margin:12px 0 0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.apps-grid li{display:flex;align-items:center;gap:10px;line-height:1.35}
.ic{width:48px;height:48px;object-fit:contain;flex:0 0 48px}
.ic-lg{width:72px;height:72px;object-fit:contain;margin-bottom:8px}

/* CERTIFICATION STRIP */
.cert-strip{margin-top:16px;display:flex;justify-content:center}
.cert-strip img{max-height:180px;opacity:.95}

/* CONTACT FORM */
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.form-grid input,.form-grid textarea{border:1px solid var(--line);
  border-radius:12px;padding:12px 14px;font:inherit;outline:none;width:100%;
  min-width:0}
.form-grid input:focus,.form-grid textarea:focus{
  border-color:#94a3b8;box-shadow:0 0 0 3px rgba(15,118,110,.15)}
.form-grid .span2{grid-column:span 2}
.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* ============== ANIMATIONS (fade-up on view) ============== */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}

/* CONTACT CARDS */
.contact-cards{margin-top:16px}
.contact-cards .card{
  text-align:center;
  padding:20px;
  opacity:0;
  transform:translateY(20px);
  transition:transform .6s ease, box-shadow .3s ease, opacity .6s ease;
  animation:fadeUp 1s ease forwards;
  animation-timeline:view();
  animation-range:entry 10% cover 30%;
}
.contact-cards .card:nth-child(2){animation-delay:.08s}
.contact-cards .card:nth-child(3){animation-delay:.16s}
.contact-cards .card:nth-child(4){animation-delay:.24s}
.contact-cards .card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}
.contact-cards .card h3{margin-bottom:.5rem}
.contact-cards .card p a{
  color:var(--teal);
  font-weight:600;
  text-decoration:none;
}
.contact-cards .card p a:hover{text-decoration:underline}

/* HIGHLIGHTS & SPECS: fade-up on view with gentle stagger */
.cards-3 .card,
.cards-2 .card{
  opacity:0;
  transform:translateY(14px);
  animation:fadeUp .9s ease forwards;
  animation-timeline:view();
  animation-range:entry 10% cover 25%;
}

/* Stagger within rows */
.cards-3 .card:nth-child(1),
.cards-2 .card:nth-child(1){animation-delay:.02s}
.cards-3 .card:nth-child(2),
.cards-2 .card:nth-child(2){animation-delay:.10s}
.cards-3 .card:nth-child(3),
.cards-2 .card:nth-child(3){animation-delay:.18s}
.cards-3 .card:nth-child(4),
.cards-2 .card:nth-child(4){animation-delay:.26s}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .contact-cards .card,
  .cards-3 .card,
  .cards-2 .card{
    animation:none!important;
    opacity:1!important;
    transform:none!important;
  }
}

/* FOOTER */
.footer{background:rgba(11,18,32,.92);color:#cbd5e1;margin-top:12px}
.footer-inner{max-width:1100px;margin:0 auto;display:grid;gap:16px;
  grid-template-columns:1.2fr 1fr 1fr;padding:18px 16px}
.footer-brand{font-weight:800}
.footer-cert-logos{margin-top:8px}
.footer-cert-logos img{max-height:80px;opacity:.95;display:block;max-width:100%}
.footer-bottom{text-align:center;color:#94a3b8;border-top:1px solid
  rgba(255,255,255,.1);padding:10px}

/* GALLERY */
.section > p.dim{display:none!important;}
#filters,.filters{display:none!important;}
.filters h1,.filters h2,.filters .filter-heading,.filters .section-title{display:none!important;}
.filters::before{content:none!important;display:none!important;}

.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.gallery-card{position:relative;overflow:hidden;border-radius:16px;
  background:#f1f5f9;border:1px solid var(--line)}
.gallery-card img,.gallery-card video{width:100%;height:220px;object-fit:cover;display:block}
.gallery-card .cap{display:none!important}
.play-badge{position:absolute;right:8px;bottom:36px;background:rgba(2,6,23,.65);color:#fff;padding:6px 8px;border-radius:999px;font-size:12px}

/* LIGHTBOX */
.lightbox[hidden]{display:none!important}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.75);
  display:flex;align-items:center;justify-content:center;padding:20px}
.lightbox-inner{max-width:1100px;width:100%}
.lightbox .caption{display:none!important}
.lightbox img,.lightbox video{width:100%;max-height:78vh;
  object-fit:contain;background:#000;border-radius:12px}
.lightbox-close{position:absolute;top:10px;right:10px;background:#fff;
  border:0;border-radius:10px;padding:8px 10px;cursor:pointer}
.lightbox video::-webkit-media-controls-enclosure{overflow:hidden}
.lightbox video::-internal-media-controls-download-button{display:none}

/* RESPONSIVE FIXES */
@media (max-width:980px){
  .two-col{grid-template-columns:1fr}
  .cards-3{grid-template-columns:1fr}
  .cards-2{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr}
}
@media (max-width:1024px){
  .form-grid{grid-template-columns:1fr!important}
  .form-grid>*{grid-column:1/-1!important}
}
@media (max-width:640px){
  .gallery-grid{grid-template-columns:1fr}
}

/* ===== Contact cards: 4 / 2 / 1 responsive grid ===== */
.cards-3.contact-cards {
  grid-template-columns: repeat(4, 1fr);
}

/* Large tablets / small laptops: 2 per row */
@media (max-width: 1280px) {
  .cards-3.contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones: 1 per row */
@media (max-width: 640px) {
  .cards-3.contact-cards {
    grid-template-columns: 1fr;
  }
}
