html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #1e40af;
}

html {
  position: relative;
  overflow-x: hidden;
}

body {
  margin-bottom: 0;
  overflow-x: hidden;
}

/* Custom styles for New Vision Accounting homepage */
.hero-section {
    background: #1e3a8a;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.btn-outline-primary {
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.btn-outline-primary:hover {
    background-color: #1e3a8a;
    color: #fff;
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #1e3a8a;
}

footer {
    background: #1e3a8a;
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 0;
}

/* Video section styles */
.video-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    z-index: 2;
}

.video-section-full {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    padding: 0;
    background: #000;
    z-index: 1;
}
.video-section-full video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    display: block;
}
.video-section-full .video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    z-index: 2;
    pointer-events: none;
}

/* Custom header and menu styles for LHP look */
.custom-header {
    background: #fff;
    border-bottom: none;
    padding-bottom: 0;
}
.nva-logo {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: #1e3a8a;
}
.nva-subtitle {
    font-family: 'Georgia', serif;
    color: #1e3a8a;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.custom-header img {
    height: 48px;
    width: auto;
    display: block;
    margin: 0 auto 8px auto;
}
.custom-header .text-start {
    line-height: 1.1;
}
.lang-btn {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}
.lang-btn:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.custom-menu-bar {
    width: 100%;
    margin: 0 auto;
    max-width: 1100px;
}
.menu-line {
    border: none;
    border-top: 2px solid #1e3a8a;
    margin: 0 0 0 0;
    opacity: 0.5;
}
.custom-nav-menu ul.nav {
    justify-content: center;
    gap: 1.1rem;
    font-size: 15px;
    font-family: 'Georgia', serif;
    font-weight: 400;
    align-items: center;
}
.custom-nav-menu .nav-link {
    color: #1e3a8a !important;
    background: none !important;
    border-radius: 0;
    padding: 0.5rem 0.8rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    font-size: 15px;
    font-weight: 400;
}
.custom-nav-menu .nav-link:hover, .custom-nav-menu .nav-link.active {
    color: #1e40af !important;
    border-bottom: 2px solid #1e40af;
    background: none !important;
}
@media (max-width: 900px) {
    .custom-nav-menu ul.nav {
        gap: 0.5rem;
        font-size: 1rem;
    }
    .nva-logo {
        font-size: 2rem;
    }
}

.custom-footer {
    background: #222;
    color: #fff;
    border-top: none;
    font-size: 1rem;
}
.custom-footer h6 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}
.custom-footer .footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.custom-footer .footer-link:hover {
    color: #1e40af;
    text-decoration: underline;
}
.custom-footer address {
    font-style: normal;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
}
.custom-footer .small {
    color: #bbb;
}

.footer-minimal {
    background: #181a1b;
    color: #bbb;
    border-top: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
.footer-content {
    gap: 1.5rem;
    min-height: 48px;
}
.footer-links {
    gap: 1.2rem !important;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.footer-link {
    color: #bbb;
    text-decoration: none;
    font-size: 0.97rem;
    transition: color 0.18s, border-bottom 0.18s;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
}
.footer-link:hover {
    color: #1e40af;
    border-bottom: 1.5px solid #1e40af;
    text-decoration: none;
}
.footer-contact, .footer-address {
    color: #bbb;
    font-size: 0.97rem;
    margin-bottom: 0;
    line-height: 1.4;
}
.footer-content > * {
    margin-bottom: 0 !important;
}
.footer-copyright {
    color: #aaa;
    font-size: 0.92rem;
    border-top: 1px solid #232425;
    margin-top: 0;
    letter-spacing: 0.01em;
}
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    .footer-contact, .footer-address {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.footer-pro {
    background: #171a1d;
    color: #8b98ac;
    font-size: 1rem;
    padding-top: 20px;
    padding-bottom: 0;
    border-top: 1.5px solid #23272b;
}

.footer-links-row {
    gap: 14px !important;
    font-size: 1.06rem;
    padding-bottom: 0;
    margin-bottom: 4px;
    flex-wrap: wrap;
    line-height: 1.1;
}

.footer-link-pro {
    color: #b2bac6;
    text-decoration: none;
    padding: 2px 8px 2px 8px;
    border-radius: 8px;
    transition: color 0.18s, background 0.18s;
    font-weight: 400;
    font-size: 1.04rem;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
}

.footer-link-pro:hover,
.footer-link-pro:focus {
    color: #fff;
    background: #2c3a4b;
    text-decoration: underline;
}

.footer-divider {
    width: 98%;
    max-width: 620px;
    height: 1.5px;
    background: linear-gradient(90deg,#26344b 10%,#1e40af 90%);
    border-radius: 1px;
    opacity: 0.33;
    margin-bottom: 6px;
}

.footer-meta-row {
    font-size: 0.96rem;
    gap: 12px !important;
    color: #b3bbc4;
    line-height: 1.2;
    margin-bottom: 0;
}

.footer-meta-item {
    white-space: nowrap;
    display: inline-block;
}

.footer-copyright {
    color: #7c8898 !important;
    font-size: 0.93rem;
    margin-top: 4px;
    margin-bottom: 0;
    letter-spacing: 0.03em;
}

@media (max-width: 600px) {
    .footer-links-row,
    .footer-meta-row {
        flex-direction: column !important;
        gap: 4px !important;
    }
    .footer-divider {
        margin: 10px auto 6px auto;
    }
}

/* Parallax Video Effect */
.hero-parallax-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    width: 100%;
    padding: 0;
}

.parallax-video-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0; left: 0;
    z-index: 1;
}

.parallax-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    will-change: transform;
    min-height: 400px;
}

/* Center the overlay perfectly! */
.video-overlay-center {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    color: #fff;
    text-align: center;
}

.video-overlay-center h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments for parallax */
@media (max-width: 768px) {
    .parallax-video-wrapper {
        height: 110%; /* Less movement on mobile for better performance */
    }
    
    .parallax-video {
        transform: scale(1.05);
    }
}

/* Disable parallax on devices that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .parallax-video-wrapper {
        transform: none !important;
    }
    
    .parallax-video {
        transform: scale(1) !important;
    }
}

/* --- Service Detail Styles (modern, responsive) --- */
.service-banner {
  background: linear-gradient(180deg,#f6f9fd 0%,#eef3f9 100%);
  padding: 48px 16px 28px 16px;
  text-align: center;
}
.service-banner .service-icon {
  font-size: 2.4rem;
  background: linear-gradient(120deg,#e7f0fc 0%,#ffffff 100%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(40,65,106,0.08);
  color: #1e40af;
  margin-bottom: 14px;
}
.service-banner h1 {
  color: #1e3a8a;
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 8px;
}
.service-banner .lead {
  color: #5f6f86;
  max-width: 760px;
  margin: 0 auto;
}

.service-content {
  padding: 28px 16px 56px 16px;
  background: #f8fafd;
}
.service-container {
  max-width: 1140px;
  margin: 0 auto;
}
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
}
.service-prose p {
  color: #2a3342;
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-prose h2,
.service-prose h3 {
  color: #1e3a8a;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.service-prose ul {
  padding-left: 18px;
  margin-bottom: 20px;
}
.service-prose li { margin-bottom: 8px; }

.service-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(27, 36, 48, 0.10), 0 2px 10px rgba(27, 36, 48, 0.06);
  border: 1px solid #e6ebf3;
  padding: 18px 18px 14px 18px;
}
.service-card h4 {
  color: #1e3a8a;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #2a3342;
  padding: 10px 10px;
  border-radius: 10px;
  transition: background .18s ease;
}
.feature-list li:hover { background: #f1f5fb; }
.feature-list .icon {
  color: #1e40af;
  margin-top: 3px;
}

.service-image {
  border-radius: 14px;
  background: radial-gradient(500px 220px at 20% 0%, #e9f0fb 0%, transparent 60%),
              linear-gradient(135deg, #f5f8fd 0%, #eaf0f8 100%);
  border: 1px solid #e6ebf3;
  box-shadow: 0 10px 30px rgba(27, 36, 48, 0.08), 0 2px 10px rgba(27, 36, 48, 0.05);
  aspect-ratio: 4/3;
}

.service-cta {
  margin-top: 26px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 6px 22px rgba(27, 36, 48, 0.08);
}
.service-cta .cta-text { color: #2a3342; }
.service-cta .btn-cta {
  background: #1e40af;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .06s ease, box-shadow .18s ease, filter .18s ease;
}
.service-cta .btn-cta:hover { filter: brightness(1.05); box-shadow: 0 8px 18px rgba(56, 71, 109, .22); }
.service-cta .btn-cta:active { transform: translateY(1px); }

@media (max-width: 992px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-cta { flex-direction: column; align-items: stretch; }
}

/* --- Typing cursor for service titles --- */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #1e3a8a;
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink-caret 0.9s steps(1) infinite;
}
@keyframes blink-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.typing-cursor.fade-out {
  animation: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

/* --- Services banners use shared background image with overlay --- */
.service-banner {
  position: relative;
  background-image: url('/images/services-banner.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
}
.service-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17,27,39,0.55) 0%, rgba(17,27,39,0.35) 100%);
}
.service-banner .service-container {
  position: relative;
  z-index: 1;
}
.service-banner h1,
.service-banner .lead {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.25);
}
@media (max-width: 600px) {
  .service-banner { min-height: 260px; padding: 24px 12px; }
}

/* Quote form styling */
.quote-form .form-label { font-weight: 600; color: #1e3a8a; }
.quote-form .form-control, .quote-form .form-select { border-radius: 8px; border-color: #d7deea; }
.quote-form .form-control:focus, .quote-form .form-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 0.2rem rgba(122,162,227,.2); }
.quote-form .btn-primary { background-color: #1e3a8a; border-color: #1e3a8a; border-radius: 8px; padding: 10px 18px; font-weight: 600; }
.quote-form .btn-primary:hover { background-color: #1e40af; border-color: #1e40af; }

/* --- Responsive Footer (site-footer) --- */
.site-footer {
  background: #171a1d;
  color: #b3bbc4;
  padding: 20px 16px 12px 16px;
  border-top: 1.5px solid #23272b;
}
.site-footer a { color: #b3bbc4; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-start;
}
.site-footer .footer-col {
  flex: 1 1 280px;
  min-width: 240px;
}
.site-footer .footer-title {
  color: #e2e8f0;
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: 10px;
}
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.site-footer .footer-links a { padding: 2px 6px; border-radius: 8px; transition: background .18s, color .18s; }
.site-footer .footer-links a:hover { background: #2c3a4b; }

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { height: 26px; width: auto; object-fit: contain; }

.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 12px auto 0 auto;
  padding-top: 10px;
  border-top: 1px solid #23272b;
  font-size: 0.92rem;
  color: #7c8898;
  text-align: center;
}

@media (max-width: 600px) {
  .site-footer { padding: 16px 12px 8px 12px; }
  .site-footer .footer-container { gap: 12px 16px; }
  .site-footer .footer-col { flex: 1 1 100%; min-width: 0; }
  .site-footer .footer-title { margin-top: 4px; margin-bottom: 6px; }
  .site-footer .footer-links { gap: 6px 8px; }
  .footer-brand { gap: 8px; }
  .footer-logo { height: 22px; }
}