/* ==========================================================================
   Mpizos Marine Metalwork — static site
   Ported from the Claude Design canvas "Bizos Marine Metalworks.dc.html".
   Desktop (>=1100px) matches the canvas 1:1; smaller widths are layout
   adaptations of the same design.
   ========================================================================== */

:root {
  --bg:          #F4F4F1;
  --bg-alt:      #E9E9E5;
  --surface:     #FFFFFF;
  --surface-alt: #F7F7F5;
  --slot-bg:     #E4E4DF;

  --ink:         #1B1B1B;
  --ink-soft:    #3D3D3D;
  --muted:       #5C5C5C;
  --muted-2:     #6E6E6A;
  --muted-3:     #4A4A4A;

  --line:        #DCDCD7;
  --line-2:      #DEDED9;

  --accent:      #E8700A;
  --accent-hi:   #FF8A24;
  --accent-deep: #A84E04;

  --dark:        #141414;
  --dark-2:      #242424;
  --dark-3:      #252525;
  --dark-line:   #2E2E2E;
  --on-dark:     #8E8E8B;

  --header-h:    74px;
  --gutter:      48px;
  --maxw:        1440px;

  --font-display: Archivo, "Archivo", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-hi); }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }

input, select, textarea, button { font-family: var(--font-body); }
::placeholder { color: #7A7A7A; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--dark);
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.muted { color: var(--muted-2); font-size: 15px; font-weight: 400; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  border: 0;
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-hi); color: var(--dark); }

.btn-xs { font-size: 12px; letter-spacing: .06em; padding: 14px 18px; align-self: flex-start; }
.btn-xs:hover { background: var(--dark); color: #fff; }
.btn-sm { font-size: 13px; padding: 13px 22px; }
.btn-md { font-size: 14px; padding: 19px 40px; }
.btn-lg { font-size: 14px; padding: 20px 44px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(248, 248, 246, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 66px; height: 44px;
  position: relative;
  overflow: hidden;
  flex: 0 0 66px;
}
.brand-mark img {
  position: absolute;
  left: -41px; top: -1px;
  width: 153.6px; height: auto;
  max-width: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.brand-tag {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 5px;
}

.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav > a {
  color: var(--muted-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}
.site-nav > a:hover { color: var(--ink); }
.site-nav > a.btn { color: var(--dark); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  height: 92vh;
  min-height: 840px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--slot-bg);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,.72) 0%, rgba(12,12,12,.45) 45%, rgba(12,12,12,.85) 100%);
  pointer-events: none;
}
.hero-body {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding: 0 var(--gutter) 88px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-body h1 {
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.hero-body p {
  font-size: 17px;
  line-height: 1.55;
  color: #D2D2CF;
  max-width: 520px;
  margin: 24px 0 30px;
  text-wrap: pretty;
}

/* ------------------------------------------------------------ stat strip */

.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 38px 40px;
  border-right: 1px solid var(--line);
  color: var(--accent);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: 0; }
.stat svg { flex: 0 0 34px; }
.stat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .01em;
  color: var(--ink);
}
.stat-sub { font-size: 14px; color: var(--muted); margin-top: 5px; }

/* ---------------------------------------------------------- shared bits */

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.rule { width: 64px; height: 3px; background: var(--accent); margin: 26px 0; }
.rule-lg { width: 120px; height: 4px; margin: 20px 0 0; }

/* --------------------------------------------------------- custom work */

.custom { background: var(--bg); padding: 120px 0; }
.custom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.custom-intro { position: sticky; top: 120px; }
.custom-intro h2 {
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 22px 0 0;
}
.custom-intro .lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.custom-intro p:not(.lead) {
  font-size: 16px;
  line-height: 1.72;
  color: var(--muted);
  margin: 0 0 34px;
  text-wrap: pretty;
}

.caps { border-top: 1px solid var(--line); padding-top: 26px; }
.caps-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.caps-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--ink-soft);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--line-2);
}
.svc {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  min-width: 0;
  transition: background .15s ease;
}
.svc:hover { background: #FAFAF8; }
.svc-media {
  height: 196px;
  position: relative;
  overflow: hidden;
  background: var(--slot-bg);
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 26px 26px 30px; }
.svc-body h3 { font-size: 21px; letter-spacing: .01em; margin: 0; }
.svc-body p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; }

/* Crops carried over from the canvas .image-slots.state.json */
.crop-ladder1 { transform: translate(-3.1048%, 8.5332%) scale(1.322767); }
.crop-davit2  { transform: translate(0, 27.7697%); }

/* ------------------------------------------------------------- our work */

.work {
  background: var(--dark);
  padding: 110px 0 120px;
  border-top: 1px solid var(--dark-line);
}
.work-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.work-head h2 {
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.work-head p {
  font-size: 16px;
  color: var(--on-dark);
  max-width: 420px;
  margin: 0;
  text-align: right;
}
.work-rail {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 var(--gutter) 20px;
  scroll-snap-type: x proximity;
}
.work-item {
  flex: 0 0 300px;
  height: 300px;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--slot-bg);
  scroll-snap-align: start;
}
.work-item.w-md { flex-basis: 380px; }
.work-item.w-lg { flex-basis: 420px; }
.work-item img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- products */

.products { background: var(--surface); color: var(--ink); padding: 110px 0 120px; }
.products-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 44px;
  border-bottom: 2px solid var(--ink);
}
.products-head h2 {
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 20px 0 0;
}
.products-note {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  max-width: 400px;
  flex: 0 0 auto;
}
.products-note p { font-size: 16px; line-height: 1.6; color: var(--muted-3); margin: 0; font-weight: 500; }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: var(--line-2);
  margin-top: 2px;
}
.prod {
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background .15s ease;
}
.prod:hover { background: var(--surface); }
.prod-media { height: 230px; position: relative; overflow: hidden; background: var(--slot-bg); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 21px; letter-spacing: .01em; margin: 0; }
.prod-body p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 10px 0 22px; flex: 1; }

/* -------------------------------------------------------------- contact */

.contact { background: var(--bg); padding: 110px 0 120px; }
.contact-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px;
}
.contact-info h2 {
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 20px 0 0;
}
.contact-lead {
  font-size: 16px;
  line-height: 1.72;
  color: var(--muted);
  margin: 26px 0 46px;
  max-width: 440px;
  text-wrap: pretty;
}
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-row {
  display: flex;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-2);
  width: 90px;
  flex: 0 0 90px;
  padding-top: 3px;
}
.contact-row dd { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; font-weight: 500; }
.contact-row dd.plain { color: var(--ink); gap: 0; }

.inquiry {
  background: var(--dark-3);
  border-top: 3px solid var(--accent);
  padding: 44px 48px 48px;
}
.inquiry h3 { font-size: 24px; letter-spacing: .01em; color: #fff; margin: 0 0 30px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field-grid + .field { margin-top: 20px; }
.field > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9C9C99;
}
.field input,
.field select,
.field textarea {
  background: var(--ink);
  border: 1px solid #3D3D3D;
  color: #fff;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  width: 100%;
  min-width: 0;
  border-radius: 0;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #D64545; }

.submit-row { display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--accent); font-weight: 500; }
.form-status.is-error { color: #FF7A7A; }

/* --------------------------------------------------------------- footer */

.site-footer { background: var(--dark-2); border-top: 3px solid var(--accent); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 38px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.footer-tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark); }
.footer-nav { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: #A8A8A5; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.footer-nav a:hover { color: var(--accent-hi); }
.footer-copy { font-size: 12px; color: #777775; text-align: right; letter-spacing: .06em; }

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

@media (max-width: 1240px) {
  :root { --gutter: 32px; }
  .custom-inner { gap: 44px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #F8F8F6;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .site-nav > a.btn { margin-top: 16px; border-bottom: 0; padding: 16px 22px; }

  .hero { height: auto; min-height: 620px; }
  .hero-body { padding: 200px var(--gutter) 72px; }
  .hero-body h1 { font-size: 40px; }

  .stats-inner { grid-template-columns: 1fr; }
  .stat { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }

  .custom { padding: 80px 0; }
  .custom-inner { grid-template-columns: minmax(0, 1fr); }
  .custom-intro { position: static; }
  .custom-intro h2, .work-head h2, .products-head h2, .contact-info h2 { font-size: 34px; }

  .work { padding: 80px 0 90px; }
  .work-head { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 36px; }
  .work-head p { text-align: left; }

  .products { padding: 80px 0 90px; }
  .products-head { flex-direction: column; align-items: flex-start; gap: 28px; }

  .contact { padding: 80px 0 90px; }
  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .inquiry { padding: 32px 28px 36px; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; }
  .brand-tag { display: none; }
  .hero-body h1 { font-size: 32px; }
  .hero-body p { font-size: 16px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .prod-grid { grid-template-columns: minmax(0, 1fr); }
  .caps-list { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .work-item, .work-item.w-md, .work-item.w-lg { flex-basis: 78vw; height: 240px; }
  .contact-row { flex-direction: column; gap: 10px; }
  .contact-row dt { width: auto; flex: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-brand { align-items: center; }
  .footer-nav { justify-content: center; }
  .footer-copy { text-align: center; }
}
