/* Tenant public site — mobile-first */
:root {
  --tp-primary: #2563eb;
  --tp-primary-hover: #1d4ed8;
  --tp-secondary: #7c3aed;
  --tp-bg: #f8fafc;
  --tp-surface: #ffffff;
  --tp-text: #0f172a;
  --tp-text-muted: #64748b;
  --tp-border: rgba(15, 23, 42, 0.1);
  --tp-hero-overlay: rgba(15, 23, 42, 0.55);
  --tp-radius: 12px;
  --tp-font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --tp-font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --tp-header-h: 56px;
  --tp-cta-sticky-h: 56px;
  --tp-container: min(1100px, 100% - 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body.tp-body {
  margin: 0;
  font-family: var(--tp-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tp-text);
  background: var(--tp-bg);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.tp-body:not(.tp-body--booking) {
  padding-bottom: calc(var(--tp-cta-sticky-h) + env(safe-area-inset-bottom, 0));
}

@media (min-width: 768px) {
  body.tp-body:not(.tp-body--booking) {
    padding-bottom: 0;
  }
}

.tp-container {
  width: var(--tp-container);
  margin-inline: auto;
}

/* Header */
.tp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tp-surface);
  border-bottom: 1px solid var(--tp-border);
  min-height: var(--tp-header-h);
}

.tp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  max-width: 1100px;
  margin-inline: auto;
}

.tp-header__brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.5rem 0.25rem 0;
  text-decoration: none;
}

.tp-header__brand-text {
  font-family: var(--tp-font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--tp-text);
  text-decoration: none;
}

.tp-header__logo {
  max-height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.tp-header--has-logo {
  --tp-header-h: 64px;
}

@media (min-width: 768px) {
  .tp-header__logo {
    max-height: 56px;
    max-width: 220px;
  }

  .tp-header--has-logo {
    --tp-header-h: 72px;
  }
}

.tp-header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.tp-header__toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--tp-text);
  transition: transform 0.2s;
}

.tp-header__nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--tp-surface);
  border-bottom: 1px solid var(--tp-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tp-header__nav.is-open {
  display: flex;
}

.tp-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--tp-text);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
}

.tp-header__cta {
  margin-top: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .tp-header__toggle {
    display: none;
  }

  .tp-header__nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: none;
    box-shadow: none;
    gap: 0.5rem;
  }

  .tp-nav-link {
    padding: 0.5rem 0.75rem;
    min-height: auto;
  }

  .tp-header__cta {
    margin-top: 0;
    margin-left: 0.5rem;
  }
}

/* Buttons */
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--tp-radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.tp-btn--primary {
  background: var(--tp-primary);
  color: #fff;
}

.tp-btn--primary:hover {
  background: var(--tp-primary-hover);
}

.tp-btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.05rem;
}

/* Hero */
.tp-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
}

.tp-hero__media {
  position: absolute;
  inset: 0;
}

.tp-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--tp-hero-overlay);
}

.tp-hero__content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1rem 3rem;
  width: 100%;
}

.tp-hero__title {
  font-family: var(--tp-font-heading);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tp-hero__subtitle {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
  font-size: 1.05rem;
}

/* Sections */
.tp-section {
  padding: 3rem 1rem;
}

.tp-section__title {
  font-family: var(--tp-font-heading);
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 2rem;
}

.tp-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .tp-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tp-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tp-service-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  padding: 1.25rem;
  text-align: center;
}

.tp-service-card__photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: calc(var(--tp-radius) - 2px);
  margin-bottom: 1rem;
  display: block;
}

.tp-service-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tp-primary) 15%, transparent);
}

.tp-service-card__icon--cut::after,
.tp-service-card__icon--combo::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 12px auto;
  background: var(--tp-primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 21v-4l9-9 4 4-9 9H3zm14-11l-3-3 2-2 5 5-2 2-2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.tp-service-card__name {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.tp-service-card__meta {
  margin: 0;
  color: var(--tp-text-muted);
  font-size: 0.9rem;
}

.tp-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--tp-text-muted);
}

/* Gallery */
.tp-section--gallery {
  background: var(--tp-secondary);
  color: #fff;
}

.tp-section--gallery .tp-section__title {
  color: #fff;
}

.tp-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .tp-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

.tp-gallery__item {
  display: block;
  overflow: hidden;
  border-radius: var(--tp-radius);
  aspect-ratio: 1;
}

.tp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tp-gallery__item:hover img {
  transform: scale(1.05);
}

/* Contact */
.tp-contact {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tp-contact--with-map {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }
}

.tp-contact--empty {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--tp-surface);
  border-radius: var(--tp-radius);
  border: 1px solid var(--tp-border);
}

.tp-contact__empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.tp-contact__empty-text {
  color: var(--tp-text-muted);
  margin: 0 0 1.25rem;
}

.tp-contact__map-frame {
  border-radius: var(--tp-radius);
  overflow: hidden;
  border: 1px solid var(--tp-border);
  min-height: 280px;
  background: var(--tp-surface);
}

.tp-contact__map-frame iframe {
  display: block;
  width: 100%;
  min-height: 280px;
}

.tp-contact__maps-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--tp-primary);
  font-weight: 600;
  text-decoration: none;
}

.tp-contact__maps-link:hover {
  text-decoration: underline;
}

.tp-contact__row {
  margin: 0 0 1rem;
}

.tp-contact__row a {
  color: var(--tp-primary);
  font-weight: 600;
  text-decoration: none;
}

.tp-contact__row a:hover {
  text-decoration: underline;
}

.tp-contact__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tp-text-muted);
  margin-bottom: 0.2rem;
}

.tp-contact__note {
  margin: 0 0 1rem;
  color: var(--tp-text-muted);
  font-size: 0.9375rem;
}

/* Redes sociais */
.tp-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tp-social__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--tp-border);
  background: var(--tp-surface);
  color: var(--tp-primary);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.tp-social__btn:hover {
  border-color: var(--tp-primary);
  background: color-mix(in srgb, var(--tp-primary) 12%, transparent);
}

.tp-social__btn svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.tp-social__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.tp-footer {
  padding: 1.5rem 1rem;
  background: var(--tp-surface);
  border-top: 1px solid var(--tp-border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--tp-text-muted);
}

.tp-footer a {
  color: var(--tp-primary);
}

/* CTA sticky mobile */
.tp-cta-sticky {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  min-height: var(--tp-cta-sticky-h);
  background: var(--tp-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .tp-cta-sticky {
    display: none;
  }
}

/* WhatsApp */
.tp-whatsapp {
  position: fixed;
  bottom: calc(var(--tp-cta-sticky-h) + 1rem);
  right: 1rem;
  z-index: 85;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366 url("https://cdn.positus.global/production/resources/robbu/whatsapp-button/whatsapp-icon.svg") center/28px no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .tp-whatsapp {
    bottom: 1.5rem;
  }
}

body.tp-body--booking .tp-whatsapp {
  bottom: 1.5rem;
}

.tp-whatsapp__tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0.5rem;
  padding: 0.35rem 0.6rem;
  background: #fff;
  color: #333;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tp-whatsapp:hover .tp-whatsapp__tooltip {
  opacity: 1;
}
