/* ===== ROOT VARIABLES ===== */
:root {
  --navy:      #060475;
  --navy-dark: #040356;
  --navy-mid:  #0a0899;
  --gold:      #C9A227;
  --gold-light:#FFD700;
  --white:     #ffffff;
  --glass:     rgba(255, 255, 255, 0.05);
  --glass-border: rgba(201, 162, 39, 0.3);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--navy);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-light); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(4, 3, 86, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: .75rem 1.5rem;
  transition: background .3s;
}
.navbar.scrolled { background: rgba(4, 3, 86, 0.99); }

.navbar-brand img { height: 48px; filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255,255,255,.3)); }

.nav-link {
  color: var(--white) !important;
  font-weight: 600;
  letter-spacing: .05em;
  position: relative;
  padding: .5rem 1rem !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--gold) !important; }

.navbar-toggler { border-color: var(--gold-light); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201,162,39,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO / VIDEO HEADER ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,4,117,.5) 0%, rgba(4,3,86,.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}

.hero-latin {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201,162,39,.6);
  letter-spacing: .08em;
  animation: fadeDown .9s ease both;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,.85);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: .75rem;
  animation: fadeDown .9s .2s ease both;
}

.hero-cta {
  margin-top: 2.5rem;
  animation: fadeUp .9s .4s ease both;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  font-weight: 700;
  letter-spacing: .08em;
  border: none;
  padding: .75rem 2.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(201,162,39,.4);
  transition: transform .2s, box-shadow .2s;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(201,162,39,.55);
  color: var(--navy-dark);
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .08em;
  padding: .75rem 2.2rem;
  border-radius: 50px;
  background: transparent;
  transition: all .25s;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 4px 20px rgba(201,162,39,.4);
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gold);
  font-size: 1.6rem;
  animation: bounce 2s infinite;
}

/* ===== SECTION BASE ===== */
section { padding: 5rem 0; }

.section-title {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: .75rem auto 2.5rem;
}
.gold-divider.left { margin-left: 0; }

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--navy-dark); }

.about-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  transition: transform .3s, box-shadow .3s;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(201,162,39,.15);
}

.about-card .icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.about-card h4 {
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: .75rem;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section { background: var(--navy); }

.portfolio-filter .btn {
  border: 1px solid var(--glass-border);
  color: var(--white);
  background: var(--glass);
  margin: .25rem;
  border-radius: 50px;
  transition: all .25s;
}
.portfolio-filter .btn.active,
.portfolio-filter .btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  font-weight: 700;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}

.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6,4,117,.92) 100%);
  opacity: 0;
  transition: opacity .35s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay span {
  color: var(--gold-light);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
}

/* ===== SERVICES / PRICING SECTION ===== */
.services-section { background: var(--navy-dark); }

.price-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(201,162,39,.2);
  border-color: var(--gold);
}

.price-card .card-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.price-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: .5rem;
}

.price-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1.1rem;
  padding: .35rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.price-card ul { list-style: none; padding: 0; }
.price-card ul li {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}
.price-card ul li:last-child { border: none; }
.price-card ul li::before {
  content: '✦ ';
  color: var(--gold);
  font-size: .7rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section { background: var(--navy); }

.contact-info-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform .25s;
}
.contact-info-card:hover { transform: translateX(6px); }

.contact-info-card .ci-icon {
  font-size: 2rem;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-form-wrap {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
}

.form-control, .form-select {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-border);
  color: var(--white) !important;
  border-radius: 10px;
  padding: .75rem 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.2);
  color: var(--white);
}
.form-control::placeholder { color: rgba(255,255,255,.4); }
.form-label { color: rgba(255,255,255,.75); font-weight: 600; font-size: .9rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0 1.5rem;
}

footer .footer-brand img { height: 40px; margin-bottom: .75rem; }

footer .footer-links a {
  color: rgba(255,255,255,.65);
  margin: 0 .75rem;
  font-size: .9rem;
  transition: color .2s;
}
footer .footer-links a:hover { color: var(--gold); }

.footer-copy { color: rgba(255,255,255,.4); font-size: .82rem; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  margin: 0 .3rem;
  transition: all .25s;
}
.social-icon:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 9rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,162,39,.12) 0%, transparent 70%);
}
.page-hero h1 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3.5rem);
  position: relative;
}
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; position: relative; }

/* ===== TOAST / ALERT ===== */
.toast-success {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: linear-gradient(135deg, #1a5c2a, #27ae60);
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 9999;
  display: none;
  animation: fadeUp .4s ease;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-12px); }
}

/* AOS custom */
[data-aos] { transition-duration: 700ms !important; }

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
  .hero-latin { font-size: 2.2rem; }
  section { padding: 3.5rem 0; }
  .price-card { margin-bottom: 1.5rem; }
}
