/* =========================================================
   AnalyzersHub - Global Styles (FINAL STABLE + ANIMATED LOGO)
   File: assets/css/style.css
========================================================= */

/* =========================
   BASE
========================= */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Arial, sans-serif;
  background:#f5f7fa;
  color:#222;
}
a{color:#1f78b4;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.muted{opacity:.85}

/* =========================
   HEADER (GLOBAL – SOLID)
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:#0b3c5d !important;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  box-shadow:0 2px 14px rgba(0,0,0,.22) !important;
}

.site-header *{
  filter:none !important;
}

.site-header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* =========================
   BRAND / LOGO (ANIMATED SVG + TAGLINE)
========================= */
.brand{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:12px;
  color:#fff;
  font-weight:900;
  letter-spacing:.2px;
  text-decoration:none;
}

/* Animated inline SVG logo (WITH TAGLINE) */
.site-logo-animated{
  display:block;
  height:60px;              /* increased to fit tagline */
  width:auto;
  max-width:280px;
}

/* Tablet */
@media(max-width:992px){
  .site-logo-animated{
    height:52px;
  }
}

/* Mobile */
@media(max-width:600px){
  .site-logo-animated{
    height:48px;
  }
}

/* Accessibility: Reduce motion */
@media (prefers-reduced-motion: reduce){
  .site-logo-animated *{
    animation:none !important;
    transition:none !important;
  }
}

/* Disable any old text branding */
.brand-text-wrap,
.brand-text,
.brand-sub{
  display:none !important;
}

/* =========================
   NAVIGATION
========================= */
.site-nav{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.site-nav a{
  color:#fff;
  font-weight:800;
  padding:8px 12px;
  border-radius:8px;
  opacity:.95;
  text-decoration:none;
}

.site-nav a:hover{
  background:rgba(255,255,255,.12);
  text-decoration:none;
}

.site-nav a.active{
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
}

.nav-sep{
  width:1px;
  height:18px;
  background:rgba(255,255,255,.35);
  margin:0 6px;
}
/* =========================
   DOMAIN SEARCH (HEADER DROPDOWN)
========================= */

/* Container for dropdown item */
.site-nav .nav-item{
  position:relative;
}

/* Domain Search label – styled EXACTLY like nav links */
.site-nav .nav-link{
  color:#fff;
  font-weight:800;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  opacity:.95;
  white-space:nowrap;
}

/* Hover style to match links */
.site-nav .nav-link:hover{
  background:rgba(255,255,255,.12);
}

/* Show dropdown on hover */
.site-nav .has-dropdown:hover .dropdown{
  display:block;
}

/* Dropdown panel */
.site-nav .dropdown{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  margin-top:6px;
  min-width:220px;
  background:#ffffff;
  border-radius:8px;
  box-shadow:0 6px 18px rgba(0,0,0,.22);
  z-index:9999;
}

/* Dropdown links */
.site-nav .dropdown a{
  display:block;
  padding:10px 14px;
  color:#0b3c5d;
  font-weight:800;
  text-decoration:none;
  border-radius:0;
}

/* Dropdown hover */
.site-nav .dropdown a:hover{
  background:#f0f4f8;
}

@media(max-width:900px){
  .site-header-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .nav-sep{
    display:none;
  }
}

/* =========================
   HERO – HOME
========================= */
.hero{
  min-height:360px;
  display:flex;
  align-items:center;
  color:#fff;
  background:
    linear-gradient(rgba(11,60,93,.95), rgba(11,60,93,.90)),
  url("images/home-hero.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.hero-inner{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px;
}

.hero h2{
  margin:0 0 8px;
  font-size:2.2rem;
  line-height:1.1;
  text-shadow:0 2px 14px rgba(0,0,0,.7);
}

.hero p{
  max-width:900px;
  font-size:1.05rem;
  text-shadow:0 2px 12px rgba(0,0,0,.7);
  opacity:.95;
}

.hero .btn{
  box-shadow:0 4px 14px rgba(0,0,0,.35);
}

@media(max-width:768px){
  .hero{
    min-height:260px;
    background-position:center top;
  }
  .hero h2{font-size:1.8rem}
}

/* =========================
   HERO – INNER PAGES
========================= */
.hero-search{
  min-height:240px;
  display:flex;
  align-items:center;
  color:#fff;
  background:
    linear-gradient(rgba(11,60,93,.96), rgba(11,60,93,.92)),
    url("images/home-hero.png")
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.hero-search .hero-inner{
  max-width:1200px;
  margin:0 auto;
  padding:20px 16px;
}

.hero-search h2,
.hero-search p{
  color:#fff;
  text-shadow:0 3px 16px rgba(0,0,0,.8);
}

/* =========================
   CONTAINERS
========================= */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px 44px;
}

/* =========================
   BREADCRUMBS
========================= */
.crumbs{
  max-width:1200px;
  margin:12px auto 0;
  padding:0 16px;
  font-weight:800;
  opacity:.9;
}
.crumbs a{color:#1f78b4}
.crumbs span{margin:0 6px}
.crumbs .current{color:#0b3c5d}

/* =========================
   PANELS
========================= */
.panel{
  background:#fff;
  border:1px solid #e0e6ec;
  border-radius:14px;
  padding:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  margin-top:16px;
}

/* =========================
   GRID & CARDS
========================= */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
  margin-top:10px;
}

.card{
  background:#fff;
  border-radius:14px;
  border:1px solid #e0e6ec;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  padding:16px;
  position:relative;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(0,0,0,.14);
}

.card::before{
  content:"";
  position:absolute;
  top:0;left:0;
  width:100%;
  height:7px;
  background:#d1d5db;
}

.card h3,
.card h4{
  margin:8px 0;
  color:#0b3c5d;
}

.card p{
  margin:0 0 12px;
  font-size:.95rem;
  opacity:.92;
}

/* Brand strips */
.card.yokogawa::before{background:linear-gradient(90deg,#0b3c5d,#1f78b4)}
.card.abb::before{background:linear-gradient(90deg,#1f78b4,#0b3c5d)}
.card.siemens::before{background:linear-gradient(90deg,#2e7d32,#1f78b4)}
.card.ametek::before{background:linear-gradient(90deg,#374151,#111827)}
.card.gc::before{background:linear-gradient(90deg,#2e7d32,#6fcf97)}
.card.oxygen::before{background:linear-gradient(90deg,#1f78b4,#6fb6e9)}

/* =========================
   INDEX / HOME CARD ICONS (REDUCED SIZE)
========================= */
.card svg,
.card img.icon,
.card .icon{
  width:32px;
  height:32px;
  margin-bottom:10px;
}

@media(max-width:992px){
  .card svg,
  .card img.icon,
  .card .icon{
    width:28px;
    height:28px;
  }
}

@media(max-width:600px){
  .card svg,
  .card img.icon,
  .card .icon{
    width:24px;
    height:24px;
  }
}

/* =========================
   BUTTONS
========================= */
.action-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0;
}

.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  font-weight:900;
  border:1px solid rgba(0,0,0,.12);
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration:none;
}

.btn:hover{transform:translateY(-1px)}
.btn:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(31,120,180,.18);
}

.btn-primary{background:#1f78b4;color:#fff}
.btn-primary:hover{background:#155a8a}

.btn-ghost{background:#fff;color:#0b3c5d}
.btn-ghost:hover{background:#e9f2f9}

/* =========================
   SEARCH / FILTERS
========================= */
.search-wrap{
  margin:16px 0 10px;
  display:flex;
  justify-content:center;
}

.search-input{
  width:100%;
  max-width:820px;
  padding:14px 16px;
  border-radius:12px;
  border:1px solid #cfd8e3;
  font-size:1rem;
  background:#fff;
}

.search-input:focus{
  outline:none;
  border-color:#1f78b4;
  box-shadow:0 0 0 4px rgba(31,120,180,.18);
}

.filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-bottom:24px;
}

.filter-btn{
  padding:9px 16px;
  border-radius:999px;
  border:1px solid #cfd8e3;
  background:#fff;
  font-weight:800;
  cursor:pointer;
  transition:background .15s ease, transform .15s ease;
}

.filter-btn:hover{
  transform:translateY(-1px);
  background:#f0f7ff;
}

.filter-btn.active{
  background:#1f78b4;
  color:#fff;
  border-color:#1f78b4;
}

.is-hidden{display:none}

/* =========================
   LISTS / INFO
========================= */
.list{padding-left:18px;margin:10px 0 0}
.list li{margin:6px 0}

.step{
  background:#f6fbff;
  border-left:4px solid #1f78b4;
  padding:12px;
  border-radius:10px;
  margin:10px 0;
}

.warn{
  background:#fff7ed;
  border-left:4px solid #f59e0b;
  padding:12px;
  border-radius:10px;
  margin:14px 0;
}

.field-tip{
  background:#f0f9ff;
  border-left:4px solid #1f78b4;
  color:#0b3c5d;
  padding:12px;
  border-radius:10px;
  margin:14px 0;
  font-weight:800;
}

/* =========================
   BLOG / KNOWLEDGE
========================= */
.post-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:14px;
  margin-top:14px;
}

.post-card{
  background:#fff;
  border:1px solid #e0e6ec;
  border-radius:14px;
  padding:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease;
}

.post-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(0,0,0,.14);
}

.post-meta{
  font-size:.9rem;
  font-weight:800;
  opacity:.8;
  margin:0 0 10px;
}

/* =========================
   FOOTER
========================= */
.site-footer{
  margin-top:40px;
  background:#eef2f6;
  border-top:1px solid #d9e2ec;
}

.site-footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:16px;
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  justify-content:space-between;
  align-items:center;
}

.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.footer-links a{
  color:#0b3c5d;
  font-weight:800;
  text-decoration:none;
}
.footer-links a:hover{text-decoration:underline}

/* =========================================================
   ADDITIVE: GLOBAL SVG CLICK-TO-ZOOM SUPPORT
   Safe append — does not modify existing styles
========================================================= */

/* Wrapper injected by JS for alarm SVGs */
.svg-zoom-wrap{
  overflow-x:auto;
  padding:6px 0;
}

/* Modal overlay */
.svg-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  display:none;
  z-index:99999;
}

.svg-modal.active{
  display:flex;
}

/* Modal content container */
.svg-modal-content{
  margin:auto;
  background:#fff;
  padding:16px;
  max-width:95%;
  max-height:95%;
  overflow:auto;
  border-radius:8px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
}

/* Close button */
.svg-modal-close{
  position:fixed;
  top:14px;
  right:18px;
  font-size:26px;
  font-weight:900;
  color:#fff;
  cursor:pointer;
  user-select:none;
}
}
/* START HERE CTA – HEADER */
.site-nav .nav-cta{
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.35);
  font-weight:900;
}

.site-nav .nav-cta:hover{
  background:rgba(255,255,255,.28);
}

/* =========================================
   HERO TEXT COLOR OVERRIDE (TEXT ONLY)
   Matches SVG logo blue
   Does NOT affect background
========================================= */
.hero-search h2{
  color:#0b3c5d; /* same as header */
  text-shadow:0 2px 6px rgba(0,0,0,.15);
}

.hero-search p{
  color:rgba(11,60,93,0.92); /* softened header color */
  text-shadow:0 2px 6px rgba(0,0,0,.15);
}

