/* ==========================================================================
   Azotea Rooftop — reservas.html
   ========================================================================== */

.res-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--space-10) + 2rem);
  padding-bottom: var(--space-7);
  background: #07272d;
  border-bottom: 1px solid var(--color-border);
}

.res-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.res-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* stays solidly dark under the heading/lede and only fades to the page
     beige in the last stretch, so the light text never crosses into a
     lightening background */
  background: linear-gradient(180deg, rgba(7, 39, 45, 0.82) 0%, rgba(7, 39, 45, 0.92) 82%, var(--color-bg) 100%);
}

/* Sits directly on the dark photo scrim above, so it uses the light
   "onphoto" text tokens. */
.res-hero__head {
  max-width: 70ch;
  --color-fg: var(--color-fg-onphoto);
  --color-fg-soft: var(--color-fg-soft-onphoto);
  --color-fg-muted: var(--color-fg-muted-onphoto);
  --color-fg-faint: var(--color-fg-faint-onphoto);
  color: var(--color-fg);
}

.res-hero__head .eyebrow {
  color: var(--color-gold-bright);
}

.res-hero__head .eyebrow::before {
  background: var(--color-gold);
}

.res-layout {
  padding-block: var(--space-8);
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 980px) {
  .res-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.res-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.res-card + .res-card {
  margin-top: var(--space-6);
}

.res-card__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-fg-faint);
  margin-bottom: var(--space-5);
}

.res-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-bg);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---- Calendar ---- */
.res-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.res-calendar-head__label {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.res-calendar-head__nav {
  display: flex;
  gap: var(--space-2);
}

.res-calendar-head__nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-base) var(--ease-out), opacity var(--dur-base);
}

.res-calendar-head__nav button svg {
  width: 16px;
  height: 16px;
}

.res-calendar-head__nav button:hover:not(:disabled) {
  border-color: var(--color-green);
  color: var(--color-green);
}

.res-calendar-head__nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.res-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: var(--space-2);
}

.res-calendar__weekday {
  text-align: center;
  font-size: var(--fs-2xs);
  color: var(--color-fg-faint);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.res-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.res-calendar__cell {
  aspect-ratio: 1;
  min-height: 40px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-fg-soft);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.res-calendar__cell:not(:disabled):not(.res-calendar__cell--empty):hover {
  background: var(--color-surface-2);
}

.res-calendar__cell:disabled {
  color: var(--color-fg-faint);
  opacity: 0.35;
  cursor: not-allowed;
}

.res-calendar__cell.is-today {
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
}

.res-calendar__cell.is-selected {
  background: var(--color-green);
  color: var(--color-bg);
}

.res-calendar__cell--empty {
  pointer-events: none;
}

/* ---- Time slots ---- */
.res-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

@media (min-width: 480px) {
  .res-time-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.res-time-btn {
  padding: 0.65em 0.5em;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-fg-soft);
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.res-time-btn:hover:not(:disabled) {
  border-color: var(--color-green);
}

.res-time-btn.is-selected {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-bg);
}

.res-time-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.res-time-empty {
  font-size: var(--fs-sm);
  color: var(--color-fg-faint);
  padding-block: var(--space-4);
}

/* ---- Form fields ---- */
.res-field {
  margin-bottom: var(--space-5);
}

.res-field:last-child {
  margin-bottom: 0;
}

.res-field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-fg-soft);
  margin-bottom: var(--space-2);
}

.res-input,
.res-textarea {
  width: 100%;
  padding: 0.85em 1em;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-fg);
  font-size: var(--fs-sm);
  min-height: 44px;
  transition: border-color var(--dur-base) var(--ease-out);
}

.res-input:focus-visible,
.res-textarea:focus-visible {
  border-color: var(--color-green);
}

.res-input::placeholder,
.res-textarea::placeholder {
  color: var(--color-fg-faint);
}

.res-textarea {
  resize: vertical;
  min-height: 90px;
}

.res-input.has-error,
.res-stepper.has-error,
.res-chip-group.has-error {
  border-color: var(--color-error);
}

.res-error {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-error);
}

/* ---- Guests stepper ---- */
.res-stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 0.4em 0.6em;
}

.res-stepper button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-base) var(--ease-out);
}

.res-stepper button:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.res-stepper input {
  width: 3.5ch;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 700;
  background: none;
  border: none;
  color: var(--color-fg);
  font-variant-numeric: tabular-nums;
}

/* ---- Chip group (event type) ---- */
.res-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.res-chip {
  padding: 0.6em 1.1em;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-fg-soft);
  min-height: 40px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.res-chip:hover {
  border-color: var(--color-green);
}

.res-chip[aria-pressed="true"] {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-bg);
}

/* ---- Decoration toggle ---- */
.res-deco-group {
  display: flex;
  gap: var(--space-3);
}

.res-deco-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85em 1em;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.res-deco-btn[aria-pressed="true"] {
  background: rgba(7, 39, 45, 0.1);
  border-color: var(--color-green);
  color: var(--color-green);
}

.res-deco-hint {
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--color-fg-faint);
  line-height: var(--lh-normal);
}

/* ---- Summary card (sticky on desktop) ---- */
.res-summary-card {
  position: sticky;
  top: 96px;
}

.res-summary__empty {
  font-size: var(--fs-sm);
  color: var(--color-fg-faint);
}

.res-summary__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.res-summary__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.res-summary__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.res-summary__row dt {
  color: var(--color-fg-faint);
}

.res-summary__row dd {
  font-weight: 600;
  text-align: right;
}

.res-submit-wrap {
  margin-top: var(--space-6);
}

.res-disclaimer {
  margin-top: var(--space-4);
  font-size: var(--fs-2xs);
  color: var(--color-fg-faint);
  line-height: var(--lh-normal);
  text-align: center;
}
