/* party-hire/css/style.css */

:root {
  --primary: #6f2dbd;     /* purple */
  --secondary: #8a4be0;   /* lighter purple */
  --light: #f5f5f8;       /* soft grey background */
  --text: #1f1f24;        /* near-black text */
  --muted: #5b5b67;       /* grey text */
  --card: #ffffff;        /* white */
  --border: rgba(0,0,0,0.10);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--light);
}

.local-caption {
  text-align: center;
  max-width: 800px;
  margin: 14px auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  padding: 0 14px;
}

.local-caption hr {
  border: none;
  border-top: 1px solid #000000;
  margin: 2rem auto;
  width: 60%;
}

.dev-hidden { display: none; }

/* 🖝️ Top Header */
.top-header {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
  width: 100%;
}

.top-left {
  display: flex;
  align-items: center;
}

.top-logo {
  height: 160px;
  width: auto;
  padding: 0;
  display: block;
}

.top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.top-contact {
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
}

.top-contact:hover {
  color: var(--primary);
}

/* ✅ Hero Section */
.hero-split {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  min-height: 300px;
  margin-bottom: 0;
}

.hero-left,
.hero-right {
  flex: 1;
  min-width: 300px;
  position: relative;
  max-height: 500px;
  overflow: hidden;
}

.hero-left-image,
.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-button-group {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.hero-button-group .cta-button {
  width: 220px;
  text-align: center;
  white-space: normal;
  padding: 1rem;
  line-height: 1.3;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.15s ease;
}

.hero-button-group .cta-button:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

/* ✅ Navbar */
.navbar {
  background: var(--primary);
  padding: 0.75rem 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
}

.navbar a:hover { opacity: 0.92; }

/* ✅ Main Content */
main {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  text-align: center;
  color: var(--primary);
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li::before {
  content: "\2713\0020";
  color: var(--primary);
  font-weight: bold;
}

/* ✅ Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ✅ “What we hire” Section (keeps same layout, new theme) */
.waste-info {
  background: linear-gradient(135deg, #6f2dbd 0%, #8a4be0 100%);
  padding: 1rem 0.5rem;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

.waste-info h2 {
  color: white;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.waste-cards {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.waste-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
  min-width: 280px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: left;
  border: 1px solid rgba(0,0,0,0.06);
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.icon-circle.purple { background: rgba(111,45,189,0.14); color: var(--primary); }
.icon-circle.orange { background: rgba(252,182,56,0.22); color: #b36b00; }
.icon-circle.red { background: rgba(236,78,101,0.18); color: #b32033; }

.waste-title.purple { color: var(--primary); }
.waste-title.orange { color: #e5902e; }
.waste-title.red { color: #d33444; }

/* ✅ Forms */
form {
  background: var(--card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  max-width: 600px;
  margin: auto;
  border: 1px solid var(--border);
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover { background: var(--secondary); }

/* ✅ Footer */
footer {
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

/* ✅ Responsive Adjustments */
@media (max-width: 768px) {
  .hero-split { flex-direction: column; }

  .hero-left,
  .hero-right {
    max-height: 300px;
  }

  .hero-banner-img { object-position: center 80%; }

  .top-header {
    flex-direction: row;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
  }

  .top-logo {
    height: 110px;
    margin-bottom: 0.5rem;
    padding: 0;
  }

  .top-right {
    align-items: flex-end;     /* keep contact text aligned right */
    margin-left: auto;         /* ensures it stays on the right */
    margin-right: 0;           /* ✅ remove extra right margin */
    gap: 0.15rem;
  }

  .top-contact { 
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .navbar { padding: 0.5rem 0; }

  .hide-on-mobile { display: none !important; }

  .waste-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* ✅ Desktop hero: preserve original layout intent */
@media (min-width: 769px) {
  .hero-split {
    height: 600px;
    min-height: 0;
  }

  .hero-left,
  .hero-right {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    overflow: hidden;
  }

  .hero-left-image,
  .hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
  }
}

@media (min-width: 769px) {
  .waste-cards {
    overflow-x: unset;
    flex-wrap: wrap;
    justify-content: center;
  }

  .waste-card {
    flex: 1;
    max-width: 300px;
  }

  .navbar a { margin: 0 2rem; }
}

/* =========================================================
   🚀 Enhancements (safe, additive overrides)
   ========================================================= */

/* Offset in-page anchors for sticky navbar */
html { scroll-padding-top: 80px; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Clear, accessible focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* List check spacing for readability */
ul li { padding-left: 0.4rem; }
ul li::before { margin-right: 0.25rem; }

/* Packages */
.packages {
  padding: 3.5rem 1rem;
  background: #f3f3f8;
}
.packages h2 {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 1.75rem;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.package-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
}
.price-badge {
  display: inline-block;
  background: rgba(111,45,189,0.14);
  color: var(--primary);
  font-weight: 800;
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: 1rem;
  margin-bottom: .75rem;
}
.package-card h3 {
  font-size: 1.25rem;
  margin: .25rem 0 1rem;
}
.package-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.package-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}
.package-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}
.btn-quote {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: .9rem 1rem;
  border-radius: .8rem;
}
.btn-quote:hover { background: var(--secondary); }

/* Responsive */
@media (max-width: 1000px) {
  .packages-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .packages-grid { grid-template-columns: 1fr; }
  .package-card { border-radius: 1rem; }
}

/* Icon image */
.icon-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

/* Intro */
.site-intro {
  color: var(--muted);
  max-width: 90%;
  margin: 16px auto 12px auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.4;
}
.site-intro .intro-bold { font-weight: 800; color: var(--primary); }
@media (min-width: 769px) {
  .site-intro {
    font-size: 20px;
    max-width: 75%;
    margin: 12px auto 12px auto;
  }
}

/* CTA Container */
.service-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* Button Style */
.cta-btn {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.15s ease;
}
.cta-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}
.cta-trust {
  font-size: 0.85rem;
  margin-top: 6px;
  color: var(--muted);
  opacity: 0.95;
}

/* ✅ Animation hooks (matches your JS) */
.waste-animate {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.waste-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
