/* ==========================================================================
   Full Metal Manufacturing — design tokens & base styles
   ========================================================================== */

@font-face {
  font-family: "Wix Madefor Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/wix-madefor-text-400.woff2") format("woff2");
}
@font-face {
  font-family: "Wix Madefor Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/wix-madefor-text-500.woff2") format("woff2");
}
@font-face {
  font-family: "Wix Madefor Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/wix-madefor-text-600.woff2") format("woff2");
}
@font-face {
  font-family: "Wix Madefor Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/wix-madefor-text-700.woff2") format("woff2");
}
@font-face {
  font-family: "Wix Madefor Text";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/wix-madefor-text-800.woff2") format("woff2");
}

:root {
  /* Brand colours — sampled from the Full Metal Manufacturing logo */
  --navy: #0c2f55;
  --navy-dark: #081d33;
  --navy-darker: #05121f;
  --orange: #f5600a;
  --orange-dark: #c94900;
  --steel: #7c8991;
  --steel-light: #c7cdd1;
  --steel-lighter: #eceff1;

  --bg: #f5f7f8;
  --bg-alt: #ffffff;
  --text: #1c2b3a;
  --text-muted: #55666f;
  --text-on-dark: #f5f7f8;
  --text-on-dark-muted: #aab7c2;
  --border: #dde3e6;

  --font-body: "Wix Madefor Text", "Segoe UI", Arial, sans-serif;
  --font-heading: "Wix Madefor Text", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(8, 29, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange);
  text-decoration: none;
}
a:hover {
  color: var(--orange-dark);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy);
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5 {
  color: #fff;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75em;
}

.text-uppercase { text-transform: uppercase; letter-spacing: 0.03em; }

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.dark .lead { color: var(--text-on-dark-muted); }

ul.spec-list {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
}
ul.spec-list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
  color: var(--text-muted);
}
.dark ul.spec-list li { color: var(--text-on-dark-muted); }
ul.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--navy);
  color: #fff;
}
.btn-solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-solid:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
}
.dark .btn {
  border-color: #fff;
  color: #fff;
}
.dark .btn:hover {
  background: #fff;
  color: var(--navy);
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 29, 51, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  color: #fff;
}
.brand-lockup img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}
.brand-lockup .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-lockup .brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.brand-lockup .brand-text span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.brand-lockup.brand-lg img { height: 60px; }
.brand-lockup.brand-lg .brand-text strong { font-size: 1.3rem; }
.brand-lockup.brand-lg .brand-text span { font-size: 0.78rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 1.6em 1em;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.main-nav a:hover,
.main-nav li.active > a {
  color: var(--orange);
}
.main-nav > ul > li:not(.has-children) {
  border-bottom: 2px solid transparent;
}
.main-nav > ul > li.active:not(.has-children),
.main-nav > ul > li:not(.has-children):hover {
  border-bottom-color: var(--orange);
}

.main-nav .has-children {
  display: flex;
  flex-direction: column;
}
.nav-label {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.has-children.active .nav-label,
.has-children:hover .nav-label {
  border-bottom-color: var(--orange);
}
.has-children.active .nav-label > a,
.has-children:hover .nav-label > a {
  color: var(--orange);
}
.nav-label > a {
  padding-right: 0.3em;
}

.submenu-toggle {
  background: none;
  border: 0;
  color: #fff;
  padding: 1.6em 1em 1.6em 0.2em;
  font-size: 0.7em;
  cursor: pointer;
  line-height: 1;
}
.submenu-toggle::after {
  content: "▾";
}
.has-children.open .submenu-toggle::after {
  content: "▴";
}

.submenu {
  display: none;
  list-style: none;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--navy-dark);
  box-shadow: var(--shadow);
  padding: 0.5em 0;
  border-top: 3px solid var(--orange);
}
.main-nav .has-children.open .submenu {
  display: block;
}
/* Hover-to-open only on devices where hover is a real, primary input (a
   mouse) — on touch devices, applying :hover here causes some mobile
   browsers to swallow the first tap as a "hover preview" and only send the
   real click through on a second tap, at whatever now sits under the
   finger, which reads as the wrong link firing. Touch/keyboard users get
   the tap-to-toggle button (and the submenu-toggle button is a real
   <button>, so Tab + Enter reaches it too) instead. */
@media (hover: hover) and (pointer: fine) {
  .main-nav .has-children:hover .submenu {
    display: block;
  }
}
.submenu a {
  padding: 0.7em 1.4em;
  text-transform: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: none;
}
.submenu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  padding: 0.5em 0.7em;
  border-radius: var(--radius);
  cursor: pointer;
}

.call-us {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: #fff;
  font-weight: 700;
  padding: 0.7em 1.2em;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  margin-left: 0.5em;
}
.call-us:hover {
  background: var(--orange);
  color: #fff;
}

/* ==========================================================================
   Hero / page-title banners
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-darker) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -80px;
  width: 520px;
  height: 520px;
  transform: translateY(-50%);
  background: url("/assets/img/logo/icon-mark.png") no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 7em 0 4em;
}
.hero-home .hero-inner {
  padding: 9em 0 6em;
}
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero .eyebrow { color: var(--orange); }
.hero p.lead { color: var(--text-on-dark-muted); max-width: 560px; }
.hero .btn {
  border-color: #fff;
  color: #fff;
}
.hero .btn:hover {
  background: #fff;
  color: var(--navy);
}

.page-title .hero-inner {
  padding: 5.5em 0 2.5em;
}
.page-title h1 { margin: 0; }

/* ==========================================================================
   Sections
   ========================================================================== */

section.section {
  padding: 5em 0;
}
section.section.tight {
  padding: 3em 0;
}
section.dark {
  background: var(--navy-dark);
  color: var(--text-on-dark);
}
section.navy {
  background: var(--navy);
  color: var(--text-on-dark);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5em;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-content { order: 1; }

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3em;
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 1.75em;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  box-shadow: var(--shadow);
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover img { transform: scale(1.06); }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 18, 31, 0.88) 0%, rgba(5, 18, 31, 0.15) 55%, rgba(5, 18, 31, 0.05) 100%);
}
.service-card span {
  position: absolute;
  left: 1.4em;
  right: 1.4em;
  bottom: 1.2em;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.service-card span::after {
  content: "→";
  color: var(--orange);
  margin-left: 0.5em;
}

.machine-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dark .machine-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.machine-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.machine-card-body {
  padding: 1.4em 1.5em 1.6em;
}
.machine-card-body h3 {
  margin-bottom: 0.5em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8em;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Logo strips (clients / suppliers) */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5em;
  align-items: center;
}
.logo-grid .logo-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}
.logo-grid img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  filter: grayscale(1);
  opacity: 0.75;
  transition: all 0.2s ease;
}
.logo-grid .logo-tile:hover img {
  filter: none;
  opacity: 1;
}

/* Testimonial */
blockquote.testimonial {
  margin: 0;
  padding-left: 1.4em;
  border-left: 4px solid var(--orange);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-on-dark-muted);
}
blockquote.testimonial + blockquote.testimonial {
  margin-top: 1.6em;
}

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: 4em 0;
}
.cta-banner h2 { margin-bottom: 0.8em; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field {
  margin-bottom: 1.3em;
}
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact / details block
   ========================================================================== */

.detail-list dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin-top: 1.2em;
}
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd {
  margin: 0.3em 0 0;
  font-size: 1.05rem;
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-darker);
  color: var(--text-on-dark-muted);
  padding: 4em 0 2em;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5em;
  padding-bottom: 3em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo .brand-lockup {
  margin-bottom: 1.2em;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1em;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 0.6em; }
.footer-col a { color: var(--text-on-dark-muted); }
.footer-col a:hover { color: var(--orange); }

.footer-social {
  display: flex;
  gap: 0.8em;
  margin-top: 1.2em;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.footer-social a:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6em;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1em;
}
.footer-bottom ul {
  display: flex;
  gap: 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom a { color: var(--text-on-dark-muted); }
.footer-bottom a:hover { color: var(--orange); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 2em; }
  .split.reverse .split-media { order: 1; }
  .split.reverse .split-content { order: 2; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header .container { height: 72px; }
  .brand-lockup img { height: 34px; }
  .brand-lockup .brand-text strong { font-size: 0.9rem; }
  .brand-lockup .brand-text span { font-size: 0.58rem; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1em 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; width: 100%; }
  .main-nav a { padding: 1em 1.5em; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-label { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-label > a { border-bottom: none; }
  .submenu-toggle { font-size: 1rem; padding: 1em 0.6em; }
  .submenu {
    position: static;
    box-shadow: none;
    min-width: 0;
    width: 100%;
    background: rgba(0,0,0,0.2);
    border-top: none;
  }
  .call-us { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
