*{box-sizing:border-box;margin:0;padding:0}

:root{
  --ink:#14212b;
  --ink-2:#243746;
  --muted:#667784;
  --line:#dfe5e9;
  --soft:#f4f7f9;
  --soft-2:#eaf0f3;
  --accent:#c62828;
  --accent-dark:#a91f1f;
  --navy:#102a43;
  --navy-2:#173b59;
  --white:#fff;
  --shadow-sm:0 8px 22px rgba(16,42,67,.07);
  --shadow-md:0 18px 45px rgba(16,42,67,.12);
  --radius:10px;
  --ease:cubic-bezier(.22,1,.36,1);
}

html{scroll-behavior:smooth}

body{
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.6;
  overflow-x:hidden;
}

a{text-decoration:none;color:inherit}

.container{width:min(1180px,92%);margin:auto}

/* =========================
   HEADER / NAVIGATION
========================= */

.site-header{
  height:78px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  position:sticky;
  top:0;
  z-index:20;
  box-shadow:0 2px 14px rgba(16,42,67,.04);
}

.nav{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  font-size:20px;
  font-weight:900;
  letter-spacing:1.5px;
  color:var(--accent);
  transition:transform .3s var(--ease);
}

.logo:hover{transform:translateY(-1px)}

.logo span{
  display:block;
  color:var(--ink);
  font-size:8px;
  letter-spacing:2.6px;
  line-height:1;
}

nav{
  display:flex;
  align-items:center;
  gap:28px;
  font-size:14px;
  font-weight:700;
}

nav a{
  position:relative;
  padding:7px 0;
  transition:color .25s ease;
}

/* nav a:not(.nav-cta)::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background:var(--accent);
  transition:width .3s var(--ease);
} */

nav a:hover{color:var(--accent)}
/* nav a:not(.nav-cta):hover::after{width:100%} */

.nav-cta{
  background:var(--accent);
  color:#fff;
  padding:11px 19px;
  border-radius:6px;
  box-shadow:0 7px 18px rgba(198,40,40,.18);
}

.nav-cta::after{display:none!important}

.nav-cta:hover{
  background:var(--accent-dark);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(198,40,40,.25);
}

/* =========================
   HERO
========================= */

.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 85% 25%,rgba(198,40,40,.08),transparent 30%),
    linear-gradient(135deg,#f5f8fa 0%,#edf3f6 100%);
  padding:90px 0 100px;
  border-bottom:1px solid var(--line);
}

.hero::before{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-180px;
  bottom:-210px;
  border:1px solid rgba(198,40,40,.12);
  border-radius:50%;
  animation:floatRing 8s ease-in-out infinite;
}

.hero::after{
  content:"";
  position:absolute;
  width:210px;
  height:210px;
  right:-95px;
  bottom:-135px;
  border:1px solid rgba(16,42,67,.10);
  border-radius:50%;
  animation:floatRing 6s ease-in-out infinite reverse;
}

.hero-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:50px;
  position:relative;
  z-index:1;
}

.eyebrow{
  font-size:11px;
  letter-spacing:2.4px;
  font-weight:800;
  color:var(--accent);
}

.hero h1{
  font-size:clamp(42px,5vw,70px);
  line-height:1.04;
  margin:17px 0 22px;
  letter-spacing:-2px;
  max-width:780px;
  animation:fadeUp .7s var(--ease) both;
}

.hero h1 em{
  font-style:normal;
  color:var(--accent);
}

.hero p{
  max-width:650px;
  color:var(--muted);
  font-size:18px;
  margin-bottom:30px;
  animation:fadeUp .7s .1s var(--ease) both;
}

.primary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  background:var(--accent);
  color:#fff;
  padding:14px 22px;
  min-height:48px;
  border-radius:6px;
  font-weight:800;
  font-size:14px;
  box-shadow:0 9px 22px rgba(198,40,40,.18);
  transition:
    transform .3s var(--ease),
    background .25s ease,
    box-shadow .3s ease;
  animation:fadeUp .7s .2s var(--ease) both;
}

.primary-btn span{
  transition:transform .3s var(--ease);
}

.primary-btn:hover{
  background:var(--accent-dark);
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(198,40,40,.25);
}

.primary-btn:hover span{transform:translateX(4px)}

.hero-stat{
  min-width:210px;
  border-left:1px solid #cbd4da;
  padding-left:38px;
  display:flex;
  align-items:center;
  gap:16px;
  animation:fadeRight .8s .15s var(--ease) both;
}

.hero-stat strong{
  font-size:70px;
  line-height:1;
  color:var(--accent);
}

.hero-stat span{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:800;
  color:var(--navy);
}

/* =========================
   CATALOGUE
========================= */

.catalogue{padding:85px 0}

.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
  margin-bottom:35px;
}

.section-heading h2,
.about-strip h2,
.contact h2{
  font-size:40px;
  line-height:1.1;
  margin-top:8px;
  letter-spacing:-1px;
}

.section-heading p{
  color:var(--muted);
  max-width:430px;
}

.filters{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:30px;
}

.filters input,
.filters select{
  height:48px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:0 14px;
  background:#fff;
  font:inherit;
  color:var(--ink);
  outline:none;
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.filters input{width:320px}
.filters select{min-width:230px}

.filters input:focus,
.filters select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(198,40,40,.08);
}

.count{
  margin-left:auto;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

/* =========================
   MACHINE CARDS
========================= */

.machine-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.machine-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  transition:
    transform .4s var(--ease),
    box-shadow .4s var(--ease),
    border-color .3s ease;
  display:flex;
  flex-direction:column;
  box-shadow:var(--shadow-sm);
  animation:cardReveal .6s var(--ease) both;
}

.machine-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-md);
  border-color:#cbd6dc;
}

.machine-image{
  height:165px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 75% 25%,rgba(255,255,255,.18),transparent 25%),
    linear-gradient(135deg,var(--navy),#5b6b77);
  display:flex;
  align-items:end;
  padding:15px;
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.5px;
}

.machine-image::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:linear-gradient(
    115deg,
    transparent 35%,
    rgba(255,255,255,.12) 50%,
    transparent 65%
  );
  transform:translateX(-55%) rotate(8deg);
  transition:transform .7s var(--ease);
}

.machine-card:hover .machine-image::before{
  transform:translateX(55%) rotate(8deg);
}

.machine-image span{
  position:relative;
  z-index:1;
}

.machine-content{
  padding:21px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.machine-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}

.machine-number{
  font-size:11px;
  font-weight:900;
  color:var(--accent);
  letter-spacing:1px;
}

.badge{
  font-size:9px;
  font-weight:800;
  padding:5px 8px;
  border-radius:4px;
  background:#eef3f6;
  color:#526371;
  text-align:right;
  transition:background .25s ease,color .25s ease;
}

.machine-card:hover .badge{
  background:rgba(198,40,40,.08);
  color:var(--accent);
}

.machine-card h3{
  font-size:19px;
  line-height:1.25;
  margin-bottom:10px;
  transition:color .25s ease;
}

.machine-card:hover h3{color:var(--navy-2)}

.machine-card p{
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
  margin-bottom:18px;
}

.machine-meta{
  border-top:1px solid var(--line);
  padding-top:12px;
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:var(--muted);
  margin-top:auto;
}

.machine-meta strong{
  color:var(--ink);
  letter-spacing:.8px;
}

.details-btn{
  margin-top:15px;
  color:var(--accent);
  font-size:13px;
  font-weight:900;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid transparent;
  transition:color .25s ease;
}

.details-btn span{
  font-size:18px;
  transition:transform .3s var(--ease);
}

.details-btn:hover{color:var(--accent-dark)}
.details-btn:hover span{transform:translateX(5px)}

.no-results{
  display:none;
  text-align:center;
  padding:60px;
  color:var(--muted);
}

/* =========================
   ABOUT
========================= */

.about-strip{
  background:
    linear-gradient(135deg,#f3f7f9 0%,#e9f0f4 100%);
  padding:75px 0;
  position:relative;
  overflow:hidden;
}

.about-strip::after{
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  right:-120px;
  top:-120px;
  border:1px solid rgba(198,40,40,.12);
  border-radius:50%;
}

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center;
  position:relative;
  z-index:1;
}

.about-strip h2{font-size:38px}
.about-grid p{color:var(--muted);font-size:16px}

/* =========================
   CONTACT CTA
========================= */

.contact{padding:75px 0}

.contact-box{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:45px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  position:relative;
  overflow:hidden;
}

.contact-box::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:var(--accent);
}

.contact h2{font-size:32px}
.contact p{color:var(--muted);margin-top:10px}

/* =========================
   FOOTER
========================= */

footer{
  background:var(--navy);
  color:#fff;
  padding:32px 0;
}

.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.footer .logo{color:#fff}
.footer .logo span{color:#aebbc5}
.footer p{color:#aebbc5;font-size:12px}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes fadeRight{
  from{opacity:0;transform:translateX(22px)}
  to{opacity:1;transform:translateX(0)}
}

@keyframes cardReveal{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes floatRing{
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-12px) rotate(4deg)}
}

/* stagger cards without changing HTML */
.machine-card:nth-child(2){animation-delay:.04s}
.machine-card:nth-child(3){animation-delay:.08s}
.machine-card:nth-child(4){animation-delay:.12s}
.machine-card:nth-child(5){animation-delay:.16s}
.machine-card:nth-child(6){animation-delay:.20s}
.machine-card:nth-child(7){animation-delay:.24s}
.machine-card:nth-child(8){animation-delay:.28s}
.machine-card:nth-child(9){animation-delay:.32s}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){
  .machine-grid{grid-template-columns:repeat(2,1fr)}

  .hero-inner,
  .section-heading,
  .about-grid,
  .contact-box{display:block}

  .hero-stat{
    margin-top:45px;
    width:max-content;
  }

  .section-heading p{margin-top:15px}

  .filters{flex-wrap:wrap}
  .count{margin-left:0}

  .about-grid>p{margin-top:25px}

  .contact-box .primary-btn{margin-top:25px}
}

@media(max-width:600px){
  .site-header{
    height:auto;
    padding:15px 0;
  }

  .nav{display:block}

  .nav nav{
    margin-top:15px;
    gap:14px;
    flex-wrap:wrap;
  }

  .nav-cta{
    padding:9px 14px;
  }

  .hero{
    padding:60px 0;
  }

  .hero h1{
    font-size:42px;
    letter-spacing:-1.5px;
  }

  .hero p{font-size:16px}

  .hero-stat{
    padding-left:20px;
    min-width:0;
  }

  .hero-stat strong{font-size:56px}

  .machine-grid{grid-template-columns:1fr}

  .machine-image{height:185px}

  .filters input,
  .filters select{
    width:100%;
    min-width:0;
  }

  .section-heading h2{font-size:34px}
  .about-strip h2{font-size:32px}

  .contact-box{padding:30px 26px}
  .contact h2{font-size:28px}

  .footer{
    display:block;
  }

  .footer p{margin-top:15px}
}

/* Respect users who prefer reduced motion */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}

  *,
  *::before,
  *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

/* PDF catalogue product images */
.machine-image.has-photo{align-items:flex-end;background:#f3f5f6;padding:0;}
.machine-image.has-photo img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .5s var(--ease);background:#fff;}
.machine-card:hover .machine-image.has-photo img{transform:scale(1.04);}
.machine-image.has-photo span{position:absolute;left:15px;bottom:12px;background:rgba(16,42,67,.82);padding:4px 8px;border-radius:4px;color:#fff;}


/* Machine image lightbox */
.lightbox{position:fixed;inset:0;background:rgba(6,18,30,.88);display:flex;align-items:center;justify-content:center;padding:24px;z-index:9999;opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.lightbox.is-open{opacity:1;visibility:visible}
.lightbox-content{position:relative;max-width:min(1100px,96vw);max-height:92vh;text-align:center}
.lightbox-image{display:block;max-width:100%;max-height:78vh;width:auto;height:auto;background:#fff;border-radius:10px;box-shadow:0 20px 70px rgba(0,0,0,.4)}
.lightbox-caption{color:#fff;margin-top:12px;font-size:15px}
.lightbox-close{position:absolute;right:-12px;top:-16px;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#102a43;font-size:26px;line-height:1;cursor:pointer}
body.lightbox-open{overflow:hidden}
