/*
Theme Name: Metal Tank Masters
Theme URI: https://metaltankmasters.com
Description: Dark luxury theme for Metal Tank Masters — 1:20 CNC tank sculpture. Edition of 200.
Author: MGZZ Precision
Version: 1.0
License: GPL-2.0+
Text Domain: metaltankmasters
*/

/* =========================================================
   Metal Tank Masters — Dark + Industrial Silver
   ========================================================= */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #0f0f12;
  --surface:   #141418;
  --surface-2: #1a1a1f;
  --line:      rgba(192,192,192,0.12);
  --line-soft: rgba(255,255,255,0.05);

  --gold:       #c0c0c0;
  --gold-light: #e0e0e0;
  --gold-deep:  #808080;
  --gold-grad:  linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 50%, #707070 100%);
  --gold-glow:  rgba(192,192,192,0.08);

  --text:      #d0d0d0;
  --text-dim:  #909090;
  --text-mute: #606060;

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: "Space Grotesk", system-ui, -apple-system, sans-serif; font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1.1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* subtle background texture */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 78% -8%, var(--gold-glow), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(168,132,63,0.10), transparent 60%),
    var(--bg);
}

/* Hide WordPress admin bar on frontend */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; display: flex; align-items: center;
  background: rgba(11,11,13,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.brand-logo { height: 34px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); transition: color .2s var(--ease); position: relative;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; color: var(--text-dim);
  font-size: 12px; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px;
  cursor: pointer; transition: all .2s var(--ease); font-family: inherit;
}
.lang-switch button:hover { color: var(--gold-light); }
.lang-switch button.active { background: var(--gold-grad); color: #0b0b0d; font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s var(--ease); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Inter", sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-gold { background: var(--gold-grad); color: #0b0b0d; box-shadow: 0 8px 24px var(--gold-glow); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--gold-glow); }
.btn-ghost { background: transparent; color: var(--gold-light); border-color: var(--gold); }
.btn-ghost:hover { background: rgba(201,169,106,0.10); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 12.5px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero .container { position: relative; z-index: 2; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 32px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--text-mute); }
.hero p.lead { font-size: 15px; color: var(--text-dim); max-width: 560px; margin: 0 auto 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.hero-cta .btn-gold { font-size: 13px; padding: 16px 36px; letter-spacing: .10em; }

.price-chip {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 44px;
  padding: 14px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
}
.price-chip .num { font-family: "Cormorant Garamond", serif; font-size: 26px; color: var(--gold-light); }
.price-chip .lab { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }

/* hero decorative tank silhouette */
.hero-deco {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  width: 46vw; max-width: 640px; opacity: .5; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 0 40px var(--gold-glow));
}

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-tag { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section-head h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 18px; }
.section-head p { color: var(--text-dim); font-size: 17px; }

/* ---------- specs grid ---------- */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec {
  background: var(--bg-2); padding: 34px 26px; text-align: center;
  transition: background .25s var(--ease);
}
.spec:hover { background: var(--surface); }
.spec .v { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 32px; color: var(--gold-light); line-height: 1; margin-bottom: 12px; }
.spec .v small { font-size: 18px; color: var(--gold); }
.spec .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- craft cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line); }
.card .ico {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(201,169,106,0.10); border: 1px solid var(--line); margin-bottom: 22px;
  color: var(--gold-light);
}
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.g-item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, #1c1c22, #0f0f13);
  border: 1px solid var(--line-soft); cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.g-item:hover { transform: translateY(-3px); border-color: var(--gold); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-item .ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: var(--text-mute); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background:
    repeating-linear-gradient(45deg, rgba(201,169,106,0.04) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #1c1c22, #0f0f13);
}
.g-item .ph b { color: var(--gold); display: block; font-family: "Cormorant Garamond", serif; font-size: 20px; letter-spacing: .02em; }

/* ---------- video ---------- */
.film { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16/9; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film .ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: radial-gradient(600px 300px at 50% 40%, rgba(201,169,106,0.12), transparent), linear-gradient(135deg,#15151a,#0a0a0c);
  color: var(--text-dim);
}
.film .ph .play {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: #0b0b0d; margin: 0 auto 18px; box-shadow: 0 12px 30px var(--gold-glow);
}
.film .ph span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- edition / CTA band ---------- */
.band { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: 64px 40px; text-align: center; }
.band h2 { font-size: clamp(28px, 4.5vw, 46px); margin-bottom: 16px; font-family: "Space Grotesk", system-ui, sans-serif; }
.band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 30px; }
.band .btn-gold { font-size: 13px; padding: 16px 36px; }

/* ---------- forms ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-note {
  background: rgba(201,169,106,0.06); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: 14px; color: var(--text-dim); margin-bottom: 30px;
}
.form-note b { color: var(--gold-light); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 9px; }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-soft); color: var(--text);
  border-radius: var(--radius-sm); padding: 14px 16px; font-family: inherit; font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,106,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a96a' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-msg { margin-top: 18px; font-size: 14px; padding: 12px 16px; border-radius: var(--radius-sm); display: none; }
.form-msg.ok  { display: block; background: rgba(120,200,140,0.10); border: 1px solid rgba(120,200,140,0.3); color: #b6e3c2; }
.form-msg.err { display: block; background: rgba(220,120,120,0.10); border: 1px solid rgba(220,120,120,0.3); color: #f0b9b9; }
.form-msg.warn{ display: block; background: rgba(201,169,106,0.10); border: 1px solid var(--line); color: var(--gold-light); }

/* ---------- founder ---------- */
.founder-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.founder-photo {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(160deg, #1d1d23, #0e0e12);
  display: grid; place-items: center;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .ph { text-align: center; color: var(--text-mute); padding: 20px; }
.founder-photo .ph .mono {
  width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--gold-grad); color: #0b0b0d; display: grid; place-items: center;
  font-family: "Cormorant Garamond", serif; font-size: 40px; font-weight: 700;
  box-shadow: 0 10px 30px var(--gold-glow);
}
.founder-photo .ph small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.founder-body h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 8px; }
.founder-body .role { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin-bottom: 28px; }
.founder-body p { color: var(--text-dim); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 64px 0 36px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .brand-name { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 18px; font-weight: 600; letter-spacing: .06em; color: var(--text); margin-bottom: 14px; }
.footer .brand-name b { color: var(--gold-light); }
.footer p { color: var(--text-mute); font-size: 14px; max-width: 320px; }
.footer h4 { font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { color: var(--text-dim); font-size: 14px; transition: color .2s var(--ease); }
.footer ul a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 24px; color: var(--text-mute); font-size: 13px; }

/* ---------- hero visual (tank image) ---------- */
.hero-visual {
  position: relative; max-width: 680px; margin: 0 auto 36px;
  aspect-ratio: 16/10; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, #1a1a20, #0e0e12);
}
.hero-visual img { width: 100%; height: 100%; object-fit: contain; }
.hero-visual .hero-visual-ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: var(--text-mute); font-size: 13px; letter-spacing: .1em;
}
.hero-visual .hero-visual-ph small { display: block; margin-top: 6px; font-size: 10px; opacity: .6; }
.hero-stat { font-size: clamp(36px, 6vw, 72px); letter-spacing: .04em; margin-bottom: 18px; text-align: center; color: var(--text); }

/* ---------- process section ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.process-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); aspect-ratio: 4/3;
  background: var(--surface);
}
.process-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%) contrast(1.1); transition: transform .4s var(--ease); }
.process-card:hover img { transform: scale(1.03); }
.process-card .ph {
  position: absolute; inset: 0; display: none; place-items: center;
  color: var(--text-mute); font-size: 12px; letter-spacing: .1em;
  background: var(--surface);
}
.process-card.no-img .ph { display: grid; }
.process-card .label {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text); background: rgba(0,0,0,.75); padding: 6px 14px;
  border-radius: 4px; border: 1px solid var(--line-soft);
}

/* ---------- certification section ---------- */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cert-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); aspect-ratio: 4/3;
  background: var(--surface);
}
.cert-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cert-card:hover img { transform: scale(1.03); }
.cert-card .ph {
  position: absolute; inset: 0; display: none; place-items: center;
  color: var(--text-mute); font-size: 12px; letter-spacing: .1em;
  background: var(--surface);
}
.cert-card.no-img .ph { display: grid; }
.cert-card .label {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text); background: rgba(0,0,0,.75); padding: 6px 14px;
  border-radius: 4px; border: 1px solid var(--line-soft);
}

/* ---------- responsive additions ---------- */
@media (max-width: 860px) {
  .process-grid, .cert-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 100%; }
}

/* ---------- misc ---------- */
.toast-config { font-size: 13px; color: var(--text-mute); margin-top: 14px; }
.page-hero { padding: 150px 0 40px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 64px); }
.page-hero p { color: var(--text-dim); max-width: 620px; margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(11,11,13,0.97); backdrop-filter: blur(14px); padding: 12px 0;
    border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s var(--ease); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 16px 24px; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-photo { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 72px 0; }
}
