:root {
  --bg: #0f0f0f;
  --fg: #f5f5f2;
  --muted: rgba(245, 245, 242, 0.6);
  --accent: #7dc6b8;
  --subtitle-font: "Segoe UI", sans-serif;
  font-size: 16px;
}

@font-face {
  font-family: "Kayla";
  src: url("fonts/Kayla.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Modern";
  src: url("fonts/Modern.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "MuseoModerno";
  src: url("fonts/MuseoModerno-Regular.ttf") format("truetype");
  font-display: swap;
}

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

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background-color: rgba(15, 15, 15, 0.78);
  border-bottom: 1px solid rgba(125, 198, 184, 0.24);
  padding: 0.75rem 0;
}

.masthead-inner {
  margin: 0 auto;
  padding: 3.4rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  min-height: 140px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: "Modern", "Kayla", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.logo-mark {
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: 0.18em;
}

.logo-tagline {
  font-size: 2rem;
  color: var(--muted);
  font-family: var(--subtitle-font);
  font-weight: 100;
  letter-spacing: 0.08em;
  text-align: center;
}

.masthead-links {
  display: flex;
  gap: 1.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.7rem;
  justify-content: center;
}

.masthead-toggle {
  display: none;
  border: 1px solid rgba(245, 245, 242, 0.3);
  background: transparent;
  padding: 0.6rem;
  border-radius: 999px;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.masthead-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background-color: var(--fg);
  transition: transform 200ms ease, opacity 200ms ease;
}

.masthead-toggle:focus-visible,
.masthead-toggle:hover {
  border-color: var(--accent);
  background-color: rgba(125, 198, 184, 0.12);
}

body.nav-open .masthead-toggle span:nth-child(1) {
  transform: translateY(0.35rem) rotate(45deg);
}

body.nav-open .masthead-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .masthead-toggle span:nth-child(3) {
  transform: translateY(-0.35rem) rotate(-45deg);
}

.masthead-links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.masthead-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.masthead-links a:hover::after,
.masthead-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.gallery {
  margin: 0;
  padding: 0;
  width: 100%;
}

.gallery-row {
  align-items: stretch;
}

.gallery-col {
  padding: 10px;
}

.gallery-tile {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 3 / 4;
  border: 1px solid #000;
  padding: 3px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: content-box;
  background-clip: content-box;
  transition: transform 600ms ease, opacity 600ms ease;
}

.gallery-tile[data-bg] {
  background-color: #111;
}

.gallery-tile.tile-word-image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

body.js-enabled .gallery-tile {
  transform: translateY(40px);
  opacity: 0;
}

body.js-enabled .gallery-tile.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.gallery-tile.no-anim {
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}

.gallery-tile.tile-wide {
  aspect-ratio: 4 / 3;
}

.gallery-tile.tile-narrow {
  aspect-ratio: 3 / 4;
}

.gallery-row .gallery-col + .gallery-col .gallery-tile {
  border-left: 0;
}

.gallery-row + .gallery-row .gallery-col .gallery-tile {
  border-top: 0;
}

.gallery-tile[data-lightbox-index] {
  cursor: zoom-in;
}

.whatsapp-fab {
  position: fixed;
  bottom: clamp(18px, 4vw, 32px);
  right: clamp(16px, 4vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #1ebe57);
  color: #042f16;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  transition: transform 280ms ease, opacity 280ms ease, box-shadow 280ms ease;
  z-index: 120;
  text-decoration: none;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

.whatsapp-fab svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.whatsapp-fab:focus-visible,
.whatsapp-fab:hover {
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.whatsapp-fab.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 7, 0.94);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 100;
}

.lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox button {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.lightbox button:focus-visible,
.lightbox button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.lightbox-control {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 60px);
  height: clamp(44px, 5vw, 60px);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.lightbox-figure {
  margin: 0;
  max-width: min(96vw, 1400px);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.lightbox-image {
  width: auto;
  height: auto;
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  font-family: var(--subtitle-font);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: clamp(1rem, 4vw, 2.5rem);
  right: clamp(1rem, 4vw, 2.5rem);
  width: clamp(44px, 5vw, 58px);
  height: clamp(44px, 5vw, 58px);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.lightbox[aria-hidden="true"] {
  visibility: hidden;
}

.footer {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .masthead-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 6vw;
    min-height: auto;
  }

  .masthead-links {
    gap: 1.2rem;
    letter-spacing: 0.22em;
  }
}

@media (max-width: 768px) {
  .masthead-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.75rem;
    gap: 1rem;
    position: relative;
  }

  .logo {
    flex: 1;
    align-items: center;
    gap: 0.3rem;
  }

  .logo-mark {
    font-size: 1.2rem;
    letter-spacing: 0.16em;
  }

  .logo-tagline {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
  }

  .masthead-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    padding: 1.25rem 1.75rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(125, 198, 184, 0.2);
  }

  body.js-enabled .masthead-links {
    display: none;
  }

  body.js-enabled.nav-open .masthead-links {
    display: flex;
  }

  .masthead-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .masthead-links a {
    letter-spacing: 0.3em;
  }
}

@media (max-width: 480px) {
  .logo-mark {
    font-size: 1.1rem;
  }

  .logo-tagline {
    font-size: 1.2rem;
  }

  .masthead-links {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 15px;
  }
}
