/* ============= Freeman Machinery — Industrial Design System ============= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --background: #ffffff;
  --foreground: #1a1f2c;
  --card: #f8f9fb;
  --muted: #f1f2f5;
  --muted-foreground: #6b7280;
  --border: #e4e6ea;
  --primary: #c8262c;
  --primary-hover: #a81f25;
  --primary-foreground: #ffffff;
  --steel: #2a2f3a;
  --steel-deep: #16191f;
  --concrete: #9098a3;
  --shadow-card: 0 4px 20px -8px rgba(22,25,31,0.15);
  --shadow-industrial: 0 20px 50px -20px rgba(22,25,31,0.4);
  --gradient-hero: linear-gradient(180deg, rgba(22,25,31,0.2) 0%, rgba(22,25,31,0.85) 100%);
  --font-display: "Oswald", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --container: 1400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.1; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media(min-width:1024px){ .container{ padding: 0 40px; } }

/* Section label */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.eyebrow-line { width: 48px; height: 2px; background: var(--primary); }
.eyebrow-text { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; font-family: var(--font-display);
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em;
  transition: all .25s ease; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--foreground); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============= Header ============= */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228,230,234,0.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img{width: 150px;}
.nav { display: none; gap: 28px; align-items: center; }
@media(min-width:1024px){ .nav{ display: flex; } }
.nav a {
  font-family: var(--font-display); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(26,31,44,0.85); position: relative;
  padding-bottom: 6px; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--primary); transition: width .3s;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.icon-btn { display: flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(26,31,44,0.8); }
.icon-btn:hover { color: var(--primary); }
.icon-btn svg { width: 16px; height: 16px; }
.menu-toggle { display: block; padding: 8px; }
@media(min-width:1024px){ .menu-toggle{ display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; padding: 16px 24px; flex-direction: column; gap: 12px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-display); text-transform: uppercase; font-size: 14px; padding: 8px 0; }

/* ============= Hero ============= */
.hero {
  position: relative; min-height: 100vh; width: 100%; overflow: hidden;
  background: var(--steel-deep); color: #fff;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero-overlay-1 { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-overlay-2 { position: absolute; inset: 0; background: rgba(22,25,31,0.4); }
.hero-content {
  position: relative; z-index: 10; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 160px; padding-bottom: 128px;
}
.hero-eyebrow .eyebrow-text { color: rgba(255,255,255,0.8); }
.hero h1 {
  font-size: clamp(48px, 8vw, 80px); font-weight: 700; text-transform: uppercase;
  line-height: 1.2; max-width: 900px;
}
.hero h1 .accent { color: var(--primary); }
.hero p { margin-top: 32px; font-size: 18px; color: rgba(255,255,255,0.75); max-width: 560px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-bottom {
  position: absolute; bottom: 40px; left: 24px; right: 24px;
  display: flex; align-items: flex-end; justify-content: space-between; color: #fff;
}
@media(min-width:1024px){ .hero-bottom{ left: 40px; right: 40px; } }
.slide-counter { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 14px; }
.slide-counter .num { font-size: 24px; color: var(--primary); font-weight: 700; }
.slide-counter .sep { color: rgba(255,255,255,0.4); }
.slide-counter .total { color: rgba(255,255,255,0.6); }
.slide-bars { display: flex; gap: 8px; }
.slide-bars span { width: 40px; height: 2px; background: rgba(255,255,255,0.3); cursor: pointer; }
.slide-bars span.active { background: var(--primary); }
.hero-tagline { display: none; font-size: 14px; color: rgba(255,255,255,0.6); max-width: 280px; }
@media(min-width:768px){ .hero-tagline{ display: block; } }
.social-rail {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: none; flex-direction: column; gap: 16px; color: rgba(255,255,255,0.7);
}
@media(min-width:768px){ .social-rail{ display: flex; } }
.social-rail a:hover { color: var(--primary); }
.social-rail svg { width: 16px; height: 16px; }

/* ============= Section base ============= */
.section { padding: 96px 0; }
@media(min-width:1024px){ .section{ padding: 128px 0; } }
.section-head { display: flex; flex-direction: column; gap: 32px; margin-bottom: 56px; }
@media(min-width:1024px){
  .section-head{ flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.section h2 {
  font-size: clamp(36px, 5vw, 60px); font-weight: 700; text-transform: uppercase;
  line-height: 1.2; max-width: 1000px;
}
.section h2 .accent { color: var(--primary); }
.section .sub { margin-top: 20px; color: var(--muted-foreground); max-width: 560px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.08em; transition: color .25s;
}
.text-link:hover { color: var(--primary); }
.text-link .arrow { transition: transform .25s; }
.text-link:hover .arrow { transform: rotate(45deg); }

/* ============= Products ============= */
.products { background: var(--background); }
.product-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px;
  border-bottom: 1px solid var(--border); padding-bottom: 4px;
}
.product-tabs button {
  font-family: var(--font-display); text-transform: uppercase; font-size: 12px;
  letter-spacing: 0.08em; padding: 12px 20px; color: var(--muted-foreground);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .25s, border-color .25s;
}
.product-tabs button:hover { color: var(--foreground); }
.product-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.product-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:640px){ .product-grid{ grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .product-grid{ grid-template-columns: repeat(3,1fr); } }
.product-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow-card); transition: border-color .3s;
  display: block;
}
.product-card:hover { border-color: var(--primary); }
.product-card .thumb { aspect-ratio: 3/2; overflow: hidden; background: var(--muted); position: relative; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.product-card:hover img { transform: scale(1.05); }
.product-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--primary); color: #fff;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 10px; letter-spacing: 0.15em; padding: 6px 12px;
}
.product-card .meta {
  padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.product-card h3 {
  font-family: var(--font-display); text-transform: uppercase; font-size: 18px;
  font-weight: 600; transition: color .25s;
}
.product-card:hover h3 { color: var(--primary); }
.product-card .arrow { color: var(--muted-foreground); transition: all .25s; }
.product-card:hover .arrow { color: var(--primary); transform: rotate(45deg); }

/* ============= About ============= */
.about { background: var(--steel-deep); color: #fff; position: relative; overflow: hidden; }
.about::before {
  content: ""; position: absolute; top: 0; right: 0; width: 33%; height: 8px; opacity: 0.6;
  background-image: repeating-linear-gradient(45deg, var(--primary) 0, var(--primary) 8px, transparent 8px, transparent 16px);
}
.about-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }
@media(min-width:1024px){ .about-grid{ grid-template-columns: repeat(2,1fr); } }
.about h3 { margin-top: 24px; font-size: 20px; color: rgba(255,255,255,0.85); max-width: 560px; }
.about p { margin-top: 20px; color: rgba(255,255,255,0.65); max-width: 560px; line-height: 1.7; }
.stats {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: rgba(255,255,255,0.1);
}
.stat {
  background: var(--steel-deep); padding: 32px; transition: background .3s;
}
@media(min-width:1024px){ .stat{ padding: 48px; } }
.stat:hover { background: var(--steel); }
.stat .value {
  font-family: var(--font-display); font-size: 56px; font-weight: 700;
  color: var(--primary); line-height: 1;
}
@media(min-width:1024px){ .stat .value{ font-size: 80px; } }
.stat .label {
  margin-top: 12px; font-family: var(--font-display); text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.2em; color: rgba(255,255,255,0.7);
}

/* ============= Industries ============= */
.industries-head { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.industries-head .eyebrow { justify-content: center; }
.industries-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:768px){ .industries-grid{ grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .industries-grid{ grid-template-columns: repeat(3,1fr); } }
.industry-card {
  position: relative; height: 420px; overflow: hidden; background: var(--steel-deep); color: #fff;
}
.industry-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.65; transition: all .7s;
}
.industry-card:hover img { opacity: 0.5; transform: scale(1.1); }
.industry-card .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--steel-deep), rgba(22,25,31,0.4) 60%, transparent);
}
.industry-card .body {
  position: absolute; inset: 0; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.industry-card .num { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--primary); }
.industry-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.industry-card ul {
  max-height: 0; overflow: hidden; transition: max-height .5s;
  font-size: 14px; color: rgba(255,255,255,0.8);
}
.industry-card:hover ul { max-height: 240px; }
.industry-card li { display: flex; gap: 8px; margin-top: 6px; }
.industry-card li::before { content: "▸"; color: var(--primary); }

/* ============= Cases ============= */
.cases { background: var(--muted); }
.cases-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:768px){ .cases-grid{ grid-template-columns: repeat(3,1fr); } }
.case-card { background: var(--background); overflow: hidden; transition: box-shadow .3s; display: block; }
.case-card:hover { box-shadow: var(--shadow-industrial); }
.case-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.case-card:hover img { transform: scale(1.1); }
.case-card .body { padding: 28px; }
.case-card .loc {
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-family: var(--font-display); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--primary);
}
.case-card .loc svg { width: 14px; height: 14px; }
.case-card .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.case-card h3 {
  font-family: var(--font-display); text-transform: uppercase; font-size: 18px;
  font-weight: 600; transition: color .25s;
}
.case-card:hover h3 { color: var(--primary); }
.case-card .arrow { color: var(--muted-foreground); transition: all .25s; flex-shrink: 0; }
.case-card:hover .arrow { color: var(--primary); transform: rotate(45deg); }

/* ============= News ============= */
.news-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border);
}
@media(min-width:768px){ .news-grid{ grid-template-columns: repeat(3,1fr); } }
.news-card { background: var(--background); padding: 32px; transition: background .5s; display: block; }
@media(min-width:1024px){ .news-card{ padding: 40px; } }
.news-card:hover { background: var(--steel-deep); color: #fff; }
.news-card .date {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-family: var(--font-display); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted-foreground); transition: color .3s;
}
.news-card:hover .date { color: var(--primary); }
.news-card .date svg { width: 14px; height: 14px; }
.news-card h3 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 22px; font-weight: 600; line-height: 1.2; margin-bottom: 16px;
  transition: color .3s;
}
.news-card:hover h3 { color: #fff; }
.news-card p {
  font-size: 14px; color: var(--muted-foreground); line-height: 1.7; margin-bottom: 32px;
  transition: color .3s;
}
.news-card:hover p { color: rgba(255,255,255,0.7); }
.news-card .more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.1em; color: var(--primary);
}

/* ============= Contact ============= */
.contact {
  position: relative; padding: 96px 0; background: var(--steel-deep);
  color: #fff; overflow: hidden;
}
@media(min-width:1024px){ .contact{ padding: 128px 0; } }
.contact::before {
  content: ""; position: absolute; inset: 0; opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, white 0, white 1px, transparent 1px, transparent 30px);
}
.contact::after {
  content: ""; position: absolute; right: -80px; top: 40px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(200,38,44,0.2); filter: blur(80px);
}
.contact-grid {
  position: relative; display: grid; grid-template-columns: 1fr;
  gap: 64px; align-items: start;
}
@media(min-width:1024px){ .contact-grid{ grid-template-columns: repeat(2,1fr); } }
.contact-info h2 .accent { display: block; }
.contact-info > p { margin-top: 24px; color: rgba(255,255,255,0.7); max-width: 440px; line-height: 1.7; }
.contact-meta { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.contact-meta-label {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.15em; color: var(--primary); margin-bottom: 4px;
}
.contact-meta-value { color: rgba(255,255,255,0.85); }

.contact-form {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1); padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
@media(min-width:1024px){ .contact-form{ padding: 40px; } }
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width:768px){ .form-row{ grid-template-columns: repeat(1,1fr); } }
.field label {
  display: block; font-family: var(--font-display);
  text-transform: uppercase; font-size: 12px; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: #fff; padding: 12px 16px; font-family: inherit; font-size: 14px;
  transition: border-color .25s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: none; }
.btn-submit {
  width: 100%; justify-content: center; background: var(--primary);
  color: #fff; padding: 16px 32px;
}
.btn-submit:hover { background: var(--primary-hover); }
.form-status { font-size: 14px; min-height: 20px; }
.form-status.success { color: #6dd47e; }
.form-status.error { color: #ff8989; }

/* ============= Footer ============= */
.footer { background: var(--steel-deep); color: #fff; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-top {
  padding: 64px 0;
  display: grid; grid-template-columns: repeat(2,1fr); gap: 40px;
}
@media(min-width:768px){ .footer-top{ grid-template-columns: repeat(4,1fr); } }
@media(min-width:1024px){ .footer-top{ grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); max-width: 400px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.2em; color: var(--primary); margin-bottom: 20px;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color .25s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
#gotop{position: fixed; right: 10px; bottom: 10%; z-index: 99999;}
#gotop p{background: #ddd; cursor: pointer;}
#gotop p svg{ width: 30px; height: 30px; fill:#000; border-radius:50% ; -webkit-border-radius:50% ; -moz-border-radius:50% ; -ms-border-radius:50% ; -o-border-radius:50% ; }
.search_pages{margin-top: 30px; margin-bottom: 30px;}
.search_pages h1{font-size: 26px; text-align: center;}
.search_pages .content{display: flex; flex-wrap: wrap; margin-top: 20px;}
.search_pages .content .list{width: 25%; padding: 0 10px;}
.search_pages .card-title{font-size: 18px; margin-top: 10px;}
.search_pages .card-text{font-size: 14px; margin-top: 10px;}
.search_page_form form{display: flex; padding: 10px 0;}
.search_page_form form input{line-height: 40px; width: 300px;}
.search_page_form form button{background: #c00; padding: 0 15px;}
.search_page_form form button svg{fill:#fff}
@media(min-width:768px){ .footer-bottom{ flex-direction: row; } }
.footer-bottom .tag { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.2em; }

/* ============= Reveal animation ============= */
.js-reveal-ready .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media(max-width:768px){
    .footer-top{grid-template-columns:repeat(1,1fr); padding:20px}
    .search_page_form form{width: 100%;}
    .search_page_form form input{width: 80%;}
    .search_page_form form button{width: 20%;}
    .search_pages .content{flex-wrap: wrap;}
    .search_pages .content .list{width: 100%; margin: 10px 0;}
}
