/* ==========================================================================
   Larheim — stylesheet for prerendered /articles pages
   Plain CSS, no build step, no JS. The hero "carousel" is pure CSS
   (layered background slides cross-fading via @keyframes) so this stays a
   pure styling change — no script/data logic touched.
   Place at: public/style.css  (copied verbatim by Vite to dist/style.css,
   resolving at https://larheim.co.zw/style.css)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --ivory: #faf6ee;
  --cream: #f2e9d8;
  --cream-deep: #ebdcc0;
  --gold: #c9a14a;
  --gold-light: #e2c17e;
  --gold-deep: #93732f;
  --charcoal: #241f18;
  --charcoal-soft: #57503f;
  --hairline: rgba(36, 31, 24, 0.12);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
}

a {
  color: inherit;
}

/* ── PAGE / ARTICLE SHELL ────────────────────────────────────── */
.article-page {
  display: block;
}

article {
  background: var(--ivory);
  overflow: hidden;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(20rem, 46vw, 30rem);
  padding: 3rem 1.5rem 3.2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroCarousel 20s infinite;
}

/* Real Larheim asset photography, cycled ambiently behind every article */
.hero-slide:nth-child(1) {
  background-image:
    linear-gradient(135deg, #6c5834, #1a160e 75%), url("/images/car1.jpg");
  background-blend-mode: multiply;
  animation-delay: 0s;
}
.hero-slide:nth-child(2) {
  background-image:
    linear-gradient(135deg, #5f4d2c, #1c1710 75%), url("/images/import.png");
  background-blend-mode: multiply;
  animation-delay: -5s;
}
.hero-slide:nth-child(3) {
  background-image:
    linear-gradient(135deg, #7a6238, #241f18 75%), url("/images/harare1.png");
  background-blend-mode: multiply;
  animation-delay: -10s;
}
.hero-slide:nth-child(4) {
  background-image:
    linear-gradient(135deg, #7f6842, #211b11 75%), url("/images/car2.jpg");
  background-blend-mode: multiply;
  animation-delay: -15s;
}

@keyframes heroCarousel {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  22% {
    opacity: 1;
  }
  27% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 5, 0.35) 0%,
    rgba(10, 8, 5, 0.55) 55%,
    rgba(10, 8, 5, 0.86) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 1rem;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  color: var(--gold-light);
  margin: 0 0 0.9rem;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s forwards;
}

.hero .meta {
  margin: 0;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.38s forwards;
}

.hero .meta em {
  font-style: normal;
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.78);
  border: 1px solid rgba(250, 246, 238, 0.3);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }
  .hero-slide:nth-child(1) {
    opacity: 1;
  }
  .eyebrow,
  .hero h1,
  .hero .meta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── ARTICLE BODY ────────────────────────────────────────────── */
.article-body {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 3.6rem) 1.5rem 0;
}

article section {
  margin-bottom: 2.4rem;
}

/* Route-line flourish above every h2, echoing the site's shipping motif */
article section h2 {
  position: relative;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 1.1rem;
  padding-top: 1.2rem;
}

article section h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.6rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

article section h3 {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 1.5rem 0 0.6rem;
}

article section p {
  color: var(--charcoal-soft);
  line-height: 1.85;
  margin: 0 0 1.05rem;
}

article section ul,
article section ol {
  color: var(--charcoal-soft);
  padding-left: 1.4rem;
  margin: 0 0 1.05rem;
}

article section li {
  margin-bottom: 0.45rem;
  line-height: 1.75;
}

article section img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.6rem 0;
  box-shadow: 0 16px 34px rgba(36, 31, 24, 0.12);
}

/* Cool links: gold underline with a sliding arrow cue */
article section a {
  position: relative;
  color: var(--gold-deep);
  text-decoration: none;
  font-weight: 500;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition:
    color 0.25s ease,
    background-size 0.25s ease;
}

article section a:hover {
  color: var(--gold);
  background-size: 100% 2px;
}

article section a::after {
  content: "→";
  display: inline-block;
  margin-left: 0.15em;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

article section a:hover::after {
  opacity: 1;
  transform: translateX(1px);
}

/* Quick answer — styled like a stamped ticket, matching the rest of the site */
.quick-answer {
  position: relative;
  background: rgba(226, 193, 126, 0.14);
  border: 1px solid var(--gold-light);
  border-radius: 1rem;
  padding: 1.6rem 1.8rem;
}

.quick-answer::before,
.quick-answer::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--ivory);
  border-radius: 50%;
  transform: translateY(-50%);
}

.quick-answer::before {
  left: -0.55rem;
}
.quick-answer::after {
  right: -0.55rem;
}

.quick-answer h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 0;
  margin-bottom: 0.6rem;
}

.quick-answer h2::before {
  display: none;
}

.quick-answer p {
  color: var(--charcoal);
  font-size: 1.03rem;
  margin: 0;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
article > footer {
  max-width: 44rem;
  margin: 2.6rem auto 0;
  padding: 0 1.5rem clamp(3rem, 6vw, 4.5rem);
}

.cta-block {
  background: linear-gradient(
    155deg,
    rgba(226, 193, 126, 0.18),
    rgba(226, 193, 126, 0.03)
  );
  border: 1px solid var(--gold-light);
  border-radius: 1.1rem;
  padding: 1.8rem 2rem;
}

.cta-block p {
  margin: 0;
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.8;
}

.cta-block a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(147, 115, 47, 0.35);
}

.cta-block a:hover {
  color: var(--gold);
}

.social-block {
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.social-label {
  margin: 0;
  color: var(--charcoal-soft);
  font-size: 0.88rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #2c2109 !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(201, 161, 74, 0.28);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(201, 161, 74, 0.4);
}

@media (max-width: 640px) {
  .hero {
    min-height: 20rem;
    padding: 2.2rem 1.2rem 2.4rem;
  }
  .article-body {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  article > footer {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .social-block {
    align-items: flex-start;
  }
}
