:root {
  --paper: #f2eee8;
  --ink: #131715;
  --line: #cfc6bb;
  --rust: #70512f;
  --brass: #d2b08a;
  --display: "Arial Black", "Arial", system-ui, sans-serif;
}

.masthead, .booking { background: var(--ink); color: var(--paper); }
.top { min-height: 78px; border: 0; }
.brand img { display: block; width: 166px; height: auto; }
.brand-favicon { display: inline-flex; align-items: center; gap: 11px; color: var(--brass); text-decoration: none; }
.brand-favicon img {
  width: 82px;
  height: 70px;
  object-fit: contain;
}
.brand-favicon .brand-wordmark { display: flex; flex-direction: column; gap: 2px; margin: 0; font-family: Georgia, serif; font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .22em; }
.brand-favicon .brand-wordmark span { margin: 0; font: inherit; }
.brand-favicon .brand-wordmark strong { font: 700 31px/1 Georgia, serif; letter-spacing: .15em; }
.top nav { gap: clamp(12px, 3vw, 36px); }
.top nav a, .button { text-transform: uppercase; }
/* Header navigation: no browser underline; a subtle gold line reveals on hover. */
.top nav a:not(.button) {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 220ms ease;
}
.top nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms ease;
  pointer-events: none;
}
.top nav a:not(.button):hover,
.top nav a:not(.button):focus-visible {
  color: var(--brass);
  text-decoration: none;
}
.top nav a:not(.button):hover::after,
.top nav a:not(.button):focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .top nav a:not(.button),
  .top nav a:not(.button)::after { transition: none; }
}
.button { background: var(--brass); color: #171510; }
.button:hover { background: #e8c9a6; }
.button.outline { background: transparent; color: inherit; }
.button.outline:hover { background: var(--ink); color: white; }
.hero .button.outline:hover, .booking .button.outline:hover { background: var(--paper); color: var(--ink); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(480px, 45vw, 660px);
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #0d100f;
  color: #fff;
}
.hero-image {
  position: absolute;
  z-index: -2;
  width: min(74%, 660px);
  height: 100%;
  /* Move the complete photo into the central-right area of the banner. */
  right: clamp(0px, calc((100vw - 1100px) * .58), 370px);
  object-fit: contain;
  object-position: right center;
  /* Feather both vertical photo edges into the dark hero background. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 87%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 87%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, transparent 86%, #0d100f 100%),
    linear-gradient(90deg, #0d100f 13%, #0d100fed 30%, #0d100f78 56%, #0d100f08 87%);
}
/* Keep a clean dark-to-paper section boundary, without a grey overlay. */
.hero::before { content: none; }
.hero-content { padding-block: 70px; position: relative; z-index: 2; }
.hero .eyebrow { color: #f5dfc7; }
.hero h1, h2 {
  font: 950 clamp(2.3rem, 4.2vw, 4.4rem)/.98 var(--display);
  text-transform: uppercase;
  letter-spacing: -.05em;
}
.hero h1 { font: 950 clamp(2.5rem, 5.4vw, 5rem)/.94 var(--display); letter-spacing: -.055em; overflow-wrap: anywhere; }
.hero-description { margin: 24px 0; font-size: 1.13rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.strip { padding-block: 22px; }
.service-band, .heritage {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.service-band h2::before, .heritage .eyebrow::before {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-bottom: 18px;
  background: #a78052;
}
.services { margin: 0; gap: 14px; }
.service {
  display: flex;
  align-items: end;
  min-height: 190px;
  padding: 16px;
  border: 0;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(0deg, #15110de8, #15110d00 80%), var(--photo) center / cover #332920;
}
/* Match the header's refined gold hover treatment on service cards. */
.service span {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 220ms ease;
}
.service span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms ease;
  pointer-events: none;
}
.service:hover span,
.service:focus-visible span {
  color: var(--brass);
  text-decoration: none;
}
.service:hover span::after,
.service:focus-visible span::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .service span, .service span::after { transition: none; }
}
.service-hair { --photo: url(corte.jpg); }
.service-beard { --photo: url(barba.jpg); }
.heritage { grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 75px); }
.heritage figure { margin: 0; }
.heritage img { display: block; width: 100%; height: clamp(280px, 35vw, 450px); object-fit: cover; object-position: center 42%; }
.heritage figcaption { padding-top: 8px; font-size: .88rem; }
.heritage p { max-width: 57ch; }
.booking .eyebrow { color: #edc59a; }
.form-note { color: #ddd3c8; }

@media (max-width: 780px) {
  .hero { min-height: max(520px, 100vw); align-items: end; }
  .hero-image { top: 0; right: 0; width: 100%; height: 100%; object-fit: contain; object-position: center top; -webkit-mask-image: none; mask-image: none; }
  .hero::after { background: linear-gradient(0deg, #0d100f 1%, #0d100fcf 39%, #0d100f00 86%); }
  .hero::before { content: none; }
  .hero-content { padding-block: 200px 32px; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 4.6rem); }
  .hero-description { margin-block: 16px; }
  .service-band, .heritage { grid-template-columns: 1fr; gap: 22px; }
  .heritage figure { order: 1; }
}
@media (max-width: 380px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service { min-height: 138px; padding: 10px; font-size: .85rem; }
}

@media (max-width: 780px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }
  .book-grid > *, #pedido > * { min-inline-size: 0; }
  #pedido .booking-preference {
    display: flex;
    flex-direction: column;
    min-width: 0;
    grid-column: 1 / -1;
  }
  #pedido .booking-preference input {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  #pedido .booking-preference input::-webkit-date-and-time-value {
    min-width: 0;
    min-height: 1.25em;
    text-align: start;
  }
  .top { min-height: 64px; }
  .brand img { width: 128px; }
  .brand-favicon img { width: 65px; height: 56px; }
  .brand-favicon .brand-wordmark { font-size: 9px; }
  .brand-favicon .brand-wordmark strong { font-size: 21px; }
  .hero { min-height: max(520px, 100vw); }
  .hero-content { padding-block: clamp(124px, 41vw, 225px) 24px; }
  .hero h1 { font-size: clamp(2.15rem, 8.5vw, 4rem); margin-block: 12px; }
  .hero-description { font-size: 1rem; margin-block: 14px; }
  .hero-actions { align-items: center; column-gap: 18px; row-gap: 4px; }
  .hero .hero-history,
  .hero .hero-history:hover {
    padding-inline: 0;
    border-color: transparent;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .strip, .book-grid, .service-band, .heritage { grid-template-columns: minmax(0, 1fr); }
  .strip { gap: 12px; }
  .strip p { overflow-wrap: anywhere; }
  #pedido { grid-template-columns: minmax(0, 1fr); }
  #pedido input, #pedido select { display: block; max-width: 100%; min-height: 44px; font-size: 1rem; }
  form, form > *, input, select { min-width: 0; }
  .footer nav { flex-wrap: wrap; }
}

@media (min-width: 400px) and (max-width: 780px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.scroll-cue { display: none; }

@media (max-width: 780px) {
  .scroll-cue:not([hidden]) {
    position: fixed;
    z-index: 2;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    translate: -50% 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--brass);
    border-radius: 50%;
    background: var(--ink);
    color: var(--brass);
    -webkit-tap-highlight-color: transparent;
  }
  .scroll-cue:focus { outline: none; }
  .scroll-cue:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
  .scroll-cue::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  @media (prefers-reduced-motion: no-preference) {
    .scroll-cue:not([hidden]) { animation: scroll-cue-float 2.4s ease-in-out infinite; }
    @keyframes scroll-cue-float {
      0%, 100% { translate: -50% 0; }
      50% { translate: -50% -5px; }
    }
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .hero-content:not(:focus-within) {
    animation: hero-in 1500ms ease-in-out both;
  }

  @keyframes hero-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}


/* Native modal keeps the page visible but inert while booking is open. */
.booking-callout { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; }
.booking-callout p { margin: 0; font-size: 1.12rem; }
.booking-callout .button { border: 0; cursor: pointer; font: inherit; font-weight: 750; text-transform: uppercase; }
.booking-modal {
  box-sizing: border-box;
  position: fixed;
  width: min(92vw, 680px);
  max-width: 680px;
  max-height: min(90dvh, 780px);
  padding: 0;
  border: 1px solid #5a4c3c;
  border-radius: 22px;
  background: #131715;
  color: var(--paper);
  box-shadow: 0 30px 90px rgb(0 0 0 / 45%);
  overflow: auto;
  overscroll-behavior: contain;
}
.booking-modal::backdrop { background: rgb(0 0 0 / 76%); backdrop-filter: blur(5px); }
.booking-modal-inner { position: relative; padding: clamp(24px, 5vw, 44px); }
.booking-modal .eyebrow { color: var(--brass); }
.booking-modal h2 { margin: 14px 40px 12px 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.booking-modal #booking-modal-description { max-width: 52ch; margin: 0 0 25px; color: #ded6ca; line-height: 1.55; }
.booking-modal-close {
  position: absolute;
  right: 17px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #736552;
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}
.booking-modal-close:hover { color: var(--ink); background: var(--brass); }
.booking-modal :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.booking-modal #pedido { width: 100%; }
.booking-modal #pedido .button { border: 0; cursor: pointer; font: inherit; font-weight: 800; text-transform: uppercase; min-height: 54px; }
@media (max-width: 600px) {
  .booking-modal { width: calc(100% - 24px); max-height: calc(100dvh - 32px); border-radius: 18px; }
  .booking-modal-inner { padding: 28px 20px 24px; }
  .booking-modal #pedido { grid-template-columns: minmax(0, 1fr); }
  .booking-modal #pedido .booking-preference { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .booking-modal[open] { animation: booking-appear 250ms cubic-bezier(.2,.7,.2,1) both; }
  .booking-modal[open]::backdrop { animation: booking-backdrop 250ms ease both; }
  @keyframes booking-appear { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes booking-backdrop { from { background: rgb(0 0 0 / 0%); } to { background: rgb(0 0 0 / 76%); } }
}

/* Bespoke service picker: avoids the browser's blue native dropdown menu. */
.booking-service-field { display: grid; gap: 6px; min-width: 0; }
.booking-service-field > label { display: block; font-size: .9rem; font-weight: 650; }
.service-select { position: relative; min-width: 0; }
.service-select-trigger {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: .85rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.service-select-trigger:hover { border-color: var(--brass); }
.service-select-trigger[aria-expanded="true"] { border-color: var(--brass); box-shadow: 0 0 0 2px rgb(210 176 138 / 28%); }
.service-select-trigger[aria-invalid="true"] { border-color: #d9866d; }
.service-select-chevron { width: 9px; height: 9px; flex: 0 0 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms ease; }
.service-select-trigger[aria-expanded="true"] .service-select-chevron { transform: translateY(2px) rotate(225deg); }
.service-select-options {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  padding: 7px;
  border: 1px solid #79654e;
  border-radius: 16px;
  background: #242622;
  box-shadow: 0 16px 40px rgb(0 0 0 / 45%);
}
.service-select-options[hidden] { display: none; }
.service-select-options [role="option"] {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.service-select-options [role="option"]:hover,
.service-select-options [role="option"]:focus-visible,
.service-select-options [aria-selected="true"] { background: #51402f; color: #f5d4ac; outline: none; }
@media (prefers-reduced-motion: reduce) {
  .service-select-trigger, .service-select-chevron, .service-select-options [role="option"] { transition: none; }
}


/* Consistent, Portuguese date and 24-hour time pickers. */
.booking-picker-field { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; }
.booking-picker-field > label { font-size: .9rem; font-weight: 650; }
.booking-picker { position: relative; min-width: 0; }
.booking-picker-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; min-height: 54px; padding: .85rem 1.1rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); text-align: left;
  font: inherit; font-size: .93rem; font-weight: 650; cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.booking-picker-trigger:hover { border-color: var(--brass); }
.booking-picker-trigger[aria-expanded="true"] { border-color: var(--brass); box-shadow: 0 0 0 2px rgb(210 176 138 / 28%); }
.booking-picker-icon { flex-shrink: 0; font-size: 1.3rem; font-weight: 400; }
.booking-picker-panel {
  position: absolute; z-index: 12; top: calc(100% + 8px); left: 0;
  width: min(330px, calc(100vw - 70px)); box-sizing: border-box;
  padding: 14px; border: 1px solid #79654e; border-radius: 16px;
  background: #242622; color: var(--paper); box-shadow: 0 16px 40px rgb(0 0 0 / 45%);
}
.booking-picker-panel[hidden] { display: none; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.calendar-heading strong { font-size: .95rem; text-transform: capitalize; }
.calendar-heading button {
  width: 34px; height: 34px; border: 1px solid #655640; border-radius: 50%;
  background: transparent; color: var(--brass); font-size: 24px; cursor: pointer;
}
.calendar-heading button:hover:not(:disabled) { background: #51402f; }
.calendar-heading button:disabled { opacity: .3; cursor: not-allowed; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.calendar-weekdays { margin-bottom: 5px; font-size: .7rem; color: var(--brass); font-weight: 700; }
.calendar-weekdays span { padding: 7px 0; }
.calendar-days button {
  aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 9px;
  background: transparent; color: var(--paper); font: inherit; font-size: .85rem; cursor: pointer;
}
.calendar-days button:hover:not(:disabled), .calendar-days button:focus-visible { background: #51402f; color: #f5d4ac; }
.calendar-days button[aria-pressed="true"] { background: var(--brass); color: var(--ink); font-weight: 800; }
.calendar-days button.is-today:not([aria-pressed="true"]) { outline: 1px solid var(--brass); outline-offset: -2px; }
.calendar-days button:disabled { opacity: .27; cursor: not-allowed; }
.time-panel { left: auto; right: 0; width: min(275px, calc(100vw - 70px)); }
.time-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 215px; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; }
.time-options button {
  min-height: 40px; border: 1px solid #504638; border-radius: 9px;
  background: transparent; color: var(--paper); font: inherit; font-size: .88rem; cursor: pointer;
}
.time-options button:hover, .time-options button:focus-visible { background: #51402f; color: #f5d4ac; }
.time-options button[aria-pressed="true"] { background: var(--brass); color: var(--ink); font-weight: 800; }
.picker-clear {
  display: block; margin: 12px 0 0 auto; padding: 6px 2px; border: 0;
  background: transparent; color: var(--brass); font: inherit; font-size: .82rem; cursor: pointer;
}
.picker-clear:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .booking-picker-panel { width: min(330px, calc(100vw - 64px)); }
  .time-panel { left: 0; right: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .booking-picker-panel:not([hidden]) { animation: picker-reveal 160ms ease-out both; }
  @keyframes picker-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { .booking-picker-trigger { transition: none; } }


/* Mobile header: keep only the identity and the booking CTA. */
@media (max-width: 780px) {
  .top { flex-wrap: nowrap; gap: 10px; }
  .top nav { flex: 0 0 auto; gap: 0; }
  .top nav a:not(.button) { display: none; }
  .top nav .button { white-space: nowrap; padding: .75rem 1rem; font-size: .78rem; }
  .brand-favicon { flex: 0 1 auto; min-width: 0; gap: 5px; }
  .brand-favicon img { width: clamp(42px, 13vw, 60px); height: 54px; }
  .brand-favicon .brand-wordmark { font-size: clamp(8px, 2.2vw, 10px); }
  .brand-favicon .brand-wordmark strong { font-size: clamp(19px, 5.2vw, 24px); }
  /* A hidden native select must not be revived by the old form layout rules. */
  #pedido select[hidden], #pedido input[type="hidden"] { display: none !important; }
}
/* Keep native scroll available while removing the intrusive grey scrollbar. */
.booking-modal { scrollbar-width: none; -ms-overflow-style: none; }
.booking-modal::-webkit-scrollbar { display: none; width: 0; height: 0; }
.booking-picker-panel.open-up { top: auto; bottom: calc(100% + 8px); }

/* Popover top layer: independent of the dialog's scroll/overflow. */
.booking-modal .service-select-options[popover],
.booking-modal .booking-picker-panel[popover] {
  position: fixed;
  inset: auto;
  margin: 0;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  z-index: 2147483647;
}
.booking-modal .service-select-options[popover] { width: auto; }
.booking-modal .booking-picker-panel[popover] { width: auto; }
.booking-modal .service-select-options[popover]:not(:popover-open),
.booking-modal .booking-picker-panel[popover]:not(:popover-open) { display: none; }
.booking-modal .booking-picker-panel[popover].open-up { bottom: auto; }
@media (max-width: 600px) {
  .booking-modal .booking-picker-panel[popover] { width: auto; }
}

/* Discreet location below the booking modal brand. */
.booking-modal-location { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 10px; }
.booking-modal-location .eyebrow { margin: 0; }
.booking-modal-address { color: #c4bcb2; font-size: .76rem; line-height: 1.45; letter-spacing: .01em; }

/* Subtle corner refinement for imagery, preserving the editorial layout. */
.service { border-radius: 6px; overflow: hidden; }
.heritage img { border-radius: 8px; }

/* Gentle image-only hover zoom; labels stay crisp and stationary. */
@media (hover: hover) and (pointer: fine) {
  .service { position: relative; isolation: isolate; background: #332920; }
  .service::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, #15110de8, #15110d00 80%), var(--photo) center / cover #332920;
    transition: transform 400ms ease;
    transform: scale(1);
  }
  .service:hover::before { transform: scale(1.03); }
  .heritage img { transition: transform 400ms ease; }
  .heritage figure { overflow: hidden; border-radius: 8px; }
  .heritage figure:hover img { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .service::before, .heritage img { transition: none !important; }
}

/* Make the interior photo itself an Instagram link. */
.heritage-photo-link { display: block; overflow: hidden; border-radius: 8px; }
.heritage-photo-link img { display: block; }
@media (hover: hover) and (pointer: fine) {
  .heritage-photo-link:hover img { transform: scale(1.02); }
}
/* Keep keyboard focus visible, in the site's brass palette instead of red. */
.footer nav a:focus-visible,
.heritage-photo-link:focus-visible,
.heritage figcaption a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 3px;
}
