html{scroll-behavior:smooth;}
/* MetalWorks — Apple-like Light Design (v15)
   Clean, minimal, premium. Fully rebuilt layout.
*/

:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface2:#f5f5f7;
  --text:#1d1d1f;
  --muted:rgba(29,29,31,.72);
  --muted2:rgba(29,29,31,.56);
  --border:rgba(29,29,31,.12);
  --shadow:0 30px 80px rgba(0,0,0,.10);
  --shadow2:0 14px 34px rgba(0,0,0,.08);
  --blue:#0071e3;
  --blue2:#2f8cff;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text)}
body{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1140px;margin:0 auto;padding:0 20px}
.section{padding:96px 0}
.section-alt{background:var(--surface2)}
@media (max-width: 980px){ .section{padding:72px 0} }

.h1{
  font-size:clamp(38px,4.6vw,68px);
  line-height:1.02;
  letter-spacing:-0.03em;
  margin:10px 0 12px;
}
.h2{
  font-size:clamp(28px,2.8vw,44px);
  line-height:1.08;
  letter-spacing:-0.02em;
  margin:0 0 12px;
}
.p, .lead{
  font-size:17px;line-height:1.75;color:var(--muted);
}
.lead{max-width:860px;margin:0 auto}
.mini{font-size:12.5px;color:var(--muted2)}

.eyebrow{
  font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(29,29,31,.62);
}

/* Header */
.header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.76);
  backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:700;letter-spacing:.02em}
.mark{width:22px;height:22px;border-radius:7px;background:linear-gradient(135deg,#ff6a00,#ffb86b)}
.nav{display:flex;gap:18px;align-items:center}
.nav a{color:rgba(29,29,31,.78);font-weight:600;font-size:14px}
.nav a:hover{color:rgba(29,29,31,1);text-decoration:none}
.actions{display:flex;align-items:center;gap:12px}

.lang{
  display:flex;gap:4px;padding:4px;background:rgba(29,29,31,.06);
  border:1px solid rgba(29,29,31,.10);border-radius:999px;
}
.lang button{
  border:0;background:transparent;padding:6px 10px;border-radius:999px;
  font-weight:700;font-size:12px;color:rgba(29,29,31,.72);cursor:pointer
}
.lang button.active{background:#fff;color:rgba(29,29,31,.92);box-shadow:0 8px 18px rgba(0,0,0,.06)}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;padding:11px 18px;border-radius:999px;
  border:1px solid rgba(29,29,31,.18);
  background:#fff;color:rgba(29,29,31,.92);
  font-weight:700;font-size:14px;cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform:translateY(-1px);border-color:rgba(29,29,31,.26);text-decoration:none}
.btn:active{transform:translateY(0)}
.btn-primary{
  background:linear-gradient(180deg,var(--blue2),var(--blue));
  border-color:rgba(0,113,227,.28);
  color:#fff;
}
.btn-primary:hover{box-shadow:0 18px 46px rgba(0,113,227,.22)}
.btn-secondary{
  background:rgba(29,29,31,.04);
  border-color:rgba(29,29,31,.14);
}
.btn-secondary:hover{background:rgba(29,29,31,.06)}
.btn-tertiary{
  background:#fff;
  border-color:rgba(29,29,31,.12);
}

/* Hero */
.apple-hero{padding:24px 0 0}
.hero-media{
  position:relative;height:640px;overflow:hidden;
  background:linear-gradient(to bottom,#fff,var(--surface2));
  border-bottom:1px solid var(--border);
}
.hero-photo{
  position:absolute;inset:-40px;
  width:calc(100% + 80px);height:calc(100% + 80px);
  object-fit:cover;
  filter:saturate(1.06) contrast(1.04) brightness(1.06);
  opacity:.55;
}
.hero-glow{
  position:absolute;inset:0;
  background:
    radial-gradient(900px 520px at 50% 18%, rgba(0,113,227,.12), transparent 60%),
    linear-gradient(to bottom, rgba(255,255,255,.30), rgba(245,245,247,.96));
}
.hero-content{
  margin-top:-460px;
  text-align:center;
  padding-bottom:30px;
}
@media (max-width:980px){
  .hero-media{height:540px}
  .hero-content{margin-top:-390px}
}
.cta-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:16px}
.chip{
  padding:8px 12px;border-radius:999px;
  background:rgba(29,29,31,.04);border:1px solid rgba(29,29,31,.10);
  font-weight:700;font-size:12px;color:rgba(29,29,31,.72);
}

/* Split */
.split{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:center}
.split-text{background:#fff;border:1px solid var(--border);border-radius:26px;box-shadow:var(--shadow2);padding:28px}
.split-media .media-card{border-radius:26px;border:1px solid rgba(29,29,31,.10);box-shadow:var(--shadow2);overflow:hidden}
@media (max-width:980px){
  .split{grid-template-columns:1fr}
}

/* Bullets */
.bullets{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:10px}
.bullets li{
  position:relative;padding-left:30px;color:rgba(29,29,31,.78);font-weight:600
}
.bullets li::before{
  content:"✓";position:absolute;left:0;top:0;
  width:22px;height:22px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,113,227,.10);color:rgba(0,113,227,1);
  border:1px solid rgba(0,113,227,.14);
  font-weight:900;
}

/* Section head */
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:18px}
.head-actions{display:flex;gap:10px;align-items:center}

/* Services cards */
.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
@media (max-width: 980px){ .cards{grid-template-columns:1fr} }
.card.light{
  background:#fff;border:1px solid var(--border);
  border-radius:26px;box-shadow:var(--shadow2);overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}
.card.light:hover{transform:translateY(-6px);box-shadow:0 26px 70px rgba(0,0,0,.12)}
.card-img{width:100%;height:190px;object-fit:cover}
.card-body{padding:18px 18px 20px}
.card-tag{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:800;font-size:12px;letter-spacing:.12em;
  color:rgba(29,29,31,.52);text-transform:uppercase;
  background:rgba(29,29,31,.04);border:1px solid rgba(29,29,31,.10);
  padding:7px 10px;border-radius:999px;margin-bottom:10px;
}
.card-body h3{margin:0 0 8px;font-size:20px;letter-spacing:-.01em}
.card-body p{margin:0 0 14px;color:var(--muted);line-height:1.65}
.card-cta{display:flex;gap:10px;flex-wrap:wrap}

/* Steps */
.steps{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:12px;
  background:#fff;border:1px solid var(--border);border-radius:26px;
  box-shadow:var(--shadow2);padding:18px;
}
@media (max-width: 980px){ .steps{grid-template-columns:1fr} }
.step{
  background:rgba(29,29,31,.03);
  border:1px solid rgba(29,29,31,.08);
  border-radius:20px;padding:14px;
  min-height:140px;
}
.step .icon{
  width:34px;height:34px;border-radius:12px;
  background:rgba(0,113,227,.10);
  border:1px solid rgba(0,113,227,.14);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;margin-bottom:10px;
}
.step .num{font-weight:900;color:#ff6a00;margin-bottom:6px}
.step h4{margin:0 0 8px;font-size:14px}
.step p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}

/* CTA */
.section-cta{padding:72px 0}
.cta{
  display:flex;justify-content:space-between;gap:18px;align-items:center;
  background:linear-gradient(180deg,#fff,var(--surface2));
  border:1px solid var(--border);border-radius:28px;
  box-shadow:var(--shadow2);padding:26px 28px;
}
@media (max-width:980px){ .cta{flex-direction:column;align-items:flex-start} }
.cta-actions{display:flex;gap:10px;flex-wrap:wrap}

/* Contacts */
.contacts{
  display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;
  background:#fff;border:1px solid var(--border);border-radius:28px;box-shadow:var(--shadow2);
  padding:22px;
}
@media (max-width:980px){ .contacts{grid-template-columns:1fr} }
.contact-list{display:grid;gap:10px;margin:10px 0 18px}
.contact-item{
  background:rgba(29,29,31,.03);
  border:1px solid rgba(29,29,31,.08);
  border-radius:14px;padding:10px 12px;color:rgba(29,29,31,.80);font-weight:600;font-size:13px;
}
.map{border-radius:20px;overflow:hidden;border:1px solid rgba(29,29,31,.10);box-shadow:0 10px 26px rgba(0,0,0,.06)}

/* Footer */
.footer{border-top:1px solid var(--border);padding:22px 0;background:#fff}
.footer-inner{display:flex;justify-content:space-between;gap:10px;align-items:center}

/* Reveal */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease, transform .6s ease}
.reveal.show{opacity:1;transform:none}

/* Modal */
.modal{position:fixed;inset:0;display:none;z-index:100}
.modal.open{display:block}
.modal .backdrop{position:absolute;inset:0;background:rgba(0,0,0,.32)}
.modal .dialog{
  position:relative;
  width:min(720px, calc(100% - 24px));
  margin:84px auto 0;
  background:#fff;border-radius:22px;
  border:1px solid rgba(29,29,31,.14);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.modal .top{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 16px;border-bottom:1px solid rgba(29,29,31,.10);
}
.modal .top h3{margin:0;font-size:16px}
.modal .x{
  border:1px solid rgba(29,29,31,.14);
  background:rgba(29,29,31,.03);
  border-radius:12px;width:34px;height:34px;cursor:pointer;
}
.modal .body{padding:16px}
.form{display:grid;gap:12px}
.field label{display:block;font-size:12px;font-weight:800;color:rgba(29,29,31,.66);margin:0 0 6px}
.field input,.field select,.field textarea{
  width:100%;
  padding:12px 12px;border-radius:16px;
  border:1px solid rgba(29,29,31,.14);
  background:rgba(29,29,31,.03);
  color:rgba(29,29,31,.94);
  font-size:14px;
}
.field textarea{min-height:110px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:rgba(0,113,227,.45);
  box-shadow:0 0 0 4px rgba(0,113,227,.14);
}
.toast{
  display:none;margin-top:10px;
  padding:10px 12px;border-radius:14px;
  background:rgba(0,113,227,.10);border:1px solid rgba(0,113,227,.18);
  color:rgba(29,29,31,.86);font-weight:700;font-size:13px;
}
.toast.show{display:block}

/* Disable old visual layers if present */
.grain{display:none !important}


/* ==========================================================
   Apple.com-like layout (v16)
   ========================================================== */

.apple-hero2{
  padding: 54px 0 0;
  background: #fff;
}
.hero2-inner{
  text-align:center;
  padding: 10px 0 26px;
}
.hero2-title{
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 10px auto 10px;
  max-width: 980px;
}
.hero2-sub{
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 860px;
  margin: 0 auto;
}
.hero2-cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top: 18px; }
.hero2-links{ display:flex; gap:18px; justify-content:center; margin-top: 14px; font-weight:800; }
.hero2-links a{ font-size: 15px; }

.hero2-media{
  height: 620px;
  margin-top: 18px;
  background: var(--surface2);
  overflow:hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero2-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter: saturate(1.05) contrast(1.05) brightness(1.05);
  opacity: .92;
}

/* Product sections */
.product{
  padding: 90px 0;
  background: #fff;
}
.product-alt{ background: var(--surface2); }
.product-dark{
  background: #000;
  color: #fff;
}
.product-dark .product-sub{ color: rgba(255,255,255,.78); }
.product-dark .product-title{ color:#fff; }
.product-dark .product-kicker{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.78);
}
.product-dark .btn-secondary,
.product-dark .btn-tertiary{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}

.product-inner{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 26px;
  align-items:center;
}
.product-inner.reverse{ grid-template-columns: 1.1fr 1fr; }
.product-inner.reverse .product-text{ order:2; }
.product-inner.reverse .product-media{ order:1; }
@media (max-width: 980px){
  .product-inner, .product-inner.reverse{ grid-template-columns: 1fr; }
  .product-inner.reverse .product-text{ order:1; }
  .product-inner.reverse .product-media{ order:2; }
  .hero2-media{ height: 420px; }
}

.product-kicker{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29,29,31,.04);
  border: 1px solid rgba(29,29,31,.10);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(29,29,31,.62);
  margin-bottom: 12px;
}
.product-title{
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.product-sub{
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 520px;
}
.product-cta{ display:flex; gap:12px; flex-wrap:wrap; }

.product-media{
  border-radius: 28px;
  overflow:hidden;
  border: 1px solid rgba(29,29,31,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
  background: #fff;
}
.product-dark .product-media{
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 30px 80px rgba(0,0,0,.40);
}
.product-img{
  width:100%;
  height: 420px;
  object-fit: cover;
}
@media (max-width: 980px){
  .product-img{ height: 320px; }
}

/* Process / Contacts spacing */
.apple-process{ background:#fff; }
.apple-contacts{ background: var(--surface2); }

/* Header contact */
.top-contact{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(29,29,31,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.top-link{
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.top-link:hover{ text-decoration: underline; }
.top-contact .sep{ color: rgba(29,29,31,.35); }
@media (max-width: 980px){
  .top-contact{ display:none; }
}


/* ==========================================================
   Gallery Modal (v20)
   ========================================================== */
.gallery-dialog{ width:min(980px, calc(100% - 24px)); }
.gallery{
  display:grid;
  grid-template-columns: 48px 1fr 48px;
  gap:12px;
  align-items:center;
}
.gstage{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(29,29,31,.12);
  background: rgba(29,29,31,.03);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  height: 520px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gstage img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.gbtn{
  width:48px;height:48px;
  border-radius:999px;
  border:1px solid rgba(29,29,31,.16);
  background: rgba(255,255,255,.85);
  font-size: 28px;
  line-height: 1;
  cursor:pointer;
}
.gthumbs{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  gap:8px;
}
.gthumbs button{ padding:0;border:0;background:transparent;cursor:pointer; }
.gthumbs img{
  width:100%;
  height:56px;
  object-fit:cover;
  border-radius: 12px;
  border:1px solid rgba(29,29,31,.12);
  opacity:.78;
  transition: opacity .15s ease, transform .15s ease, border-color .15s ease;
}
.gthumbs img:hover{ opacity:1; transform: translateY(-1px); }
.gthumbs .active img{
  opacity:1;
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 0 0 3px rgba(0,113,227,.12);
}
@media (max-width:980px){
  .gstage{ height: 360px; }
  .gthumbs{ grid-template-columns: repeat(5, 1fr); }
  .gthumbs img{ height: 64px; }
}


/* === IPK ENERGY logo integration (v28) === */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand .site-logo{
  height:40px;
  width:auto;
  display:block;
}
.brand .brand-name{
  font-weight:700;
  letter-spacing:-0.02em;
  color: var(--text, #111);
  white-space:nowrap;
}
@media (max-width: 640px){
  .brand .brand-name{ display:none; }
  .brand .site-logo{ height:36px; }
}
.footer-logo{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 18px 0 6px;
}
.footer-logo img{
  height:46px;
  width:auto;
  display:block;
  opacity:0.95;
}


/* Form actions (submit / cancel) */
.form-actions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:16px;
}
.form-actions .btn{
  min-width:140px;
}
@media (max-width:520px){
  .form-actions{ flex-direction:column; }
  .form-actions .btn{ width:100%; min-width:unset; }
}

