/*
 * Busy Bee Barber Shop styles, ported from the design export in
 * docs/design/busy-bee-barber-shop-mockup.html.
 *
 * Colors, type, and layout constants live in :root. Components use those
 * tokens instead of one-off values; spacing keeps the mockup's px values.
 * Sections follow page order: base, shared components, header, the home
 * page's sections, then the footer.
 */

/* Fonts: self-hosted Latin subsets of DM Serif Display, League Gothic, and Libre Caslon Text (SIL Open Font License). */

@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/dm-serif-display-latin-400-normal-3f6a6125.woff2") format("woff2");
}

@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/dm-serif-display-latin-400-italic-1e5e7a9d.woff2") format("woff2");
}

@font-face {
  font-family: "League Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/league-gothic-latin-400-normal-277199d3.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/libre-caslon-text-latin-400-normal-6f4e319b.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Caslon Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/libre-caslon-text-latin-400-italic-89dfeafb.woff2") format("woff2");
}

/* Tokens */

:root {
  /* Palette */
  --paper: #f4ede1;
  --ink: #1e1a16;
  --accent: #8c2b22;
  --accent-dark: #5e1c16;
  --on-accent: #f8f2e7;
  --navy: #1d2a3b;
  --gold: #c9963a;
  --gold-light: #dcae58;
  --linen: #ece3d3;
  --card: #ebe2d2;
  --card-line: #cdbea6;
  --rule: #d9ccb6;
  --ledger-line: #a8977c;
  --photo-fill: #e4d8c4;
  --text-soft: #4a4139;
  --text-muted: #5a5047;
  --on-dark: #e9dfcc;
  --on-dark-muted: #c9c0b0;
  --on-dark-faint: #bdb3a2;
  --line-on-navy: rgb(244 237 225 / 14%);
  --dots-on-navy: rgb(244 237 225 / 30%);
  --leader-on-navy: rgb(244 237 225 / 35%);
  --gold-line: rgb(201 150 58 / 50%);
  --line-on-ink: rgb(233 223 204 / 18%);

  /* Shadows, tinted with --ink */
  --shadow-badge: 0 12px 28px -14px rgb(30 26 22 / 60%);
  --shadow-photo: 0 24px 48px -32px rgb(30 26 22 / 55%);
  --shadow-card: 0 24px 48px -28px rgb(30 26 22 / 60%);

  /* Type: families, then the mockup's sizes, named by their px value at the default 16px root */
  --font-body: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-label: "League Gothic", "Arial Narrow", sans-serif;
  --text-14: 0.875rem;
  --text-15: 0.9375rem;
  --text-16: 1rem;
  --text-17: 1.0625rem;
  --text-18: 1.125rem;
  --text-19: 1.1875rem;
  --text-20: 1.25rem;
  --text-21: 1.3125rem;
  --text-24: 1.5rem;
  --text-25: 1.5625rem;
  --text-26: 1.625rem;
  --text-27: 1.6875rem;
  --text-28: 1.75rem;
  --text-34: 2.125rem;
  --text-40: 2.5rem;
  --text-44: 2.75rem;
  --text-82: 5.125rem;
  --text-feature-quote: clamp(2rem, 4.2vw, 3.5rem); /* 32–56 */
  --text-section-title: clamp(2.5rem, 4.6vw, 4rem); /* 40–64 */
  --text-hero-title: clamp(3.25rem, 6.6vw, 6.25rem); /* 52–100 */

  /* Layout */
  --content-width: 1200px;
  --gutter: 24px;
  --section-padding: clamp(64px, 9vw, 112px);
  --ease: 150ms ease;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-17);
  line-height: 1.65;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-label);
  font-size: var(--text-20);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:hover {
  color: var(--paper);
}

.skip-link:focus {
  transform: none;
}

/* Shared components */

.container {
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-label);
  font-size: var(--text-19);
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before,
.eyebrow-centered::after {
  content: "";
  flex: none;
  width: 40px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-section-title);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}

.caption {
  font-family: var(--font-label);
  font-size: var(--text-17);
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 18px 28px;
  font-family: var(--font-label);
  font-size: var(--text-21);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease);
}

.button .icon {
  flex: none;
}

.button-accent,
.button-accent:hover {
  color: var(--on-accent);
}

.button-accent {
  background: var(--accent);
}

.button-accent:hover {
  background: var(--accent-dark);
}

.button-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-gold,
.button-gold:hover {
  color: var(--ink);
}

.button-gold {
  background: var(--gold);
}

.button-gold:hover {
  background: var(--gold-light);
}

.button-outline-light {
  border: 1.5px solid var(--paper);
  color: var(--paper);
}

.button-outline-light:hover {
  background: var(--paper);
  color: var(--navy);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}

.ornament span {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: currentColor;
}

/* Dark bands use gold focus rings, which read better than the accent on navy and ink. */
.top-bar :focus-visible,
.hours :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

/* Header */

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

.top-bar {
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-label);
  font-size: var(--text-17);
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 11px;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 20px;
}

.brand,
.brand:hover {
  color: var(--ink);
}

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

.brand-mark {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 57px;
  height: 57px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-34);
  letter-spacing: 0.005em;
}

.brand-tagline {
  margin-top: 6px;
  font-family: var(--font-label);
  font-size: var(--text-16);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-family: var(--font-label);
  font-size: var(--text-20);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-link {
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--ease);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-call {
  min-height: 48px;
  padding: 14px 20px;
  font-size: inherit;
}

.nav-call .icon {
  width: 17px;
  height: 17px;
}

/* Hero */

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: clamp(48px, 7vw, 80px) clamp(64px, 8vw, 96px);
}

.hero-copy {
  display: flex;
  flex: 1 1 480px;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero-title);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  max-width: 32em;
  font-size: var(--text-20);
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero-note {
  font-size: var(--text-15);
  font-style: italic;
  color: var(--text-muted);
}

.hero-media {
  display: flex;
  flex: 1 1 400px;
  justify-content: center;
  min-width: 0;
}

.hero-photo {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.arch,
.arch-image {
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}

.arch {
  padding: 12px;
  border: 1.5px solid var(--ink);
}

.arch-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  background-color: var(--photo-fill);
}

.est-badge {
  position: absolute;
  bottom: 36px;
  left: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  box-shadow: var(--shadow-badge);
}

.est-badge-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  line-height: 1;
}

.est-badge-label,
.est-badge-place {
  font-family: var(--font-label);
  text-transform: uppercase;
}

.est-badge-label {
  font-size: var(--text-15);
  letter-spacing: 0.24em;
}

.est-badge-year {
  margin: 4px 0 5px;
  font-family: var(--font-display);
  font-size: var(--text-40);
  color: var(--paper);
}

.est-badge-place {
  font-size: var(--text-14);
  letter-spacing: 0.2em;
}

.barber-stripe {
  height: 16px;
  border-block: 1px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--accent) 0 16px, var(--paper) 16px 32px, var(--navy) 32px 48px, var(--paper) 48px 64px);
}

/* Our story */

.about-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding-block: var(--section-padding);
}

.about-copy {
  display: flex;
  flex: 1.3 1 520px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.about-copy p,
.services-copy p {
  text-wrap: pretty;
}

.drop-cap {
  margin-top: 8px;
}

.drop-cap::first-letter {
  float: left;
  padding: 8px 12px 0 0;
  font-family: var(--font-display);
  font-size: var(--text-82);
  line-height: 0.8;
  color: var(--accent);
}

.pull-quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-27);
  font-style: italic;
  line-height: 1.3;
  text-wrap: balance;
}

.pull-quote .caption {
  line-height: 1.2;
}

.about-photo {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.about-photo .caption {
  text-align: center;
}

.photo-mat {
  padding: 10px;
  border: 1px solid var(--card-line);
  background: var(--card);
  box-shadow: var(--shadow-photo);
}

.photo-mat img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--card-line);
  background-color: var(--photo-fill);
}

.ledger {
  flex: 1 1 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--card-line);
  background: var(--card);
}

.ledger-inner {
  padding: 28px clamp(20px, 3vw, 40px) 12px;
  border: 1px solid var(--card-line);
}

.ledger-title {
  font-family: var(--font-label);
  font-size: var(--text-18);
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-soft);
}

.ledger .ornament {
  width: min(320px, 70%);
  margin: 14px auto 6px;
  color: var(--ledger-line);
}

.ledger-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  column-gap: 32px;
}

.ledger-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0 20px;
  border-top: 1px dotted var(--ledger-line);
}

.ledger-entry dt {
  font-family: var(--font-display);
  font-size: var(--text-34);
  line-height: 1;
  color: var(--accent);
}

.ledger-entry dd {
  font-size: var(--text-16);
  line-height: 1.55;
}

/* Services */

.services {
  border-block: 1px solid var(--rule);
  background: var(--linen);
}

.services-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding-block: var(--section-padding);
}

.services-copy {
  display: flex;
  flex: 1 1 400px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.services-copy .actions {
  margin-top: 8px;
}

/* The mockup's flex basis sizes the card inside its padding, so it shares the row the same way. */
.price-card {
  box-sizing: content-box;
  flex: 1.2 1 500px;
  min-width: 0;
  padding: 12px;
  background: var(--navy);
  color: var(--paper);
  box-shadow: var(--shadow-card);
}

.price-card-inner {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 52px) clamp(24px, 3vw, 36px);
  border: 1px solid var(--gold);
}

.price-card-kicker,
.price-card-footer {
  font-family: var(--font-label);
  font-size: var(--text-17);
  text-align: center;
  text-transform: uppercase;
}

.price-card-kicker {
  letter-spacing: 0.3em;
  line-height: 1.2;
  color: var(--gold);
}

.price-card-title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: var(--text-44);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.price-card .ornament {
  width: 60%;
  margin: 18px auto 12px;
  color: var(--gold);
}

.price-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-on-navy);
}

.price-item:last-child {
  border-bottom: 0;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-name {
  min-width: 0;
  font-family: var(--font-display);
  font-size: var(--text-25);
  line-height: 1.2;
}

.price-leader {
  flex: 1 1 24px;
  min-width: 24px;
  border-bottom: 2px dotted var(--leader-on-navy);
  transform: translateY(-6px);
}

.price-amount {
  flex: none;
  font-family: var(--font-label);
  font-size: var(--text-26);
  letter-spacing: 0.06em;
  color: var(--gold);
}

.price-note {
  font-size: var(--text-15);
  font-style: italic;
  color: var(--on-dark-muted);
}

.price-card-footer {
  margin-top: 22px;
  letter-spacing: 0.2em;
  line-height: 1.3;
  color: var(--on-dark-muted);
}

/* The wall */

.wall-inner {
  padding-block: var(--section-padding);
}

.wall-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 64px;
}

.wall-heading {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.wall-title {
  max-width: 12em;
}

.wall-text {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 32em;
  text-wrap: pretty;
}

.wall-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.wall-intro + .wall-row {
  margin-top: 52px;
}

.wall-photo {
  flex: 1 1 300px;
  min-width: 0;
  height: 440px;
  object-fit: cover;
  background-color: var(--photo-fill);
}

.wall-photo-wide {
  flex: 1.7 1 460px;
}

.wall-row-short .wall-photo {
  height: 320px;
}

.wall-photo-chair {
  object-position: 50% 70%;
}

.wall-photo-waiting {
  object-position: 50% 45%;
}

/* Overheard in the chair */

.quotes {
  border-top: 1px solid var(--rule);
}

.quotes-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: var(--section-padding);
}

.quote-feature,
.quote-feature figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.quote-feature {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.quote-feature blockquote {
  font-family: var(--font-display);
  font-size: var(--text-feature-quote);
  font-style: italic;
  line-height: 1.15;
  text-wrap: balance;
}

.quote-feature .caption {
  font-size: var(--text-18);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 24px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--rule);
  background: var(--card);
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: var(--text-24);
  line-height: 1.35;
  text-wrap: pretty;
}

/* Hours and location */

.hours {
  background: var(--navy);
  color: var(--paper);
}

.hours-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 56px;
  padding-block: var(--section-padding);
}

.hours-copy {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.hours .eyebrow {
  color: var(--gold);
}

.hours-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  font-size: var(--text-18);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--dots-on-navy);
}

.hours-row dd {
  font-variant-numeric: tabular-nums;
}

.hours-row .hours-closed {
  font-style: italic;
  color: var(--on-dark-muted);
}

.hours-address {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: var(--text-28);
  font-style: normal;
  line-height: 1.25;
}

.map {
  position: relative;
  display: block;
  flex: 1.2 1 460px;
  min-width: 0;
  min-height: 460px;
  border: 1px solid var(--gold-line);
  background: var(--paper);
}

.map-image {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  object-position: 56% 39%;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 56px 28px;
}

.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 56px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 53px;
  height: 53px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
}

.footer-mark svg {
  width: 32px;
  height: 32px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-28);
  color: var(--paper);
}

.footer-tagline {
  margin-top: 7px;
  font-family: var(--font-label);
  font-size: var(--text-15);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  font-size: var(--text-16);
  line-height: 1.6;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-heading {
  font-family: var(--font-label);
  font-size: var(--text-16);
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: inherit;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-phone {
  color: var(--paper);
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-on-ink);
  font-size: var(--text-14);
  color: var(--on-dark-faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--on-dark-faint);
}

.footer-phone:hover,
.footer-links a:hover {
  color: var(--gold);
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .nav-link {
    transition: none;
  }
}
