/* ============================================================
   RODEZNO BARBERSHOP — style.css
   Palette drawn from the logo: near-black + antique gold
   Display: Playfair Display (luxury serif)
   Body:    Montserrat (light geometric sans)
   ============================================================ */

:root {
  --ink:        #0b0a08;   /* page background, near-black       */
  --ink-soft:   #14120e;   /* card / panel background           */
  --gold:       #c9a13b;   /* primary brass gold                */
  --gold-bright:#e3c363;   /* hover / highlight gold            */
  --ivory:      #f1ead9;   /* main text                         */
  --taupe:      #9b9078;   /* secondary text                    */
  --hairline:   rgba(201, 161, 59, 0.28);

  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body:    "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1120px;
  --nav-height: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.container {
  width: min(var(--max-width), 92%);
  margin-inline: auto;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.03em;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Razor divider — the recurring signature: hairline + diamond */
.razor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 1.4rem 0;
}
.razor::before,
.razor::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline));
}
.razor::after {
  background: linear-gradient(90deg, var(--hairline), transparent);
}
.razor span {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.razor--left { justify-content: flex-start; }
.razor--left::before { display: none; }
.razor--left::after { max-width: 180px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(11, 10, 8, 0.85), rgba(11, 10, 8, 0));
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(11, 10, 8, 0.94);
  border-bottom-color: var(--hairline);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
}
.brand img {
  height: 46px;
  width: 46px;
  object-fit: contain;
}
.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  color: var(--ivory);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--gold);
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1.05rem 3rem 1rem 3.3rem; /* extra left pad balances letterspacing */
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 34px rgba(201, 161, 59, 0.35);
}
.btn--solid {
  background: var(--gold);
  color: var(--ink);
}
.btn--solid:hover {
  background: var(--gold-bright);
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero video,
.hero .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero .hero-fallback {
  background: radial-gradient(ellipse at center, #1a1610 0%, var(--ink) 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    rgba(11, 10, 8, 0.55),
    rgba(11, 10, 8, 0.72) 60%,
    var(--ink) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + 2rem) 1rem 4rem;
  max-width: 760px;
}

.hero-content img.hero-mark {
  height: 190px;
  width: 190px;
  object-fit: contain;
  margin: 0 auto 1.8rem;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
}

.hero-content h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: 0.14em;
  line-height: 1.08;
}
.hero-content .sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.62em;
  text-indent: 0.62em; /* recenters letterspaced text */
  color: var(--gold);
  margin-top: 0.4rem;
  text-transform: uppercase;
}
.hero-content p.lede {
  color: var(--taupe);
  margin: 1.6rem auto 2.4rem;
  max-width: 480px;
  font-size: 1rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 6.5rem 0;
}
.section--tight { padding: 4.5rem 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 0.6rem;
}
.section-head p {
  color: var(--taupe);
  margin-top: 1rem;
}

/* Craft cards on the home page */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.craft-card {
  background: var(--ink-soft);
  border: 1px solid var(--hairline);
  padding: 2.6rem 2.2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.craft-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.craft-card h3 {
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.craft-card p {
  color: var(--taupe);
  font-size: 0.95rem;
  margin-top: 0.9rem;
}

/* Closing call-to-action band */
.cta-band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  padding: 5rem 1rem;
  background:
    radial-gradient(ellipse at top, rgba(201, 161, 59, 0.06), transparent 60%),
    var(--ink);
}
.cta-band h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 2rem;
}

/* ---------- Contact page ---------- */

.page-header {
  padding: calc(var(--nav-height) + 5rem) 0 3.5rem;
  border-bottom: 1px solid var(--hairline);
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-top: 0.6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

.contact-block + .contact-block { margin-top: 2.6rem; }
.contact-block h3 {
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.contact-block p,
.contact-block a { font-size: 1.05rem; color: var(--ivory); }
.contact-block a:hover { color: var(--gold-bright); }
.contact-block .muted { color: var(--taupe); font-size: 0.95rem; }

.socials {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}
.socials a {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
}

.hours {
  background: var(--ink-soft);
  border: 1px solid var(--hairline);
  padding: 2.6rem 2.4rem;
}
.hours h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hours table { width: 100%; border-collapse: collapse; }
.hours td {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(201, 161, 59, 0.12);
  font-size: 0.98rem;
}
.hours td:last-child { text-align: right; color: var(--taupe); }
.hours tr.today td { color: var(--gold-bright); }
.hours tr:last-child td { border-bottom: none; }

/* ---------- Bookings page ---------- */

.barber-grid {
  display: grid;
  /* Cards cap at 460px; grid centers itself, so one card sits
     centered instead of stretching across the page */
  grid-template-columns: repeat(auto-fit, minmax(300px, 460px));
  justify-content: center;
  gap: 1.5rem;
}
.barber-card {
  background: var(--ink-soft);
  border: 1px solid var(--hairline);
  padding: 3rem 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;      /* center the content — reads better as a solo card */
  text-align: center;
  gap: 0.4rem;
}
.barber-card .eyebrow { font-size: 0.7rem; }
.barber-card h3 {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}
.barber-card p {
  color: var(--taupe);
  font-size: 0.95rem;
  margin: 0.6rem 0 1.4rem;
}
.booksy-slot {
  width: auto;
  display: flex;
  justify-content: center;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 0 2.5rem;
  color: var(--taupe);
  font-size: 0.9rem;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer .brand span { font-size: 0.85rem; }
.footer nav { display: flex; gap: 1.8rem; }
.footer nav a {
  color: var(--taupe);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.footer nav a:hover { color: var(--gold-bright); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .craft-card, .btn, .nav { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .craft-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 10, 8, 0.98);
    border-bottom: 1px solid var(--hairline);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 300px; }
  .nav-links li { text-align: center; }
  .nav-links a {
    display: block;
    padding: 1.1rem 0;
    border-bottom: none;
  }
}