@import url('https://fonts.googleapis.com/css2?family=Allura&family=Archivo+Black&display=swap');

@font-face {
  font-family: 'Lato';
  src: url('./fonts/lato/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('./fonts/lato/Lato-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('./fonts/lato/Lato-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('./fonts/lato/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lato';
}

:root {
  --header-height: 88px;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

ul {
  list-style: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: height 0.3s ease;
}

body.is-scrolled {
  --header-height: 55px;
}

.desktop-nav,
.mobile-nav {
  height: 100%;
  width: min(1200px, 92%);
  margin: 0 auto;
}

.desktop-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.menu-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu-group a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.menu-links {
  justify-content: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: #2f2f2f;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #cc1f2f;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: #cc1f2f;
}

.nav-link.is-active {
  color: #cc1f2f;
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #3d3d3d;
  background: #fff;
  border: 1px solid rgba(204, 31, 47, 0.28);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-social-link:hover {
  color: #fff;
  background: #cc1f2f;
  transform: translateY(-1px);
}

.nav-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.logo {
  width: auto;
  height: 52px;
  display: block;
}

.mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #111;
  margin-left: auto;
}

.mobile-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu ul {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 14px 0 20px;
  display: grid;
  gap: 12px;
}

.mobile-menu a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  padding: 6px 0;
}

.mobile-menu .nav-link,
.mobile-menu .menu-socials {
  display: inline-flex;
}

.mobile-menu .nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.fullpage {
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.fullpage::-webkit-scrollbar {
  width: 0px;
}

.panel {
  width: 100%;
  height: calc(100vh - var(--header-height));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.hero-carousel.is-dragging {
  cursor: grabbing;
}

.drag-cursor-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.42);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-carousel:hover .drag-cursor-hint {
  opacity: 1;
}

.drag-cursor-hint.is-dragging {
  transform: translate(-50%, -50%) scale(0.96);
}

.drag-cursor-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.drag-cursor-text {
  white-space: nowrap;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.carousel-image,
.carousel-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel-image {
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 768px) {
  .carousel-image--right {
    object-position: right center;
  }
}

.carousel-overlay {
  background: linear-gradient(90deg, rgba(8, 17, 31, 0.72) 0%, rgba(8, 17, 31, 0.38) 45%, rgba(8, 17, 31, 0.18) 100%);
  transition: opacity 0.8s ease;
}

.carousel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  user-select: none;
  transition: opacity 0.8s ease;
}

.carousel-content > * {
  max-width: 720px;
}

.carousel-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
}

.carousel-content h1,
.carousel-content h2 {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 0.98;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.carousel-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.92);
}

.carousel-controls {
  position: absolute;
  inset-inline: 0;
  bottom: 32px;
  z-index: 3;
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #ffffff6b;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.carousel-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.color-1 { background: #ffffff6b; }
.color-2 { background: #fdf6ec; }

/* ── About ────────────────────────────────────────────── */

.about-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  height: 70vh;
  max-height: 600px;
}

.about-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.about-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.about-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.28);
  backdrop-filter: blur(4px);
}

.about-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.about-dot.is-active {
  background: #fff;
  transform: scale(1.16);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b26a6a;
}

.about-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  font-weight: 700;
  color: #b26a6a;
}

.about-text {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: #6d1a1a;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image-wrap {
    height: 50vw;
    max-height: 360px;
  }
}

.color-3 { background: #8ac926; }
.color-4 { background: #fdeee4; }
.color-5 {
  background-color: #f9f6f1;
}

.color-6 {
  background-color: #f9f6f1;
}

.contact-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("./images/texture.png");
  padding: clamp(24px, 3vw, 42px) 0 94px;
}

.contact-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.contact-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b2966a;
}

.contact-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 58px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #1f1430;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.contact-title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  color: #6d4a1a;
}

.contact-list {
  display: grid;
  gap: 10px;
  color: #6d4a1a;
  line-height: 1.7;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(109, 74, 26, 0.24);
  color: #6d4a1a;
  background: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 3500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.38);
  animation: whatsapp-pulse 1.8s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.46);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.42);
  }

  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.contact-map {
  height: 100%;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  border: solid 2px #fdf6ec;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}


@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .logo {
    height: 46px;
  }

  .carousel-content {
    max-width: 100%;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .fullpage {
    height: auto;
    margin-top: var(--header-height);
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .panel {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .about-panel {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-panel {
    height: calc(100dvh - var(--header-height));
    min-height: calc(100vh - var(--header-height));
  }

  .hero-carousel {
    height: 100%;
    min-height: inherit;
  }

  .drag-cursor-hint {
    display: none;
  }

  .carousel-content {
    width: min(100%, 92%);
    justify-content: flex-end;
    padding-bottom: 120px;
  }

  .carousel-content h1,
  .carousel-content h2 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .carousel-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .carousel-controls {
    bottom: 20px;
  }

  .contact-panel {
    padding: 24px 0 88px;
  }

  .contact-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

[data-reveal] {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}

[data-reveal="fade-up"] {
  transform: translateY(44px);
}

[data-reveal="fade-left"] {
  transform: translateX(-48px);
}

[data-reveal="fade-right"] {
  transform: translateX(48px);
}

[data-reveal="fade-scale"] {
  transform: scale(0.92);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   PAGE-LOAD ANIMATIONS  (header + hero)
   ============================================ */

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header slides in from top */
.site-header {
  animation: slide-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hero — only the active slide's children animate so re-triggers work */
.carousel-slide.is-active .carousel-kicker {
  animation: fade-up-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.carousel-slide.is-active h1,
.carousel-slide.is-active h2 {
  animation: fade-up-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.carousel-slide.is-active .carousel-subtitle {
  animation: fade-up-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

.carousel-controls {
  animation: fade-up-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
}

/* Respect reduced-motion for load animations too */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .carousel-slide.is-active .carousel-kicker,
  .carousel-slide.is-active h1,
  .carousel-slide.is-active h2,
  .carousel-slide.is-active .carousel-subtitle,
  .carousel-controls {
    animation: none;
  }
}

/* Gallery Panel Styles */
.gallery-panel {
  background: #f5d5c0;
  padding: 0;
  overflow: hidden;
}

.gallery-intro {
  display: none;
}

.gallery-grid {
  display: flex;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  flex: 1 1 0;
  background: #1e1e1e00;
  cursor: pointer;
  min-width: 0;
  min-height: 0;
  transition: flex 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
  appearance: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.45s ease;
  filter: saturate(0.88) brightness(0.88);
  border-radius: 10px;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.72) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px 18px;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item-label {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  flex: 2.6 1 0;
  z-index: 1;
  outline: none;
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay {
  opacity: 0;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.05) brightness(1);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 6, 4, 0.84);
  backdrop-filter: blur(12px);
}

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

.gallery-modal-content {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
}

.gallery-modal-content img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.gallery-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-modal-close:hover,
.gallery-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-panel {
    position: relative;
    min-height: auto;
    height: auto;
    padding: 2rem 1rem;
  }

  .gallery-intro {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 6px 2px 0;
  }

  .gallery-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #b26a6a;
  }

  .gallery-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
    line-height: 1.02;
    color: #b26a6a;
  }

  .gallery-title img {
    height: 1.1rem;
    width: 1.05rem;
    margin: 0px 2px 0px 1px;
  }

  .gallery-subtitle {
    max-width: 28rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #b26a6a;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    height: auto;
  }

  .gallery-item {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  .gallery-item:hover,
  .gallery-item:focus-visible {
    flex: 1 1 0;
  }

  .gallery-item-overlay {
    opacity: 1;
    border-radius: 0 0 10px 10px;
  }

  .gallery-item img {
    filter: saturate(0.95) brightness(0.92);
  }

  .gallery-modal {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 6px;
  }

  .gallery-item {
    aspect-ratio: 1 / 1.25;
  }

  .gallery-modal {
    padding: 16px;
  }

  .gallery-modal-close {
    top: 16px;
    right: 16px;
  }
}
