/* ============ VARIÁVEIS ============ */
:root {
  --brown-950: #121212;
  --brown-900: #1e1e1e;
  --brown-800: #2b2b2b;
  --brown-700: #4d4d4d;
  --cream: #ffffff;
  --cream-dim: #e6e6e6;
  --gold: #c9a24b;
  --gold-light: #e0c07a;
  --red: #8a2b2b;
  --text-dark: #1a1a1a;
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
  --radius: 4px;
  --ff-heading: 'Oswald', sans-serif;
  --ff-accent: 'Playfair Display', serif;
  --ff-body: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--brown-950);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--ff-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--brown-950);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--brown-950);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  padding: 10px 22px;
  font-size: 0.75rem;
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--brown-950);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 56px;
}

.main-nav ul {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-family: var(--ff-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--cream);
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.08), transparent 60%),
    repeating-linear-gradient(135deg, var(--brown-900) 0px, var(--brown-900) 40px, var(--brown-950) 40px, var(--brown-950) 80px);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero-video {
  display: none;
}
.hero-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-gallery-row {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.hero-gallery-track {
  display: flex;
  gap: 3px;
  height: 100%;
  width: max-content;
  will-change: transform;
}
.hero-gallery-track img {
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1a;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@media (min-width: 768px) {
  .hero-video {
    display: block;
  }
  .hero-gallery {
    display: none;
  }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(18,18,18,0.4), rgba(18,18,18,0.85));
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 78px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* ============ SECTION COMMON ============ */
section { padding: 100px 0; }
.section-eyebrow {
  font-family: var(--ff-accent);
  font-style: italic;
  color: var(--red);
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 3px;
  background: var(--gold);
}

/* ============ QUICK BOOK ============ */
.quick-book {
  background: var(--brown-950);
  padding: 90px 0;
}
.quick-book-grid {
  display: flex;
  justify-content: center;
}
.btn-large {
  padding: 22px 56px;
  font-size: 1.05rem;
}
/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 50px;
}
.service-item {
  border-bottom: 1px dashed var(--brown-700);
  padding-bottom: 18px;
}
.service-item:nth-last-child(-n+2) {
  border-bottom: none;
}
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.service-row h3 {
  font-size: 1.05rem;
  color: var(--brown-950);
}
.price {
  font-family: var(--ff-heading);
  color: var(--red);
  font-size: 1.1rem;
  white-space: nowrap;
}
.service-item p {
  color: #595959;
  font-size: 0.92rem;
}
/* ============ GALLERY ============ */
.services { padding-bottom: 0; }
.gallery { padding: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.gallery-item {
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ EQUIPA ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brown-800);
  margin-bottom: 18px;
}
.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  color: var(--brown-950);
}
.team-role {
  font-family: var(--ff-accent);
  font-style: italic;
  color: var(--red);
}

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--cream-dim); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.testimonial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.stars {
  color: #c9a24b;
  letter-spacing: 3px;
}
.testimonial-head .stars { margin-bottom: 0; }
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5c5c5c;
  background: #fff;
  border: 1px solid #e6e2da;
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
}
.google-badge svg { width: 14px; height: 14px; }
.testimonial-card p {
  font-style: italic;
  color: #3d3d3d;
  margin-bottom: 18px;
}
.testimonial-author {
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown-700);
}

.google-reviews-link {
  display: block;
  text-align: center;
  font-family: var(--ff-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #5c5c5c;
  margin-bottom: 40px;
  text-decoration: none;
}
.google-reviews-link:hover { text-decoration: underline; }
.google-reviews-link .stars-inline { color: #c9a24b; }

.google-rating-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  margin: 0 auto 6px;
  width: fit-content;
}
.google-g-icon { width: 26px; height: 26px; flex-shrink: 0; }
.google-rating-text {
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #3d3d3d;
}
.google-rating-text .stars-inline { color: #c9a24b; margin: 0 2px; }
.google-rating-badge:hover .google-rating-text { text-decoration: underline; }
.google-rating-sub {
  text-align: center;
  font-size: 0.82rem;
  color: #7a7a7a;
  margin-bottom: 40px;
}

/* ============ LOCATION ============ */
.location { background: var(--brown-950); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}
.location-info .section-eyebrow { color: var(--gold-light); text-align: left; }
.location-info .section-title { text-align: left; color: var(--cream); }
.location-info .section-title::after { left: 0; transform: none; }

.info-list { margin-bottom: 30px; }
.info-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.info-list strong {
  font-family: var(--ff-heading);
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.info-list span, .info-list a {
  color: var(--cream-dim);
  font-size: 0.95rem;
}
.info-list a:hover { color: var(--gold-light); }

.social-links {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
}
.social-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: all 0.25s ease;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { background: var(--gold); color: var(--brown-950); }

.location-map {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
}
.location-map iframe { width: 100%; height: 100%; min-height: 340px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--brown-900); color: var(--cream-dim); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 70px 0 50px;
}
.footer-brand p { margin: 14px 0 18px; font-size: 0.88rem; color: #b0b0b0; }
.footer-links h4, .footer-contact h4 {
  color: var(--cream);
  font-size: 0.85rem;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links a, .footer-contact a {
  font-size: 0.88rem;
  color: #b0b0b0;
  transition: color 0.2s ease;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 8px; color: #b0b0b0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #999999; /* WCAG AA on dark footer bg */
}

/* ============ FLOATING BOOK BUTTON ============ */
.floating-book {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 999;
  background: var(--gold);
  color: var(--brown-950);
  font-family: var(--ff-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 15px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, background 0.25s ease;
}
.floating-book:hover {
  transform: translateY(-3px);
  background: var(--gold-light);
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-item:nth-last-child(2) { border-bottom: 1px dashed var(--brown-700); padding-bottom: 18px; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .location-info .section-title, .location-info .section-eyebrow { text-align: center; }
  .location-info .section-title::after { left: 50%; transform: translateX(-50%); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html {
    scroll-snap-type: y proximity;
  }
  /* Equipa is short enough that snapping to its top fights with normal
     scroll momentum and feels janky, so it's excluded. */
  main > section:not(.hero):not(.team) {
    scroll-snap-align: start;
    scroll-margin-top: 78px;
  }
  .main-nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--brown-950);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s ease, visibility 0s linear 0.35s;
  }
  .main-nav.open {
    max-height: 400px;
    visibility: visible;
    transition: max-height 0.35s ease, visibility 0s linear 0s;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  .main-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-link { display: block; padding: 14px 0; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .social-links { justify-content: center; }
  .footer-brand .logo-img { margin: 0 auto; }
  .quick-book { display: none; }
  .team-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; gap: 12px; }
  .team-photo { margin-bottom: 10px; }
  .team-name { font-size: 1rem; }
  .team-role { font-size: 0.8rem; }
}

/* ============ MODAL (Termos e Condições) ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 18, 18, 0.7);
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--brown-900);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}

.modal-box h3 {
  font-family: var(--ff-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.modal-box h4 {
  font-family: var(--ff-accent);
  font-size: 1.15rem;
  color: var(--gold);
  margin-top: 20px;
  margin-bottom: 8px;
}

.modal-box h4:first-of-type { margin-top: 0; }

.modal-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--cream-dim);
}

.modal-box p a {
  color: var(--gold-light);
  text-decoration: underline;
}

.modal-box p a:hover,
.modal-box p a:focus-visible { color: var(--gold); }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible { color: var(--gold); }
