/* ==========================================================================
   Wraptech Machines — homepage sample
   Layout & type system inspired by modern SaaS sites (Satoshi headings,
   pale-blue tinted sections, soft rounded cards) recoloured to Wraptech's
   own brand blue. All CSS below is original.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS  — change the palette here and the whole page follows
   -------------------------------------------------------------------------- */
:root{
  /* Wraptech brand */
  --blue:        #0074B9;   /* primary brand blue, sampled from wrapmachines.com */
  --blue-600:    #0063A0;
  --blue-700:    #00527F;
  --navy:        #0B2033;   /* header / footer ground */
  --navy-soft:   #12314A;

  /* Tints & neutrals */
  --tint:        #F0F6FF;   /* hero ground */
  --tint-2:      #F5F9FF;   /* alternating section ground */
  --tint-3:      #E4EEF9;   /* card fill */
  --line:        #DCE7F2;
  --ink:         #0B1B27;
  --body:        #55606E;   /* body copy grey, sampled from wrapmachines.com */
  --muted:       #8890A5;
  --white:       #FFFFFF;

  /* Type */
  --font-head: "Satoshi", "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 10px rgba(7,18,74, .06);
  --shadow-md: 0 14px 34px rgba(8,40,161, .10);
  --shadow-btn: 0 12px 24px rgba(8,40,161, .28);

  --shell: 1200px;
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body{
  margin:0;
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  color:var(--body);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--ink);
  margin:0 0 .5em;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.18;
}
h1{ font-size:clamp(2.1rem, 4.6vw, 3.6rem); font-weight:900; letter-spacing:-.03em; }
h2{ font-size:clamp(1.6rem, 2.9vw, 2.35rem); }
h3{ font-size:1.2rem; }
p{ margin:0 0 1rem; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.shell{ width:100%; max-width:var(--shell); margin-inline:auto; padding-inline:24px; }

/* --------------------------------------------------------------------------
   3. SHARED BITS
   -------------------------------------------------------------------------- */
.eyebrow{
  font-family:var(--font-head);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--blue);
  margin:0 0 .75rem;
}
.accent{ color:var(--blue); }

.btn{
  display:inline-flex; align-items:center; gap:.55rem;
  font-family:var(--font-head); font-weight:600; font-size:.875rem;
  padding:.72rem 1.4rem;
  border-radius:12px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn-lg{ padding:.95rem 1.8rem; font-size:.95rem; }
.btn-primary{ background:var(--blue); color:var(--white); box-shadow:var(--shadow-btn); }
.btn-primary:hover{ background:var(--blue-600); transform:translateY(-2px); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ background:var(--white); border-color:var(--blue); color:var(--blue); }
.btn-light{ background:var(--white); color:var(--blue); }
.btn-light:hover{ transform:translateY(-2px); }

/* little energy spark on CTAs */
.spark{
  width:14px; height:14px; flex:none;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2 4.5 13.5H11L10 22l8.5-11.5H12L13 2Z'/></svg>") center/contain no-repeat;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2 4.5 13.5H11L10 22l8.5-11.5H12L13 2Z'/></svg>") center/contain no-repeat;
}

.link-arrow{
  font-family:var(--font-head); font-weight:600; font-size:.875rem;
  color:var(--blue); display:inline-flex; align-items:center; gap:.4rem;
}
.link-arrow::after{ content:"→"; transition:transform .18s ease; }
.link-arrow:hover::after{ transform:translateX(4px); }

.section{ padding:clamp(56px, 7vw, 96px) 0; }
.section--tint{ background:var(--tint-2); }
.section-head{ max-width:720px; margin:0 auto clamp(32px,4vw,56px); text-align:center; }
.section-sub{ color:var(--body); font-size:1.02rem; }

/* --------------------------------------------------------------------------
   4. HEADER
   -------------------------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:var(--navy);
  transition:box-shadow .2s ease, background .2s ease;
}
.site-header.is-stuck{ box-shadow:0 6px 24px rgba(7,18,74,.28); }
.header-inner{
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand-logo{
  height:34px; width:auto;
  /* the supplied logo is dark-on-light; flip it to white for the navy bar.
     Swap in a real white logo file and delete this filter. */
  filter:brightness(0) invert(1);
}
.nav{ display:flex; align-items:center; gap:28px; margin-left:auto; }
.nav-list{ display:flex; align-items:center; gap:4px; }
.nav-list > li{ position:relative; }
.nav-link{
  display:inline-flex; align-items:center; gap:.35rem;
  font-family:var(--font-head); font-size:.86rem; font-weight:500;
  color:#D8E4EF; background:none; border:0; cursor:pointer;
  padding:.6rem .8rem; border-radius:9px;
  transition:color .16s ease, background .16s ease;
}
.nav-link:hover, .has-menu:hover > .nav-link{ color:var(--white); background:rgba(255,255,255,.08); }
.caret{
  width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:5px solid currentColor; opacity:.7;
}
.nav-cta{ margin-left:6px; }

/* dropdowns */
.dropdown{
  position:absolute; top:calc(100% + 10px); left:0;
  min-width:230px; padding:10px;
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--r-md); box-shadow:var(--shadow-md);
  display:grid; gap:2px;
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu:hover > .dropdown, .has-menu.open > .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a{
  display:block; padding:.55rem .7rem; border-radius:9px;
  font-size:.875rem; color:var(--ink);
}
.dropdown a:hover{ background:var(--tint); color:var(--blue); }
.mega{
  left:auto; right:-40px;
  grid-template-columns:repeat(4, minmax(180px,1fr));
  gap:8px 22px; padding:22px;
}
.mega-title{
  font-family:var(--font-head); font-size:.7rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--muted);
  margin:0 0 .35rem .7rem;
}
.mega-title--gap{ margin-top:1rem; }

.burger{
  display:none; flex-direction:column; gap:5px;
  background:none; border:0; cursor:pointer; padding:8px;
}
.burger span{ width:22px; height:2px; background:var(--white); border-radius:2px; }

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero{
  position:relative; overflow:hidden;
  background:var(--tint);
  padding:clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 80px);
  text-align:center;
}
.hero-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(8,40,161,.16), transparent 70%),
    linear-gradient(126deg, #EAF2FF 0%, #EAF2FF 40%, #C9DEFA 100%);
  opacity:.9;
}
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background:url("https://www.wrapmachines.com/wp-content/uploads/2021/09/MachineBanner_backgroundelements-01-1.jpg") center/cover no-repeat;
  opacity:.06; mix-blend-mode:multiply;
}
.hero-inner{ position:relative; }
.hero h1{ margin-bottom:1rem; }
.hero-sub{
  max-width:720px; margin:0 auto 2rem;
  font-size:1.05rem; color:#4C5B6B;
}
.hero-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:clamp(36px,5vw,64px); }

.hero-shot{
  position:relative; max-width:1000px; margin-inline:auto;
  border-radius:var(--r-xl); overflow:visible;
}
.hero-shot > img{
  width:100%; border-radius:var(--r-xl);
  box-shadow:0 30px 70px rgba(8,40,161,.22);
  border:6px solid rgba(255,255,255,.7);
}
.hero-chip{
  position:absolute; display:grid; gap:2px;
  background:var(--white); border:1px solid var(--line);
  border-radius:14px; padding:.7rem .95rem;
  box-shadow:var(--shadow-md); text-align:left;
}
.hero-chip strong{ font-family:var(--font-head); font-size:.85rem; color:var(--ink); }
.hero-chip span{ font-size:.75rem; color:var(--muted); }
.hero-chip--a{ left:-14px; top:22%; }
.hero-chip--b{ right:-14px; bottom:16%; }

/* --------------------------------------------------------------------------
   6. STATS
   -------------------------------------------------------------------------- */
.stats{ background:var(--white); padding:clamp(36px,4.5vw,60px) 0; }
.stats-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
  background:var(--tint-2); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:clamp(24px,3vw,36px);
}
.stat{ text-align:center; position:relative; }
.stat + .stat::before{
  content:""; position:absolute; left:-8px; top:14%; height:72%;
  border-left:1px solid var(--line);
}
.stat-num{
  font-family:var(--font-head); font-weight:900;
  font-size:clamp(1.8rem,3.2vw,2.6rem); color:var(--blue);
  letter-spacing:-.03em; line-height:1;
}
.plus{ font-family:var(--font-head); font-weight:900; font-size:clamp(1.3rem,2.2vw,1.8rem); color:var(--blue); }
.stat p{ margin:.4rem 0 0; font-size:.85rem; color:var(--body); }

/* --------------------------------------------------------------------------
   7. COMPANY / HISTORY CARDS
   -------------------------------------------------------------------------- */
.two-up{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.feature-card{
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:clamp(24px,3vw,38px);
  box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column;
}
.feature-card h2{ font-size:clamp(1.3rem,2vw,1.7rem); }
.feature-media{
  margin-top:auto; padding-top:24px;
}
.feature-media img{
  width:100%; height:230px; object-fit:cover;
  border-radius:var(--r-md);
}

/* --------------------------------------------------------------------------
   8. PRODUCTS
   -------------------------------------------------------------------------- */
.product-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
.product-card{
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:22px;
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display:flex; flex-direction:column;
}
.product-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:#BFD8EE; }
.product-media{
  background:linear-gradient(150deg, #EAF2FF 0%, #D6E6FA 100%);
  border-radius:var(--r-md);
  height:210px; margin-bottom:18px;
  display:grid; place-items:center; overflow:hidden;
}
.product-media img{ max-height:180px; width:auto; object-fit:contain; }
.product-card h3{ margin-bottom:.4rem; }
.product-card p{ font-size:.92rem; }
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 1rem; }
.tag-row li{
  font-size:.72rem; font-weight:600; font-family:var(--font-head);
  color:var(--blue-700); background:var(--tint-3);
  padding:.25rem .6rem; border-radius:999px;
}
.product-card .link-arrow{ margin-top:auto; }

/* --------------------------------------------------------------------------
   9. QUOTE BAND
   -------------------------------------------------------------------------- */
.quote-band{
  position:relative; overflow:hidden;
  background:var(--navy);
  padding:clamp(56px,7vw,92px) 0;
  text-align:center; color:var(--white);
}
.quote-band::before{
  content:""; position:absolute; inset:0;
  background:url("https://www.wrapmachines.com/wp-content/uploads/2021/07/home-bg4.jpg") center/cover no-repeat;
  opacity:.18;
}
.quote-band::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(7,18,74,.92) 0%, rgba(6,26,110,.78) 100%);
}
.quote-inner{ position:relative; z-index:1; display:grid; justify-items:center; gap:6px; }
.quote-mark{ font-family:var(--font-head); font-size:4rem; line-height:.6; color:rgba(255,255,255,.35); margin:0; }
.quote-band blockquote{
  margin:0 0 1.6rem; font-family:var(--font-head); font-weight:700;
  font-size:clamp(1.5rem,3.4vw,2.4rem); letter-spacing:-.02em; color:var(--white);
}

/* --------------------------------------------------------------------------
   10. VIDEO SECTION
   -------------------------------------------------------------------------- */
.video-layout{ display:grid; grid-template-columns:1fr 1.05fr; gap:clamp(28px,4vw,56px); align-items:center; }
.check-list{ display:grid; gap:.6rem; margin:0 0 1.6rem; }
.check-list li{ position:relative; padding-left:1.75rem; font-size:.95rem; }
.check-list li::before{
  content:""; position:absolute; left:0; top:.42em;
  width:16px; height:16px; border-radius:50%;
  background:var(--blue);
  -webkit-mask:none;
}
.check-list li::after{
  content:""; position:absolute; left:4px; top:.72em;
  width:8px; height:4px; border-left:2px solid #fff; border-bottom:2px solid #fff;
  transform:rotate(-45deg);
}
.video-frame{
  position:relative; aspect-ratio:16/9;
  border-radius:var(--r-lg); overflow:hidden;
  box-shadow:0 26px 60px rgba(8,40,161,.20);
  border:6px solid var(--white);
}
.video-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

/* --------------------------------------------------------------------------
   11. FORMATS
   -------------------------------------------------------------------------- */
.format-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.format{
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--r-md); padding:26px 14px;
  text-align:center; box-shadow:var(--shadow-sm);
  transition:transform .18s ease, border-color .18s ease;
}
.format:hover{ transform:translateY(-3px); border-color:var(--blue); }
.format span{ font-family:var(--font-head); font-weight:600; font-size:.9rem; color:var(--ink); }

/* --------------------------------------------------------------------------
   12. CLIENT MARQUEE
   -------------------------------------------------------------------------- */
.marquee{
  overflow:hidden; margin-top:8px;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track{
  display:flex; align-items:center; gap:34px; width:max-content;
  animation:scroll-x 44s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state:paused; }
.marquee-track img{
  height:74px; width:auto; object-fit:contain;
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--r-md); padding:10px 18px;
  filter:grayscale(1); opacity:.72; transition:filter .2s ease, opacity .2s ease;
}
.marquee-track img:hover{ filter:none; opacity:1; }
@keyframes scroll-x{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; } }

/* --------------------------------------------------------------------------
   13. CTA / NEWSLETTER
   -------------------------------------------------------------------------- */
.cta{
  background:linear-gradient(126deg, #EAF2FF 0%, #EAF2FF 40%, #BFD9F8 100%);
  padding:clamp(56px,7vw,92px) 0;
}
.cta-inner{ text-align:center; display:grid; justify-items:center; }
.cta h2{ margin-bottom:1.6rem; }
.cta-form{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.cta-form input{
  width:min(360px, 78vw);
  font-family:var(--font-body); font-size:.95rem;
  padding:.95rem 1.1rem;
  border:1px solid var(--line); border-radius:12px;
  background:var(--white); color:var(--ink);
}
.cta-form input:focus{ outline:2px solid var(--blue); outline-offset:1px; }
.form-msg{ margin:.9rem 0 0; font-size:.88rem; min-height:1.2em; }
.form-msg.ok{ color:#127A4B; }
.form-msg.err{ color:#B3261E; }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer{ background:var(--navy); color:#AFC1D2; padding:clamp(48px,6vw,76px) 0 0; }
.footer-grid{
  display:grid; grid-template-columns:1.5fr 1fr 1fr 1.4fr; gap:34px;
  padding-bottom:44px;
}
.footer-logo{ height:38px; width:auto; filter:brightness(0) invert(1); margin-bottom:18px; }
.footer-brand p{ font-size:.9rem; line-height:1.7; }
.socials{ display:flex; gap:10px; margin-top:16px; }
.socials a{
  width:34px; height:34px; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.18); border-radius:9px;
  font-family:var(--font-head); font-size:.8rem; color:#D8E4EF;
  transition:background .18s ease, border-color .18s ease;
}
.socials a:hover{ background:var(--blue); border-color:var(--blue); color:#fff; }
.footer-col h3{
  color:var(--white); font-size:.78rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; margin-bottom:1rem;
}
.footer-col a{ display:block; font-size:.9rem; padding:.28rem 0; transition:color .16s ease; }
.footer-col a:hover{ color:var(--white); }
.footer-contact p{ font-size:.9rem; line-height:1.7; }
.footer-contact a{ display:inline; padding:0; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.12);
  padding-block:20px; font-size:.82rem;
}
.footer-bottom p{ margin:0; }
.footer-bottom a:hover{ color:var(--white); }

/* --------------------------------------------------------------------------
   15. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px){
  .product-grid{ grid-template-columns:repeat(2,1fr); }
  .format-grid{ grid-template-columns:repeat(4,1fr); }
  .mega{ grid-template-columns:repeat(2, minmax(170px,1fr)); }
}

@media (max-width: 900px){
  .burger{ display:flex; }
  .nav{
    position:fixed; inset:var(--header-h) 0 auto 0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--navy); padding:16px 24px 28px;
    border-top:1px solid rgba(255,255,255,.1);
    max-height:calc(100vh - var(--header-h)); overflow-y:auto;
    transform:translateY(-12px); opacity:0; visibility:hidden;
    transition:opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open{ transform:translateY(0); opacity:1; visibility:visible; }
  .nav-list{ flex-direction:column; align-items:stretch; gap:2px; }
  .nav-link{ width:100%; justify-content:space-between; font-size:.95rem; padding:.8rem .4rem; }
  .dropdown, .mega{
    position:static; opacity:1; visibility:visible; transform:none;
    background:transparent; border:0; box-shadow:none; padding:0 0 8px 14px;
    display:none; grid-template-columns:1fr;
  }
  .has-menu.open > .dropdown{ display:grid; }
  .dropdown a{ color:#AFC1D2; }
  .dropdown a:hover{ background:rgba(255,255,255,.08); color:#fff; }
  .mega-title{ color:#7E93A8; }
  .nav-cta{ margin:14px 0 0; justify-content:center; }

  .stats-grid{ grid-template-columns:repeat(2,1fr); gap:24px; }
  .stat:nth-child(3)::before{ display:none; }
  .two-up{ grid-template-columns:1fr; }
  .video-layout{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .hero-chip{ display:none; }
}

@media (max-width: 640px){
  .product-grid{ grid-template-columns:1fr; }
  .format-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr; }
  .stat + .stat::before{ display:none; }
  .marquee-track img{ height:58px; }
}
