:root {
  --ink: #f7f0e8;
  --muted: #b8aea2;
  --paper: #050505;
  --white: #0e0d0b;
  --gold: #b98635;
  --line: rgba(255, 250, 244, 0.16);
  --dark: #080808;
  --panel: #11100e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 54px);
  color: white;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent);
}

.brand img {
  width: 138px;
  filter: brightness(0) invert(1);
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
  opacity: 0.88;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero-slider,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 5000ms ease;
}

.hero-image.active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0.62)),
    radial-gradient(circle at 50% 44%, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 36px));
  text-align: center;
  padding-top: 60px;
}

.hero-logo {
  width: min(360px, 62vw);
  margin: 0 auto 34px;
  filter: brightness(0) invert(1);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 0 auto 22px;
  font-size: clamp(2.45rem, 7vw, 6.4rem);
  line-height: 0.96;
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button.primary {
  color: #111;
  background: var(--gold);
}

.button.ghost {
  color: white;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}

.slider-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  color: white;
  background: rgba(0,0,0,0.22);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.slider-control.prev {
  left: 24px;
}

.slider-control.next {
  right: 24px;
}

.section {
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px);
}

.intro,
.emigrants,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.intro h2,
.emigrants h2,
.contact h2,
.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.02;
}

.intro p,
.emigrants p,
.contact p,
.section-heading p,
.service-list p,
.video-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.gallery {
  columns: 4 230px;
  column-gap: 16px;
}

.gallery img {
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: 8px;
  background: #15120f;
}

.video-section,
.packs {
  background: var(--paper);
}

.video-grid,
.service-list,
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.video-grid article,
.service-list article,
.quotes blockquote {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.video-grid span,
.pack-badge {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.pack-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  max-width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
}

.pack-track {
  position: relative;
  min-height: 720px;
  overflow: visible;
  perspective: 1200px;
  outline: none;
}

.pack-strip {
  position: absolute;
  top: 30px;
  left: 50%;
  display: flex;
  width: clamp(280px, 27vw, 360px);
  min-height: 650px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11100e;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(0,0,0,0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.72);
  transition: transform 460ms ease, opacity 320ms ease, border-color 320ms ease, box-shadow 320ms ease, background 320ms ease;
  will-change: transform, opacity;
}

.pack-strip::before {
  content: "";
  position: absolute;
  top: 104px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  pointer-events: none;
}

.pack-strip.is-active {
  z-index: 5;
  border-color: var(--gold);
  box-shadow: 0 34px 110px rgba(0,0,0,0.46);
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-12px) scale(1.1);
}

.pack-strip.is-recommended.is-active {
  color: white;
  background: var(--dark);
}

.pack-strip[data-carousel-position="-1"] {
  z-index: 4;
  opacity: 0.78;
  pointer-events: auto;
  transform: translateX(calc(-50% - clamp(210px, 28vw, 360px))) rotateY(13deg) scale(0.82);
}

.pack-strip[data-carousel-position="1"] {
  z-index: 4;
  opacity: 0.78;
  pointer-events: auto;
  transform: translateX(calc(-50% + clamp(210px, 28vw, 360px))) rotateY(-13deg) scale(0.82);
}

.pack-strip[data-carousel-position="-2"] {
  z-index: 3;
  opacity: 0.34;
  pointer-events: auto;
  transform: translateX(calc(-50% - clamp(390px, 44vw, 560px))) rotateY(20deg) scale(0.68);
}

.pack-strip[data-carousel-position="2"] {
  z-index: 3;
  opacity: 0.34;
  pointer-events: auto;
  transform: translateX(calc(-50% + clamp(390px, 44vw, 560px))) rotateY(-20deg) scale(0.68);
}

.pack-strip.is-recommended.is-active .pack-body p,
.pack-strip.is-recommended.is-active .pack-body li {
  color: rgba(255,255,255,0.78);
}

.pack-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(1);
}

.pack-top {
  min-height: 122px;
  padding: 24px 22px 20px;
  text-align: center;
}

.pack-number {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.pack-strip h3 {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 400;
  line-height: 1;
}

.pack-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 26px;
}

.pack-strip p,
.pack-strip ul,
.pack-strip strong,
.pack-badge {
  position: relative;
  z-index: 1;
}

.pack-strip p,
.pack-strip ul {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.pack-strip ul {
  display: grid;
  gap: 7px;
  margin: 0 0 22px;
  padding-left: 18px;
}

.pack-strip strong {
  margin-top: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 400;
}

.pack-nav {
  position: absolute;
  z-index: 8;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(10px);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.pack-prev {
  left: clamp(4px, 3vw, 28px);
}

.pack-next {
  right: clamp(4px, 3vw, 28px);
}

.pack-badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  margin: 0;
  padding: 8px 18px;
  color: white;
  background: var(--gold);
  transform: translateX(-50%);
  white-space: nowrap;
}

.emigrants {
  color: white;
  background:
    linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.66)),
    url("assets/gallery/casamento_01.jpg") center 58% / cover;
}

.emigrants p {
  color: rgba(255,255,255,0.82);
}

.testimonials {
  background: var(--dark);
}

.quotes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

blockquote {
  margin: 0;
}

blockquote p {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.35;
}

cite {
  color: var(--muted);
  font-style: normal;
}

.contact-panel {
  justify-content: flex-start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.small {
  width: 100%;
  margin: 6px 0 0;
  font-size: 0.92rem !important;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

footer img {
  width: 150px;
}

footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  nav {
    display: none;
  }

  .intro,
  .emigrants,
  .contact,
  .video-grid,
  .service-list,
  .quotes {
    grid-template-columns: 1fr;
  }

  .pack-showcase {
    max-width: 100%;
  }

  .pack-nav {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
  }

  .pack-track {
    min-height: 700px;
  }

  .pack-strip,
  .pack-strip.is-active {
    width: min(84vw, 350px);
    min-height: 635px;
  }

  .pack-strip.is-active {
    transform: translateX(-50%) translateY(-6px) scale(1.01);
  }

  .pack-strip[data-carousel-position="-1"] {
    opacity: 0.7;
    transform: translateX(calc(-50% - 63vw)) rotateY(12deg) scale(0.78);
  }

  .pack-strip[data-carousel-position="1"] {
    opacity: 0.7;
    transform: translateX(calc(-50% + 63vw)) rotateY(-12deg) scale(0.78);
  }

  .pack-strip[data-carousel-position="-2"] {
    opacity: 0.2;
    transform: translateX(calc(-50% - 100vw)) rotateY(18deg) scale(0.64);
  }

  .pack-strip[data-carousel-position="2"] {
    opacity: 0.2;
    transform: translateX(calc(-50% + 100vw)) rotateY(-18deg) scale(0.64);
  }

  .slider-control {
    top: auto;
    bottom: 24px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand img {
    width: 118px;
  }

  .hero-content {
    text-align: left;
    padding-top: 48px;
  }

  .hero-logo {
    margin-left: 0;
    width: 230px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .pack-body {
    padding: 20px 20px 24px;
  }

  .pack-strip p,
  .pack-strip ul {
    font-size: 0.9rem;
    line-height: 1.44;
  }

  .pack-strip strong {
    font-size: 1.8rem;
  }

  .slider-control {
    width: 42px;
    height: 42px;
  }
}
