/* ============================================================
   JOÃO ANGEIRAS BARBEARIA — CSS Profissional & Elegante
   Fonte: Cormorant Garamond (display) + Outfit (body)
   Paleta: Preto profundo, branco puro, dourado/bronze
   ============================================================ */

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --black:      #0c0c0c;
  --black-2:    #141414;
  --black-3:    #1c1c1c;
  --black-4:    #252525;
  --white:      #f5f2ee;
  --white-dim:  #b0a99e;
  --gold:       #c9a96e;
  --gold-2:     #dfc28a;
  --gold-glow:  rgba(201,169,110,0.12);

  --success:    #4caf50;
  --error:      #e53935;
  --warning:    #f9a825;
  --info:       #1e88e5;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Outfit', system-ui, sans-serif;

  --nav-h:      68px;
  --r-sm:       4px;
  --r-md:       10px;
  --r-lg:       18px;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: 0.02em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-sans); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  border-radius: var(--r-sm);
  padding: 12px 26px;
  transition: all 0.25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(201,169,110,0.5);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.4);
}

.btn-service {
  background: transparent;
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--gold);
  width: 100%;
  justify-content: space-between;
  padding: 13px 18px;
  font-size: 0.8rem;
  border-radius: var(--r-sm);
  margin-top: 20px;
  transition: all 0.25s var(--ease-out);
}
.btn-service:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  transform: none;
  padding-right: 14px;
}

.btn-lg { padding: 15px 34px; font-size: 0.875rem; }

.btn-block { width: 100%; }

.btn.loading { pointer-events: none; opacity: 0.65; }
.btn.loading::after {
  content: '';
  position: absolute; inset: 0;
  background: inherit;
  display: flex; align-items: center; justify-content: center;
}

/* ── SECTION COMMON ─────────────────────────────────────── */
section { padding: 100px 0; }

.section-header {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  position: relative;
}

/* ── NAVBAR ──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(12,12,12,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-main { color: var(--white); }
.logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

/* Hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1100;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/PHOTO-2025-12-29-15-51-33.jpg') center/cover no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(12,12,12,0.88) 0%,
    rgba(12,12,12,0.6) 50%,
    rgba(12,12,12,0.92) 100%
  );
}

.hero-body {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 24px 60px;
  animation: fadeUp 1.1s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  border: 1px solid rgba(201,169,110,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(201,169,110,0.06);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-title em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.hero-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--white-dim);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--white-dim);
  padding: 0 20px;
}
.badge i { color: var(--gold); font-size: 0.85rem; }
.badge-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.15);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}
.hero-scroll-hint span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  60%  { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── SERVIÇOS ────────────────────────────────────────────── */
#servicos { background: var(--black); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Animate-in */
.service-card,
.gallery-item,
.contact-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.service-card.visible,
.gallery-item.visible,
.contact-item.visible { opacity: 1; transform: none; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }

.service-card {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, opacity 0.6s var(--ease-out);
}
.service-card:hover {
  border-color: rgba(201,169,110,0.25);
  transform: translateY(-6px);
}

.service-card--featured {
  background: linear-gradient(145deg, var(--black-3), var(--black-4));
  border-color: rgba(201,169,110,0.2);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 100px;
}

.service-number {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: rgba(201,169,110,0.35);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.service-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 20px;
  width: 52px;
  height: 52px;
  background: var(--gold-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,169,110,0.15);
}

.service-info { flex: 1; }
.service-info h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.service-info p {
  font-size: 0.875rem;
  color: var(--white-dim);
  line-height: 1.6;
}

.service-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.service-price {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.service-price span {
  font-size: 1.2rem;
  color: var(--gold);
  margin-left: 2px;
}

.service-time {
  font-size: 0.78rem;
  color: var(--white-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}
.service-time i { color: var(--gold); }

/* ── GALERIA ─────────────────────────────────────────────── */
#galeria { background: var(--black-2); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 12px;
}

.gallery-item {
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item--large {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── CONTACTO ────────────────────────────────────────────── */
#contato { background: var(--black); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.contact-item:hover {
  background: var(--black-2);
  border-color: rgba(201,169,110,0.12);
}

.contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--gold-glow);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  margin-top: 2px;
}

.contact-item h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.5;
}
.contact-item p.text-muted { font-size: 0.82rem; color: rgba(176,169,158,0.55); }
.contact-item a { transition: color 0.2s; }
.contact-item a:hover { color: var(--gold); }

.social-row {
  display: flex;
  gap: 10px;
  padding: 14px 20px 6px;
}
.social-btn {
  width: 42px;
  height: 42px;
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  font-size: 1rem;
  transition: all 0.25s;
}
.social-btn:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.map-wrapper {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
  display: block;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--black-2);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 28px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-logo span { color: var(--gold); }
.footer-meta { text-align: right; }
.footer-meta p { font-size: 0.8rem; color: var(--white-dim); line-height: 1.8; }
.footer-meta a { color: var(--gold); transition: color 0.2s; }
.footer-meta a:hover { color: var(--gold-2); }

/* ── MODAL ───────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,169,110,0.08);
  animation: panelIn 0.4s var(--ease-out);
}
.modal-panel--sm { max-width: 440px; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 32px 0;
  position: sticky;
  top: 0;
  background: var(--black-2);
  z-index: 2;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
}

.modal-close {
  background: none;
  border: none;
  color: var(--white-dim);
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  margin-top: 2px;
  flex-shrink: 0;
}
.modal-close:hover { color: var(--white); background: rgba(255,255,255,0.07); }

.modal-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── FORMS ───────────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  position: relative;
  margin-bottom: 16px;
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 8px;
}
.form-group label .required { color: var(--gold); margin-left: 2px; }

.form-group input,
.form-group select {
  width: 100%;
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 38px 12px 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}
.form-group input::placeholder { color: rgba(176,169,158,0.4); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--black-3); }

.form-group.valid input,
.form-group.valid select { border-color: var(--success); }
.form-group.invalid input,
.form-group.invalid select { border-color: var(--error); }

.form-group .validation-icon {
  position: absolute;
  right: 13px;
  top: 39px;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.form-group.valid .validation-icon,
.form-group.invalid .validation-icon { opacity: 1; }
.form-group.valid .validation-icon { color: var(--success); }
.form-group.invalid .validation-icon { color: var(--error); }

.error-message {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 5px;
  padding-left: 2px;
}

/* ── TIME SLOTS ─────────────────────────────────────────── */
.slots-loading {
  font-size: 0.85rem;
  color: var(--white-dim);
  padding: 10px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.slots-loading i { color: var(--gold); }

.slots-empty {
  font-size: 0.85rem;
  color: var(--gold);
  padding: 10px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-slots-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px 0;
}

.time-slot {
  padding: 8px 14px;
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.time-slot:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}
.time-slot.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 600;
}
.time-slot.busy {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Skeleton */
.time-slots-skeleton { display: flex; flex-wrap: wrap; gap: 8px; }
.time-slot-skeleton {
  width: 70px;
  height: 36px;
  border-radius: var(--r-sm);
}
.skeleton {
  background: linear-gradient(90deg, var(--black-3) 25%, var(--black-4) 50%, var(--black-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Remember checkbox */
.remember-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--white-dim);
  margin-bottom: 20px;
  user-select: none;
}
.remember-label input[type="checkbox"] { display: none; }
.remember-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid rgba(201,169,110,0.4);
  border-radius: 3px;
  background: var(--black-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.remember-label input:checked + .remember-check {
  background: var(--gold);
  border-color: var(--gold);
}
.remember-label input:checked + .remember-check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 1.5px solid var(--black);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Admin hint */
.admin-hint {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(201,169,110,0.05);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  color: var(--white-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-hint i { color: var(--gold); flex-shrink: 0; }

/* ── NOTIFICATIONS ───────────────────────────────────────── */
.notification-container {
  position: fixed;
  top: 24px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.notification {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  pointer-events: all;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: notifIn 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}
@keyframes notifIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}
.notification.closing {
  animation: notifOut 0.35s var(--ease-out) forwards;
}
@keyframes notifOut {
  to { opacity: 0; transform: translateX(24px); height: 0; padding: 0; margin: 0; }
}

.notification.success { border-left: 3px solid var(--success); }
.notification.error   { border-left: 3px solid var(--error); }
.notification.warning { border-left: 3px solid var(--warning); }
.notification.info    { border-left: 3px solid var(--gold); }

.notification-icon { font-size: 1.1rem; margin-top: 2px; }
.notification.success .notification-icon { color: var(--success); }
.notification.error   .notification-icon { color: var(--error); }
.notification.warning .notification-icon { color: var(--warning); }
.notification.info    .notification-icon { color: var(--gold); }

.notification-content { flex: 1; min-width: 0; }
.notification-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--white);
}
.notification-message { font-size: 0.85rem; color: var(--white-dim); line-height: 1.5; }
.notification-time {
  font-size: 0.72rem;
  color: rgba(176,169,158,0.45);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.notification-close {
  background: none;
  border: none;
  color: var(--white-dim);
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
  margin-top: -2px;
}
.notification-close:hover { color: var(--white); }

.notification-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--gold);
  width: 100%;
  animation: progressBar linear forwards;
  transform-origin: left;
}
@keyframes progressBar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Booking details in notification */
.notification-booking .booking-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin: 10px 0;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.06);
}
.booking-detail-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--white-dim);
}
.booking-detail-item i { color: var(--gold); width: 14px; }

.booking-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.booking-actions .btn-whatsapp,
.booking-actions .btn-calendar {
  padding: 8px 14px;
  font-size: 0.75rem;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.booking-actions .btn-whatsapp { background: #25D366; color: white; }
.booking-actions .btn-whatsapp:hover { background: #20BA5A; }
.booking-actions .btn-calendar {
  background: transparent;
  border: 1px solid rgba(201,169,110,0.4);
  color: var(--gold);
}
.booking-actions .btn-calendar:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

/* ── ACCESSIBILITY ───────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── RESPONSIVE TABLET ───────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; }
  .service-card--featured .service-info { flex: 1; }
  .service-card--featured .service-meta { flex-direction: column; align-items: flex-end; gap: 6px; }
  .service-card--featured .btn-service { width: auto; min-width: 140px; }

  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .map-wrapper { min-height: 320px; }
  .map-wrapper iframe { min-height: 320px; }
}

/* ── RESPONSIVE MOBILE ───────────────────────────────────── */
@media (max-width: 768px) {
  /* 1. Garante que o botão hambúrguer aparece no telemóvel */
  .mobile-menu-btn {
    display: flex !important; 
  }

  /* Navbar */
  .mobile-menu-btn { display: flex; }

.nav-links {
    position: fixed;
    top: var(--nav-h);
    right: -100%; /* Escondido fora do ecrã à direita */
    width: 100%;
    height: calc(100vh - var(--nav-h));
    background: var(--black-2);
    flex-direction: column;
    padding: 40px;
    transition: right 0.3s ease-in-out; /* Animação de deslizar */
    display: flex; 
  }
.nav-links.active {
    right: 0; /* Desliza para dentro do ecrã */
  }
}

  .nav-links a {
    font-size: 0.95rem;
    color: var(--white);
    padding: 12px 28px;
    width: 100%;
    max-width: 260px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-sm);
  }
  .nav-actions {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
    margin-left: 0;
    margin-top: 8px;
  }
  .nav-actions .btn { width: 100%; justify-content: center; }

  /* Hero */
  .hero-title { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; }
  .badge-divider { display: none; }
  .hero-badges { flex-direction: column; gap: 10px; }

  /* Sections */
  section { padding: 72px 0; }
  .section-header { margin-bottom: 44px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(2) {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .service-card--featured .service-meta { flex-direction: row; align-items: baseline; width: 100%; }
  .service-card--featured .btn-service { width: 100%; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--large { grid-row: span 1; aspect-ratio: 4/3; }

  /* Contact */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-meta { text-align: center; }

  /* Modal */
  .modal { align-items: flex-end; padding: 0; }
  .modal-panel {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 92svh;
    max-width: 100%;
    animation: panelUp 0.4s var(--ease-out);
  }
  .modal-panel::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 12px auto -4px;
  }
  @keyframes panelUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
  .modal-header { padding: 20px 24px 16px; position: sticky; top: 0; }
  .modal-body { padding: 20px 24px 28px; }
  .form-row { grid-template-columns: 1fr; }

  /* Notifications */
  .notification-container {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 12px;
    left: 12px;
    max-width: none;
    width: auto;
  }
  .notification-booking .booking-details { grid-template-columns: 1fr; }


@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--large { aspect-ratio: 4/3; }
}

/* ── SAFE AREA ────────────────────────────────────────────── */
@supports (padding: max(0px)) {
  .nav-container {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }
  .container {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }
}

/* ── CALENDÁRIO VISUAL ────────────────────────────────────── */
.form-group--calendar { margin-bottom: 16px; }

.cal-widget {
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 14px 14px 10px;
  user-select: none;
}

/* Header nav */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.cal-month-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  text-align: center;
  flex: 1;
}

.cal-nav {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  color: var(--white-dim);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cal-nav:hover:not(:disabled) {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}
.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

/* Day-of-week headers */
.cal-dow {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 4px 0 8px;
}
.cal-dow--closed {
  color: rgba(176,169,158,0.4);
}

/* Day cells */
.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.18s;
  overflow: hidden;
}

.cal-day-num {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.cal-day--empty { background: none; }

/* Dias passados */
.cal-day--past {
  color: rgba(176,169,158,0.25);
  cursor: not-allowed;
}

/* Dias fechados (Dom/Seg) — acinzentados com X */
.cal-day--closed {
  background: rgba(255,255,255,0.03);
  color: rgba(176,169,158,0.3);
  cursor: not-allowed;
}
.cal-day--closed .cal-day-x,
.cal-day--blocked .cal-day-x {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.cal-day--closed .cal-day-x::before,
.cal-day--closed .cal-day-x::after,
.cal-day--blocked .cal-day-x::before,
.cal-day--blocked .cal-day-x::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55%;
  height: 1.5px;
  background: rgba(176,169,158,0.18);
  border-radius: 1px;
}
.cal-day--closed .cal-day-x::before,
.cal-day--blocked .cal-day-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.cal-day--closed .cal-day-x::after,
.cal-day--blocked .cal-day-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Dias bloqueados manualmente */
.cal-day--blocked {
  background: rgba(229,57,53,0.06);
  color: rgba(229,57,53,0.35);
  cursor: not-allowed;
}

/* Dias disponíveis */
.cal-day--open {
  color: var(--white);
  cursor: pointer;
  background: rgba(255,255,255,0.03);
}
.cal-day--open:hover {
  background: var(--gold-glow);
  color: var(--gold);
}

/* Hoje */
.cal-day--today:not(.cal-day--closed):not(.cal-day--blocked):not(.cal-day--past) {
  border: 1px solid rgba(201,169,110,0.35);
}
.cal-day--today .cal-day-num {
  font-weight: 700;
}

/* Selecionado */
.cal-day.selected,
.cal-day--open.selected {
  background: var(--gold) !important;
  color: var(--black) !important;
  font-weight: 700;
}
.cal-day.selected .cal-day-dot { background: var(--black); }

/* Dot — dia com reservas existentes */
.cal-day-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

/* Legenda */
.cal-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--white-dim);
  letter-spacing: 0.05em;
}
.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cal-legend-dot--closed {
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.cal-legend-dot--closed::before,
.cal-legend-dot--closed::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80%; height: 1.5px;
  background: rgba(176,169,158,0.35);
}
.cal-legend-dot--closed::before { transform: translate(-50%,-50%) rotate(45deg); }
.cal-legend-dot--closed::after  { transform: translate(-50%,-50%) rotate(-45deg); }
.cal-legend-dot--open     { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.cal-legend-dot--selected { background: var(--gold); }

/* Responsivo mobile */
@media (max-width: 480px) {
  .cal-widget { padding: 12px 10px 8px; }
  .cal-day { font-size: 0.75rem; border-radius: 5px; }
  .cal-dow { font-size: 0.6rem; padding-bottom: 6px; }
  .cal-month-label { font-size: 0.95rem; }
  .cal-legend { gap: 10px; }
  .cal-legend-item { font-size: 0.62rem; }
}