/* ==========================================================================
   AV Overhead — Custom Styles
   Shared across all pages. Bootstrap 5 base.
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --av-charcoal: #1C1C1E;
  --av-orange: #F26419;
  --av-orange-hover: #d9560f;
  --av-bg: #F5F5F5;
  --av-white: #FFFFFF;
  --av-body: #3A3A3A;
  --av-body-light: #6B6B6B;
  --av-border: #E0E0E0;
  --av-orange-glow: rgba(242, 100, 25, 0.25);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--av-body);
  background-color: var(--av-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  color: var(--av-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--av-orange);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--av-orange-hover);
}

::selection {
  background: var(--av-orange);
  color: #fff;
}

/* ---------- Utility ---------- */
.text-orange { color: var(--av-orange) !important; }
.bg-charcoal { background-color: var(--av-charcoal) !important; }
.bg-offwhite { background-color: var(--av-bg) !important; }

.section-pad {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ---------- Navbar ---------- */
.av-navbar {
  background: var(--av-white);
  border-bottom: 3px solid var(--av-orange);
  transition: box-shadow 0.3s ease;
}
.av-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.av-navbar .navbar-brand img {
  height: 38px;
  width: auto;
}
.av-navbar .navbar-brand span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--av-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.av-navbar .nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--av-charcoal) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.2s ease;
}
.av-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--av-orange);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.av-navbar .nav-link:hover {
  color: var(--av-orange) !important;
}
.av-navbar .nav-link:hover::after {
  transform: scaleX(1);
}

.av-navbar .btn-cta-nav {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--av-orange);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.av-navbar .btn-cta-nav:hover {
  background: var(--av-orange-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.av-hero {
  min-height: 85vh;
  position: relative;
  overflow: hidden;
  background: var(--av-charcoal);
}

.av-hero-panel {
  background: var(--av-charcoal);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  min-height: 85vh;
}

.av-hero-panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: -60px;
  width: 120px;
  height: 100%;
  background: var(--av-charcoal);
  transform: skewX(-4deg);
  z-index: 3;
}

.av-hero-panel h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.av-hero-panel h1 .text-highlight {
  color: var(--av-orange);
  display: inline;
}

.av-hero-panel p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 2rem;
}

.av-hero-image {
  position: relative;
  min-height: 85vh;
  background-size: cover;
  background-position: center;
}
.av-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--av-charcoal) 0%, transparent 30%);
  z-index: 1;
}

/* Hero CTA */
.btn-hero {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--av-orange);
  color: #fff;
  border: none;
  padding: 1rem 2.75rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-hero:hover {
  background: var(--av-orange-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--av-orange-glow);
}
.btn-hero i {
  transition: transform 0.2s ease;
}
.btn-hero:hover i {
  transform: translateX(4px);
}

/* Trust bar */
.av-trust-bar {
  background: var(--av-charcoal);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
  position: relative;
  z-index: 2;
}
.av-trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}
.av-trust-bar .trust-item i {
  color: var(--av-orange);
  font-size: 1rem;
}

/* ---------- Section Headings ---------- */
.section-heading {
  margin-bottom: 3rem;
}
.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.section-heading .heading-bar {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--av-orange);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.section-heading p {
  color: var(--av-body-light);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ---------- Service Cards ---------- */
.av-service-card {
  background: var(--av-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--av-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}
.av-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  border-color: var(--av-orange);
}

.av-service-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--av-orange), #ff8a3d);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.25s ease;
}
.av-service-card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
}
.av-service-card .card-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.av-service-card .card-body {
  padding: 2rem;
}
.av-service-card .card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.av-service-card .card-body p {
  color: var(--av-body-light);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.av-service-card .card-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--av-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}
.av-service-card .card-link:hover {
  gap: 0.7rem;
}

/* ---------- About / Split Section ---------- */
.av-about-section {
  background: var(--av-white);
}
.av-about-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.av-about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.av-about-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 40%;
  height: 40%;
  border: 4px solid var(--av-orange);
  border-radius: 8px;
  z-index: -1;
}

.av-stat-block {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.av-stat-block .stat {
  text-align: center;
}
.av-stat-block .stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--av-orange);
  line-height: 1;
}
.av-stat-block .stat-label {
  font-size: 0.82rem;
  color: var(--av-body-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Categories / Dark Section ---------- */
.av-categories-section {
  background: var(--av-charcoal);
  position: relative;
  overflow: hidden;
}
.av-categories-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 60px solid rgba(242,100,25,0.06);
  border-radius: 50%;
}

.av-categories-section h2,
.av-categories-section p {
  color: #fff;
}
.av-categories-section .heading-bar {
  background: var(--av-orange);
}

.av-cat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  height: 100%;
  text-decoration: none;
  display: block;
}
.av-cat-card:hover {
  background: rgba(242,100,25,0.1);
  border-color: var(--av-orange);
  transform: translateY(-4px);
}

.av-cat-card .cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--av-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.av-cat-card .cat-icon i {
  font-size: 1.3rem;
  color: #fff;
}
.av-cat-card h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Financing CTA Banner ---------- */
.av-financing-banner {
  background: linear-gradient(135deg, var(--av-orange), #ff8a3d, #F26419);
  position: relative;
  overflow: hidden;
}
.av-financing-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.06);
  transform: rotate(25deg);
}
.av-financing-banner h2 {
  color: #fff;
}
.av-financing-banner p {
  color: rgba(255,255,255,0.9);
}

.btn-white {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff;
  color: var(--av-orange);
  border: none;
  padding: 0.85rem 2.25rem;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-white:hover {
  background: #fff;
  color: var(--av-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ---------- FAQ Section ---------- */
.av-faq-section {
  background: var(--av-white);
}
.av-faq-section .accordion-item {
  border: 1px solid var(--av-border);
  border-radius: 8px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.av-faq-section .accordion-button {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--av-charcoal);
  background: var(--av-white);
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}
.av-faq-section .accordion-button:not(.collapsed) {
  color: var(--av-orange);
  background: var(--av-white);
}
.av-faq-section .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F26419'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.av-faq-section .accordion-body {
  color: var(--av-body-light);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0 1.5rem 1.25rem;
}

/* ---------- Contact Section ---------- */
.av-contact-section {
  background: var(--av-bg);
}

.av-contact-form .form-control,
.av-contact-form .form-select {
  border: 1px solid var(--av-border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  background: var(--av-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.av-contact-form .form-control:focus,
.av-contact-form .form-select:focus {
  border-color: var(--av-orange);
  box-shadow: 0 0 0 3px var(--av-orange-glow);
}
.av-contact-form label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--av-charcoal);
  margin-bottom: 0.4rem;
}
.av-contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--av-orange);
  color: #fff;
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 4px;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-submit:hover {
  background: var(--av-orange-hover);
  color: #fff;
  transform: translateY(-2px);
}

.av-contact-info-card {
  background: var(--av-charcoal);
  border-radius: 8px;
  padding: 2.5rem;
  height: 100%;
}
.av-contact-info-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.av-contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.av-contact-info-item .icon-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(242,100,25,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-contact-info-item .icon-circle i {
  color: var(--av-orange);
  font-size: 1.1rem;
}
.av-contact-info-item .info-text h5 {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.av-contact-info-item .info-text p,
.av-contact-info-item .info-text a {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0;
}
.av-contact-info-item .info-text a:hover {
  color: var(--av-orange);
}

.av-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.av-social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.av-social-links a:hover {
  background: var(--av-orange);
  transform: translateY(-2px);
}

/* ---------- Video Section ---------- */
.av-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.av-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.av-footer {
  background: var(--av-charcoal);
  border-top: 4px solid var(--av-orange);
}
.av-footer h5 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.av-footer p,
.av-footer address {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: normal;
}
.av-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}
.av-footer a:hover {
  color: var(--av-orange);
}
.av-footer .footer-links li {
  margin-bottom: 0.5rem;
}
.av-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.av-footer .footer-bottom p {
  font-size: 0.82rem;
  margin-bottom: 0;
}
.av-footer .payment-icons i {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.4);
  margin-right: 0.5rem;
}

/* ---------- Back to Top ---------- */
.btn-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--av-orange);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-back-top:hover {
  background: var(--av-orange-hover);
  color: #fff;
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ---------- SVG Divider ---------- */
.section-divider {
  position: relative;
  margin-top: -1px;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .av-hero {
    min-height: auto;
  }
  .av-hero-panel {
    min-height: auto;
    padding: 4rem 2rem 3rem;
  }
  .av-hero-panel::after {
    display: none;
  }
  .av-hero-image {
    min-height: 50vh;
  }
  .av-hero-image::before {
    background: linear-gradient(to bottom, var(--av-charcoal) 0%, transparent 40%);
  }
  .section-pad {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 767.98px) {
  .av-hero-panel h1 {
    font-size: 2.2rem;
  }
  .av-hero-image {
    min-height: 40vh;
  }
  .av-trust-bar .trust-items {
    flex-direction: column;
    gap: 0.5rem !important;
    align-items: flex-start !important;
  }
  .av-stat-block {
    gap: 1.5rem;
  }
  .section-pad {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 575.98px) {
  .av-hero-panel {
    padding: 3rem 1.5rem 2.5rem;
  }
  .av-hero-panel h1 {
    font-size: 1.9rem;
  }
  .btn-hero {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
}
