/* ==========================================================================
   Design styles for this client's site.
   Used by index.html, privacy.html and 404.html.
   This is one of the three design files (with index.html and motion.js);
   during design reviews only these change.
   ========================================================================== */

/* --- Design starts here ------------------------------------------------- */
/* Fern & Fade Barbers (concept site) · Design A: Cuba St Bold, barber pole.
   Navy, pole red, warm white. Anton for display, Inter for text. */

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;600;700&display=swap");

:root {
  --navy: #1B2A6B;
  --navy-deep: #0E163C;
  --red: #C8102E;
  --red-dark: #A50D26;
  --paper: #FAF8F5;
  --white: #FFFFFF;
  --muted: #3a4470;
  --line: #1B2A6B;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --text: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Shared basics (privacy.html and 404.html use these too) */
body {
  background: var(--paper);
  color: var(--navy);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
}
h2 { font-size: 2rem; margin: 2.2rem 0 .6rem; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* --- Home page ----------------------------------------------------------- */
.home { margin: 0; }
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.ff-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.ff-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--white); color: var(--navy); padding: 10px 14px; font-weight: 700; }
.ff-skip:focus { left: 8px; }

/* Header (sits over the hero photo) */
.ff-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 40px;
  animation: ff-fade 500ms var(--ease) both;
}
.ff-mark {
  font-family: var(--display); font-size: 28px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.ff-mark span { background: var(--red); color: var(--white); padding: 0 6px; margin: 0 2px; }
.ff-mark:hover { color: var(--white); }
.ff-nav { display: flex; gap: 28px; margin-left: auto; }
.ff-nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; position: relative; }
.ff-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease);
}
.ff-nav a:hover::after, .ff-nav a:focus-visible::after { transform: scaleX(1); }
.ff-call {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--red); color: var(--white); text-decoration: none; font-weight: 700; white-space: nowrap;
  transition: transform 150ms var(--ease), background-color 150ms ease;
}
.ff-call:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); }

/* Hero: full-width photo with a navy overlay */
.ff-hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--navy-deep);
  min-height: 760px; display: flex; align-items: flex-end;
}
.ff-hero-ph {
  position: absolute; inset: 0;
  /* Placeholder until a real photo goes in: barber-pole stripes.
     Swap for: background: url(/assets/hero.webp) center / cover; */
  background: repeating-linear-gradient(135deg, var(--red) 0 44px, var(--white) 44px 88px, var(--navy) 88px 132px, var(--white) 132px 176px);
  animation: ff-settle 900ms var(--ease) both;
}
.ff-hero-ph::after { content: ""; position: absolute; inset: 0; background: rgba(14, 22, 60, .76); }
.ff-hero-grid {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end;
  padding-top: 150px; padding-bottom: 72px;
}
.ff-giant {
  font-family: var(--display); text-transform: uppercase; font-size: clamp(88px, 14vw, 184px);
  line-height: .86; margin: 0; letter-spacing: -.005em;
}
.ff-giant span { display: block; animation: ff-rise 600ms var(--ease) both; }
.ff-giant span + span { animation-delay: 110ms; }
.ff-giant em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--white); }
.ff-hero-copy { animation: ff-rise 600ms 220ms var(--ease) both; }
.ff-hero h1 {
  font-family: var(--text); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .08em;
  line-height: 1.5; margin: 0 0 12px;
}
.ff-hero h1 mark { background: var(--red); color: var(--white); padding: 1px 6px; }
.ff-lede { margin: 0 0 28px; color: #e6e9f3; font-size: 18px; max-width: 440px; }
.ff-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ff-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  transition: transform 150ms var(--ease), background-color 150ms ease, color 150ms ease;
}
.ff-btn:hover { transform: translateY(-2px); }
.ff-btn-red { background: var(--red); color: var(--white); }
.ff-btn-red:hover { background: var(--red-dark); color: var(--white); }
.ff-btn-ghost { border: 2px solid var(--white); color: var(--white); }
.ff-btn-ghost:hover { background: var(--white); color: var(--navy); }
.ff-walk { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: #e6e9f3; }
.ff-walk::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 8px; transform: translateY(-1px); }

/* Info bar: hours, address, walk-ins */
.ff-bar { background: var(--navy); color: var(--white); }
.ff-bar .ff-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 36px; padding-bottom: 36px; }
.ff-bar h2 {
  font-size: 22px; margin: 0 0 12px; color: var(--white); display: inline-block;
  border-bottom: 3px solid var(--red); padding-bottom: 2px; letter-spacing: .04em;
}
.ff-bar p, .ff-bar dl { margin: 0; }
.ff-bar a { color: var(--white); font-weight: 600; }
.ff-bar a:hover { color: #ffd6dc; }
.ff-hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 20px; }
.ff-hours dt { font-weight: 700; }
.ff-hours dd { margin: 0; }

/* Sections */
.ff-sec { padding: 96px 0; }
.ff-h2 { font-size: clamp(56px, 8vw, 104px); line-height: .9; margin: 0 0 40px; }
.ff-h2 em { font-style: normal; color: var(--red); }

/* Services & prices */
.ff-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.ff-row {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 2px solid var(--line);
}
.ff-row::before {
  content: ""; position: absolute; left: 0; top: -2px; bottom: -2px; width: 6px; background: var(--red);
  transform: scaleY(0); transform-origin: bottom; transition: transform 200ms var(--ease);
}
.ff-row:hover::before { transform: scaleY(1); }
.ff-row .n { font-family: var(--display); font-size: 28px; color: var(--red); padding-left: 16px; }
.ff-row h3 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; text-transform: uppercase; margin: 0; transition: transform 200ms var(--ease); }
.ff-row:hover h3 { transform: translateX(6px); }
.ff-row p { margin: 0; color: var(--muted); }
.ff-row .p { font-weight: 700; font-size: 22px; background: var(--red); color: var(--white); padding: 2px 12px; white-space: nowrap; }
.ff-note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

/* The shop band */
.ff-band { background: var(--white); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.ff-band .ff-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.ff-band .ff-h2 { font-size: clamp(48px, 6vw, 80px); margin-bottom: 20px; }
.ff-band p { margin: 0 0 16px; font-size: 18px; max-width: 460px; }
.ff-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ff-tile {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border: 2px solid var(--navy); background: var(--navy);
  transition: transform 200ms var(--ease);
}
.ff-tile:nth-child(2) { transform: translateY(24px); }
.ff-tile:hover { transform: translateY(-4px); }
.ff-tile:nth-child(2):hover { transform: translateY(20px); }

/* Sample reviews (concept site: clearly labelled, not real customers) */
.ff-reviews .ff-h2 { margin-bottom: 16px; }
.ff-sample-flag {
  display: inline-block; vertical-align: middle; font-family: var(--text); font-size: 14px; font-weight: 700;
  letter-spacing: .06em; background: var(--navy); color: var(--white); padding: 6px 10px; margin-left: 12px;
  transform: translateY(-12px);
}
.ff-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.ff-card {
  margin: 0; background: var(--white); border: 2px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}
.ff-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--red); }
.ff-card-tag { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border: 2px solid var(--red); color: var(--red-dark); padding: 2px 8px; }
.ff-card blockquote { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; flex: 1; }
.ff-card figcaption { font-size: 14px; color: var(--muted); }
.ff-sample-note { margin: 24px 0 0; font-size: 14px; color: var(--muted); }

/* Contact (the Silkline form, repurposed for questions and group bookings) */
.ff-contact { padding: 0 0 96px; }
.ff-contact .ff-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ff-cl { background: var(--navy); color: var(--white); padding: 56px; }
.ff-cl .ff-h2 { color: var(--white); font-size: clamp(56px, 7vw, 88px); margin-bottom: 24px; }
.ff-cl .ff-h2 em { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 6px; text-underline-offset: 10px; }
.ff-cl p { margin: 0 0 16px; color: #e6e9f3; }
.ff-cl a { color: var(--white); font-weight: 700; }
.ff-cl a:hover { color: #ffd6dc; }
.ff-uses { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ff-uses li { border: 2px solid rgba(255, 255, 255, .5); padding: 4px 12px; font-size: 14px; font-weight: 600; }
.ff-cr { background: var(--white); border: 2px solid var(--line); padding: 56px; }
.ff-cr .sl-field label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ff-cr .sl-optional { text-transform: none; letter-spacing: 0; }
.ff-cr .sl-field input, .ff-cr .sl-field textarea {
  border: 2px solid var(--line); background: var(--paper); color: var(--navy); padding: 12px 14px; border-radius: 0;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.ff-cr .sl-field input:focus, .ff-cr .sl-field textarea:focus { outline: none; border-color: var(--red); background: var(--white); }
.ff-hint { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.ff-cr button[type="submit"] {
  width: 100%; min-height: 56px; border: 0; background: var(--navy); color: var(--white); cursor: pointer;
  font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  transition: background-color 150ms ease, transform 150ms var(--ease);
}
.ff-cr button[type="submit"]:hover { background: var(--red); transform: translateY(-2px); }
.ff-demo-form { margin: 0 0 14px; font-size: 14px; font-weight: 600; background: var(--paper); border-left: 0; border: 2px dashed var(--red); padding: 8px 12px; }

/* Footer */
.ff-foot { border-top: 2px solid var(--line); }
.ff-foot .ff-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }
.ff-foot p { margin: 0; }
.ff-foot a { color: var(--navy); }
.ff-concept { background: var(--navy); color: var(--white); padding: 4px 10px; font-weight: 600; }

/* Mobile call bar (always-visible tap to call) */
.ff-callbar { display: none; }

@media (max-width: 860px) {
  .ff-wrap { padding: 0 20px; }
  .ff-top { padding: 14px 20px; }
  .ff-nav { display: none; }
  .ff-mark { font-size: 22px; }
  .ff-call { padding: 0 12px; font-size: 15px; }
  .ff-hero { min-height: 0; }
  .ff-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 112px; padding-bottom: 40px; }
  .ff-giant { font-size: 92px; }
    .ff-btn { flex: 1 1 140px; padding: 0 14px; white-space: nowrap; letter-spacing: .04em; }
  .ff-bar .ff-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
  .ff-sec { padding: 64px 0; }
  .ff-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 12px; padding: 18px 0; }
  .ff-row .n { font-size: 20px; padding-left: 12px; }
  .ff-row h3 { font-size: 26px; }
  .ff-row p { grid-column: 2 / 4; grid-row: 2; font-size: 15px; }
  .ff-row .p { font-size: 17px; }
  .ff-band .ff-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 0; }
  .ff-tile { aspect-ratio: 3 / 4; }
  .ff-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  .ff-sample-flag { display: table; transform: none; margin: 14px 0 0; }
  .ff-contact { padding-bottom: 0; }
  .ff-contact .ff-wrap { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .ff-cl, .ff-cr { padding: 36px 20px; }
  .ff-cr { border-left: 0; border-right: 0; border-bottom: 0; }

  .home { padding-bottom: 68px; }
  .ff-callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    box-shadow: 0 -2px 0 var(--navy);
    animation: ff-up 400ms 400ms var(--ease) both;
  }
  .ff-callbar a {
    display: flex; align-items: center; justify-content: center; min-height: 60px; text-decoration: none;
    font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 15px;
  }
  .ff-callbar .c { background: var(--white); color: var(--navy); }
  .ff-callbar .b { background: var(--red); color: var(--white); }
}

@media (max-width: 380px) {
  .ff-giant { font-size: 76px; }
  .ff-mark { font-size: 19px; }
}

/* Hero entrance (CSS only, so nothing flashes before JS loads) */
@keyframes ff-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes ff-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ff-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes ff-up { from { transform: translateY(100%); } to { transform: none; } }

/* Stagger rows and cards as they reveal */
.ff-list [data-reveal]:nth-child(2), .ff-cards [data-reveal]:nth-child(2), .ff-bar [data-reveal]:nth-child(2) { transition-delay: 70ms; }
.ff-list [data-reveal]:nth-child(3), .ff-cards [data-reveal]:nth-child(3), .ff-bar [data-reveal]:nth-child(3) { transition-delay: 140ms; }
.ff-list [data-reveal]:nth-child(4) { transition-delay: 210ms; }
.ff-list [data-reveal]:nth-child(5) { transition-delay: 280ms; }
.ff-list [data-reveal]:nth-child(6) { transition-delay: 350ms; }
/* After a card has revealed, its hover lift still works (and starts at once) */
.js .ff-card[data-reveal].is-visible { transition: opacity 450ms ease, transform 200ms var(--ease), box-shadow 200ms ease; }
.js .ff-card[data-reveal].is-visible:hover { transform: translateY(-4px); transition-delay: 0ms; }

/* Reduced motion: hover states keep their colours but don't move */
@media (prefers-reduced-motion: reduce) {
  .ff-btn:hover, .ff-call:hover, .ff-row:hover h3, .ff-tile:hover,
  .ff-cr button[type="submit"]:hover, .js .ff-card[data-reveal].is-visible:hover, .ff-card:hover { transform: none; }
  .ff-tile:nth-child(2), .ff-tile:nth-child(2):hover { transform: translateY(24px); }
}


/* --- Scroll reveal (works with assets/motion.js) --------------------------
   Add data-reveal to any element that should fade/slide in.
   Elements are only hidden once motion.js has added the "js" class,
   so content stays visible if JavaScript doesn't run.
   Use it for sections BELOW the fold only: motion.js loads deferred, so
   revealing above-the-fold content could flash. Animate the hero with
   CSS @keyframes instead (no JS needed). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 450ms ease, transform 450ms var(--ease, ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
