/* Niotech Transformers — styles (palette from the Niotech Solutions demo site) */
:root{
  --navy:#01255B; --navy-dark:#011a40; --steel:#5C7BA3; --steel-light:#e7eef8;
  --ink:#122033; --muted:#5c6b80; --line:#e4e9f0; --bg:#f6f8fb; --card:#fff;
  --ok:#1f7a4d; --warn:#8a5a00;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;font-family:"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:var(--navy)}
img,svg{max-width:100%;height:auto}
.wrap{max-width:1180px;margin:0 auto;padding:0 28px}
.eyebrow{color:var(--steel);font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;margin:0 0 10px}
h1,h2,h3{color:var(--navy);letter-spacing:-.01em}
h2{font-size:30px;margin:0 0 8px;line-height:1.2}
.sub{color:var(--muted);margin:0 0 30px;max-width:46em}
.small{font-size:13px;color:var(--muted)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border-radius:10px;font-weight:600;font-size:15px;text-decoration:none;border:1px solid transparent;cursor:pointer;font-family:inherit;transition:background .15s,border-color .15s}
.btn.primary{background:var(--navy);color:#fff}
.btn.primary:hover{background:#06357d}
.btn.ghost{background:#fff;color:var(--navy);border-color:#c9d3e0}
.btn.ghost:hover{border-color:var(--steel)}
.btn.sm{padding:8px 14px;font-size:14px}
.btn[disabled]{opacity:.6;cursor:wait}

/* header */
.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{width:42px;height:42px;display:block}
.brand strong{display:block;letter-spacing:.14em;font-size:15px;color:var(--navy);line-height:1.2}
.brand em{display:block;font-style:normal;letter-spacing:.26em;font-size:10px;color:var(--steel);font-weight:600}
nav{display:flex;align-items:center;gap:24px;font-size:14px}
nav a{text-decoration:none;color:var(--muted)}
nav a:hover{color:var(--navy)}
nav a.btn.primary{color:#fff}

/* hero */
.hero{position:relative;padding:88px 0 80px;overflow:hidden;background:var(--navy-dark)}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg picture,.hero-bg img{display:block;width:100%;height:100%;object-fit:cover}
.hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,rgba(1,26,64,.88) 0%,rgba(1,37,91,.78) 48%,rgba(1,37,91,.62) 100%)}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center}
.hero .eyebrow{color:#9eb0c8}
.hero h1{font-size:44px;line-height:1.12;margin:0 0 16px;font-weight:650;color:#fff}
.hero .lead{font-size:18px;color:#c5d2e4;margin:0 0 28px;max-width:34em}
.hero .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.hero .btn.ghost:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.hero .btn.primary{background:#fff;color:var(--navy)}
.hero .btn.primary:hover{background:#e7eef8}
.actions{display:flex;gap:12px;flex-wrap:wrap}
.panel{background:var(--navy);color:#fff;border-radius:22px;padding:28px 26px;box-shadow:0 18px 40px rgba(1,37,91,.18)}
.panel h2{color:#fff;font-size:18px;margin:0 0 4px;font-weight:600}
.panel p{margin:0 0 16px;color:#c5d2e4;font-size:14px}
.panel .row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid rgba(255,255,255,.12);font-size:14px}
.panel .row span{color:#9eb0c8;flex:0 0 auto}
.panel .row b{font-weight:600;text-align:right}

/* sections */
section{padding:72px 0}
section.alt{background:var(--bg)}
.cards{display:grid;gap:20px;grid-template-columns:repeat(4,1fr)}
.cards.five{grid-template-columns:repeat(5,1fr);margin-top:26px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 1px 2px rgba(1,37,91,.04)}
.card h3{margin:0 0 8px;font-size:18px}
.card p{margin:0;color:var(--muted);font-size:14.5px}

/* product cards + shared photo frames (fixed heights — aspect-ratio unreliable in flex+abspos on iOS) */
.product{display:flex;flex-direction:column}
.pic{background:linear-gradient(160deg,var(--navy),#0b3a7e);border-radius:12px;width:100%;height:200px;display:grid;place-items:center;margin-bottom:18px;overflow:hidden;flex:none;flex-shrink:0;min-height:0}
.pic svg{width:120px;height:80px;max-width:60%;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.92}
.pic.has-photo,.product-card .pic.has-photo{padding:0;display:block!important;position:relative;width:100%;height:200px!important;overflow:hidden;flex:none;flex-shrink:0;min-height:0;max-height:200px}
.pic.has-photo picture{position:absolute;inset:0;width:100%;height:100%;display:block;margin:0;padding:0}
.pic.has-photo img{display:block;width:100%!important;height:100%!important;max-width:none;max-height:none;object-fit:cover;object-position:center center}
.pic.has-photo.photo-power img,.pic.has-photo img[src*="gallery-power"]{object-position:center 28%}
.pic.has-photo.photo-sub img,.pic.has-photo img[src*="product-sub"]{object-position:center 40%}
.pic.has-photo.photo-pad img,.pic.has-photo img[src*="product-pad"]{object-position:center 45%}
.product > p{margin-bottom:14px}

/* factory gallery */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}
.gallery-item{margin:0;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 1px 2px rgba(1,37,91,.04)}
.gallery-item picture{display:block;width:100%;background:#0b1f3a}
.gallery-item img{display:block;width:100%;height:200px;object-fit:cover}
.gallery-item figcaption{padding:12px 14px;font-size:13.5px;color:var(--muted);border-top:1px solid var(--line)}
.specs{margin:auto 0 0;border-top:1px solid var(--line)}
.specs div{padding:9px 0;border-bottom:1px solid var(--line)}
.specs div:last-child{border-bottom:0}
.specs dt{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--steel);font-weight:700}
.specs dd{margin:2px 0 0;font-size:14px;color:var(--ink);line-height:1.35}
.product .specs dd{font-size:13px}
.note{margin:26px 0 0;padding:14px 18px;border-left:4px solid var(--steel);background:var(--steel-light);border-radius:8px;color:var(--ink);font-size:14.5px}

/* features */
.feature .ico{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--steel-light);color:var(--navy);font-weight:700;font-size:13px;margin-bottom:14px}
.feature h3{font-size:16.5px}

/* steps */
.steps{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:20px;counter-reset:s}
.steps li{position:relative;padding:22px 20px;border:1px solid var(--line);border-radius:16px;background:#fff}
.steps li b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--navy);color:#fff;font-size:14px;margin-bottom:12px}
.steps li h3{margin:0 0 6px;font-size:16.5px}
.steps li p{margin:0;color:var(--muted);font-size:14px}
.steps li:not(:last-child)::after{content:"";position:absolute;top:38px;right:-21px;width:20px;height:2px;background:var(--steel)}
.eng-note{margin-top:30px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:18px 22px;border-radius:14px;border:1px dashed #b9c7da;background:#fbfcfe}
.eng-note p{margin:0;color:var(--muted);font-size:15px}
.eng-note strong{color:var(--navy)}

/* quote */
.quote-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:44px;align-items:start}
.contact-list{list-style:none;padding:0;margin:0 0 18px}
.contact-list li{padding:12px 0;border-top:1px solid var(--line);font-size:15px}
.contact-list li span{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--steel);font-weight:700}
.form{padding:28px}
fieldset{border:0;padding:0;margin:0 0 18px;min-width:0}
legend{font-weight:700;color:var(--navy);font-size:15px;margin-bottom:12px;padding:0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.grid2 .full,label.full{grid-column:1/-1}
label{display:block;font-size:13.5px;font-weight:600;color:var(--ink)}
input,select,textarea{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #c9d3e0;border-radius:9px;font:inherit;font-size:15px;color:var(--ink);background:#fff}
textarea{resize:vertical;min-height:110px}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(92,123,163,.35);border-color:var(--steel)}
input.invalid,select.invalid,textarea.invalid{border-color:#c0392b;background:#fff8f7}
label.full{margin-top:14px}
.grid2 label.full{margin-top:0}
.radio-row .opts{display:inline-flex;gap:18px}
.radio-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:16px;font-size:13.5px;font-weight:600}
label.inline{display:inline-flex;align-items:center;gap:6px;font-weight:500}
label.inline input{width:auto;margin:0}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.form .btn{margin-top:6px;min-width:180px}
.status{margin-top:14px;padding:14px 16px;border-radius:10px;font-size:14.5px}
.status.ok{background:#e9f6ef;color:var(--ok);border:1px solid #bfe3cf}
.status.err{background:#fff6e5;color:var(--warn);border:1px solid #f0d9a8}
.status a.btn{margin-top:10px}

/* footer */
footer{background:var(--navy-dark);color:#c3cde0;padding:40px 0 24px;font-size:14px}
footer a{color:#fff;text-decoration:none}
footer a:hover{text-decoration:underline}
.foot{display:flex;justify-content:space-between;gap:24px 28px;flex-wrap:wrap}
.foot-brand{display:flex;gap:12px;align-items:center}
.foot-brand img{border-radius:9px;box-shadow:0 0 0 1px rgba(255,255,255,.25)}
.foot-brand strong{display:block;color:#fff;font-size:16px}
.foot-brand span{font-size:13px;color:#9eb0c8}
.foot-contact{display:flex;flex-direction:column;gap:4px;text-align:right}
.foot-legal{display:flex;justify-content:space-between;gap:6px 16px;flex-wrap:wrap;margin-top:26px;font-size:12.5px;color:#9eb0c8}
.foot-legal{position:relative;padding-top:20px!important}
.foot-legal::before{content:"";position:absolute;top:0;left:28px;right:28px;border-top:1px solid rgba(255,255,255,.12)}
@media (max-width:560px){.foot-legal::before{left:18px;right:18px}}

/* responsive */
@media (max-width:1100px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .cards.five{grid-template-columns:repeat(3,1fr)}
  .steps{grid-template-columns:repeat(3,1fr)}
  .steps li::after{display:none}
  .gallery{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px){
  .hero-grid,.quote-grid{grid-template-columns:1fr}
  .hero{padding:48px 0}
  .hero h1{font-size:34px}
  nav a:not(.btn){display:none}
  .cards.five{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .wrap{padding:0 18px}
  section{padding:52px 0}
  h2{font-size:25px}
  .hero{padding:56px 0 52px}
  .hero h1{font-size:29px}
  .hero .lead{font-size:16.5px}
  .cards,.cards.five,.steps,.grid2,.gallery{grid-template-columns:1fr}
  .gallery-item picture,.gallery-item img{height:180px}
  .panel .row{flex-direction:column;gap:2px}
  .panel .row b{text-align:left}
  .brand em{letter-spacing:.18em}
  .form{padding:20px}
  .form .btn{width:100%}
  .foot-contact{text-align:left}
  .actions .btn{flex:1 1 auto}
}


/* product overview (homepage) */
.product-overview{display:flex;flex-direction:column;gap:22px}
.featured-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.secondary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.product-card{display:flex;flex-direction:column;text-decoration:none;color:inherit;transition:border-color .15s, box-shadow .15s}
.product-card:hover{border-color:var(--steel);box-shadow:0 8px 24px rgba(1,37,91,.08)}
.product-card .pic{margin-bottom:16px;height:200px!important;flex:none;flex-shrink:0}
.product-card h3{margin:0 0 8px}
.product-card .card-cta{margin-top:auto;padding-top:14px;font-size:14px;font-weight:600;color:var(--navy)}
.pill{display:inline-block;margin-left:8px;padding:3px 8px;border-radius:999px;background:var(--steel-light);color:var(--navy);font-size:11px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;vertical-align:middle}
.product-card.featured .pill{background:#01255B;color:#fff}
.product-card.secondary .pic{height:180px!important;max-height:180px}

/* product detail pages */
.page-hero{padding:48px 0 40px;background:linear-gradient(180deg,var(--bg),#fff);border-bottom:1px solid var(--line)}
.page-hero h1{font-size:36px;margin:0 0 14px;line-height:1.15;max-width:18em}
.page-hero .lead{color:var(--muted);font-size:17px;margin:0 0 22px;max-width:42em}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13.5px;color:var(--muted);margin:0 0 18px}
.crumbs a{text-decoration:none;color:var(--steel)}
.crumbs a:hover{color:var(--navy)}
.detail-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:40px;align-items:start}
.detail-photo{height:320px!important;max-height:320px;border-radius:16px;margin:0;width:100%;flex:none}
.detail-photo picture{border-radius:16px;position:absolute;inset:0;width:100%;height:100%;display:block}
.detail-photo img{border-radius:16px;width:100%!important;height:100%!important;object-fit:cover;object-position:center center;max-width:none;max-height:none}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:36px}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
.spec-table{width:100%;border-collapse:collapse;font-size:14.5px}
.spec-table th,.spec-table td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.spec-table tr:last-child th,.spec-table tr:last-child td{border-bottom:0}
.spec-table th{width:34%;color:var(--steel);font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;background:var(--bg)}
.check-list{margin:14px 0 0;padding:0;list-style:none}
.check-list li{position:relative;padding:10px 0 10px 28px;border-bottom:1px solid var(--line);color:var(--muted);font-size:14.5px}
.check-list li:last-child{border-bottom:0}
.check-list li::before{content:"";position:absolute;left:0;top:16px;width:10px;height:10px;border-radius:50%;background:var(--navy)}
.cta-band{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-top:28px;padding:24px 26px;border-radius:16px;background:var(--navy);color:#fff}
.cta-band h3{margin:0 0 6px;color:#fff;font-size:20px}
.cta-band p{margin:0;color:#c5d2e4;max-width:36em}
.cta-band .btn.primary{background:#fff;color:var(--navy)}
.cta-band .btn.primary:hover{background:#e7eef8}

@media (max-width:1100px){
  .secondary-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .featured-grid,.detail-grid,.two-col{grid-template-columns:1fr}
  .page-hero h1{font-size:30px}
}
@media (max-width:560px){
  .featured-grid,.secondary-grid{grid-template-columns:1fr}
  .page-hero{padding:36px 0 28px}
  .page-hero h1{font-size:26px}
  .cta-band .btn{width:100%}
  .pic,.pic.has-photo,.product-card .pic,.product-card .pic.has-photo{height:160px!important;max-height:160px}
  .product-card.secondary .pic{height:150px!important;max-height:150px}
  .detail-photo{height:220px!important;max-height:220px}
}
