/* The Wright Touch: New Orleans Saints theme (old gold / black).
   Accent: a drop of Jamaican green / gold / black. */

:root {
  --ink: #000000;
  --ink-2: #0c0c0c;
  --ink-3: #1a1a1a;
  --cream: #f5efe4;
  --muted: #a8a197;
  --orange: #c9a227;
  --orange-hi: #e0b94a;
  --orange-deep: #7a6014;
  --purple: #000000;
  --gold: #c9a227;
  --jam-green: #009b3a;
  --jam-gold: #fed100;
  --green: #0c0c0c;
  --green-2: #1a1a1a;
  --yellow: #e8c96a;
  --grass: #3fa535;
  --radius: 14px;
  --gutter: 16px;
  --max: 1120px;
  --display: "Bebas Neue", "Impact", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

/* Sections slide in from the sides; clip so they never widen the page */
main { overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: 0.02em; }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.1rem; }
p { margin: 0 0 1em; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.eyebrow::before { content: "\269C\00a0"; color: var(--gold); letter-spacing: 0; }
.muted { color: var(--muted); }
.eyebrow .dot { color: var(--orange); }
.accent { color: var(--orange); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #222;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-main { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.04em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: none; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--cream); opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
  text-align: left;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  margin-bottom: 0.2em;
}
.lede { font-size: 1.1rem; color: #d9d2c5; max-width: 40em; margin-bottom: 28px; }

/* Lawnmower and clippers beside the slogan, sized to the cap height of the letters */
.slogan-icon {
  display: inline-block;
  height: 0.7em;
  width: auto;
  margin: 0 0.12em;
  vertical-align: baseline;
}
.slogan-icon--clipper {
  height: 0.8em;
  width: auto;
  vertical-align: -0.12em;
}
.slogan {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  letter-spacing: 0.04em;
  color: var(--yellow);
  margin: 0 0 18px;
}

.split {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.panel:hover { transform: translateY(-3px); }
.panel h2 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 6px 0 8px; }
.panel p { margin: 0 0 14px; max-width: 28em; }
.panel-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.panel-cta { font-weight: 700; }

.panel--barber {
  background:
    linear-gradient(160deg, rgba(201, 162, 39, 0.28), transparent 55%),
    repeating-linear-gradient(45deg, #111 0 14px, #161616 14px 28px);
  border: 1px solid #6b5418;
  color: var(--cream);
}
.panel--barber .panel-tag,
.panel--barber .panel-cta { color: var(--orange); }

.panel--lawn {
  background:
    linear-gradient(160deg, rgba(201, 162, 39, 0.18), transparent 55%),
    linear-gradient(180deg, var(--green-2), var(--green));
  border: 1px solid #6b5418;
  color: var(--cream);
}
.panel--lawn .panel-tag,
.panel--lawn .panel-cta { color: var(--yellow); }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter);
}
.section--dark { background: var(--ink-2); max-width: none; }
.section--dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--lawn { background: var(--green); max-width: none; }
.section--lawn > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--about, .section--contact { max-width: var(--max); }
.section--about {
  max-width: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 162, 39, 0.22), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(201, 162, 39, 0.10), transparent 50%),
    var(--ink);
}
.section--about > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2.4rem, 7vw, 4rem); }

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink-3);
  border: 1px solid #2e2e2e;
}
.section--lawn .card { background: #1a1a1a; border-color: #3a3220; }
.card h3 { color: var(--cream); margin-bottom: 6px; }
.card p { margin: 0; color: #cfc8ba; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--red { background: var(--orange); color: #000000; }
.btn--lime { background: var(--yellow); color: #0b1a0d; }

/* ---------- Transformations ---------- */
.work-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
figure { margin: 0; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
figcaption a { color: var(--yellow); }

.ba-wrap { grid-column: 1 / -1; }
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  user-select: none;
  touch-action: pan-y;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.ba-handle::after {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000000;
  font-size: 18px;
  line-height: 40px;
  text-align: center;
}
.ba-label {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  pointer-events: none;
}
.ba-label--before { left: 12px; }
.ba-label--after { right: 12px; background: var(--orange); color: #000000; }

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.work-single img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}
.work-single img { object-position: center; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 28px; align-items: start; }
.flyer { margin: 0; }
.flyer img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  transform: rotate(-1.5deg);
}
.flyer figcaption { text-align: center; max-width: 420px; margin: 12px auto 0; }
.tagline { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--orange); margin-top: 1.2em; }
.section--about .about {
  max-width: 44em;
  font-size: 1.1rem;
  color: #d9d2c5;
}
.sig { font-family: var(--display); font-size: 1.6rem; color: var(--yellow); letter-spacing: 0.04em; }

/* ---------- Contact ---------- */
.contact-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--orange);
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.contact-btn:hover { background: var(--orange); color: #000000; transform: translateY(-2px); }
.contact-btn--primary { background: var(--orange); color: #000000; }
.contact-btn--primary:hover { background: var(--orange-hi); border-color: var(--orange-hi); }
.contact-number {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.contact-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid #2a2a2a;
}
.contact-list li { border-bottom: 1px solid #2a2a2a; }
.contact-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 4px;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.15s ease;
}
.contact-list a:hover { color: var(--yellow); }
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value-sm { font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }

.steps {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  color: #d9d2c5;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  line-height: 26px;
}
.steps strong { color: var(--cream); }

.area { margin-top: 28px; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.footer {
  padding: 28px var(--gutter) 110px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid #222;
}
.footer p { margin: 0; }
.stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--jam-green) 0 33.33%, var(--jam-gold) 33.33% 66.66%, #000 66.66% 100%);
}

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 11, 0.96);
  border-top: 1px solid #2a2a2a;
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--ink-3);
  color: var(--cream);
}
.mobile-bar .mobile-bar-primary { background: var(--orange); color: #000000; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-actions { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-wrap { grid-column: 1 / -1; }
  .ba { aspect-ratio: 16 / 10; }
  .work-single img { aspect-ratio: 4 / 5; }
  .mobile-bar { display: none; }
  .footer { padding-bottom: 28px; }
}

@media (min-width: 860px) {
  .nav { padding: 16px 40px; }
  .nav-links { display: flex; }
  .hero { padding: 72px 40px 48px; }
  .split { grid-template-columns: 1fr 1fr; gap: 18px; }
  .panel { min-height: 380px; padding: 36px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 96px 40px; }
  .section--dark > * { padding-left: 0; padding-right: 0; }
  .section--lawn > * { padding-left: 0; padding-right: 0; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .ba { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Inside the work (animated GIF) ---------- */
.section--video { max-width: var(--max); margin: 0 auto; }
.video-wrap { margin: 0; }
.video-wrap img + img { margin-top: 16px; }

.video-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid #2a2a2a;
}

/* ---------- Animated panel art ---------- */
.panel > *:not(.panel-art) { position: relative; z-index: 1; }
.panel-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Barber: the barber-pole photo fills the panel edge to edge (cover, so no black
   bands top or bottom). A dark lower overlay keeps the lettering readable. */
.panel--barber .panel-art {
  background: url("assets/img/barber-wall.jpg") left center / cover no-repeat;
}
.panel--barber .panel-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
}
/* The pole sits in the right quarter of the photo, so the text stops short of it */
.panel--barber { padding-right: 26%; }

/* Lawn: looping, sharpened clip of edging a lawn, filling the panel edge to edge
   (cover), so no black shows at the sides. The overlay sits behind the lettering. */
.panel--lawn .panel-art {
  background: #0c0c0c url("assets/img/yard-poster.jpg") center / cover no-repeat;
}
/* The looping clip plays muted on the page; the poster frame shows until it starts */
.yard-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .yard-video { display: none; }
}
.panel--lawn .panel-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.12) 75%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.panel--lawn > *:not(.panel-art) {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* Half-width before / after (locs) */
.ba-wrap--half { grid-column: auto; }
.ba--portrait { aspect-ratio: 4 / 5; max-height: none; }
@media (min-width: 640px) {
  .ba--portrait { aspect-ratio: 4 / 5; }
}

/* Zoomed-out before / after: show the whole photo, not a crop */
.ba--zoom-out .ba-img { object-fit: contain; }

/* ---------- Rotating barber-in-the-chair figure (bottom-right of the barber panel) ---------- */
.fleur-wrap {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  width: 66px;
  height: 90px;
  perspective: 260px;
  filter: drop-shadow(0 0 8px rgba(232, 196, 92, 0.5));
}
.fleur {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.15) contrast(1.05);
  transform-style: preserve-3d;
  animation: fleur-spin 6s linear infinite;
}
@keyframes fleur-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  color: #fff6cc;
  pointer-events: none;
  animation: sparkle-twinkle 2.4s ease-in-out infinite;
  opacity: 0;
}
.sparkle svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.sparkle--1 { top: 2px; left: -4px; }
.sparkle--2 { top: 36px; right: -6px; width: 8px; height: 8px; animation-delay: 0.8s; }
.sparkle--3 { bottom: 6px; left: 10px; width: 7px; height: 7px; animation-delay: 1.6s; }
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}
@media (max-width: 859px) {
  .fleur-wrap { right: 12px; bottom: 10px; width: 54px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .fleur, .sparkle { animation: none; }
  .sparkle { opacity: 0.6; }
}

/* ---------- Handyman ---------- */
.section--handyman {
  max-width: none;
  background:
    radial-gradient(circle at 90% 0%, rgba(201, 162, 39, 0.16), transparent 55%),
    var(--ink-2);
}
.section--handyman > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.cards--3 { grid-template-columns: 1fr; }
.svc-list { list-style: none; margin: 10px 0 0; padding: 0; }
.svc-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: #cfc8ba;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  transform: rotate(45deg);
}
@media (min-width: 860px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Handyman hero panel: full width under the barber and lawn panels */
.panel--handyman {
  background:
    linear-gradient(120deg, rgba(201, 162, 39, 0.22), transparent 60%),
    #0c0c0c;
  border: 1px solid #6b5418;
  color: var(--cream);
}
.panel--handyman .panel-tag,
.panel--handyman .panel-cta { color: var(--yellow); }

/* Handyman tools photo, shown whole so the tools stay visible. Phones: a band along
   the bottom with the text above it. Desktop: on the right, fading in from its left
   edge. The fade is on the photo itself, so it can't leave a hard edge. */
.panel--handyman .handy-photo {
  position: absolute;
  display: block;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
}
.panel--handyman { justify-content: flex-start; padding-bottom: 196px; }

@media (min-width: 860px) {
  .panel--handyman { grid-column: 1 / -1; min-height: 300px; justify-content: flex-end; padding-bottom: 36px; }
  .panel--handyman .handy-photo {
    top: 0;
    left: auto;
    right: 0;
    width: auto;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
            mask-image: linear-gradient(to right, transparent 0%, #000 35%);
  }
}

/* Lawn before / after: a 4:3 frame that suits both photos */
.ba.ba--lawn { aspect-ratio: 4 / 3; max-height: none; }

/* Contact list and steps on wider screens */
@media (min-width: 640px) {
  .contact-list a { flex-direction: row; align-items: center; justify-content: space-between; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
