/* Contabili — Custom Overrides for Index5 Theme */

html {
  scroll-behavior: smooth;
}

/* Banner buttons alignment */
.banner-five .main-three-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.banner-secondary-btn {
  border: 1px solid #1a1a2e !important;
  background: #1a1a2e;
}

.banner-secondary-btn .get-three-hvr {
  border-color: #fff !important;
}

.banner-secondary-btn:hover a {
  color: #1a1a2e !important;
}

.banner-secondary-btn a {
  padding: 15px 40px;
}

/* Brand logo text */
.header5 .navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.header5 .col-xl-2,
.header5 .col-lg-2 {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 2px;
}

.brand-mark {
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.brand-tag {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FF533D;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  top: -0.15em;
}

.header5 .navbar-brand:hover .brand-name {
  color: #FF533D;
}

.header5 .navbar-brand:hover .brand-tag {
  color: #1a1a2e;
}

/* About section images — prevent stretching */
.ratio_about-img-wrapper img {
  object-fit: cover;
}

/* Counter plus sign — override fixed left position */
.counter_container .counter {
  display: inline-block;
}

.counter_container .counter::after {
  position: static !important;
  display: inline !important;
}

/* Footer brand */
.footer_logo {
  display: flex;
  justify-content: center;
}

.footer-brand-link {
  text-decoration: none;
}

/* Scroll-to-top button */
#return-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: #FF533D;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  font-size: 16px;
  text-decoration: none;
}

#return-to-top.show {
  opacity: 1;
  visibility: visible;
}

#return-to-top:hover {
  background: #1a1a2e;
}

/* Mobile sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #1a1a2e;
  z-index: 10001;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.mobile-sidebar.open {
  right: 0;
}

.sidebar-close {
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  text-align: right;
  margin-bottom: 20px;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a {
  color: #fff;
  display: block;
  padding: 12px 0;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-nav ul li a:hover {
  color: #FF533D;
}

.mobile-cta {
  background: #FF533D;
  padding: 10px 20px !important;
  border-radius: 4px;
  text-align: center;
  margin-top: 10px;
  display: inline-block !important;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Hero — static, no carousel */
.banner-five {
  position: relative;
}

.banner-five .banner-five-content h2 span {
  color: #FF533D;
}

/* Services — FA icon service cards */
.ratio_service_section .service_icon_box {
  margin-bottom: 15px;
}

.ratio_service_section .service_icon_box span i {
  transition: color 0.3s;
}

.ratio_service_section .service_box:hover .service_icon_box span i {
  color: #fff !important;
}

/* Extras list */
.extras-list {
  background: #f8f9fa;
  padding: 25px 30px;
  border-radius: 8px;
  border-left: 4px solid #FF533D;
  margin-top: 40px;
}

.extras-list h5 {
  color: #1a1a2e;
  margin-bottom: 15px;
}

.extras-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
}

.extras-list ul li {
  padding: 5px 0;
  color: #555;
}

.extras-list ul li i {
  color: #FF533D;
  margin-right: 8px;
}

/* About features */
.about-feature-item {
  margin-bottom: 15px;
}

.about-feature-item h5 {
  font-size: 16px;
  margin-bottom: 5px;
}

.about-feature-item p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Contact section — grid of detail items */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 800px;
}

.contact-detail-item a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.contact-detail-item a:hover {
  opacity: 0.8;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 22px;
  color: #FF533D;
}

.contact-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.contact-text strong {
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}

/* Section scroll offsets */
.ratio_about_section,
.ratio_service_section,
.ratio_advice_section {
  scroll-margin-top: 80px;
}

/* Service detail pages */
.service-detail-hero {
  background: #1a1a2e;
  padding: 120px 0 60px;
  text-align: center;
  color: #fff;
}

.service-breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
}

.service-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.service-breadcrumb a:hover {
  color: #FF533D;
}

.service-breadcrumb span {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.4);
}

.service-breadcrumb .current {
  color: #FF533D;
  margin: 0;
}

.service-detail-hero-icon {
  margin-bottom: 20px;
}

.service-detail-hero-icon svg {
  width: 80px;
  height: 80px;
}

.service-detail-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.service-detail-content {
  padding: 60px 0 80px;
}

.service-detail-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.service-highlights {
  background: #f8f9fa;
  padding: 25px 30px;
  border-radius: 8px;
  border-left: 4px solid #FF533D;
  margin-top: 40px;
}

.service-highlights h2 {
  color: #1a1a2e;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1.25rem;
}

.service-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-highlights ul li {
  padding: 6px 0;
  color: #555;
  font-size: 15px;
}

.service-highlights ul li i {
  color: #FF533D;
  margin-right: 10px;
}

.service-detail-cta {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.service-detail-cta .main-btn1 {
  display: inline-block;
  position: relative;
  background: #FF533D;
  color: #fff;
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  overflow: hidden;
}

.service-detail-cta .main-btn1:hover {
  background: #1a1a2e;
}

.service-detail-cta .main-btn1 .main-btn1-hvr {
  display: none;
}

.service-back-link {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.service-back-link:hover {
  color: #FF533D;
}

.service-back-link i {
  margin-right: 6px;
}

/* FAQ section */
.faq-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-header h5 {
  color: #FF533D;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.faq-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 15px;
}

.faq-question span {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.5;
}

.faq-icon {
  color: #FF533D;
  font-size: 14px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 25px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 25px 20px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

/* Legal pages (Privacy Policy, Terms) */
.legal-page-hero {
  background: #1a1a2e;
  padding: 120px 0 60px;
  text-align: center;
}

.legal-page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.legal-page-hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.legal-page-content {
  padding: 60px 0 80px;
}

.legal-page-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 35px 0 15px;
}

.legal-page-content h2:first-child {
  margin-top: 0;
}

.legal-page-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

.legal-page-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.legal-page-content ul li {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 5px;
}

.legal-page-content a {
  color: #FF533D;
  text-decoration: none;
}

.legal-page-content a:hover {
  text-decoration: underline;
}

.legal-back-link {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.legal-back-link a {
  color: #1a1a2e;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.legal-back-link a:hover {
  color: #FF533D;
}

.legal-back-link a i {
  margin-right: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .extras-list ul {
    columns: 1;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-hero {
    padding: 100px 0 40px;
  }

  .service-detail-hero h1 {
    font-size: 1.6rem;
  }

  .service-detail-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.25rem;
  }
  .brand-tag {
    font-size: 0.65rem;
  }
}
