/*
Theme Name: VistaPro Construction
Theme URI: https://vistaproconstruction.com
Author: VistaPro
Author URI: https://vistaproconstruction.com
Description: A premium construction and infrastructure company theme with modern design, animated counters, project filtering, and smooth scroll navigation.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vistapro
Tags: one-page, construction, business, custom-background, custom-logo
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

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

:root {
  --vp-dark: #1A1A2E;
  --vp-dark-alt: #2D2D3F;
  --vp-gold: #C8A951;
  --vp-gold-hover: #d7ba67;
  --vp-light: #F0F0F0;
  --vp-footer-bg: #11111f;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--vp-light);
  background: var(--vp-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== SCROLL PROGRESS BAR ===== */
#vp-progress {
  position: fixed; top: 0; left: 0; z-index: 100;
  height: 4px; width: 0; background: var(--vp-gold);
  transition: width 0.1s linear;
}

/* ===== HEADER ===== */
.vp-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 90;
  transition: background 0.3s, box-shadow 0.3s;
}
.vp-header.scrolled {
  background: rgba(26,26,46,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.vp-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.vp-logo { text-align: left; }
.vp-logo-name { font-size: 1.5rem; font-weight: 700; color: var(--vp-gold); letter-spacing: 0.05em; }
.vp-logo-sub { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.3em; color: rgba(240,240,240,0.7); }

.vp-nav { display: flex; align-items: center; gap: 2rem; }
.vp-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--vp-light);
  transition: color 0.2s;
}
.vp-nav a:hover { color: var(--vp-gold); }

.vp-btn {
  display: inline-block;
  background: var(--vp-gold); color: var(--vp-dark);
  padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s, box-shadow 0.3s;
}
.vp-btn:hover { background: var(--vp-gold-hover); }
.vp-btn-outline {
  display: inline-block;
  border: 1px solid var(--vp-gold); color: var(--vp-gold);
  padding: 0.75rem 1.75rem; font-weight: 600;
  transition: all 0.2s;
}
.vp-btn-outline:hover { background: var(--vp-gold); color: var(--vp-dark); }

/* Mobile toggle */
.vp-hamburger { display: none; flex-direction: column; gap: 5px; }
.vp-hamburger span { display: block; width: 24px; height: 2px; background: var(--vp-light); }

/* Mobile overlay */
.vp-mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: rgba(26,26,46,0.96);
  align-items: center; justify-content: center; flex-direction: column; gap: 1.5rem;
}
.vp-mobile-nav.active { display: flex; }
.vp-mobile-nav a { font-size: 1.5rem; font-weight: 600; }

@media (max-width: 768px) {
  .vp-nav { display: none; }
  .vp-hamburger { display: flex; }
}

/* ===== HERO ===== */
.vp-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.vp-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
}
.vp-hero .container { position: relative; padding-top: 6rem; }
.vp-hero-brand { font-size: 2.5rem; font-weight: 700; color: var(--vp-gold); }
.vp-hero h1 { margin-top: 1.25rem; font-size: 2.5rem; max-width: 900px; }
.vp-hero-desc { margin-top: 1.25rem; font-size: 1.125rem; color: rgba(240,240,240,0.85); max-width: 640px; }
.vp-hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.vp-hero-actions .vp-btn { padding: 0.75rem 1.75rem; font-weight: 600; }
.vp-hero-actions .vp-btn:hover { box-shadow: 0 0 20px rgba(200,169,81,0.65); }
.vp-hero-scroll {
  margin-top: 5rem; padding-bottom: 2rem;
  color: rgba(240,240,240,0.7); animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (min-width: 768px) {
  .vp-hero-brand { font-size: 3.75rem; }
  .vp-hero h1 { font-size: 3.75rem; }
}

/* ===== STATS ===== */
.vp-stats {
  background: linear-gradient(to right, var(--vp-gold), var(--vp-gold-hover));
  padding: 3.5rem 1.5rem;
}
.vp-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
  max-width: 1280px; margin: 0 auto;
}
.vp-stat { text-align: center; }
.vp-stat-value { font-size: 2.5rem; font-weight: 700; color: var(--vp-dark); }
.vp-stat-label { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 500; color: rgba(26,26,46,0.9); }
@media (min-width: 768px) {
  .vp-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== ABOUT ===== */
.vp-about { background: var(--vp-dark-alt); padding: 5rem 1.5rem; }
.vp-about-grid {
  display: grid; gap: 3rem; max-width: 1280px; margin: 0 auto;
  align-items: center;
}
.vp-about-grid img { width: 100%; height: 420px; object-fit: cover; }
.vp-about-tag { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3em; color: var(--vp-gold); }
.vp-about-grid h2 { margin-top: 1rem; font-size: 1.875rem; }
.vp-about-grid p { margin-top: 1.25rem; color: rgba(240,240,240,0.8); }
@media (min-width: 768px) {
  .vp-about-grid { grid-template-columns: 1fr 1fr; }
  .vp-about-grid h2 { font-size: 2.25rem; }
}

/* ===== SECTIONS COMMON ===== */
.vp-section { padding: 5rem 1.5rem; }
.vp-section-dark { background: var(--vp-dark); }
.vp-section-alt { background: var(--vp-dark-alt); }
.vp-section h2 { font-size: 1.875rem; }
.vp-section-bar { margin-top: 0.75rem; height: 4px; width: 7rem; background: var(--vp-gold); }

/* ===== SERVICES ===== */
.vp-services-grid {
  margin-top: 2.5rem;
  display: grid; gap: 1.75rem;
}
.vp-service-card {
  border: 1px solid rgba(240,240,240,0.1);
  padding: 1.5rem; transition: transform 0.3s, border-color 0.3s;
}
.vp-service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200,169,81,0.6);
}
.vp-service-card h3 { font-size: 1.25rem; transition: color 0.2s; }
.vp-service-card:hover h3 { color: var(--vp-gold); }
.vp-service-card p { margin-top: 0.75rem; color: rgba(240,240,240,0.75); }
.vp-service-card .link { margin-top: 1.25rem; display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--vp-gold); }
@media (min-width: 768px) { .vp-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vp-services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== PROJECTS ===== */
.vp-filter-bar { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.vp-filter-btn {
  border: 1px solid rgba(240,240,240,0.3);
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
  color: rgba(240,240,240,0.9); transition: all 0.2s;
}
.vp-filter-btn.active, .vp-filter-btn:hover {
  border-color: var(--vp-gold); background: var(--vp-gold); color: var(--vp-dark);
}

.vp-projects-grid { margin-top: 2rem; display: grid; gap: 1.25rem; }
.vp-project-card {
  position: relative; height: 18rem; overflow: hidden;
}
.vp-project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.vp-project-card:hover img { transform: scale(1.1); }
.vp-project-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  transition: background 0.3s;
}
.vp-project-card:hover .vp-project-overlay { background: rgba(0,0,0,0.6); }
.vp-project-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; }
.vp-project-info span { font-size: 0.875rem; color: var(--vp-gold); }
.vp-project-info h3 { font-size: 1.25rem; margin-top: 0.25rem; }
@media (min-width: 768px) { .vp-projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vp-projects-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== WHY US ===== */
.vp-why-grid {
  display: grid; gap: 3rem; max-width: 1280px; margin: 0 auto; align-items: center;
}
.vp-why-grid img { width: 100%; height: 420px; object-fit: cover; }
.vp-why-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.vp-why-dot { margin-top: 0.4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--vp-gold); flex-shrink: 0; }
.vp-why-item p { color: rgba(240,240,240,0.85); }
@media (min-width: 768px) { .vp-why-grid { grid-template-columns: 1fr 1fr; } }

/* ===== TESTIMONIALS ===== */
.vp-testimonials { text-align: center; }
.vp-testimonial-slide { margin-top: 2.5rem; transition: opacity 0.5s; }
.vp-testimonial-slide.hidden { display: none; }
.vp-testimonial-quote { font-size: 1.5rem; font-style: italic; color: rgba(240,240,240,0.95); }
.vp-testimonial-name { margin-top: 1.5rem; font-weight: 600; color: var(--vp-gold); }
.vp-testimonial-company { color: rgba(240,240,240,0.7); }

/* ===== ABOUT DETAILS ===== */
.vp-details-grid { margin-top: 2.5rem; display: grid; gap: 2rem; }
.vp-detail-card { border-top: 3px solid var(--vp-gold); background: var(--vp-dark); padding: 1.5rem; }
.vp-detail-card h3 { font-size: 1.25rem; }
.vp-detail-card p { margin-top: 0.75rem; color: rgba(240,240,240,0.8); }
@media (min-width: 768px) { .vp-details-grid { grid-template-columns: repeat(3, 1fr); } }

.vp-timeline { margin-top: 3rem; border-left: 3px solid var(--vp-gold); padding-left: 1.5rem; }
.vp-timeline p { margin-bottom: 1.25rem; color: rgba(240,240,240,0.85); }

/* ===== MARQUEE ===== */
.vp-marquee { background: var(--vp-light); padding: 2.5rem 0; overflow: hidden; white-space: nowrap; }
.vp-marquee-track { display: inline-flex; min-width: 100%; animation: marquee 22s linear infinite; }
.vp-marquee-group { display: inline-flex; gap: 3.2rem; padding: 0 1.6rem; }
.vp-marquee-group span {
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: rgba(26,26,46,0.7);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CTA ===== */
.vp-cta {
  position: relative; background-size: cover; background-position: center;
  padding: 6rem 1.5rem; text-align: center;
}
.vp-cta::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.vp-cta .container { position: relative; }
.vp-cta h2 { font-size: 2.25rem; }
.vp-cta p { margin-top: 1rem; font-size: 1.125rem; color: rgba(240,240,240,0.85); }
.vp-cta .vp-btn { margin-top: 2rem; padding: 0.75rem 2rem; }

/* ===== CONTACT ===== */
.vp-contact-grid { display: grid; gap: 2.5rem; max-width: 1280px; margin: 0 auto; }
@media (min-width: 768px) { .vp-contact-grid { grid-template-columns: 1fr 1fr; } }

.vp-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.vp-form input, .vp-form textarea, .vp-form select {
  width: 100%; border: 1px solid rgba(240,240,240,0.2);
  background: transparent; padding: 0.75rem 1rem; color: var(--vp-light);
}
.vp-form textarea { height: 9rem; resize: vertical; }
.vp-form select option { color: #000; }

.vp-contact-info { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; color: rgba(240,240,240,0.8); }
.vp-contact-info a:hover { color: var(--vp-gold); }
.vp-map { margin-top: 2rem; width: 100%; height: 16rem; border: 0; }

/* ===== FOOTER ===== */
.vp-footer { background: var(--vp-footer-bg); padding: 3.5rem 1.5rem; }
.vp-footer-grid { display: grid; gap: 2rem; max-width: 1280px; margin: 0 auto; }
@media (min-width: 768px) { .vp-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.vp-footer-brand { font-size: 1.5rem; font-weight: 700; color: var(--vp-gold); }
.vp-footer p, .vp-footer a { font-size: 0.875rem; color: rgba(240,240,240,0.7); }
.vp-footer a:hover { color: var(--vp-gold); }
.vp-footer h4 { font-weight: 600; margin-bottom: 0.75rem; color: var(--vp-light); }
.vp-footer-links { display: flex; flex-direction: column; gap: 0.5rem; }

.vp-newsletter { margin-top: 1rem; display: flex; }
.vp-newsletter input {
  flex: 1; border: 1px solid rgba(240,240,240,0.2);
  background: transparent; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--vp-light);
}
.vp-newsletter button {
  background: var(--vp-gold); padding: 0.5rem 1rem;
  font-size: 0.875rem; font-weight: 600; color: var(--vp-dark);
}
.vp-copyright {
  max-width: 1280px; margin: 2.5rem auto 0;
  border-top: 1px solid rgba(240,240,240,0.1);
  padding-top: 1.5rem; font-size: 0.875rem; color: rgba(240,240,240,0.6);
}

/* ===== SCROLL TO TOP ===== */
#vp-scroll-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--vp-gold); color: var(--vp-dark);
  font-size: 1.25rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  transition: opacity 0.3s;
}
#vp-scroll-top.visible { display: flex; }

/* ===== ANIMATE ON SCROLL ===== */
.vp-animate {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.vp-animate.in-view { opacity: 1; transform: translateY(0); }
.vp-animate-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.vp-animate-left.in-view { opacity: 1; transform: translateX(0); }
.vp-animate-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.vp-animate-right.in-view { opacity: 1; transform: translateX(0); }
