/* YUJA VALLE LLC — Main Stylesheet */
:root {
  --purple: #4a1942; --purple-dark: #3a1234; --purple-light: #6d2362;
  --coral: #f97316; --coral-light: #fb923c; --cream: #fff7ed;
  --white: #ffffff; --bg: #fefcf9;
  --text: #1c1917; --text-sec: #44403c; --text-muted: #78716c;
  --border: #e7e5e4; --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --font: 'Inter', system-ui, sans-serif; --font-alt: 'Outfit', sans-serif;
  --max-w: 1200px; --nav-h: 68px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Nav */
.site-header { position: fixed; top: 0; width: 100%; height: var(--nav-h); background: var(--white); border-bottom: 1px solid var(--border); z-index: 100; transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
@media (min-width:768px) { .nav-container { padding: 0 40px; } }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--purple); z-index: 101; }
.logo-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--coral); font-size: 20px; }
.nav-links { display: none; gap: 32px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-sec); padding: 4px 0; position: relative; transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--coral); transition: width 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--purple); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: flex; flex-direction: column; gap: 4px; z-index: 101; padding: 4px; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.toggle-bar { width: 24px; height: 2.5px; background: var(--purple); border-radius: 2px; transition: 0.3s; }
.nav-toggle.active .toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay { position: fixed; inset: 0; background: var(--purple); z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-overlay a { color: var(--white); font-size: 20px; font-weight: 600; }

/* Hero */
.hero { min-height: 100vh; padding-top: var(--nav-h); background: var(--cream); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-splash { position: absolute; inset: 0; pointer-events: none; }
.splash-shape { position: absolute; border-radius: 50%; }
.splash-circle-1 { width: 300px; height: 300px; top: -60px; right: -80px; background: var(--purple); opacity: 0.06; }
.splash-circle-2 { width: 180px; height: 180px; top: 30%; right: 15%; background: var(--coral); opacity: 0.08; }
.splash-circle-3 { width: 220px; height: 220px; bottom: 10%; left: -40px; background: var(--purple); opacity: 0.05; }
.splash-blob-1 { width: 400px; height: 300px; bottom: 20%; right: 5%; background: var(--coral); opacity: 0.04; border-radius: 60% 40% 50% 30%; }
.splash-blob-2 { width: 150px; height: 150px; top: 15%; left: 10%; background: var(--purple); opacity: 0.05; border-radius: 30% 70% 50% 50%; }
.splash-drip-1 { width: 8px; height: 80px; top: 25%; left: 25%; background: var(--coral); opacity: 0.1; border-radius: 4px; }
.splash-drip-2 { width: 6px; height: 60px; top: 55%; left: 70%; background: var(--purple); opacity: 0.08; border-radius: 3px; }
.splash-path-1 { width: 200px; height: 200px; top: 60%; right: 20%; border: 2px solid var(--coral); opacity: 0.06; border-radius: 50%; }
.splash-path-2 { width: 120px; height: 120px; top: 20%; right: 40%; border: 2px solid var(--purple); opacity: 0.05; border-radius: 50%; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 700px; padding: 0 24px; }
.hero-heading { font-family: var(--font-alt); font-size: 48px; font-weight: 800; color: var(--purple); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
@media (min-width: 768px) { .hero-heading { font-size: 60px; } }
.hero-underline { width: 60px; height: 3px; background: var(--coral); margin: 0 auto 20px; border-radius: 2px; }
.hero-subtitle { font-size: 18px; color: var(--text-sec); max-width: 540px; margin: 0 auto 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; font-size: 15px; font-weight: 600; border-radius: 8px; transition: all 0.25s; }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,25,66,0.2); }
.btn-coral-outline { background: transparent; color: var(--purple); border: 2px solid var(--coral); }
.btn-coral-outline:hover { background: var(--coral); color: var(--white); }
.btn-white { background: var(--white); color: var(--purple); }
.btn-full { width: 100%; }

/* Sections common */
.section-container { max-width: var(--max-w); margin: 0 auto; padding: 80px 24px; }
@media (min-width:768px) { .section-container { padding: 100px 40px; } }
.section-heading { font-family: var(--font-alt); font-size: 32px; font-weight: 700; color: var(--purple); margin-bottom: 12px; }
@media (min-width:768px) { .section-heading { font-size: 40px; } }
.section-subtitle { font-size: 16px; color: var(--text-sec); max-width: 600px; margin-bottom: 40px; }

/* Services - Vertical Tab Cards */
.services { background: var(--white); }
.tab-card { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.3s; }
.tab-card:hover { box-shadow: var(--shadow); }
.tab-toggle { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--white); text-align: left; transition: background 0.2s; }
.tab-toggle.active { background: var(--purple); color: var(--white); }
.tab-marker { width: 32px; height: 32px; background: var(--coral); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.tab-toggle.active .tab-marker { background: var(--white); color: var(--purple); }
.tab-header { font-size: 17px; font-weight: 600; flex: 1; }
.toggle-icon { font-size: 18px; color: var(--text-muted); transition: transform 0.3s; }
.tab-toggle.active .toggle-icon { color: var(--white); transform: rotate(180deg); }
.tab-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.tab-body.open { max-height: 400px; }
.tab-content { padding: 0 20px 20px 66px; }
.tab-content p { font-size: 15px; color: var(--text-sec); margin-bottom: 12px; line-height: 1.7; }
.feature-marker { display: inline-block; padding: 3px 10px; background: var(--cream); border-radius: 20px; font-size: 13px; color: var(--purple); font-weight: 500; margin: 0 6px 6px 0; }

/* About - History Pins */
.about { background: var(--white); }
.history-timeline { position: relative; display: flex; justify-content: space-between; max-width: 800px; margin: 50px auto 0; padding: 30px 0; }
.timeline-line { position: absolute; top: 50%; left: 5%; right: 5%; height: 2px; background: var(--border); transform: translateY(-50%); }
.pin-marker { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.pin-dot { width: 14px; height: 14px; background: var(--coral); border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--coral); }
.pin-year { font-size: 14px; font-weight: 700; color: var(--purple); }
.pin-card { background: var(--cream); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--text-sec); text-align: center; max-width: 120px; border: 1px solid var(--border); }

/* Industries - Masonry */
.industries { background: var(--cream); }
.masonry-grid { column-count: 2; column-gap: 16px; max-width: 800px; margin: 0 auto; }
@media (min-width: 768px) { .masonry-grid { column-count: 3; } }
.masonry-card { break-inside: avoid; background: var(--white); border-radius: 12px; padding: 20px; margin-bottom: 16px; border-top: 3px solid var(--coral); text-align: center; }
.card-short { padding: 16px 20px; }
.card-tall { padding: 32px 20px; }
.card-icon { font-size: 28px; margin-bottom: 8px; }

/* Approach - Badges */
.approach { background: var(--white); }
.badge-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }
.achievement-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 28px; border-radius: 16px; min-width: 120px; }
.badge-purple { background: var(--purple); color: var(--white); }
.badge-coral { background: var(--coral); color: var(--white); }
.badge-circle { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.badge-icon { font-size: 20px; }
.badge-label { font-size: 13px; font-weight: 500; text-align: center; }

/* Contact - Widget */
.contact { background: var(--cream); }
.contact-card { max-width: 500px; margin: 0 auto; background: var(--white); border-radius: 16px; padding: 36px 32px; border-top: 3px solid var(--purple); box-shadow: var(--shadow); }
.contact-heading { font-size: 20px; font-weight: 700; color: var(--purple); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; outline: none; transition: border-color 0.2s; font-family: var(--font); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--purple); }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-success { display: none; padding: 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; color: #166534; text-align: center; font-weight: 500; }
.form-success.visible { display: block; }
.contact-note { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* CTA — Resource Card */
.cta { background: var(--coral); text-align: center; }
.cta .resource-icon { font-size: 48px; margin-bottom: 16px; }
.cta .section-heading { color: var(--white); }
.cta .section-subtitle { color: rgba(255,255,255,0.85); margin: 0 auto 28px; }

/* Footer */
.site-footer { background: var(--purple); color: rgba(255,255,255,0.7); padding: 48px 24px 0; }
.footer-container { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
@media (min-width:768px) { .footer-container { flex-direction: row; justify-content: space-between; } }
.footer-logo { font-weight: 700; color: var(--white); }
.footer-brand { max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer-col a:hover { color: var(--coral); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; margin-top: 36px; text-align: center; font-size: 13px; }
.footer-address { font-style: normal; margin-top: 4px; }

/* Legal pages */
.legal-page { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; background: var(--white); }
.legal-container { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.legal-intro { margin-bottom: 40px; }
.legal-intro h1 { font-family: var(--font-alt); font-size: 30px; color: var(--purple); margin-bottom: 8px; }
.legal-date { font-size: 14px; color: var(--text-muted); display: block; margin-bottom: 20px; }
.legal-address { font-size: 14px; color: var(--text-sec); margin-bottom: 12px; }

/* Scroll animations */
.pop-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.pop-up.visible { opacity: 1; transform: translateY(0); }
.pop-up-delay-1 { transition-delay: 0.1s; }
.pop-up-delay-2 { transition-delay: 0.2s; }
.pop-up-delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 767px) {
  .history-timeline { flex-direction: column; gap: 16px; align-items: center; }
  .timeline-line { display: none; }
  .masonry-grid { column-count: 1; }
}
