/* =========================================
   VARIABLES
   ========================================= */
:root {
      --navy: #186f07;
      --navy-light: #256b1c;
      --gold: #c9a227;
      --gold-light: #e8c45a;
      --white: #ffffff;
      --gray-50: #f8f9fb;
      --gray-100: #f0f2f5;
      --gray-300: #d1d5db;
      --gray-500: #6b7280;
      --gray-700: #374151;
      --text: #1a2332;
      --radius: 8px;
      --shadow: 0 4px 24px rgba(24,111,7,0.12);
      --shadow-lg: 0 12px 40px rgba(24,111,7,0.20);
      --transition: 0.3s ease;
      --font-body: 'Be Vietnam Pro', sans-serif;
      --font-display: 'Be Vietnam Pro', sans-serif;
    }

/* =========================================
   GLOBAL
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; font-size: 16px; }

    body {
      font-family: var(--font-body);
      color: var(--text);
      background: var(--white);
      line-height: 1.7;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; transition: color var(--transition); }
    img { max-width: 100%; height: auto; display: block; }
    ul { list-style: none; }

/* =========================================
   COMPONENTS & LAYOUT
   ========================================= */
/* ---- Scroll Progress Bar ---- */
    #scroll-progress {
      position: fixed; top: 0; left: 0; z-index: 9999;
      height: 3px; width: 0%;
      background: linear-gradient(90deg, var(--gold), var(--gold-light));
      transition: width 0.1s linear;
      border-radius: 0 2px 2px 0;
      box-shadow: 0 0 8px rgba(201,162,39,0.6);
    }

    /* ---- Active nav link ---- */
    #main-menu li a.active {
      background: rgba(201,162,39,0.22); color: var(--gold-light);
    }



    /* ---- Stat counter animation ---- */
    .stat-num { transition: transform 0.3s ease; }

    /* ---- Tooltip on team card hover ---- */
    .team-card { position: relative; }
.team-card-overlay {
      position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(135deg, rgba(24,111,7,0.88), rgba(37,107,28,0.92));
      display: flex; align-items: center; justify-content: center;
      flex-direction: column;
      opacity: 0; transition: opacity var(--transition);
      color: #fff; padding: 12px; text-align: center;
      pointer-events: none;
    }
    .team-card-overlay h4 {
      font-size: 1.2rem;
      font-weight: 700;
    }
    .team-card-overlay p {
      font-size: 0.9rem;
    }
    .team-card:hover .team-card-overlay { opacity: 1; }

    /* ---- Gold glowing pulse on CTA buttons ---- */
    @keyframes pulse-gold {
      0%, 100% { box-shadow: 0 4px 16px rgba(201,162,39,0.4); }
      50% { box-shadow: 0 4px 28px rgba(201,162,39,0.75); }
    }
    .btn-primary { animation: pulse-gold 2.5s ease-in-out infinite; }

    /* ---- Section fade-in animation ---- */
    .service-card, .team-card, .testimonial-card, .info-card, .stat-card, .feature-row {
      opacity: 0; transform: translateY(24px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }

    /* ---- Hero typing cursor ---- */
    .slogan #cursor {
      display: inline-block; width: 2px; height: 1em;
      background: var(--gold-light); margin-left: 3px;
      vertical-align: middle;
      animation: blink 0.85s step-end infinite;
    }
    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }

    /* ---- WhatsApp / Zalo floating button ---- */
    #float-zalo {
      position: fixed; bottom: 84px; right: 28px; z-index: 998;
      width: 46px; height: 46px;
      background: #0068ff; color: #fff;
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 16px rgba(0,104,255,0.4);
      font-size: 22px;
      transition: transform var(--transition), box-shadow var(--transition);
    }
    #float-zalo:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 24px rgba(0,104,255,0.5); }
    #float-phone {
      position: fixed; bottom: 140px; right: 28px; z-index: 998;
      width: 46px; height: 46px;
      background: var(--navy); color: var(--gold);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      box-shadow: var(--shadow);
      font-size: 20px;
      transition: transform var(--transition);
    }
    #float-phone:hover { transform: translateY(-4px); }

    /* ---- Ribbon badge on first team card ---- */
    .team-card-badge {
      position: absolute; top: 10px; left: 10px; z-index: 2;
      background: var(--gold); color: var(--navy);
      font-size: 0.68rem; font-weight: 800;
      padding: 3px 9px; border-radius: 20px;
      text-transform: uppercase; letter-spacing: 0.04em;
    }

    /* ---- Section-header decoration dots ---- */
    .divider { position: relative; }
    .divider::before, .divider::after {
      content: ''; position: absolute; top: 50%;
      transform: translateY(-50%);
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--gold);
    }
    .divider::before { left: -14px; }
    .divider::after  { right: -14px; }

    #toTop {
      position: fixed; bottom: 28px; right: 28px; z-index: 999;
      width: 46px; height: 46px;
      background: var(--gold); color: var(--white);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      box-shadow: var(--shadow); opacity: 0; pointer-events: none;
      transition: opacity var(--transition), transform var(--transition);
      font-size: 18px;
    }
    #toTop.visible { opacity: 1; pointer-events: auto; }
    #toTop:hover { transform: translateY(-4px); background: var(--navy); }

    /* ---- Navbar ---- */
    #nav-wrapper {
      position: sticky; top: 0; z-index: 900;
      background: var(--navy);
      box-shadow: 0 2px 20px rgba(0,0,0,0.25);
    }

    .navbar-inner {
      max-width: 1200px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 24px; height: 68px;
    }

    .navbar-brand img {
      height: 44px; width: auto; border-radius: 4px;
    }

    .nav-toggle {
      display: none; flex-direction: column; gap: 5px;
      cursor: pointer; background: none; border: none; padding: 6px;
    }
    .nav-toggle span {
      display: block; width: 24px; height: 2px;
      background: var(--white); border-radius: 2px; transition: var(--transition);
    }

    #main-menu {
      display: flex; gap: 4px; align-items: center;
    }

    #main-menu li a {
      color: rgba(255,255,255,0.85);
      padding: 8px 14px; border-radius: var(--radius);
      font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
      transition: background var(--transition), color var(--transition);
    }
    #main-menu li a:hover {
      background: rgba(201,162,39,0.18); color: var(--gold-light);
    }

    /* ---- Hero ---- */
    #section_header {
      position: relative; min-height: 600px;
      background: url('https://luatvieta.com.vn/wp-content/uploads/2018/07/luatvieta-cover.jpg') center/cover no-repeat;
    }
    #section_header::before {
      content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(24,111,7,0.88) 0%, rgba(24,111,7,0.60) 100%);
    }

    .hero-content {
      position: relative; z-index: 2;
      max-width: 900px; margin: 0 auto;
      padding: 80px 24px 60px;
      text-align: center; color: var(--white);
    }

    .hero-content h1 {
      font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.6rem);
      font-weight: 900; line-height: 1.25; margin-bottom: 20px;
      text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }

    .hero-logo { width: 130px; margin: 0 auto 28px; border-radius: 12px; }

    .slogan-wrap { min-height: 52px; margin-bottom: 36px; }
    .slogan {
      font-size: clamp(1.1rem, 2.5vw, 1.5rem);
      font-weight: 700; letter-spacing: 0.04em;
      text-transform: uppercase; color: rgba(255,255,255,0.92);
      animation: fadeSlide 0.6s ease forwards;
    }
    .slogan span { color: var(--gold-light); }

    @keyframes fadeSlide {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 14px 28px; border-radius: var(--radius);
      font-weight: 700; font-size: 0.95rem; cursor: pointer;
      transition: all var(--transition); white-space: nowrap;
    }
    .btn-primary {
      background: var(--gold); color: var(--navy);
      box-shadow: 0 4px 16px rgba(201,162,39,0.4);
    }
    .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,162,39,0.5); }

    .btn-outline {
      border: 2px solid var(--white); color: var(--white);
      background: rgba(255,255,255,0.08);
    }
    .btn-outline:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }

    /* ---- Section shared ---- */
    .section { padding: 72px 24px; }
    .section-light { background: var(--white); }
    .section-gray { background: var(--gray-50); }
    .section-dark {
      background: var(--navy);
      color: var(--white);
    }

    .container { max-width: 1200px; margin: 0 auto; }

    .section-header { text-align: center; margin-bottom: 52px; }
    .section-header h2 {
      font-family: var(--font-display);
      font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900;
      color: var(--navy); margin-bottom: 12px;
    }
    .section-dark .section-header h2 { color: var(--white); }
    .section-header p { color: var(--gray-500); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
    .section-dark .section-header p { color: rgba(255,255,255,0.7); }
    .section-header .divider {
      width: 56px; height: 4px; background: var(--gold);
      border-radius: 2px; margin: 14px auto 0;
    }

    /* ---- Services ---- */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 24px;
    }

    .service-card {
      background: var(--white); border-radius: 14px;
      padding: 36px 28px; text-align: center;
      box-shadow: var(--shadow);
      border-top: 4px solid var(--gold);
      transition: transform var(--transition), box-shadow var(--transition);
    }
    .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

    .service-card .icon {
      width: 72px; height: 72px; border-radius: 50%;
      background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 20px;
      color: var(--white);
      font-size: 1.6rem;
    }

    .service-card h3 {
      font-size: 1.1rem; font-weight: 700; margin-bottom: 12px;
      color: var(--navy);
    }
    .service-card p { font-size: 0.93rem; color: var(--gray-500); line-height: 1.65; }

    /* ---- Features ---- */
    .features-bg {
      background: url('https://luatvieta.com.vn/wp-content/uploads/2015/06/bg3.jpg') center/cover no-repeat;
      position: relative;
    }
    .features-bg::before {
      content: ''; position: absolute; inset: 0;
      background: rgba(24,111,7,0.85);
    }
    .features-bg .section-header { position: relative; z-index: 1; }
    .features-bg .section-header h2 { color: var(--white); }
    .features-bg .section-header .divider { background: var(--gold); }

    .feature-row {
      display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
      align-items: center; margin-bottom: 56px;
    }
    .feature-row:last-child { margin-bottom: 0; }
    .feature-row.reverse .feature-text { order: -1; }

    .feature-img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
    .feature-img img { width: 100%; object-fit: cover; }

    .feature-text h3 {
      font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
      margin-bottom: 14px; color: var(--navy);
    }
    .feature-text h3 a { color: var(--navy); }
    .feature-text h3 a:hover { color: var(--gold); }
    .feature-text p { color: var(--gray-500); margin-bottom: 14px; line-height: 1.75; }
    .feature-text ul { margin: 12px 0 20px 0; }
    .feature-text ul li {
      display: flex; gap: 10px; align-items: flex-start;
      padding: 5px 0; color: var(--gray-700); font-size: 0.95rem;
    }
    .feature-text ul li::before {
      content: '✓'; color: var(--gold); font-weight: 700;
      flex-shrink: 0; margin-top: 2px;
    }
    .feature-text .cta-small {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--navy); color: var(--white);
      padding: 12px 24px; border-radius: var(--radius);
      font-weight: 600; font-size: 0.92rem;
      transition: all var(--transition);
    }
    .feature-text .cta-small:hover { background: var(--gold); color: var(--navy); }

    /* ---- Clients / Testimonials ---- */
    .clients-bg {
      background: url('https://luatvieta.com.vn/wp-content/uploads/2015/06/bg5.jpg') center/cover no-repeat;
      position: relative;
    }
    .clients-bg::before {
      content: ''; position: absolute; inset: 0;
      background: rgba(24,111,7,0.82);
    }
    .clients-bg .section-header { position: relative; z-index: 1; }
    .clients-bg .section-header h2 { color: var(--white); }

    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    .testimonial-card {
      background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
      border-radius: 14px; padding: 28px; color: var(--white);
      backdrop-filter: blur(8px);
      transition: transform var(--transition);
    }
    .testimonial-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.13); }

    .testimonial-card .avatar {
      width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
      border: 2px solid var(--gold); margin-bottom: 14px;
    }

    .testimonial-card blockquote {
      font-size: 0.93rem; line-height: 1.7;
      color: rgba(255,255,255,0.88); font-style: italic;
      margin-bottom: 14px;
    }
    .testimonial-card blockquote::before { content: '"'; color: var(--gold); font-size: 1.4rem; font-style: normal; }
    .testimonial-card blockquote::after  { content: '"'; color: var(--gold); font-size: 1.4rem; font-style: normal; }

    .testimonial-name { font-weight: 700; color: var(--gold-light); font-size: 0.9rem; }

    /* ---- Stats ---- */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 24px; margin-top: 48px;
    }

    .stat-card {
      text-align: center; padding: 32px 16px;
      background: var(--white); border-radius: 14px;
      box-shadow: var(--shadow);
    }
    .stat-card .stat-num {
      font-family: var(--font-display); font-size: 2.8rem;
      font-weight: 900; color: var(--gold); line-height: 1;
      margin-bottom: 8px;
    }
    .stat-card .stat-label { color: var(--gray-500); font-size: 0.9rem; font-weight: 500; }

    /* ---- Team ---- */
    .team-bg {
      background: url('https://luatvieta.com.vn/wp-content/uploads/2015/06/bg6.jpg') center/cover no-repeat;
      position: relative;
    }
    .team-bg::before {
      content: ''; position: absolute; inset: 0;
      background: rgba(24,111,7,0.86);
    }
    .team-bg .section-header { position: relative; z-index: 1; }
    .team-bg .section-header h2 { color: var(--white); }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .team-card {
      background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
      border-radius: 14px; overflow: hidden; text-align: center;
      color: var(--white); backdrop-filter: blur(6px);
      transition: transform var(--transition), background var(--transition);
    }
    .team-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.14); }

    .team-card-img-wrap {
      width: 100%; aspect-ratio: 2 / 3; overflow: hidden;
    }
    .team-card-img-wrap img {
      width: 100%; height: 100%; object-fit: cover; object-position: top center;
      display: block;
      border: none;
    }
    .team-card-body {
      padding: 16px 14px 20px;
    }
    .team-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
    .team-card p { font-size: 0.8rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
    .team-card a { color: var(--gold-light); font-size: 0.78rem; }
    .team-card a:hover { text-decoration: underline; }
    .team-card .social-links { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
    .team-card .social-links a { color: rgba(255,255,255,0.55); font-size: 1rem; transition: color var(--transition); }
    .team-card .social-links a:hover { color: var(--gold); }

    /* ---- Contact ---- */
    #section_contact { background: var(--gray-50); padding: 72px 24px; }

    .contact-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
      align-items: start;
    }

    .contact-form-wrap h3 {
      font-size: 1.3rem; font-weight: 700; color: var(--navy);
      margin-bottom: 24px;
    }

    .form-group { margin-bottom: 18px; }
    .form-group label {
      display: block; font-size: 0.88rem; font-weight: 600;
      color: var(--navy); margin-bottom: 6px;
    }
    .form-group input,
    .form-group textarea {
      width: 100%; padding: 12px 16px;
      border: 1.5px solid var(--gray-300); border-radius: var(--radius);
      font-family: var(--font-body); font-size: 0.95rem;
      background: var(--white); color: var(--text);
      transition: border-color var(--transition), box-shadow var(--transition);
      outline: none;
    }
    .form-group input:focus,
    .form-group textarea:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
    }
    .form-group textarea { resize: vertical; min-height: 120px; }
    .form-note { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 14px; }

    .contact-info-wrap { display: flex; flex-direction: column; gap: 24px; }

    .info-card {
      background: var(--white); border-radius: 14px; padding: 28px;
      box-shadow: var(--shadow); border-left: 4px solid var(--gold);
    }
    .info-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
    .info-card p { font-size: 0.92rem; color: var(--gray-700); line-height: 1.8; }
    .info-card a { color: var(--navy); font-weight: 600; }
    .info-card a:hover { color: var(--gold); }

    /* ---- Footer ---- */
    footer {
      background: var(--navy); color: rgba(255,255,255,0.7);
      padding: 40px 24px; text-align: center;
    }
    footer .footer-logo { width: 80px; margin: 0 auto 16px; border-radius: 8px; }
    footer p { font-size: 0.88rem; line-height: 1.8; }
    footer a { color: var(--gold-light); }
    footer a:hover { text-decoration: underline; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
      .feature-row { grid-template-columns: 1fr; gap: 28px; }
      .feature-row.reverse .feature-text { order: 0; }
      .contact-grid { grid-template-columns: 1fr; }
      .team-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 900px) {
      .team-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 700px) {
      .nav-toggle { display: flex; }
      #main-menu {
        display: none; flex-direction: column;
        position: absolute; top: 68px; left: 0; right: 0;
        background: var(--navy-light);
        padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.1);
        gap: 0;
      }
      #main-menu.open { display: flex; }
      #main-menu li a { padding: 12px 24px; border-radius: 0; display: block; width: 100%; }
      .hero-cta { flex-direction: column; align-items: center; }
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .team-grid { grid-template-columns: repeat(2, 1fr); }
    }
