/* Helpful RV Services — site styles
   Warm dark indie-studio aesthetic, Wyoming road hero.
*/

:root {
  --bg:        #0e0c0a;
  --bg-soft:   #141110;
  --surface:   #1a1714;
  --surface-2: #221e19;
  --rule:      #2a241d;
  --rule-strong: #3a3228;
  --ink:       #f4ece0;
  --ink-soft:  #cabfad;
  --muted:     #8b8273;
  --muted-2:   #5f584c;
  --accent:    #ff8a4c;      /* sunset ember */
  --cream:     #f0c98a;      /* warm highlight */
  --live:      #7cdc8a;      /* "in development" dot */
  --max:       760px;
  --radius:    10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------- HERO (homepage) -------- */
.hero {
  position: relative;
  min-height: clamp(540px, 92vh, 840px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero .bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero.jpeg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: -2;
  filter: saturate(1.05) brightness(0.78);
  transform: scale(1.02);
}

/* dark gradient overlay for text legibility + blend into the page */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(14, 12, 10, 0.55) 0%,
      rgba(14, 12, 10, 0.20) 35%,
      rgba(14, 12, 10, 0.55) 70%,
      rgba(14, 12, 10, 1.0) 100%);
}

/* warm ember glow from the right */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at top right,
    rgba(255, 138, 76, 0.22) 0%,
    rgba(255, 138, 76, 0) 60%);
  mix-blend-mode: screen;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* -------- WRAP (content max-width) -------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
}

/* -------- HEADER -------- */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

header.site .mark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

header.site .mark::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 138, 76, 0.7);
}

header.site .locale {
  color: var(--ink-soft);
  opacity: 0.7;
}

/* -------- HERO CONTENT -------- */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(2rem, 6vw, 4rem);
}

.eyebrow {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cream);
  display: inline-block;
}

h1.display {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 1.75rem;
  color: var(--ink);
  max-width: 14ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

h1.display em {
  font-style: italic;
  color: var(--cream);
  font-weight: 400;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* -------- CONTENT BELOW HERO -------- */
main.below {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
}

.section-label {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* -------- PROJECT CARDS -------- */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.project {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
  position: relative;
}

.project:hover {
  border-color: var(--rule-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.project .name {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.45rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.project .desc {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

/* status pill with pulsing dot */
.pill {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(124, 220, 138, 0.08);
  border: 1px solid rgba(124, 220, 138, 0.25);
  padding: 3px 10px 3px 22px;
  border-radius: 999px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pill.muted {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--rule);
  color: var(--muted);
}

.pill.muted::before {
  background: var(--muted-2);
  animation: none;
  opacity: 0.6;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(124, 220, 138, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(124, 220, 138, 0);
  }
}

/* -------- FOOTER -------- */
footer.site {
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

footer.site nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

footer.site a:hover { color: var(--ink); }

.credit {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.credit a { color: var(--muted); border-bottom: 1px dotted var(--rule); }
.credit a:hover { color: var(--ink-soft); }

/* -------- DOCUMENT PAGES (privacy, terms) -------- */
.doc-page {
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

.doc-page::before {
  content: "";
  position: fixed;
  top: -20vh;
  right: -20vw;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at center,
      rgba(255, 138, 76, 0.12) 0%,
      rgba(255, 138, 76, 0.04) 35%,
      rgba(255, 138, 76, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.doc-page .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(2rem, 5vw, 3rem);
}

.doc h1.page-title {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 3rem 0 0.5rem;
  color: var(--ink);
}

.doc .meta {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.doc h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.005em;
}

.doc p {
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.doc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 138, 76, 0.3);
  transition: border-color 160ms ease;
}

.doc a:hover { border-bottom-color: var(--accent); }

.placeholder-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 138, 76, 0.06);
  border: 1px solid rgba(255, 138, 76, 0.25);
  border-radius: var(--radius);
  padding: 0.9rem 1.15rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.placeholder-banner::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 0.55rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 138, 76, 0.5);
}

/* -------- RESPONSIVE -------- */
@media (min-width: 640px) {
  .projects { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .project { padding: 1.25rem 1.25rem 1rem; }
  footer.site { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero { min-height: 88vh; }
}

/* Swap to smaller hero image on mobile for faster loads */
@media (max-width: 720px) {
  .hero .bg { background-image: url("assets/hero-sm.jpeg"); }
}

/* -------- A11Y -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

::selection {
  background: rgba(255, 138, 76, 0.3);
  color: var(--ink);
}
