/* ============================================================
   Phetho Recycling – Premium Professional Design System
   ============================================================ */

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

:root {
  --forest: #0b3d2e;
  --forest-deep: #072a20;
  --forest-mid: #0f5240;
  --emerald: #12b981;
  --mint: #34d399;
  --mint-soft: #a7f3d0;
  --cream: #f7faf8;
  --sand: #eef5f1;
  --ink: #0c1a14;
  --ink-soft: #24352e;
  --muted: #5c7369;
  --line: #d5e5dc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(11, 61, 46, 0.04);
  --shadow: 0 8px 30px rgba(11, 61, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 61, 46, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --display: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--forest), var(--forest-mid));
  color: var(--mint);
  border-radius: 12px;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(11, 61, 46, 0.25);
}
.logo-text strong { color: var(--forest-mid); }
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--forest); background: var(--sand); }
.nav-link.admin-link {
  background: var(--forest);
  color: white;
  margin-left: 0.5rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.nav-link.admin-link:hover {
  background: var(--forest-deep);
  color: white;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--forest-deep) 0%, var(--forest) 45%, #0d4a38 100%);
  color: white;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.hero-orb-1 {
  width: 480px;
  height: 480px;
  background: var(--emerald);
  top: -10%;
  right: -5%;
  opacity: 0.2;
}
.hero-orb-2 {
  width: 360px;
  height: 360px;
  background: #0ea5e9;
  bottom: 5%;
  left: -8%;
  opacity: 0.12;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.hero-content { position: relative; max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint-soft);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
}
.hero .highlight {
  color: var(--mint);
  font-style: italic;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 520px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.25rem;
  line-height: 1.7;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.65rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-primary {
  background: var(--mint);
  color: var(--forest-deep);
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35);
}
.btn-primary:hover {
  background: #6ee7b7;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(52, 211, 153, 0.4);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: white;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}
.btn-ghost-dark {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: white;
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.12);
}
.btn-block { width: 100%; }
.btn-danger {
  background: #dc2626;
  color: white;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-danger:hover { background: #b91c1c; }
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--ink-soft);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--mint);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 4px;
  height: 8px;
  background: var(--mint);
  border-radius: 4px;
  animation: scrollPulse 1.8s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(10px); }
}

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-soft);
}
.trust-icon {
  color: var(--emerald);
  font-weight: 700;
}

/* ===== Sections ===== */
.section { padding: 6rem 0; }
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.25rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest-mid);
  background: var(--sand);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--ink);
  line-height: 1.15;
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== About ===== */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.about-card {
  background: white;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.about-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--sand);
  border-radius: 14px;
  margin-bottom: 1.15rem;
}
.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.about-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== Process ===== */
.process { background: white; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.process-card {
  position: relative;
  padding: 1.75rem 1.4rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.process-card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
}
.process-num {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--emerald);
  margin-bottom: 0.85rem;
  line-height: 1;
  opacity: 0.85;
}
.process-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.process-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Services ===== */
.services { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.service-card:hover {
  border-color: var(--emerald);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.service-icon.paper { background: #e0f2fe; }
.service-icon.plastic { background: #fce7f3; }
.service-icon.metal { background: #fef3c7; }
.service-icon.other { background: var(--sand); }
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.service-card ul li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ===== Prices ===== */
.prices { background: white; }
.prices-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: var(--cream);
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.filter-btn {
  padding: 0.5rem 1.05rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--forest);
  color: white;
}
.prices-table-wrap {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.prices-table {
  width: 100%;
  border-collapse: collapse;
}
.prices-table th,
.prices-table td {
  padding: 1.05rem 1.35rem;
  text-align: left;
}
.prices-table th {
  background: var(--forest);
  color: white;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prices-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.prices-table tbody tr:hover { background: var(--cream); }
.prices-table tbody tr:last-child { border-bottom: none; }
.prices-table .price-value {
  font-weight: 800;
  color: var(--forest-mid);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.category-badge.paper { background: #e0f2fe; color: #0369a1; }
.category-badge.plastic { background: #fce7f3; color: #be185d; }
.category-badge.metal { background: #fef3c7; color: #b45309; }
.category-badge.other { background: var(--sand); color: var(--forest); }
.prices-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.15rem;
}

/* ===== Gallery ===== */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(7, 42, 32, 0.85));
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}
.gallery-empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem;
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-mid));
  padding: 4rem 0;
  color: white;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.cta-copy p {
  color: rgba(255,255,255,0.75);
  max-width: 420px;
  font-size: 1rem;
}
.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===== Contact ===== */
.contact { background: white; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  align-items: start;
}
.contact-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: white;
  border-radius: 12px;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.contact-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
  background: white;
  box-shadow: 0 0 0 4px rgba(18, 185, 129, 0.12);
}
.form-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--forest-mid);
  text-align: center;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-brand .logo-mark {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
}
.footer-tagline {
  font-size: 0.9rem;
  max-width: 280px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}
.footer-links {
  display: flex;
  gap: 3.5rem;
}
.footer-col h4 {
  color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.55rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  padding: 1.35rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .cta-copy p { margin-inline: auto; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { width: 100%; padding: 0.75rem 1rem; }
  .nav-link.admin-link { margin-left: 0; text-align: center; margin-top: 0.5rem; }
  .nav-toggle { display: flex; }
  .process-grid,
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .stat-divider { display: none; }
  .prices-table th:nth-child(2),
  .prices-table td:nth-child(2) { display: none; }
  .footer-links { gap: 2rem; }
  .section { padding: 4.5rem 0; }
  .hero { min-height: auto; padding: 120px 0 70px; }
}

/* ===== Email link on public site ===== */
.email-link {
  color: var(--forest-mid) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.email-link:hover {
  color: var(--emerald) !important;
}
.email-hint {
  font-size: 0.78rem !important;
  color: var(--muted) !important;
  margin-top: 0.25rem;
}
.form-note-success {
  color: var(--forest-mid);
  font-weight: 600;
}

.whatsapp-link {
  color: #128c7e !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.whatsapp-link:hover {
  color: #25d366 !important;
}
.form-alt {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.75rem 0 0.25rem;
  text-align: center;
  line-height: 1.5;
}
