/* ══════════════════════════════════════════════════════════════
   Superbia Machining and Trading — v3 Design System
   Source: design-smt.md + Company Profile 2026 (A4 Print)
   ══════════════════════════════════════════════════════════════ */

:root {
  --navy-950: #041722;
  --navy-900: #061D2C;
  --navy-800: #0A2D43;
  --navy-700: #123D57;

  --gold-500: #E5A900;
  --gold-400: #F4BD16;

  --white: #FFFFFF;
  --steel-100: #E8EDF1;
  --steel-300: #B8C2CA;
  --steel-500: #74838F;
  --charcoal: #172027;

  --success: #2E7D5B;
  --error: #B64040;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Arial', sans-serif;

  --nav-height: 84px;
  --radius: 10px;
  --ease: 200ms cubic-bezier(.4,0,.2,1);
  --max: 1280px;
}

* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 2px; }
.nav__link:focus-visible, .footer a:focus-visible { outline-offset: 4px; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(44px, 6vw, 88px); }
h2 { font-size: clamp(32px, 4.5vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 30px); }
h4 { font-size: 20px; }
p { margin: 0 0 16px; }
.gold { color: var(--gold-500); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow::before { content:''; width: 32px; height: 2px; background: var(--gold-500); display:inline-block; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
}
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy-950 { background: var(--navy-950); color: var(--white); }
.section--steel { background: var(--steel-100); }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--navy-950 h1, .section--navy-950 h2, .section--navy-950 h3 { color: var(--white); }
.section--navy p, .section--navy-950 p { color: var(--steel-300); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-400); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Icon badge (profile visual language: gold ring, navy fill) ── */
.icon-badge {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-badge svg { width: 28px; height: 28px; stroke: var(--gold-500); fill: none; stroke-width: 1.7; }
.icon-badge--light { background: transparent; border-color: var(--gold-500); }
.icon-badge--sm { width: 44px; height: 44px; }
.icon-badge--sm svg { width: 20px; height: 20px; }
.icon-badge--lg { width: 76px; height: 76px; }
.icon-badge--lg svg { width: 34px; height: 34px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(6,29,44,0.1); border-color: var(--gold-500); }
.card h3 { font-size: 21px; margin: 18px 0 10px; }
.card p { color: var(--steel-500); font-size: 15px; margin-bottom: 18px; }
.card__link { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-900); display: inline-flex; align-items: center; gap: 8px; }
.card__link svg { width: 14px; height: 14px; }

.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4, .grid--5, .grid--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .grid--5, .grid--6 { grid-template-columns: 1fr; }
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar { background: var(--navy-950); border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar__contact { display: flex; gap: 24px; }
.topbar__link { color: var(--steel-300); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.topbar__link:hover { color: var(--white); }
.topbar__link svg { width: 13px; height: 13px; stroke: var(--gold-500); fill: none; stroke-width: 2; }
@media (max-width: 720px) { .topbar__contact span:last-child, .topbar__contact a:nth-child(3) { display: none; } }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-height);
  background: var(--navy-900);
  transition: background var(--ease), box-shadow var(--ease), height var(--ease);
}
.nav--solid {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.nav__inner { display: flex; align-items: center; height: 100%; gap: 40px; }
.nav__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__logo img { height: 58px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav__link {
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--white);
  position: relative; padding: 6px 0;
}
.nav__link::after {
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background: var(--gold-500);
  transition: width var(--ease);
}
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__link--active { color: var(--gold-500); }
.nav__cta { flex-shrink: 0; }
.nav__hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__hamburger span { display:block; width:24px; height:2px; background:var(--white); margin:5px 0; transition: var(--ease); }

@media (max-width: 980px) {
  .nav__menu { display: none; }
  .nav__hamburger { display: block; margin-left: auto; }
  :root { --nav-height: 72px; }
  .nav__logo img { height: 46px; }
}

.nav__mobile {
  position: fixed; inset: 0; top: var(--nav-height);
  background: var(--navy-900);
  transform: translateX(100%);
  transition: transform 260ms var(--ease);
  z-index: 999;
  padding: 32px 24px;
  overflow-y: auto;
}
.nav__mobile.is-open { transform: translateX(0); }
.nav__mobile a {
  display: block; font-family: var(--font-head); font-size: 24px; font-weight: 700;
  text-transform: uppercase; color: var(--white); padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile .btn { margin-top: 24px; width: 100%; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; width: 100%; }
.hero__media { position: relative; height: 100%; min-height: 480px; border-radius: var(--radius); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(6,29,44,0.35), transparent 60%); }
.hero p.lead { font-size: 19px; color: var(--steel-300); max-width: 50ch; }
.hero__proof {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 48px; padding-top: 28px;
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hero__proof div { font-family: var(--font-head); }
.hero__proof .num { font-size: 30px; font-weight: 700; color: var(--gold-500); line-height:1; }
.hero__proof .lbl { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-300); margin-top: 4px; }
@media (max-width: 980px) {
  .hero { min-height: auto; padding: 56px 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 280px; order: -1; }
}

/* ── Stat/proof strip (standalone) ──────────────────────── */
.proof-strip { background: var(--gold-500); }
.proof-strip .grid { grid-template-columns: repeat(4,1fr); text-align:center; padding: 32px 0; }
.proof-strip .num { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--navy-900); }
.proof-strip .lbl { font-size: 13px; font-weight: 600; color: var(--navy-800); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 720px) { .proof-strip .grid { grid-template-columns: repeat(2,1fr); gap: 24px; } }

/* ── Capability card ─────────────────────────────────────── */
.cap-card { text-align: left; }
.cap-card .icon-badge { margin-bottom: 20px; }

/* ── Component tile (photo-led) ─────────────────────────── */
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile__caption {
  position: absolute; inset: auto 0 0 0; padding: 20px;
  background: linear-gradient(0deg, rgba(4,23,34,0.92), transparent);
  color: var(--white);
}
.tile__caption strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.03em; display:block; font-size:15px; }
.tile__caption span { font-size: 13px; color: var(--steel-300); }

/* ── Sector card ─────────────────────────────────────────── */
.sector-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); min-height: 220px; display:flex; align-items:flex-end; }
.sector-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0.55; }
.sector-card__body { position: relative; z-index:1; padding: 22px; color: var(--white); }
.sector-card--icon-only { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:28px; min-height:220px; }
.sector-card--icon-only .icon-badge { margin-bottom:16px; }
.sector-card h4 { margin: 0; font-size: 17px; }
.sector-card span { font-size: 13px; color: var(--steel-300); }

/* ── Client logo wall ────────────────────────────────────── */
.client-tile {
  background: var(--white); border: 1px solid var(--steel-100); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  min-height: 110px; filter: grayscale(100%); opacity: 0.75; transition: var(--ease);
}
.client-tile:hover { filter: grayscale(0%); opacity: 1; }
.client-tile img { max-height: 44px; width: auto; max-width: 100%; }

/* ── Vision/Mission cards ────────────────────────────────── */
.vision-card { text-align: center; padding: 0 16px; }
.vision-card .icon-badge { margin: 0 auto 20px; }
.vision-card p { color: var(--steel-300); font-size: 15px; }

/* ── Final CTA ───────────────────────────────────────────── */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 16ch; margin-left:auto; margin-right:auto; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--navy-950); color: var(--steel-300); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__logo { height: 48px; margin-bottom: 16px; }
.footer h5 { font-family: var(--font-head); color: var(--white); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul a:hover { color: var(--gold-500); }
.footer__bottom { display:flex; justify-content:space-between; align-items:center; padding: 24px 0; font-size: 13px; flex-wrap: wrap; gap:12px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── Reveal-on-scroll ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .tile:hover img { transform: none; }
}

/* ── Forms ───────────────────────────────────────────────── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy-900); }
.field label .req { color: var(--gold-500); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--charcoal);
  border: 1.5px solid var(--steel-300); border-radius: 6px; padding: 12px 14px;
  background: var(--white); transition: border-color var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); }
.field textarea { resize: vertical; min-height: 110px; }
.field small { color: var(--steel-500); font-size: 12.5px; }
.field input[type="file"] { padding: 10px 12px; font-size: 14px; }
.form__submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { grid-column: 1 / -1; padding: 14px 16px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.form-msg--success { background: rgba(46,125,91,0.1); color: var(--success); border: 1px solid rgba(46,125,91,0.3); }
.form-msg--error { background: rgba(182,64,64,0.1); color: var(--error); border: 1px solid rgba(182,64,64,0.3); }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

/* ── Contact info list ───────────────────────────────────── */
.info-row { display: flex; gap: 16px; margin-bottom: 24px; }
.info-row h4 { font-size: 15px; margin-bottom: 4px; }
.info-row p, .info-row a { color: var(--steel-300); font-size: 14px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--steel-300); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ── Legal page content (privacy/terms) ─────────────────── */
.privacy-content ul { padding-left: 1.25rem; margin: 0.5rem 0 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.privacy-content li { list-style: disc; }
.privacy-content p  { margin-bottom: 0.75rem; }
.privacy-content h4 { font-size: 1rem; color: var(--navy-900); margin: 1rem 0 0.4rem; }
.privacy-content a  { color: var(--navy-800); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── Breadcrumb / page hero (interior pages) ─────────────── */
.page-hero { background: var(--navy-900); color: var(--white); padding: 180px 0 64px; }
.breadcrumb { font-size: 13px; color: var(--steel-300); display:flex; gap:8px; align-items:center; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--gold-500); }

/* ── Profile-style diagonal banner (mirrors the printed Company Profile) ── */
.profile-banner {
  position: relative;
  overflow: hidden;
  padding: 176px 0 72px;
  min-height: 460px;
  display: flex;
  align-items: center;
  color: var(--white);
}
.profile-banner__photo { position: absolute; inset: 0; z-index: 0; }
.profile-banner__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-banner__panel {
  position: absolute; inset: 0; z-index: 1;
  background: var(--navy-900);
  clip-path: polygon(0 0, 56% 0, 50% 100%, 0 100%);
}
.profile-banner__seam {
  position: absolute; inset: 0; z-index: 2;
  background: var(--gold-500);
  clip-path: polygon(56% 0, 57.4% 0, 51.4% 100%, 50% 100%);
}
.profile-banner__tag {
  position: absolute; z-index: 3; top: 24px; right: 24px;
  text-align: right; font-family: var(--font-head); font-size: 11px;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); line-height: 1.9;
}
.profile-banner__tag::after { content:''; display:block; width: 40px; height: 2px; background: var(--gold-500); margin: 6px 0 0 auto; }
.profile-banner__content { position: relative; z-index: 3; max-width: 42%; }
.profile-banner__content h1 { font-size: clamp(30px, 3.4vw, 46px); }
@media (max-width: 860px) {
  .profile-banner { padding: 152px 0 56px; min-height: 0; }
  .profile-banner__panel { clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%); }
  .profile-banner__seam { clip-path: polygon(0 72%, 100% 68%, 100% 71%, 0 75%); }
  .profile-banner__content { max-width: 100%; }
  .profile-banner__content h1 { font-size: clamp(30px, 8vw, 42px); }
}

/* ── WhatsApp float ──────────────────────────────────────── */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }
