/* =========================================================
   Lifeswonderful Ltd — mobile-first responsive stylesheet
   Palette derived from the Life's Wonderful master logo
   ========================================================= */

:root {
  --blue:        #1ba0d7;  /* logo sky blue */
  --blue-dark:   #1580ac;
  --yellow:      #fcd30a;  /* logo gold-yellow */
  --green:       #16a34a;  /* recycling / eco green */
  --green-dark:  #12833d;
  --grey:        #7f8285;  /* tagline grey */
  --ink:         #22303a;  /* body text */
  --muted:       #5b6670;
  --bg:          #ffffff;
  --bg-soft:     #f4f8fb;
  --border:      #e6edf3;
  --radius:      18px;
  --radius-lg:   26px;
  --shadow-sm:   0 4px 14px rgba(27,160,215,0.08);
  --shadow:      0 10px 30px rgba(27,160,215,0.12);
  --shadow-lg:   0 22px 50px rgba(27,160,215,0.18);
  --maxw:        1140px;
}

/* ---------- base (mobile-first) ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* offset anchor jumps so the sticky header doesn't cover section headings */
#home, #brands, #recycling, #contact { scroll-margin-top: 88px; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(27,160,215,0.30); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(22,163,74,0.30); }
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 22px rgba(20,40,60,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}
.brand-logo { height: 42px; width: auto; transition: height .2s ease; }
.site-header.scrolled .brand-logo { height: 38px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 11px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 3px; width: 100%;
  background: var(--blue); border-radius: 3px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 22px 18px;
  box-shadow: var(--shadow);
}
.primary-nav.open { display: flex; }
.primary-nav a {
  padding: 13px 4px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.primary-nav a:hover { color: var(--blue); }
.nav-cta {
  margin-top: 10px;
  text-align: center;
  background: var(--green);
  color: #fff !important;
  border-radius: 999px !important;
  border-bottom: 0 !important;
  padding: 12px 18px !important;
  box-shadow: 0 8px 20px rgba(22,163,74,0.28);
}
.nav-cta:hover { background: var(--green-dark); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-soft), #fff 78%);
  padding: 56px 0 32px;
  text-align: center;
}

/* section divider */
.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 8px 0 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero-blob--blue   { width: 420px; height: 420px; background: rgba(27,160,215,0.28); top: -140px; left: -120px; }
.hero-blob--yellow { width: 360px; height: 360px; background: rgba(252,211,10,0.30); bottom: -160px; right: -100px; }
.hero-content { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--blue);
  margin: 0 0 12px;
}
.hero h1 { margin-bottom: 16px; }
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 660px;
  margin: 0 auto 26px;
}
.lead strong { color: var(--ink); font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- trust bar ---------- */
.trustbar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding-top: 15px;
  padding-bottom: 15px;
  text-align: center;
}
.trustbar-item {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.trustbar-dot { color: var(--blue); }
@media (max-width: 460px) {
  .trustbar-dot { display: none; }
}

/* ---------- brands ---------- */
.brands { padding: 44px 0 60px; }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 34px; }
.brand-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.brand-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27,160,215,0.4);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.brand-logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.brand-logo-tile img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.brand-card p { color: var(--muted); margin: 0 0 16px; }
.brand-link { font-weight: 600; color: var(--blue); margin-top: auto; }

/* ---------- featured: recycling portal ---------- */
.recycling {
  background:
    radial-gradient(130% 120% at 88% 0%, rgba(22,163,74,0.12), transparent 58%),
    linear-gradient(180deg, #f2fbf5, #ffffff);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.recycling-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.badge-new {
  display: inline-block;
  background: rgba(22,163,74,0.12);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.recycling-copy h2 { font-size: 1.9rem; line-height: 1.12; }
.accent-green { color: var(--green); }
.recycling-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 0 20px;
}
.recycling-lead strong { color: var(--ink); font-weight: 600; }
.recycling-points {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  color: var(--green-dark);
  font-weight: 600;
}
.recycling-points li { position: relative; padding-left: 28px; }
.recycling-points li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff;
  border-radius: 50%; font-size: 0.72rem;
}
.recycling-visual { display: flex; justify-content: center; }
.recycling-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 20px 38px rgba(22,163,74,0.28));
}

/* ---------- legal / privacy page ---------- */
.page-back { font-weight: 600; color: var(--ink); }
.page-back:hover { color: var(--blue); }
.legal { padding: 40px 0 64px; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 2rem; margin-bottom: 4px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.legal p { margin: 0 0 12px; color: var(--ink); }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); }
.legal a:hover { color: var(--blue-dark); }

/* footer privacy line */
.footer-legal a { color: #b9c6cf; }
.footer-legal a:hover { color: var(--yellow); }

/* privacy note under the contact form */
.contact-privacy { margin: 10px 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.contact-privacy a { color: var(--blue); }

/* ---------- footer ---------- */
.site-footer {
  background: #12303f;
  color: #cdd9e1;
  padding: 46px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cdd9e1; }
.footer-col a:hover { color: var(--yellow); }
.footer-col address { font-style: normal; color: #cdd9e1; }
.footer-legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #94a6b1;
  text-align: center;
}
.footer-legal p { margin: 4px 0; }

/* ---------- contact modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 48, 63, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade .18s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(20, 40, 60, 0.35);
  padding: 30px 28px;
  animation: modalPop .2s ease;
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-card .contact-card__title { font-size: 1.4rem; margin-bottom: 4px; }
.modal-sub { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f5f8;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s ease, color .14s ease;
}
.modal-close:hover { background: #e6edf3; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card { animation: none; }
}

/* ---------- floating contact button ---------- */
.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.contact-toggle {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(22,163,74,0.42);
  transition: transform .16s ease, background .16s ease;
}
.contact-toggle:hover { background: var(--green-dark); transform: translateY(-2px); }
.contact-toggle__close { display: none; }
.contact-fab.open .contact-toggle__open { display: none; }
.contact-fab.open .contact-toggle__close { display: block; }

.contact-card {
  width: min(300px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(20,40,60,0.18);
  padding: 16px;
  animation: contactPop .16s ease;
  transform-origin: bottom right;
}
@keyframes contactPop {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.contact-card__title {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

/* contact form */
.contact-form { display: grid; gap: 10px; }
.contact-field { display: grid; gap: 4px; }
.contact-field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* >=16px stops iOS Safari auto-zooming on focus */
  color: var(--ink);
  background: #f7fafc;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.contact-field textarea { resize: vertical; min-height: 64px; }
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: #9aa7b1; }
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,160,215,0.15);
}
/* honeypot — hidden from real users */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact-submit {
  margin-top: 2px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22,163,74,0.28);
  transition: background .14s ease, transform .14s ease;
}
.contact-submit:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); }
.contact-submit:disabled { opacity: 0.7; cursor: default; }

.contact-status { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.contact-status--ok  { color: var(--green-dark); font-weight: 600; }
.contact-status--err { color: #c0392b; }

.contact-call {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.contact-call:hover { color: var(--blue-dark); }
@media (prefers-reduced-motion: reduce) {
  .contact-card { animation: none; }
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }
.brand-card.reveal:nth-child(2) { transition-delay: .08s; }
.brand-card.reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   TABLET  ≥ 600px
   ========================================================= */
@media (min-width: 600px) {
  h1 { font-size: 2.6rem; }
  .hero { padding: 80px 0 40px; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .recycling { padding: 72px 0; }
  .recycling-inner { grid-template-columns: 1.35fr 1fr; }
  .recycling-copy h2 { font-size: 2.2rem; }
  .recycling-points { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   DESKTOP  ≥ 900px
   ========================================================= */
@media (min-width: 900px) {
  .brand-logo { height: 48px; }
  h1 { font-size: 3rem; }

  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .primary-nav a {
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    transition: background .14s ease, color .14s ease;
  }
  .primary-nav a:not(.nav-cta):hover { background: rgba(27,160,215,0.10); color: var(--blue); }
  .nav-cta { margin-top: 0; margin-left: 8px; padding: 10px 18px !important; }

  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
