/* ===========================================================
   Gravity Link Limited — design tokens
   =========================================================== */
:root {
  --ink: #17140f;          /* warm near-black, from the logo's dark ring */
  --ink-soft: #3a352c;
  --paper: #ffffff;
  --mist: #f4efe7;         /* warm light section background */
  --orange: #f58635;       /* primary brand orange — lightened from the logo's base orange */
  --orange-deep: #c46b2a;  /* pressed / hover state */
  --orange-tint: #fde7d3;
  --slate: #55503f;        /* body copy on white */
  --line: #e7ded0;
  --radius-sm: 6px;
  --radius-md: 14px;
  --shadow-1: 0 18px 40px -24px rgba(23, 20, 15, 0.35);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --max: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 1.1rem; color: var(--slate); }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 1.4em; height: 1.4em; stroke: currentColor; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 2.4rem; height: 2.4rem; color: var(--orange); margin-bottom: 0.6rem; }

.kicker {
  font-family: var(--font-display);
  color: var(--orange-deep);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.5em;
  font-size: 1rem;
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-body);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--orange); color: var(--paper); }
.btn-primary:hover { background: var(--orange-deep); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-outline-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { border-color: var(--paper); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--orange-deep);
  font-weight: 600;
}

/* ===========================================================
   Header / nav
   =========================================================== */
.site-header { position: relative; z-index: 40; }

.topbar { background: var(--ink); color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.topbar-inner { display: flex; gap: 1.5rem; padding: 8px 24px; }
.topbar-link { display: inline-flex; align-items: center; gap: 0.4em; color: inherit; }
.topbar-link:hover { color: var(--orange); }

.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; }
.brand-mark { height: 66px; width: auto; max-width: 220px; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.is-active { border-color: var(--orange); }

.nav-cta { margin-left: 0.5rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--ink);
}

.mobile-nav {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-nav ul { display: flex; flex-direction: column; padding: 12px 24px 20px; gap: 0.75rem; }
.mobile-nav a { font-weight: 600; display: block; padding: 0.5em 0; }
.mobile-nav.is-open { display: block; }

@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ===========================================================
   Hero / parallax photo sections
   (full-bleed background photos with a scroll parallax effect,
   overlaid text — echoes the LCD Waste homepage layout)
   =========================================================== */
.parallax-section {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  color: var(--paper);
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23,20,15,0.58);
}
.hero-parallax .parallax-overlay { background: rgba(23,20,15,0.62); }
.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 64px 0;
}
.parallax-content.align-right { margin-left: auto; text-align: right; }
.parallax-content .kicker { color: var(--orange); }
.parallax-content h1, .parallax-content h2 { color: var(--paper); }
.parallax-content .lead, .parallax-content p:not(.kicker) { color: rgba(255,255,255,0.88); }

.hero-parallax { min-height: 82vh; }

.text-link-light { color: var(--paper); }
.text-link-light:hover { color: var(--orange); }

@media (max-width: 780px) {
  /* background-attachment: fixed is unreliable/heavy on mobile browsers,
     so mobile falls back to an ordinary scrolling background image —
     the same plain approach used by the reference site, no special
     effect needed. Heights use dvh (falls back to vh on older browsers
     that don't recognize it) because mobile browsers resize their
     address bar as you scroll, which throws off plain vh and can make
     a section feel like it's stuck at the same height forever. */
  .parallax-section {
    background-attachment: scroll;
    min-height: 46vh;
    min-height: 46dvh;
  }
  .hero-parallax {
    min-height: 78vh;
    min-height: 78dvh;
  }
  .parallax-content.align-right { margin-left: 0; text-align: left; }
}

/* shared illustration styling: cracked-phone-to-cash motif echoes the logo */
.art-ring-bg { fill: var(--orange-tint); }
.art-ring-arc { fill: none; stroke: var(--orange); stroke-width: 10; stroke-linecap: round; }
.art-phone-body { fill: var(--ink); }
.art-phone-screen { fill: #2a2620; }
.art-crack { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art-crack-core { fill: var(--orange); }
.art-flow-arrow { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; }
.art-flow-arrowhead { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-cash-bill { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.art-cash-back { fill: var(--orange-tint); stroke: var(--orange); }
.art-cash-coin { fill: var(--orange); }
.art-cash-edge { stroke: var(--line); stroke-width: 1.5; }
.art-recycle-swoop { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }

.badge-illustration, .mini-illustration { width: 100%; max-width: 320px; height: auto; }

/* ===========================================================
   Feature strip
   =========================================================== */
.feature-strip { background: var(--mist); padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.feature h3 { margin-bottom: 0.3em; }
.feature p { font-size: 0.95rem; color: var(--slate); margin-bottom: 0; }

/* ===========================================================
   Sections generally
   =========================================================== */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { color: var(--slate); }

.band-tint { background: var(--mist); }
.band-dark { background: var(--ink); color: rgba(255,255,255,0.92); }
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark p { color: rgba(255,255,255,0.72); }

/* ===========================================================
   Process steps
   =========================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps-three { grid-template-columns: repeat(3, 1fr); }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.step p { font-size: 0.95rem; color: var(--slate); margin-bottom: 0; }

/* ===========================================================
   Why band (home)
   =========================================================== */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.why-copy p { color: rgba(255,255,255,0.72); }
.why-list { display: flex; flex-direction: column; gap: 1.5rem; }
.why-list li { display: flex; gap: 1rem; align-items: flex-start; }
.why-list .icon { color: var(--orange); flex-shrink: 0; width: 1.8rem; height: 1.8rem; margin-top: 0.15rem; }
.why-list p { margin-bottom: 0; font-size: 0.95rem; }

/* ===========================================================
   CTA banner
   =========================================================== */
.cta-banner { background: var(--orange); color: var(--paper); padding: 56px 0; }
.cta-banner-inner { text-align: center; }
.cta-banner h2 { color: var(--paper); }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0 auto 1.4rem; }
.cta-banner .btn-primary { background: var(--ink); }
.cta-banner .btn-primary:hover { background: #000; }

/* ===========================================================
   Cards / services / lifecycle / values
   =========================================================== */
.card-grid, .values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.service-card, .value-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  background: var(--paper);
}
.service-card p, .value-card p { font-size: 0.95rem; color: var(--slate); margin-bottom: 0.6em; }

.refurb-teaser-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.refurb-teaser-art { display: flex; justify-content: center; }

.lifecycle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.lifecycle-item p { font-size: 0.95rem; color: var(--slate); margin-bottom: 0; }

.director-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  max-width: 480px;
}
.director-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.director-avatar .icon-lg { margin-bottom: 0; width: 1.8rem; height: 1.8rem; }
.director-card h3 { margin-bottom: 0.15em; }
.director-title { color: var(--slate); font-size: 0.92rem; margin-bottom: 0.5em; }

.accepted-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.check-list { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { padding-left: 1.4em; position: relative; color: rgba(255,255,255,0.85); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px;
  border: 2px solid var(--orange);
  border-radius: 50%;
}
.fine-print { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

.requirements-list { margin: 1.2rem 0; display: flex; flex-direction: column; gap: 1rem; }
.requirements-list li { display: flex; align-items: flex-start; gap: 0.9rem; }
.requirements-list .icon { flex-shrink: 0; color: var(--orange); width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; }
.requirements-list span { color: rgba(255,255,255,0.85); font-size: 0.96rem; }

.refurb-models { margin-bottom: 1.2rem; }
.accepted-art { display: flex; justify-content: center; }
.mini-illustration { max-width: 260px; }

/* ===========================================================
   Page hero (secondary pages)
   =========================================================== */
.page-hero { padding: 60px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.page-hero-art { display: flex; justify-content: center; }

/* ===========================================================
   About
   =========================================================== */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: center; }
.about-art { display: flex; justify-content: center; }

/* ===========================================================
   Contact
   =========================================================== */
.contact-section { padding-top: 40px; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }

.contact-detail-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.contact-detail-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-detail-list .icon { color: var(--orange); margin-top: 0.15rem; }
.contact-detail-list span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.contact-detail-list a { font-weight: 600; }

.hours-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.2rem 1.4rem; }
.hours li { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.92rem; }
.hours li:not(:last-child) { border-bottom: 1px dashed var(--line); }

.visit-hours { max-width: 420px; background: var(--paper); margin-bottom: 2rem; }
.visit-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.visit-map iframe { display: block; width: 100%; }

.contact-form-wrap {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.form-row { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-row-split > div { display: flex; flex-direction: column; gap: 0.4rem; }

label { font-weight: 600; font-size: 0.9rem; }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.85em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
textarea { resize: vertical; }

.form-errors {
  background: #fdeceb;
  border: 1px solid #f2b8b3;
  color: #9c2b22;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.form-errors ul { list-style: disc; padding-left: 1.2em; }

.form-success { text-align: center; padding: 2rem 1rem; }
.form-success .icon-lg { color: var(--orange); }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 40px; }
.footer-mark { height: 78px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.1rem; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.social-links a:hover { border-color: var(--orange); color: var(--orange); background: rgba(245,134,53,0.1); }
.social-links .icon { width: 1.2rem; height: 1.2rem; }
.footer-col h3 { color: var(--paper); font-size: 1rem; margin-bottom: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; }
.footer-col a:hover { color: var(--orange); }
.footer-col .hours li { display: flex; justify-content: space-between; border: none; padding: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a:hover { color: var(--orange); }

/* ===========================================================
   404
   =========================================================== */
.not-found { text-align: center; padding: 110px 0; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.faq-item h3 { margin-bottom: 0.4em; }
.faq-item p { color: var(--slate); margin-bottom: 0; }
.faq-item a { color: var(--orange-deep); font-weight: 600; }

/* ===========================================================
   Legal pages
   =========================================================== */
.legal-section { padding-top: 40px; }
.legal-copy { max-width: 720px; }
.legal-copy h2 { margin-top: 1.6em; font-size: 1.2rem; }
.legal-copy p { color: var(--slate); }
.legal-copy a { color: var(--orange-deep); font-weight: 600; }
.legal-notice {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.legal-updated { font-size: 0.85rem; color: var(--slate); margin-top: 2rem; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .why-grid, .accepted-grid, .page-hero-split, .about-grid, .contact-grid, .refurb-teaser-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-art, .about-art, .accepted-art, .refurb-teaser-art { order: -1; }
  .feature-grid, .card-grid, .values-grid, .lifecycle-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps-three { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .feature-grid, .card-grid, .values-grid, .lifecycle-grid, .steps, .steps-three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .topbar-inner { font-size: 0.78rem; gap: 1rem; }
  .navbar { gap: 1rem; }
  .brand-mark { height: 46px; max-width: 155px; }
}
