:root {
  /* Dynamic colors injected via EJS, but we can set defaults */
  --bg-dark: #121212;
  --bg-darker: #0a0a0a;
  --bg-card: #1e1e1e;
  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #fcb40a; /* Tremak Orange/Yellow */
  --accent-dark: #d99a08;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- NAVIGATION --- */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

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

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background-color: var(--accent);
  color: #000;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  transition: transform 0.2s, background-color 0.2s;
}

.nav-cta:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10,10,10,0.95) 20%, rgba(10,10,10,0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 700px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent);
  color: #000;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(252, 180, 10, 0.2);
}

.hero-contact {
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
  font-size: 18px;
  font-weight: 600;
}

/* --- TRUST MARKERS --- */
.trust-markers {
  background-color: var(--bg-card);
  padding: 60px 0;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid #333;
}

.trust-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.trust-card {
  background-color: var(--bg-darker);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #333;
  transition: transform 0.3s, border-color 0.3s;
}

.trust-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.trust-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 20px;
}

.trust-text {
  font-size: 18px;
  font-weight: 600;
}

/* --- MACHINE CATALOG --- */
.catalog-section {
  padding: 100px 0;
  background-color: var(--accent);
  color: #000;
}

.catalog-header {
  text-align: center;
  margin-bottom: 60px;
}

.catalog-header h2 {
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.catalog-header p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.machine-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.machine-card:hover {
  transform: translateY(-10px);
}

.machine-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 4px solid var(--bg-darker);
}

.machine-info {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.machine-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #000;
}

.machine-desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  flex: 1;
}

.catalog-cta {
  text-align: center;
  margin-top: 50px;
}

.btn-secondary {
  display: inline-block;
  background-color: #000;
  color: var(--accent);
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #222;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* --- ABOUT & TESTIMONIALS --- */
.about-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 16px;
  white-space: pre-wrap;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: -20px 20px 0 var(--accent);
}

.testimonials {
  margin-top: 80px;
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.testimonial-text {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 20px;
}

/* --- CONTACT --- */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-darker);
  border-top: 1px solid #333;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 15px;
}

.contact-icon {
  color: var(--accent);
  font-size: 24px;
}

.contact-text h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.contact-text p {
  color: var(--text-muted);
}

/* --- FOOTER --- */
footer {
  background-color: #000;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #222;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* --- MOBILE MENU --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-darker);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 100px 40px;
  gap: 30px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 32px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .hero-title { font-size: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { box-shadow: -10px 10px 0 var(--accent); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar {
    background: rgba(0,0,0,0.9);
    padding: 15px 0;
  }
  .nav-links { 
    display: none; 
  } 
  .mobile-toggle {
    display: flex;
  }
  .hero {
    min-height: auto;
    padding: 160px 0 80px; /* Increased top padding to avoid overlap */
    text-align: center;
  }
  .hero-title { font-size: 36px; }
  .hero-subtitle { margin: 0 auto 30px; font-size: 16px; }
  .hero-contact { display: block; margin-left: 0; margin-top: 25px; font-size: 18px; color: var(--accent); }
  .catalog-header h2 { font-size: 28px; }
  .trust-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .about-content h2, .contact-info h2 { font-size: 28px; }
  .contact-form { padding: 25px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; line-height: 1.2; }
  .nav-cta { display: none; } /* Hide redundant call button on very small screens to unclutter */
  .btn-primary { 
    width: 100%; 
    padding: 16px 20px; 
    font-size: 15px; 
    justify-content: center;
    display: flex;
  }
  .hero-subtitle { font-size: 14px; margin-bottom: 30px; }
}
