/* ===== LENSSAVERS — headlight restoration, Waterloo ON ===== */
/* Composed design: bleached cream + oxblood + navy            */
/* Inverted weight: H1 thin, body bold                         */
/* Marquee ticker, dictated-quote signature, layered bg depth  */
/* =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,144,200;0,144,300;0,144,400;0,144,500;0,144,600;0,144,700;0,144,800;1,144,300;1,144,400&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-variation-settings: 'opsz' 144;
  line-height: 1.6;
  color: var(--ink);
  /* Layered gradient background — depth without an image */
  background:
    radial-gradient(ellipse at 15% 10%, rgba(107, 31, 26, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(30, 42, 74, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(244, 236, 220, 0.6) 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* --- Palette --- */
:root {
  --bg: #f4ecdc;
  --ink: #1a1b2e;
  --accent: #6b1f1a;
  --secondary: #1e2a4a;
  --cream-light: #faf5ea;
  --cream-dark: #e8ddc8;
  --muted: #7a7568;
}

/* --- Typography: deliberately wrong weight --- */
h1, h2, h3, h4 {
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p, li, .body-text { font-weight: 700; }
strong { font-weight: 800; }
small, .small { font-weight: 400; font-size: 0.85rem; }

/* --- Layout: narrow center + wide asides --- */
.container {
  max-width: 55ch;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.wide-aside {
  margin-inline: -25vw;
  padding: 2rem 25vw;
}
@media (max-width: 768px) {
  .wide-aside { margin-inline: -1.25rem; padding: 1.5rem 1.25rem; }
}

/* --- Marquee ticker band --- */
.marquee-wrap {
  background: var(--secondary);
  color: var(--cream-light);
  overflow: hidden;
  padding: 0.6rem 0;
  position: relative;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.marquee-inner {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-inner span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.marquee-inner span::before {
  content: "◆";
  font-size: 0.5rem;
  opacity: 0.5;
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; justify-content: center; flex-wrap: wrap; gap: 1rem 2rem; }
}

/* --- Hero --- */
.hero {
  padding: 4rem 0 2rem;
  text-align: center;
}
.hero h1 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.hero .tagline {
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.hero .location {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* --- Dictated-quote signature --- */
.dictated-quote {
  text-align: center;
  padding: 2.5rem 0;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--secondary);
  max-width: 40ch;
  margin: 0 auto;
  min-height: 3.5rem;
}
.dictated-quote .word {
  display: inline-block;
  opacity: 0;
  animation: fadeInWord 0.4s ease forwards;
}
.dictated-quote .caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 0.15em;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}
@keyframes fadeInWord {
  to { opacity: 1; }
}
@keyframes blink {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dictated-quote .word { opacity: 1; animation: none; }
  .dictated-quote .caret { display: none; }
}

/* --- Safety / Resale value band --- */
.safety-band {
  background: var(--ink);
  color: var(--cream-light);
  padding: 2.5rem 1.25rem;
  margin: 2rem 0;
}
.safety-band h2 {
  font-weight: 200;
  margin-bottom: 0.75rem;
  color: var(--cream-light);
}
.safety-band p {
  font-weight: 400;
  max-width: 48ch;
  margin: 0 auto 1rem;
  opacity: 0.9;
  font-size: 0.95rem;
}
.safety-band p:last-child { margin-bottom: 0; }
.safety-band strong {
  color: #e8a098;
}

/* --- Before / After Gallery --- */
.gallery-section {
  padding: 3rem 0;
}
.gallery-section h2 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
  text-align: center;
}
.gallery-section > p {
  font-weight: 400;
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
}
.gallery-item .ba-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.gallery-item .ba-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
@media (max-width: 480px) {
  .gallery-item .ba-wrap img { height: 130px; }
}
.gallery-item .ba-label {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gallery-item .caption {
  padding: 0 0.75rem 0.75rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink);
}

/* --- Packages --- */
.packages {
  padding: 3rem 0;
}
.package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .package-grid { grid-template-columns: 1fr; }
}
.package-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  padding: 2rem 1.5rem;
  border-radius: 0;
  position: relative;
}
.package-card.featured {
  border-color: var(--accent);
  border-width: 2px;
}
.package-card h3 {
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.package-card .price {
  font-size: 2rem;
  font-weight: 200;
  color: var(--accent);
  margin: 0.5rem 0;
}
.package-card .warranty {
  display: inline-block;
  background: var(--accent);
  color: var(--cream-light);
  padding: 0.2rem 0.6rem;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.package-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.package-card li {
  padding: 0.3rem 0;
  font-weight: 400;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.2rem;
}
.package-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- Mobile service callout --- */
.mobile-callout {
  background: var(--secondary);
  color: var(--cream-light);
  text-align: center;
  padding: 2.5rem 1.25rem;
  margin: 2rem 0;
}
.mobile-callout h2 {
  font-weight: 200;
  margin-bottom: 0.75rem;
}
.mobile-callout p {
  font-weight: 400;
  max-width: 40ch;
  margin: 0 auto;
  opacity: 0.9;
}

/* --- About / How It Works --- */
.about-section {
  padding: 3rem 0;
}
.about-section h2 {
  color: var(--secondary);
  margin-bottom: 1rem;
}
.about-section p {
  font-weight: 400;
  margin-bottom: 1rem;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 2px solid var(--cream-dark);
}
.step .num {
  font-size: 2rem;
  font-weight: 200;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.step h4 {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.step p {
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0;
}

/* --- Contact / CTA --- */
.contact-section {
  padding: 3rem 0;
  text-align: center;
}
.contact-section h2 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.contact-section .cta-text {
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2rem;
}
.contact-item {
  font-weight: 400;
  font-size: 1.05rem;
}
.contact-item a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-item a:hover { border-color: var(--accent); }

/* --- Contact form --- */
.contact-form {
  max-width: 40ch;
  margin: 0 auto;
  text-align: left;
}
.contact-form label {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  letter-spacing: 0.03em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cream-dark);
  background: var(--cream-light);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}
.contact-form button {
  background: var(--accent);
  color: var(--cream-light);
  border: none;
  padding: 0.75rem 2rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}
.contact-form button:hover { opacity: 0.85; }
.form-status {
  font-weight: 400;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  min-height: 1.5rem;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 1.25rem 3.5rem;
  text-align: center;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--cream-dark);
  margin-top: 2rem;
}

/* --- Kwaku attribution (free tier) --- */
.attribution {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  opacity: 0.5;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  z-index: 100;
}
.attribution a { color: inherit; text-decoration: none; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* --- Focus visible --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
