:root {
  --primary-blue: #009FE3;
  --primary-gold: #FDB913;
  --primary-red: #E30613;
  --dark: #121212;
  --footer: #0d1b24;
  --light: #f4f7f6;
  --white: #ffffff;
  --header-h: 80px;
  --card-border: rgba(16,24,32,0.08);
  --card-shadow: 0 1px 2px rgba(16,24,32,0.04), 0 8px 24px rgba(16,24,32,0.06);
  --card-shadow-hover: 0 2px 4px rgba(16,24,32,0.05), 0 14px 32px rgba(16,24,32,0.10);
  --card-radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: 'Montserrat', sans-serif; background: var(--light); color: var(--dark); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary-gold); outline-offset: 2px; }

/* ---------- Header ---------- */
header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h); background: rgba(255,255,255,0.98); z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; transition: box-shadow 0.3s; }
header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.logo-nav img { height: 56px; width: auto; }
.nav-links { display: none; list-style: none; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 14px; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-blue); }
.nav-links .nav-cta { background: var(--primary-red); color: var(--white); padding: 10px 20px; border-radius: 5px; }
.nav-links .nav-cta:hover { background: var(--dark); color: var(--white); }
.menu-toggle { font-size: 26px; cursor: pointer; color: var(--primary-blue); background: none; border: none; }
@media (max-width: 991px) {
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
  .nav-links.open li a { display: block; padding: 14px 20px; border-top: 1px solid #eee; }
  .nav-links.open .nav-cta { border-radius: 0; text-align: center; }
}
@media (min-width: 992px) {
  header { padding: 0 6%; }
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 70px 20px; position: relative; overflow: hidden; }
@media (min-width: 768px) { section { padding: 100px 8%; } }
.container { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 45px; }
.section-title { font-size: 1.8rem; font-weight: 800; color: var(--primary-blue); text-transform: uppercase; line-height: 1.25; }
@media (min-width: 768px) { .section-title { font-size: 2.2rem; } }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary-red); margin: 14px auto 0; }
.section-head p { margin-top: 16px; color: #555; }
.alt-bg { background: var(--white); }

.btn { display: inline-block; padding: 14px 28px; border-radius: 5px; font-weight: 700; text-decoration: none; font-size: 0.95rem; transition: all 0.3s; border: 2px solid transparent; }
.btn-red { background: var(--primary-red); color: var(--white); }
.btn-red:hover { background: var(--dark); }
.btn-outline { border-color: var(--primary-blue); color: var(--primary-blue); background: rgba(255,255,255,0.7); }
.btn-outline:hover { background: var(--primary-blue); color: var(--white); }

/* Scroll reveal (kept subtle) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.active { opacity: 1; transform: none; }

/* ---------- Hero slider ---------- */
.hero { height: 100vh; min-height: 600px; padding: var(--header-h) 20px 0; display: flex; justify-content: center; align-items: center; text-align: center; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 7s ease-out; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slides::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.78) 45%, rgba(255,255,255,0.4) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-content img { max-width: 70%; margin: 0 auto 20px; }
@media (min-width: 768px) { .hero-content img { max-width: 340px; } }
.hero h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
@media (min-width: 768px) { .hero h1 { font-size: 2.8rem; } }
.hero-tagline { font-size: 1.05rem; color: var(--primary-red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-intro { opacity: 0; transform: translateY(30px); animation: heroIn 1s ease forwards; }
.hero-intro:nth-child(2) { animation-delay: 0.3s; }
.hero-intro:nth-child(3) { animation-delay: 0.6s; }
.hero-intro:nth-child(4) { animation-delay: 0.9s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(0,159,227,0.9); color: var(--white); font-size: 1.3rem; cursor: pointer; display: none; align-items: center; justify-content: center; transition: background 0.3s; }
.hero-arrow:hover { background: var(--primary-red); }
.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }
@media (min-width: 768px) { .hero-arrow { display: flex; } }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dot { width: 12px; height: 12px; border-radius: 6px; border: 2px solid var(--primary-blue); background: transparent; cursor: pointer; padding: 0; transition: all 0.3s; }
.hero-dot.active { background: var(--primary-gold); border-color: var(--primary-gold); width: 30px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 1fr; } }
.about-text p { font-size: 1.05rem; margin-bottom: 18px; color: #444; }
.about-img { border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--card-shadow); }
.about-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.about .section-title::after { margin-left: 0; }

/* ---------- Vision / Mission ---------- */
.vmv { background: var(--primary-blue); color: var(--white); z-index: 1; }
.vmv .section-title { color: var(--white); }
.vmv .section-title::after { background: var(--primary-gold); }
.watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 150%; max-width: 800px; opacity: 0.05; z-index: -1; animation: spin 30s linear infinite; pointer-events: none; }
@keyframes spin { 100% { transform: translate(-50%,-50%) rotate(360deg); } }
.vmv-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .vmv-grid { grid-template-columns: repeat(3, 1fr); } }
.vmv-box { background: rgba(255,255,255,0.12); padding: 30px; border-radius: var(--card-radius); border: 1px solid rgba(255,255,255,0.18); }
.vmv-box h3 { color: var(--white); margin-bottom: 10px; }
.vmv-box p { color: rgba(255,255,255,0.9); }

/* ---------- Services ---------- */
.services-list { list-style: none; display: grid; gap: 20px; }
@media (min-width: 768px) { .services-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-list { grid-template-columns: repeat(3, 1fr); } }
.service { background: var(--white); padding: 28px; border-radius: var(--card-radius); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); transition: transform 0.3s, box-shadow 0.3s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.service h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service p { color: #555; font-size: 0.95rem; }

/* ---------- Projects ---------- */
.project-grid { display: grid; gap: 25px; }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
.project-card { background: var(--white); border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--card-shadow); transition: transform 0.3s, box-shadow 0.3s; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.project-card img { width: 100%; height: 260px; object-fit: cover; }
.project-body { padding: 22px; }
.project-body h3 { color: var(--dark); margin-bottom: 8px; font-size: 1.2rem; }
.project-body p { font-size: 0.95rem; color: #555; }

/* ---------- Machinery ---------- */
.machine-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .machine-grid { grid-template-columns: repeat(3, 1fr); } }
.machine-card { background: var(--white); padding: 30px; border-radius: var(--card-radius); text-align: center; border: 1px solid var(--card-border); box-shadow: var(--card-shadow); }
.machine-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.machine-card p { color: #555; font-size: 0.95rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.team-member { background: var(--white); padding: 28px; border-radius: var(--card-radius); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); text-align: center; }
.team-member h3 { color: var(--dark); font-size: 1.15rem; margin-bottom: 4px; }
.team-member h4 { color: #6b7280; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 12px; text-transform: uppercase; }
.team-member p { font-size: 0.92rem; color: #555; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial-card { background: var(--white); padding: 30px; border-radius: var(--card-radius); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); }
.testimonial-card p { font-style: italic; color: #555; }
.client-name { margin-top: 15px; font-weight: 700; color: var(--dark); }

/* ---------- Contact (quote + details) ---------- */
.contact { background: var(--primary-blue); }
.contact .section-title { color: var(--white); }
.contact .section-title::after { background: var(--primary-gold); }
.contact .section-head p { color: rgba(255,255,255,0.9); }
.contact-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.quote-form { background: var(--white); padding: 30px; border-radius: var(--card-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
@media (min-width: 768px) { .quote-form { padding: 40px; } }
.quote-form h3 { margin-bottom: 20px; color: var(--dark); }
.form-row { display: grid; gap: 0 20px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 0.95rem; }
.submit-btn { width: 100%; padding: 15px; background: var(--primary-red); color: white; border: none; border-radius: 5px; font-size: 1.05rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.3s; }
.submit-btn:hover { background: var(--dark); }
.contact-info { color: var(--white); display: flex; flex-direction: column; gap: 20px; }
.info-item h4 { color: var(--primary-gold); font-size: 0.85rem; text-transform: uppercase; margin-bottom: 4px; }
.info-item a, .info-item p { color: var(--white); text-decoration: none; font-weight: 600; }
.contact-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.wa-btn { background: #25D366; color: white; padding: 12px 22px; text-decoration: none; font-weight: 700; border-radius: 30px; }
.download-btn { padding: 10px 20px; border: 2px solid var(--primary-gold); color: var(--white); text-decoration: none; font-weight: 600; border-radius: 30px; }
.map-container iframe { width: 100%; height: 260px; border: none; border-radius: 10px; display: block; }

.quote-form h3 { font-size: 1.3rem; }
.req { color: var(--primary-red); }
.form-note { font-size: 0.82rem; color: #777; margin-bottom: 15px; }
.other-field { margin-top: 10px; }
.file-box { border: 2px dashed #b9d9ea; border-radius: 8px; padding: 18px; background: #f7fbfd; }
.file-box .file-label { font-weight: 600; display: block; margin-bottom: 4px; }
.file-box .hint { font-size: 0.82rem; color: #666; display: block; margin-bottom: 10px; }
.file-box input[type=file] { border: none; padding: 0; background: transparent; }
.field-error { color: var(--primary-red); font-size: 0.85rem; margin-top: 6px; }
.submit-btn:disabled { opacity: 0.7; cursor: wait; }
.cf-turnstile { min-height: 65px; margin-bottom: 18px; }
.form-alert { background: #fdecec; color: #a3000b; border-radius: 8px; padding: 12px 14px; font-size: 0.9rem; font-weight: 600; margin-bottom: 18px; }
.form-success { background: var(--white); padding: 50px 30px; border-radius: var(--card-radius); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.form-success:focus { outline: none; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--primary-blue); color: var(--white); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.form-success h3 { color: var(--primary-blue); font-size: 1.4rem; margin-bottom: 12px; }
.form-success p { color: #444; max-width: 460px; margin: 0 auto 25px; }
.ops-title { color: var(--primary-gold); font-size: 1.3rem; text-transform: uppercase; }
.info-item a { display: block; }
.info-item a:hover { color: var(--primary-gold); }

/* ---------- Footer ---------- */
footer { background: var(--footer); color: rgba(255,255,255,0.75); border-top: 5px solid var(--primary-gold); font-size: 0.93rem; }
.footer-top { display: grid; gap: 40px; padding: 60px 20px 40px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 600px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding: 70px 8% 50px; } }
.footer-logo { display: inline-block; background: var(--white); padding: 10px 14px; border-radius: 6px; margin-bottom: 18px; }
.footer-logo img { height: 48px; width: auto; }
footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 35px; height: 3px; background: var(--primary-red); }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--primary-gold); }
.footer-rc { margin-top: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; } }

/* ---------- Floating buttons ---------- */
.float-wa { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }
.to-top { position: fixed; right: 26px; bottom: 90px; z-index: 999; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--white); background: var(--primary-blue); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.25); opacity: 0; pointer-events: none; transition: opacity 0.3s, background 0.3s; }
.to-top:hover { background: var(--primary-red); }
.to-top.show { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .service, .project-card { transition: none; }
  .service:hover, .project-card:hover { transform: none; }
  .hero-slide { transition: opacity 0.4s ease; transform: none; }
  .watermark { animation: none; }
  .reveal, .hero-intro { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* ---------- Gallery ---------- */
.section-cta { text-align: center; margin-top: 40px; }
.page-hero { padding: calc(var(--header-h) + 60px) 20px 50px; background: var(--primary-blue); color: var(--white); text-align: center; }
.page-hero .section-title { color: var(--white); }
.page-hero .section-title::after { background: var(--primary-gold); }
.page-hero p { max-width: 640px; margin: 16px auto 0; color: rgba(255,255,255,0.9); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 35px; }
.filter-btn { font-family: inherit; font-size: 0.9rem; font-weight: 600; padding: 9px 18px; border-radius: 30px; border: 1px solid var(--card-border); background: var(--white); color: var(--dark); cursor: pointer; transition: background 0.2s, color 0.2s; }
.filter-btn:hover { background: var(--light); }
.filter-btn[aria-pressed="true"] { background: var(--primary-blue); border-color: var(--primary-blue); color: var(--white); }
.gallery-grid { list-style: none; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-item[hidden] { display: none; }
.gallery-card { display: block; width: 100%; padding: 0; text-align: left; font-family: inherit; background: var(--white); border: 1px solid var(--card-border); border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--card-shadow); cursor: zoom-in; transition: transform 0.3s, box-shadow 0.3s; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--light); }
.gallery-caption { display: block; padding: 14px 16px 16px; }
.gallery-caption strong { display: block; font-size: 1rem; color: var(--dark); line-height: 1.35; }
.gallery-caption span { display: block; margin-top: 4px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: #6b7280; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10,16,22,0.97); display: flex; align-items: center; justify-content: center; padding: 60px 16px 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; margin: 0 auto; border-radius: 8px; object-fit: contain; transition: opacity 0.2s; }
.lightbox img.loading { opacity: 0; }
.lightbox figcaption { color: var(--white); margin-top: 14px; font-weight: 600; }
.lightbox figcaption span { display: block; font-weight: 400; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.85); background: rgba(0,0,0,0.35); color: var(--white); font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: var(--primary-blue); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } .lightbox { padding-bottom: 80px; } }
body.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .gallery-card { transition: none; } .gallery-card:hover { transform: none; } }
