﻿/* ============================================
   CHALÉ DO ARISCO — Linktree Premium
   Palette: Warm earth tones + forest greens
   ============================================ */

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

:root {
  --cream:       #F5F0E8;
  --warm-white:  #FDFAF4;
  --brown-dark:  #2C1A0E;
  --brown-mid:   #5C3D2E;
  --brown-light: #A0735A;
  --terracota:   #C4622D;
  --terracota-light: #D4834E;
  --forest:      #3B5E45;
  --forest-light:#527A5F;
  --gold:        #C8A96E;
  --gold-light:  #E2C68A;
  --text-main:   #2C1A0E;
  --text-muted:  #7A5C48;
  --shadow-warm: rgba(44, 26, 14, 0.18);
  --radius-pill: 50px;
  --radius-card: 28px;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--brown-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Background texture overlay ── */
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(91,55,34,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(59,94,69,0.40) 0%, transparent 55%),
    linear-gradient(160deg, #1A0E06 0%, #2C1A0E 50%, #1E130A 100%);
  z-index: 0;
  pointer-events: none;
}

/* ── Floating particles ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) scale(0.5); opacity: 0; }
}

/* ── Main container ── */
.linktree-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 16px 40px;
  opacity: 0; /* GSAP will reveal */
}

/* ── Hero image ── */
.hero-image-wrap {
  width: 100%;
  max-width: 480px;
  height: 280px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  flex-shrink: 0;
  transform: translateY(-20px); /* GSAP start */
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(0.85) brightness(0.9);
  transition: filter 0.4s ease;
}

.hero-image-wrap:hover .hero-img {
  filter: saturate(1) brightness(1);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(44,26,14,0.85) 100%
  );
}

/* ── Card ── */
.card {
  width: 100%;
  max-width: 480px;
  background: var(--warm-white);
  border-radius: var(--radius-card);
  padding: 0 28px 32px;
  position: relative;
  margin-top: -48px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(200,169,110,0.15);
  transform: translateY(30px); /* GSAP start */
}

/* ── Logo ── */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-top: -56px;
  margin-bottom: 12px;
}

.logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: var(--warm-white);
  border-radius: 50%;
  padding: 14px;
  box-shadow:
    0 8px 32px var(--shadow-warm),
    0 0 0 4px var(--gold),
    0 0 0 8px rgba(200,169,110,0.2);
  transform: scale(0.5); /* GSAP start */
}

/* ── Tagline ── */
.tagline-wrap {
  text-align: center;
  margin-bottom: 20px;
  opacity: 0; /* GSAP */
}

.tagline-wrap h1 {
  margin-bottom: 8px;
  color: var(--brown-dark);
  font-family: var(--font-serif);
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.2;
}

.tagline {
  font-family: var(--font-serif);
  font-size: clamp(15px, 4vw, 18px);
  color: var(--brown-mid);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 6px;
}

.sub-tagline {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-light);
  font-weight: 500;
}

.local-description {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Divider ── */
.divider {
  width: 0%; /* GSAP animates to 100% */
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 24px;
}

/* ── Links nav ── */
.links-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Button ── */
.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--radius-pill);
  background: var(--brown-dark);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
  opacity: 0; /* GSAP start */
  transform: translateX(-40px);
  box-shadow: 0 4px 18px var(--shadow-warm);
  border: 1px solid rgba(200,169,110,0.20);
}

/* shimmer stripe on hover */
.link-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.10) 50%,
    transparent 60%
  );
  transition: left 0.4s ease;
}

.link-btn:hover::before {
  left: 150%;
}

.link-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 0 2px var(--gold);
  color: var(--gold-light);
}

.link-btn:active {
  transform: scale(0.98);
}

/* per-button accent colors */
#btn-whatsapp { border-left: 4px solid #25D366; }
#btn-instagram { border-left: 4px solid #C13584; }
#btn-maps      { border-left: 4px solid #4285F4; }

#btn-whatsapp:hover { box-shadow: 0 12px 36px rgba(37,211,102,0.25), 0 0 0 2px #25D366; }
#btn-instagram:hover { box-shadow: 0 12px 36px rgba(193,53,132,0.25), 0 0 0 2px #C13584; }
#btn-maps:hover { box-shadow: 0 12px 36px rgba(66,133,244,0.25), 0 0 0 2px #4285F4; }

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.btn-text {
  flex: 1;
  text-align: left;
}

.btn-arrow {
  font-size: 18px;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.link-btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ── Local amenities map ── */
.local-map {
  margin-top: 28px;
}

.local-map h2 {
  margin-bottom: 12px;
  color: var(--brown-mid);
  font-family: var(--font-serif);
  font-size: 20px;
  text-align: center;
}

.local-map-frame {
  width: 100%;
  height: 440px;
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.35);
  border-radius: 18px;
  box-shadow: 0 8px 24px var(--shadow-warm);
}

.local-map-frame iframe {
  display: block;
}

/* ── Footer ── */
.card-footer {
  margin-top: 28px;
  text-align: center;
  opacity: 0; /* GSAP */
}

.card-footer p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (min-width: 520px) {
  .hero-image-wrap { height: 320px; }
  .card { padding: 0 36px 40px; }
  .logo { width: 160px; height: 160px; }
  .local-map-frame { height: 500px; }
}

@media (min-width: 768px) {
  .hero-image-wrap { max-width: 480px; }
  .card { max-width: 480px; }
}
