/* ==========================================================================
   Ridgeway Barber Co. — tokens
   ========================================================================== */

:root {
  --ink: #211A15;
  --chalk: #E7E2D6;
  --chalk-dim: #DAD3C3;
  --oxblood: #6E2A22;
  --oxblood-dark: #551F19;
  --brass: #AD8A3C;
  --brass-light: #C9AA5F;
  --green: #333F35;
  --green-dark: #262F28;
  --grey: #7C7367;
  --gingerbread:#5E2C04;



  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 640px;
  --edge: 1.25rem;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 4.5rem; /* room for sticky call bar */
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

/* Visible focus states everywhere, keyboard-first */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--chalk);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 100;
  border: 2px solid var(--oxblood);
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Shared: brass rule (signature ribbon motif)
   ========================================================================== */

.brass-rule {
  height: 7px;
  background: repeating-linear-gradient(
    115deg,
    var(--brass) 0 14px,
    var(--oxblood) 14px 28px,
    #2c372e 28px 42px
  );
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--chalk);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--edge) 2.25rem;
  text-align: center;
}

.est {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.shop-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--oxblood);
  text-wrap: balance;
}

.tagline {
  margin: 0.9rem auto 0;
  max-width: 30ch;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

/* Flip sign — the signature element */

.flip-sign {
  margin: 1.5rem auto 0;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 1.25rem 1.1rem;
  border: 2px solid var(--brass);
  border-radius: 2px;
  background: var(--oxblood);
  color: var(--chalk);
  position: relative;
  box-shadow: 0 3px 0 var(--brass);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.flip-sign::before {
  /* stitched-leather edge detail */
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(231, 226, 214, 0.35);
  pointer-events: none;
}

.flip-sign.is-closed {
  background: var(--green);
  box-shadow: 0 3px 0 var(--grey);
}

.flip-sign-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7FBF6A;
  margin-bottom: 0.35rem;
  box-shadow: 0 0 0 3px rgba(127, 191, 106, 0.25);
}

.flip-sign.is-closed .flip-sign-dot {
  background: var(--grey);
  box-shadow: 0 0 0 3px rgba(124, 115, 103, 0.25);
}

.flip-sign-status {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.flip-sign-detail {
  font-size: 0.9rem;
  color: var(--chalk-dim);
}

/* Call button */

.btn-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 1.5rem auto 0;
  max-width: 22rem;
  padding: 1rem 1.5rem;
  background: var(--ink);
  color: var(--chalk);
  border: none;
  border-radius: 2px;
  font-family: var(--font-display);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-call:hover {
  background: var(--oxblood-dark);
}

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

.btn-call-label {
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-call-phone {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brass-light);
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */

.section {
  padding: 2.25rem var(--edge) 2.5rem;
}

.section > h2 {
  max-width: var(--max-width);
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Hours
   ========================================================================== */

.section-hours {
  background: var(--green);
  color: var(--chalk);
}

.section-hours > h2 { color: var(--chalk); }

.hours-list {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(231, 226, 214, 0.15);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(231, 226, 214, 0.15);
  font-size: 1rem;
}

.hours-list li.today {
  background: var(--oxblood);
  margin: 0 -0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 2px;
  border-bottom-color: transparent;
}

.hours-list .day {
  font-weight: 600;
}

.hours-list li.today .day::after {
  content: "— today";
  font-weight: 500;
  text-transform: lowercase;
  color: var(--brass-light);
  margin-left: 0.5em;
  font-size: 0.85em;
}

.hours-list .time {
  font-variant-numeric: tabular-nums;
  color: var(--chalk-dim);
}

.hours-list li.today .time {
  color: var(--chalk);
}

.hours-list .time.closed {
  color: #97343c;
  text-transform: uppercase;
  font-size: 0.95em;
  letter-spacing: 0.085em;
  font-weight: 600;
}

/* ==========================================================================
   Services — chalkboard ledger
   ========================================================================== */

.services-list {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-list li {
  padding: 0.9rem 0;
  border-bottom: 1px dotted var(--grey);
}

.services-list li:first-child { padding-top: 0; }
.services-list li:last-child { border-bottom: none; }

.service-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.service-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
}

.service-leader {
  flex: 1;
  border-bottom: 2px dotted var(--brass);
  margin-bottom: 0.3rem;
}

.service-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--oxblood);
  white-space: nowrap;
}

.service-desc {
  margin-top: 0.3rem;
  font-size: 1.30rem;
  color: var(--black);
  max-width: 46ch;
}

.services-note {
  max-width: var(--max-width);
  margin: 1.25rem auto 0;
  font-size: 2.00rem;
  color: #6e2a22;
  text-align: center;
  font-weight: 500;
}

/* ==========================================================================
   Location
   ========================================================================== */

.section-location {
  max-width: var(--max-width);
  margin: 0 auto;
}

.address {
  font-size: 1.50rem;
  font-weight: 500;
}

.btn-directions {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.25rem;
  background: transparent;
  border: 2px solid var(--oxblood);
  color: var(--oxblood);
  font-weight: 700;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-directions:hover {
  background: var(--oxblood);
  color: var(--chalk);
}

.lot-diagram {
  margin-top: 1.75rem;
  border: 1px solid var(--grey);
  display: grid;
  grid-template-rows: auto 1fr;
}

.lot-street {
  background: var(--ink);
  color: var(--chalk-dim);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem;
}

.lot-building {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chalk-dim);
  border-bottom: 3px dashed var(--brass);
  padding: 1.5rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  color: var(--ink);
}

.lot-area {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 10px,
      rgba(124, 115, 103, 0.12) 10px 20px
    ),
    var(--chalk);
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.lot-note {
  margin-top: 1rem;
  font-size: 1.10rem;
  color: var(--black);
  font-weight: 500;
  text-align: center;
}

/* ==========================================================================
   Barbers
   ========================================================================== */

.barbers-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.barber-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--chalk-dim);
  border-left: 4px solid var(--brass);
}

.barber-card.is-owner {
  border-left-color: var(--oxblood);
}

.barber-avatar {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.barber-card.is-owner .barber-avatar {
  background: var(--oxblood);
}

.barber-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.barber-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chalk);
  background: var(--oxblood);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}

.barber-specialty {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.barber-days {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gingerbread);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--chalk-dim);
  padding: 2rem var(--edge) 2.25rem;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p { margin: 0.35rem 0; }

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--chalk);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  margin-top: 0.75rem !important;
  color: var(--grey);
  font-size: 0.95rem;
}

/* ==========================================================================
   Sticky call bar (mobile)
   ========================================================================== */

.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  border-top: 3px solid var(--brass);
}

.sticky-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--oxblood);
  color: var(--chalk);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.sticky-call-btn:hover {
  background: var(--oxblood-dark);
}

.sticky-call-icon {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--chalk);
  border-radius: 50%;
  flex: none;
}

@media (min-width: 900px) {
  .sticky-call { display: none; }
  body { padding-bottom: 0; }
}

/* ==========================================================================
   Larger screens
   ========================================================================== */

@media (min-width: 640px) {
  .hero-inner { padding: 3rem var(--edge) 3rem; }

  .services-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-direction: column;
  }

  .barbers-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .barber-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 260px;
  }
}

@media (min-width: 900px) {
  .shop-name { font-size: 4.5rem; }

  .lot-diagram {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
  }
  .lot-street { grid-column: 1 / -1; }
}
