/*
Theme Name: Boldo Template
Theme URI: https://tests.avwebstart.md
Author: Victor Toderas
Description: A dark navy/coral Boldo-style theme with services from database, testimonials carousel, and logo marquee.
Version: 1.0
Text Domain: boldo
*/

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

:root {
  --dark: #0A2640;
  --dark-card: #1B3A4B;
  --accent: #F76C5E;
  --white: #FFFFFF;
  --gray: #C4C4C4;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--white); background: var(--dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--dark); padding: 18px 0; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-links .btn-login { background: var(--accent); color: var(--white); padding: 10px 28px; border-radius: 50px; font-weight: 600; transition: background .2s; }
.nav-links .btn-login:hover { background: #e55a4a; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ===== HERO ===== */
.hero { padding: 160px 0 100px; text-align: center; background: linear-gradient(180deg, var(--dark) 0%, #0d2f4d 100%); }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; max-width: 700px; margin: 0 auto 28px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 18px; color: var(--gray); max-width: 540px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 14px 36px; border-radius: 50px; font-size: 16px; font-weight: 600; transition: .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #e55a4a; }
.btn-outline { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ===== MARQUEE ===== */
.marquee-section { padding: 40px 0; background: var(--dark); overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.marquee-track { display: flex; width: max-content; animation: marquee 20s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; padding: 0 48px; font-size: 28px; font-weight: 800; opacity: .35; white-space: nowrap; }
.marquee-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 16px; flex-shrink: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== SERVICES (Section 2) ===== */
.services-section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label { text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--accent); margin-bottom: 14px; }
.section-title { font-size: 40px; font-weight: 800; line-height: 1.2; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--dark-card); border-radius: 16px; overflow: hidden; transition: transform .3s, box-shadow .3s; border: 1px solid rgba(255,255,255,.06); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.service-card-img { width: 100%; height: 200px; object-fit: cover; }
.service-card-body { padding: 28px; }
.service-card-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.service-card-body p { font-size: 15px; color: var(--gray); margin-bottom: 20px; line-height: 1.7; }
.service-card-link { color: var(--accent); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.service-card-link:hover { gap: 12px; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 100px 0; background: linear-gradient(180deg, #0d2f4d 0%, var(--dark) 100%); }
.testimonials-carousel { position: relative; overflow: hidden; }
.testimonials-track { display: flex; transition: transform .5s ease; }
.testimonial-slide { min-width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 4px; }
.testimonial-card { background: var(--dark-card); border-radius: 16px; padding: 32px; border-left: 4px solid var(--accent); display: flex; flex-direction: column; }
.testimonial-card p { font-size: 15px; color: var(--gray); line-height: 1.8; flex: 1; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.testimonial-info h4 { font-size: 16px; font-weight: 700; }
.testimonial-info span { font-size: 13px; color: var(--gray); }
.carousel-nav { display: flex; justify-content: center; gap: 16px; margin-top: 40px; }
.carousel-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent); background: transparent; color: var(--accent); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; }
.carousel-btn:hover { background: var(--accent); color: var(--white); }

/* ===== ENTERPRISE CTA ===== */
.enterprise-section { padding: 100px 0; }
.enterprise-inner { background: var(--dark-card); border-radius: 20px; padding: 60px; display: flex; align-items: center; gap: 60px; border: 1px solid rgba(255,255,255,.06); }
.enterprise-content { flex: 1; }
.enterprise-content h2 { font-size: 36px; font-weight: 800; line-height: 1.25; margin-bottom: 20px; }
.enterprise-content p { color: var(--gray); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.enterprise-testimonial { flex: 1; background: rgba(255,255,255,.04); border-radius: 16px; padding: 36px; border-left: 4px solid var(--accent); }
.enterprise-testimonial blockquote { font-size: 15px; color: var(--gray); line-height: 1.8; font-style: italic; margin-bottom: 20px; }

/* ===== FOOTER ===== */
.site-footer { background: #061b30; padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--gray); font-size: 14px; max-width: 300px; line-height: 1.7; }
.footer-col h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; color: var(--accent); }
.footer-col a { display: block; font-size: 14px; color: var(--gray); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--gray); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-slide { grid-template-columns: repeat(2, 1fr); }
  .testimonial-slide .testimonial-card:nth-child(3) { display: none; }
  .enterprise-inner { flex-direction: column; padding: 40px; }
}

@media (max-width: 768px) {
  .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #061b30; flex-direction: column; padding: 80px 32px 32px; gap: 24px; transition: right .3s; box-shadow: -4px 0 30px rgba(0,0,0,.5); }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 130px 0 70px; }
  .section-title { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonial-slide { grid-template-columns: 1fr; }
  .testimonial-slide .testimonial-card:nth-child(2),
  .testimonial-slide .testimonial-card:nth-child(3) { display: none; }
  .enterprise-inner { padding: 28px; gap: 32px; }
  .enterprise-content h2 { font-size: 26px; }
  .footer-inner { flex-direction: column; }
}

/* ===== WP ADMIN PAGE ===== */
.boldo-admin-wrap { max-width: 960px; }
.boldo-admin-wrap h1 { margin-bottom: 20px; }
.boldo-services-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.boldo-services-table th, .boldo-services-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #ddd; }
.boldo-services-table th { background: #f1f1f1; }
.boldo-form-wrap { background: #fff; padding: 20px; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 30px; }
.boldo-form-wrap label { display: block; font-weight: 600; margin-bottom: 4px; margin-top: 12px; }
.boldo-form-wrap input, .boldo-form-wrap textarea { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.boldo-form-wrap textarea { min-height: 80px; resize: vertical; }
