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

:root {
  --red-main: #7f1515;
  --red-dark: #550b0b;
  --bg-alt: #f5f5f5;
  --text-main: #151515;
  --text-muted: #6b7280;
  --border-subtle: #e2e8f0;
  --accent: #1f7ae0;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
  scroll-behavior: smooth;
}

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

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.company-name-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.company-name-main {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.company-name-sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.92rem;
}

.nav a {
  padding: 0.35rem 0.4rem;
  color: #111827;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red-main);
  transition: width 0.18s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  position: relative;
  background: #111;
  color: #f9fafb;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-0155.jpg") center center / cover no-repeat;
  filter: brightness(0.7);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  min-height: 70vh;
}

.hero-red-panel {
  background: linear-gradient(90deg, var(--red-main) 0%, var(--red-dark) 100%);
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
  display: flex;
  align-items: center;
}

.hero-text {
  padding: 3.5rem 2.4rem;
  max-width: 420px;
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.hero-text p {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}

.hero-image-side {
  /* right side just shows background image */
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.btn.primary {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.4);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.55);
}

.btn.full-width {
  width: 100%;
}

/* SERVICES BAND */

.services-band {
  background: #ffffff;
  padding: 3.5rem 0 4rem;
}

.services-layout {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 2.5rem;
}

.band-title {
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.services-left {
  background: linear-gradient(180deg, var(--red-main), var(--red-dark));
  border-radius: 0;
  padding: 2.6rem 2rem;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.services-left .band-title {
  color: #ffffff;
}

.services-right {
  display: flex;
  align-items: center;
}

.services-card {
  width: 100%;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  padding: 2rem 2.2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}

.services-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.services-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* VISION */

.vision-band {
  background: var(--red-main);
  color: #fef2f2;
  padding: 3.5rem 0 3.75rem;
  text-align: center;
}

.band-title.center {
  color: #fef2f2;
  margin-bottom: 1.2rem;
}

.vision-text {
  max-width: 740px;
  margin: 0 auto;
  font-size: 0.96rem;
  line-height: 1.7;
}

/* FACILITY BAND */

.facility-band {
  position: relative;
  background: url("assets/machine.webp") center center / cover no-repeat;
  min-height: 58vh;
  color: #fef2f2;
}

.facility-overlay {
  position: absolute;
  inset: 0;
  background: rgba(127, 21, 21, 0.75);
}

.facility-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58vh;
}

.facility-panel {
  background: rgba(127, 21, 21, 0.96);
  padding: 2.4rem 2.6rem;
  max-width: 420px;
  color: #fef2f2;
}

.facility-panel .band-title {
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.facility-panel p {
  margin: 0;
  font-size: 0.95rem;
}

/* CONTACT SECTION */

.section {
  padding: 4.5rem 0;
}

.contact-section {
  background: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.contact-info h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.contact-info p {
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-main);
  font-size: 0.94rem;
}

.contact-list li + li {
  margin-top: 0.4rem;
}

.contact-list a {
  color: #1d4ed8;
}

.contact-form {
  background: #ffffff;
  border-radius: 1.6rem;
  padding: 1.8rem 1.6rem 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

label {
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

input,
textarea {
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  padding: 0.7rem 0.9rem;
  font: inherit;
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  background: #f9fafb;
}

textarea {
  min-height: 120px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  background: #ffffff;
}

.form-status {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.form-status.error {
  color: #b91c1c;
}

.form-status.success {
  color: #15803d;
}

.form-status.pending {
  color: #1d4ed8;
}

/* FOOTER */

.site-footer {
  padding: 1.8rem 0 2rem;
  background: #111827;
  color: #9ca3af;
}

.footer-inner {
  text-align: center;
  font-size: 0.86rem;
}

.footer-inner a {
  color: #e5e7eb;
}

/* WhatsApp FLOAT */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.4);
  text-decoration: none;
  z-index: 100;
}

.whatsapp-icon {
  font-size: 1.6rem;
  color: #ffffff;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-red-panel {
    clip-path: none;
  }

  .hero-text {
    padding: 2.8rem 1.8rem 2.4rem;
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-card {
    padding-inline: 1.6rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* EXTRA: make hero color more transparent on phones so the background image appears more clearly */
@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, 640px);
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  /* lighter overlay & less dark filter on mobile to show the image */
  .hero-bg {
    filter: brightness(0.9);
  }

  .hero-red-panel {
    background: linear-gradient(
      90deg,
      rgba(127, 21, 21, 0.72) 0%,
      rgba(85, 11, 11, 0.72) 100%
    );
  }

  .facility-panel {
    max-width: 100%;
    margin-inline: auto;
  }

  .contact-form {
    padding-inline: 1.2rem;
  }
}
