/* ============================================
   LIBERTA - Global Styles
   ============================================ */

/* CSS Custom Properties */
:root {
  --bg-primary: #05080f;
  --bg-secondary: #0a0f1a;
  --bg-card: #0d1225;
  --bg-card-hover: #111830;
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --gold-dark: #b8922e;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #6b7a90;
  --border-color: rgba(212, 168, 83, 0.15);
  --border-gold: rgba(212, 168, 83, 0.3);
  --shadow-gold: rgba(212, 168, 83, 0.1);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: var(--gold);
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
}

/* Section Spacing */
.section-padding {
  padding: 100px 0;
}

.section-padding-sm {
  padding: 60px 0;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .subtitle {
  display: inline-block;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  position: relative;
  padding: 0 20px;
}

.section-title .subtitle::before,
.section-title .subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-title .subtitle::before {
  left: -20px;
}

.section-title .subtitle::after {
  right: -20px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Gold Accent Line */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  margin: 20px auto;
  border-radius: 2px;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-primary);
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 4px;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: inline-block;
  text-transform: uppercase;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.3);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  padding: 13px 35px;
  border-radius: 4px;
  border: 2px solid var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: inline-block;
  text-transform: uppercase;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.3);
}

/* Cards */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 35px;
  transition: var(--transition);
}

.card-dark:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 5px 15px var(--shadow-gold);
}

/* Overlay */
.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 15, 0.85);
  z-index: 1;
}

.overlay-dark > * {
  position: relative;
  z-index: 2;
}

/* Gold Text */
.text-gold {
  color: var(--gold) !important;
}

/* Separator */
.separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  margin: 30px 0;
}

/* Scroll to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}

/* Floating CTAs */
.floating-ctas {
  position: fixed;
  left: 20px;
  bottom: 30px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-ctas a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-ctas a:hover {
  transform: scale(1.1);
}

.floating-ctas .cta-call {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

.floating-ctas .cta-whatsapp {
  background: #25D366;
}

/* Disclaimer Modal */
.disclaimer-modal .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  color: var(--text-secondary);
}

.disclaimer-modal .modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 30px;
}

.disclaimer-modal .modal-header .modal-title {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.disclaimer-modal .modal-body {
  padding: 30px;
  max-height: 400px;
  overflow-y: auto;
}

.disclaimer-modal .modal-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
}

.disclaimer-modal .modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 15px 30px;
}

.disclaimer-modal .btn-accept {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-primary);
  font-weight: 600;
  padding: 10px 30px;
  border: none;
  border-radius: 4px;
  transition: var(--transition);
}

.disclaimer-modal .btn-accept:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

#preloader .loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Form Styles */
.form-control-dark {
  background: rgba(13, 18, 37, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control-dark:focus {
  background: rgba(13, 18, 37, 1);
  border-color: var(--gold);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
  outline: none;
}

.form-control-dark::placeholder {
  color: var(--text-muted);
}

/* Alert Messages */
.alert-gold {
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  padding: 15px 20px;
  border-radius: 4px;
}

.alert-success-custom {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #28a745;
  padding: 15px 20px;
  border-radius: 4px;
}

/* List Styles */
.list-gold {
  list-style: none;
  padding: 0;
}

.list-gold li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.list-gold li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

/* Image Overlay */
.img-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.img-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 15, 0.7) 100%);
  pointer-events: none;
}
