/* =========================================
   Elite Industrial Services - Clean Dark Theme
   Colors: Red / White / Black / Dark Grey
   NO gradients - clean modern industrial look
========================================= */
html, body {
  scroll-behavior: smooth;
}

:root {
  --bg: #0b0c0f;
  --panel: #111318;
  --panel-2: #161922;

  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);

  --accent: #e30613;

  --radius: 18px;
  --radius-lg: 26px;

  --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.35);

  --max: 1120px;
  --pad: clamp(16px, 2.5vw, 28px);
}

/* =========================================
   Base
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

/* =========================================
   Layout containers
========================================= */

.home-section,
.services,
.about,
.contact,
.products {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: 70px 0;
}

/* =========================================
   Header (fixed height)
========================================= */

header {
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 80px;              /* Fixed header height */
  padding: 0 var(--pad);    /* Remove vertical padding */

  background: #0a0b0e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.logo img {
  height: 160px;
  width: auto;
}

/* Nav */

nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

nav a {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  transition: 0.2s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.05);
}

nav a.active {
  background: rgba(227, 6, 19, 0.15);
  border: 1px solid rgba(227, 6, 19, 0.5);
  color: #fff;
}

/* Mobile */

@media (max-width: 760px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================================
   Hero (with background image)
========================================= */

.hero {
  position: relative;
  padding: 150px var(--pad) 120px;

  /* Background image + dark overlay for readability */
  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("../images/hero.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(38px, 4.5vw, 64px);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero h1 span {
  color: rgba(255, 255, 255, 0.85);
}

.hero p {
  max-width: 60ch;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.85);
}


/* Buttons */

.btn {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-right: 10px;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  background: var(--accent);
  border-color: rgba(227, 6, 19, 0.7);
}

.btn.secondary {
  background: transparent;
}

/* =========================================
   Trust strip
========================================= */

.trust-strip {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 20px auto 0;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.trust-item {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  transition: 0.2s;
}

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

/* =========================================
   Cards
========================================= */

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

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

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 20px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.2s;
  overflow: hidden; /* important so image corners always look clean */
}

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

.card h2,
.card h3 {
  margin: 12px 0 10px;
  line-height: 1.2;
}

.card p,
.card li {
  color: rgba(255, 255, 255, 0.72);
}

/* ✅ FIX: Make ALL card images fit perfectly */
.card img {
  width: 100%;
  height: 220px; /* consistent height */
  object-fit: cover; /* crop instead of stretch */
  object-position: center; /* focus center */
  border-radius: 12px;
  display: block;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Lists inside cards */
.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

/* =========================================
   Feature split
========================================= */

.feature-split {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: 80px 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.feature-text {
  background: var(--panel);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-image img {
  border-radius: 18px;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-image img {
    height: 260px;
  }
}

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

.cta {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto 70px;
  padding: 30px;
  border-radius: 18px;
  background: var(--panel);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================
   Footer
========================================= */

.site-footer {
  background: #0a0b0e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 60px;
}

.footer-container {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: 50px 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 14px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  transition: 0.2s;
}

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

/* Bottom strip */

.footer-bottom {
  text-align: center;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   Footer Mobile
========================================= */

@media (max-width: 760px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
}

/* =========================================
   Mobile fixes (header not sticky + layout)
========================================= */
@media (max-width: 760px) {
  /* Stop header from covering content */
  header {
    position: relative;     /* was sticky */
    top: auto;
    height: auto;           /* allow it to grow naturally on mobile */
    padding: 6px var(--pad);
  }

  /* Keep logo properly positioned */
  .logo {
  width: 100%;
  display: flex;              /* makes centering work */
  justify-content: center;   /* horizontal center */
  align-items: center;       /* vertical alignment */
  height: auto;
  margin-bottom: 10px;
}

  .logo img {
    height: 125px;           /* adjust if needed */
    width: auto;
  }

  /* Nav becomes a tidy row that wraps */
  nav {
    width: 100%;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  nav a {
    padding: 9px 12px;
    font-size: 13px;
  }

  /* Add breathing room at top of hero now that header is not sticky */
  .hero {
    padding-top: 80px;
  }
}

/* =========================================
   Quick Quote Section
========================================= */

.quick-quote {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto 80px;
  padding: 44px;
  border-radius: 24px;

  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: var(--shadow-soft);
}

.quick-quote h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
}

.quick-quote .section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 28px;
}

/* =========================================
   Form Layout
========================================= */

.quote-form {
  width: 100%;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Labels */

.quote-grid label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 14px;
}

/* Inputs / Select / Textarea */

.quote-grid input,
.quote-grid textarea,
.quote-grid select {
  margin-top: 6px;
  padding: 13px 14px;

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);

  background: #0a0b0e;
  color: #fff;

  font-size: 14px;
  font-family: inherit;

  transition: 0.2s;
}

/* Focus glow */

.quote-grid input:focus,
.quote-grid textarea:focus,
.quote-grid select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.4);
}

/* Full width fields */

.quote-grid .full {
  grid-column: span 2;
}

/* Textarea resize */

.quote-grid textarea {
  resize: vertical;
}

/* =========================================
   Buttons
========================================= */

.quote-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* WhatsApp button look */

.quote-actions .btn.primary {
  background: var(--accent);
  border-color: rgba(227, 6, 19, 0.7);
}

.quote-actions .btn.secondary {
  background: transparent;
}

/* =========================================
   Hover effects
========================================= */

.quote-form input:hover,
.quote-form textarea:hover,
.quote-form select:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* =========================================
   Mobile Responsive
========================================= */

@media (max-width: 760px) {
  .quick-quote {
    padding: 30px 22px;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .quote-grid .full {
    grid-column: span 1;
  }

  .quote-actions {
    flex-direction: column;
  }

  .quote-actions .btn {
    width: 100%;
    text-align: center;
  }
}

