/* Willow Peak Digital — brand facelift
   Matches the animated lockup: cream ground, forest ink, logo greens,
   Playfair Display SC + Instrument Serif, pixel-square motif. */

:root {
  --cream: #fdf8f3;
  --paper: #fffdf9;
  --ink: #253531;
  --ink-deep: #1a2724;
  --green: #71893b;
  --leaf: #7c953b;
  --moss: #4a6635;
  --line: #e8e1d2;
  --text: #41504a;
  --serif: 'Playfair Display SC', serif;
  --accent: 'Instrument Serif', serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
}

.eyebrow {
  font-family: var(--accent);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

/* ---------- header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img { width: 46px; height: 46px; object-fit: contain; }

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand-sub {
  font-family: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* balances trailing letter-space so it centers under the name */
  color: var(--green);
  margin-top: 2px;
}

.site-nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover { color: var(--green); border-bottom-color: var(--green); }

/* ---------- hero ---------- */

.hero { padding: 5.5rem 0 4.5rem; overflow: hidden; }

.hero-bg { display: none; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-bottom: 1.4rem;
}

.hero-text {
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-visual { position: relative; justify-self: center; }

.hero-visual img {
  width: min(100%, 420px);
  animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* pixel-square motif drifting off the mark */
.hero-visual::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -6%;
  width: 9px;
  height: 9px;
  background: #7c953b;
  box-shadow:
    22px -16px 0 -1px #567235,
    48px -4px 0 0 #8fa741,
    70px -30px 0 -2px #647f38,
    94px -12px 0 -3px #7b9641,
    116px -36px 0 -4px #698538,
    38px 18px 0 -3px #253531,
    66px 30px 0 -2px #5e7936,
    92px 14px 0 -4px #263631;
  opacity: 0.9;
}

/* ---------- stats strip ---------- */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
}

.hero-stats dt {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--leaf);
  margin-bottom: 0.3rem;
}

.hero-stats dd { font-size: 0.98rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--green); color: #fff; }

.btn-secondary { border: 1px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

/* ---------- sections ---------- */

.section { padding: 5rem 0; }

.section-intro {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.copy-stack p + p { margin-top: 1.1rem; }

.section-title { margin-bottom: 2.6rem; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- work cards ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.9rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: 0 10px 26px rgba(37, 53, 49, 0.09);
}

/* pixel cluster reveals in the corner on hover */
.work-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: #7c953b;
  box-shadow:
    -14px 10px 0 -1px #567235,
    -26px -4px 0 -2px #8fa741,
    12px 14px 0 -3px #647f38;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.work-card:hover::after { opacity: 1; }

.work-index {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: rgba(113, 137, 59, 0.4);
}

.work-card h3 { font-size: 1.25rem; }

.work-card p { font-size: 0.95rem; flex: 1; }

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
}

.card-link::after {
  content: " \2192";
  transition: margin-left 0.2s ease;
}

.work-card:hover .card-link::after { margin-left: 4px; }

/* ---------- contact (photo band) ---------- */

.contact-section {
  background:
    linear-gradient(rgba(20, 32, 27, 0.85), rgba(20, 32, 27, 0.85)),
    url("../images/cover.jpg") center / cover no-repeat;
}

.contact-section .eyebrow { color: #a9c46b; }

.contact-section h2 {
  color: #f2ede2;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.contact-panel p {
  color: #cfd8cd;
  margin-bottom: 1.6rem;
  font-size: 1.05rem;
}

.contact-section .btn-primary { background: var(--green); color: #fff; }
.contact-section .btn-primary:hover { background: var(--leaf); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink-deep);
  color: #b8c4ba;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 24px;
}

.site-footer span:first-child { font-family: var(--serif); color: #edf4ef; }
.site-footer strong { color: #a9c46b; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(70vw, 320px); }
  .hero-stats { grid-template-columns: 1fr; gap: 1.4rem; }
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .work-grid { grid-template-columns: 1fr; }
  .site-nav a { margin-left: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
  html { scroll-behavior: auto; }
}
