/* ============================================================
   MOISES COLACCI — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES ───────────────────────────────────────────── */
:root {
  --black:       #000000;
  --dark:        #080808;
  --dark-2:      #101010;
  --dark-3:      #1a1a1a;
  --gold:        #C9A96E;
  --gold-light:  #E8C98A;
  --gold-dark:   #A07840;
  --white:       #FFFFFF;
  --gray:        #888888;
  --gray-lt:     #BBBBBB;
  --border:      #1e1e1e;

  --head-font:   'Cormorant Garamond', serif;
  --body-font:   'Montserrat', sans-serif;

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h:       80px;
  --max-w:       1200px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body-font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--body-font); }
ul, ol { list-style: none; }
input, textarea, select { font-family: var(--body-font); }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--head-font);
  font-weight: 400;
  line-height: 1.05;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.display-title {
  font-family: var(--head-font);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.section-title {
  font-family: var(--head-font);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.08;
}

.lead {
  font-size: 0.92rem;
  color: var(--gray-lt);
  line-height: 1.95;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }

/* ── DIVIDER / ORNAMENT ──────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.ornament-center {
  font-family: var(--head-font);
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
}

.gold-rule {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}
.gold-rule-center { margin: 1.5rem auto; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--body-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(201,169,110,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.06);
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.5s var(--ease), border-color 0.5s;
}

.navbar.scrolled {
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--head-font);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}
.nav-logo em { font-style: normal; color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: none !important; }
.nav-cta::after { display: none !important; }
.nav-cta.nav-link { padding-bottom: 0.55rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── WHATSAPP FLOAT ──────────────────────────────────────── */
.wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  animation: wa-pulse 2.8s ease infinite;
}
.wa-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.65);
  animation: none;
}
.wa-btn svg { width: 28px; height: 28px; fill: #fff; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}

.footer-body {
  padding: 5rem 0 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-logo-text {
  font-family: var(--head-font);
  font-size: 1.75rem;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}
.footer-logo-text em { font-style: normal; color: var(--gold); }
.footer-brand p { font-size: 0.84rem; color: var(--gray); line-height: 1.9; max-width: 270px; }

.footer-heading {
  font-family: var(--body-font);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-col-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col-links a {
  font-size: 0.84rem;
  color: var(--gray);
  transition: all 0.25s;
}
.footer-col-links a:hover { color: var(--white); padding-left: 6px; }

.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.social-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.3s;
}
.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.08);
}
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: var(--gray); }
.footer-bottom a { color: var(--gold); }

/* ── PAGE-LEVEL HERO (inner pages) ──────────────────────── */
.page-hero {
  min-height: 44vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(201,169,110,0.09) 0%, transparent 58%),
    radial-gradient(ellipse at 75% 30%, rgba(201,169,110,0.05) 0%, transparent 50%),
    linear-gradient(160deg, #0a0a0a 0%, #040404 100%);
}
.page-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.55));
}
.page-hero-content {
  position: relative; z-index: 1;
  padding: 0 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.page-hero .section-title { font-size: clamp(2.8rem, 6vw, 5.5rem); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-up.in { opacity: 1; transform: translateY(0); }

.fade-left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-left.in { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-right.in { opacity: 1; transform: translateX(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.fade-in.in { opacity: 1; }

.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.3s !important; }
.d4 { transition-delay: 0.45s !important; }
.d5 { transition-delay: 0.6s !important; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-body { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .section-pad { padding: 80px 0; }
  .section-pad-sm { padding: 55px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(3,3,3,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.75rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }

  .footer-body { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2rem; }

  .wa-btn { width: 52px; height: 52px; bottom: 1.5rem; right: 1.5rem; }
  .wa-btn svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .footer-body { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .display-title { font-size: clamp(2.6rem, 8vw, 7.5rem); }
}

/* ── PAGE LOADER ─────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo-wrap {
  position: relative;
  overflow: hidden;
}
.loader-logo-wrap img {
  width: 140px;
  display: block;
  opacity: 0;
  transform: scale(0.78);
  animation: loaderIn 1s var(--ease-out) 0.15s forwards;
}
@keyframes loaderIn {
  from { opacity: 0; transform: scale(0.78); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
  .loader-logo-wrap img { width: 100px; }
}
