:root {
  --color-primary: #0d8f5f;
  --color-primary-dark: #076b47;
  --color-primary-soft: #e8f5f0;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1ebe57;
  --color-text: #1a2e28;
  --color-text-muted: #5a6f68;
  --color-surface: #ffffff;
  --color-page: #f0f4f2;
  --shadow-sm: 0 1px 3px rgba(15, 46, 40, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 46, 40, 0.1);
  --shadow-lg: 0 20px 50px rgba(15, 46, 40, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* SITE HEADER / NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(13, 143, 95, 0.1);
}

.site-header-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary), var(--color-whatsapp));
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.navbar-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-primary-dark);
  line-height: 1.15;
}

.navbar-brand-accent {
  color: var(--color-primary);
}

.navbar-brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--color-primary-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(13, 143, 95, 0.2);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-primary-dark);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.is-menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-panel {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: clamp(8px, 1.5vw, 16px);
  margin-left: clamp(4px, 1vw, 12px);
  border-left: 1px solid rgba(13, 143, 95, 0.15);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-action-call {
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  border: 1px solid rgba(13, 143, 95, 0.12);
}

.nav-action-call:hover {
  background: #d8ebe3;
  transform: translateY(-1px);
}

.nav-action-wa {
  color: #fff;
  background: var(--color-whatsapp);
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35);
}

.nav-action-wa:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(37, 211, 102, 0.4);
}

.nav-action .nav-action-text {
  line-height: 1;
}

@media (max-width: 900px) {
  .nav-action-text {
    display: none;
  }

  .nav-action {
    padding: 10px;
    border-radius: 12px;
  }

  .nav-action svg {
    width: 20px;
    height: 20px;
  }
}

/* HERO */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(7, 60, 42, 0.88) 0%, rgba(13, 90, 65, 0.75) 50%, rgba(7, 45, 35, 0.85) 100%),
    url("images/E-Waste Shredder.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(100px, 18vw, 160px) 24px clamp(90px, 14vw, 130px);
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.25), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  opacity: 0.95;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 26px;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 4px 14px rgba(13, 143, 95, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 143, 95, 0.4);
}

.btn-icon {
  display: flex;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.whatsapp-btn {
  background: var(--color-whatsapp);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
  background: var(--color-whatsapp-hover);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* SECTIONS */
section {
  padding: clamp(56px, 10vw, 88px) clamp(20px, 4vw, 40px);
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-whatsapp));
  border-radius: 2px;
}

#about {
  background: var(--color-surface);
  max-width: none;
  border-bottom: 1px solid rgba(13, 143, 95, 0.08);
}

#about .about-inner {
  max-width: 640px;
  margin: 0 auto;
}

#about p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

#machines {
  padding-top: clamp(48px, 8vw, 72px);
}

#machines .section-title {
  margin-bottom: 40px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 28px);
}

/* CARDS */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(13, 143, 95, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  overflow: hidden;
  background: linear-gradient(180deg, #e8f0ed 0%, #dfe8e4 100%);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.card:hover img {
  transform: scale(1.06);
}

.card h3 {
  margin: 18px 18px 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  text-align: left;
}

.card p {
  margin: 0 18px 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: left;
  line-height: 1.55;
}

/* CONTACT */
#contact {
  background: var(--color-surface);
  max-width: none;
  border-top: 1px solid rgba(13, 143, 95, 0.08);
}

#contact .contact-inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}

.contact-lines p {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--color-text);
}

.contact-lines a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-lines a:hover {
  text-decoration: underline;
}

.contact-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--color-primary);
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(13, 143, 95, 0.1);
  margin-top: 8px;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

/* FOOTER */
.footer {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, #054a32 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 28px 24px;
  text-align: center;
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
  letter-spacing: 0.02em;
}

/* FLOATING WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s;
}

.whatsapp-float:hover {
  background: var(--color-whatsapp-hover);
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ANIMATION */
.fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE — collapsible nav */
@media (max-width: 768px) {
  .site-header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid rgba(13, 143, 95, 0.12);
    order: 3;
    flex-basis: 100%;
  }

  .site-header.is-menu-open .navbar-panel {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links a {
    text-align: center;
    border-radius: 12px;
  }

  .navbar-actions {
    flex-direction: row;
    justify-content: center;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 4px;
    border-top: 1px dashed rgba(13, 143, 95, 0.15);
  }

  .nav-action-text {
    display: inline;
  }

  .nav-action {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .navbar-brand-tag {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}
