/* Modern Global Styles */
:root {
  --primary: #aa2b32;
  --primary-dark: #003d7a;
  --primary-light: #e6f0ff;
  --secondary: #ffc107;
  --secondary-dark: #e0a800;
  --accent: #ff5a5f;
  --dark: #1a1a1a;
  --darker: #121212;
  --gray: #6c757d;
  --light: #f8f9fa;
  --light-gray: #e9ecef;
  --danger: #dc3545;
  --success: #28a745;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Roboto", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  position: relative;
}

h1,
h2,
h3,
h4,
h5 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.75rem;
  color: var(--primary);
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray);
  font-size: 1.1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  box-shadow: var(--box-shadow);
  gap: 10px;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-accent {
  background-color: var(--primary);
  color: white;
}

.btn-accent:hover {
  background-color: #e04a4f;
}

.text-center {
  text-align: center;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 5px;
  background-color: var(--primary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#preloader.fade-out {
  opacity: 0;
}

.preloader-logo {
  width: 150px;
  height: auto;
  margin-bottom: 30px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader {
  width: 80px;
  height: 80px;
  border: 8px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--secondary);
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--primary);
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Header Styles */
header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
  padding: 5px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 80px;
  margin-right: 15px;
}

.logo-text h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 800;
}

.logo-text span {
  font-size: 0.9rem;
  color: var(--gray);
  display: block;
  font-weight: 500;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s;
  font-size: 1.05rem;
  position: relative;
}

nav ul li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

nav ul li a:hover:after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--primary);
}

/* Active Navigation Link Styles */
#mainNav ul li a.active {
  color: var(--primary);
  font-weight: 600;
}

#mainNav ul li a.active:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--primary);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 1001;
}

/* Image background styles */
.image-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.image-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-in;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1.5s ease-in;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 25px;
  animation: fadeInUp 2s ease-in;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 10px 25px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in;
}

.hero-badge i {
  color: var(--secondary);
  margin-right: 10px;
  font-size: 1.2rem;
}

.hero-badge span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* About Section */
.about {
  background-color: white;
  padding: 40px 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-text {
  order: 2;
}

.about-image {
  order: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 15px 10px;
  background: var(--light);
  border-radius: 8px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    gap: 40px;
  }

  .about-text {
    order: 1;
  }

  .about-image {
    order: 2;
  }

  .about-stats {
    gap: 20px;
    margin-top: 40px;
  }

  .stat-item {
    padding: 25px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 1rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .about-stats {
    gap: 25px;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* Safety Inspections Section */
.safety-inspections {
  background-color: var(--light);
  position: relative;
}

.safety-inspections:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://www.transparenttextures.com/patterns/concrete-wall.png");
  opacity: 0.03;
  z-index: 0;
}

.inspections-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.inspections-text {
  order: 1;
}

.inspections-certificate {
  order: 2;
}

.certificate-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  max-width: 500px;
  margin: 0 auto;
}

.certificate-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .inspections-content {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .inspections-text {
    flex: 1;
    order: 2; /* Text on the right */
  }

  .inspections-certificate {
    flex: 1;
    order: 1; /* Image on the left */
  }

  .cta-box {
    flex-direction: row;
    align-items: center;
  }
}

/* Services Section */
.services {
  background-color: var(--light);
  position: relative;
}

.services:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://www.transparenttextures.com/patterns/concrete-wall.png");
  opacity: 0.03;
  z-index: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.service-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

.service-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  transition: var(--transition);
}

.service-card:hover:before {
  height: 8px;
  background: var(--secondary);
}

.service-img {
  height: 250px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.service-content .btn {
  margin-top: 20px;
  width: 100%;
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* Why Choose Us */
.why-us {
  background-color: white;
  position: relative;
}

.why-us:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--light);
  z-index: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.feature {
  text-align: center;
  padding: 40px 30px;
  border-radius: 15px;
  background-color: white;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.feature:hover p {
  color: rgba(255, 255, 255, 0.8);
}

.feature:hover i,
.feature:hover h3 {
  color: white;
}

.feature i {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 25px;
  transition: var(--transition);
}

.feature h3 {
  margin-bottom: 20px;
  transition: var(--transition);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.testimonial-content {
  position: relative;
  margin-bottom: 25px;
}

.testimonial-content i {
  color: var(--secondary);
  font-size: 2rem;
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 0;
}

.testimonial-content p {
  font-style: italic;
  padding-left: 40px;
  color: var(--dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.author-info h4 {
  margin-bottom: 5px;
  color: var(--primary);
}

.author-info span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background-color: white;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 30px;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 20px;
  margin-top: 5px;
  min-width: 25px;
}

.contact-item-content h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.contact-item-content p,
.contact-item-content a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item-content a:hover {
  color: var(--primary);
}

.map-container {
  flex: 1;
  min-width: 300px;
  height: 500px;
}

/* Footer */
footer {
  background-color: var(--darker);
  color: white;
  padding: 100px 0 5px;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 30px;
  position: relative;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  bottom: -15px;
  left: 0;
}

.footer-col p {
  color: #bbb;
  margin-bottom: 25px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo span {
  color: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  position: relative;
}

.footer-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  background: var(--secondary);
  bottom: -3px;
  left: 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links a:hover:after {
  width: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-contact-item i {
  color: var(--primary);
  margin-right: 15px;
  font-size: 1.2rem;
  margin-top: 3px;
}

.footer-contact-item p {
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-bottom a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom a::after {
  transition: transform 0.3s ease;
}

.footer-bottom a:hover::after {
  transform: translateX(3px);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  section {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.8rem;
  }

  section {
    padding: 60px 0;
  }

  .header-container {
    padding: 10px 15px;
  }

  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
    width: 100%;
  }

  nav ul li {
    margin: 15px 0;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    margin-top: 0;
    height: auto;
    min-height: 600px;
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .about-content {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-badge {
    padding: 8px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* ==============================================
   Inner Page Specific Styles
   ============================================== */

/* Hero variations for inner pages */
.maintenance-hero,
.cost-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, rgba(0, 61, 122, 0.6)),
    url("../img/main-about.jpg") no-repeat center center;
  background-size: cover;
}

.maintenance-hero .hero-content,
.cost-hero .hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* Maintenance Guide Page Styles */
.maintenance-intro {
  background-color: white;
  padding: 80px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.benefit-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  background-color: var(--light);
  transition: var(--transition);
}

.benefit-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.benefit-card h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.checklist-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  padding: 12px 25px;
  background: var(--light);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.checklist-items {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.checklist-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--light-gray);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item input[type="checkbox"] {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.checklist-item label {
  font-size: 1.1rem;
  cursor: pointer;
  flex: 1;
}

.warning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.warning-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.warning-card:hover {
  transform: translateY(-10px);
}

.warning-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.warning-icon i {
  font-size: 1.8rem;
  color: var(--primary);
}

.faq-accordion {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: white;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--light);
}

.faq-answer p {
  padding: 20px;
  margin: 0;
}

.maintenance-cta {
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)),
    url("../img/main-about.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 100px 0;
}

/* Cost Estimates Page Styles */
.price-transparency {
  background-color: white;
  padding: 80px 0;
}

.transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.transparency-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--light);
  border-radius: 10px;
  transition: var(--transition);
}

.transparency-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.transparency-icon i {
  font-size: 2rem;
  color: white;
}

.average-costs {
  background-color: var(--light);
  padding: 80px 0;
}

.cost-table {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-top: 50px;
}

.cost-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 15px 20px;
  align-items: center;
}

.cost-row.header {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.cost-row:not(.header):nth-child(even) {
  background: var(--light);
}

.cost-disclaimer {
  margin-top: 30px;
  padding: 20px;
  background: rgba(170, 43, 50, 0.1);
  border-left: 4px solid var(--primary);
  border-radius: 0 5px 5px 0;
}

.calculator-container {
  display: flex;
  gap: 30px;
  margin-top: 50px;
}

.calculator-form {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.calculator-form .form-group {
  margin-bottom: 25px;
}

.calculator-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.calculator-form select,
.calculator-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.calculator-result {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-placeholder {
  text-align: center;
  color: var(--gray);
}

.result-placeholder i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--light-gray);
}

.estimate-range {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0;
  text-align: center;
}

.estimate-details {
  margin: 30px 0;
}

.estimate-details p {
  margin-bottom: 10px;
}

.estimate-details strong {
  color: var(--dark);
}

.estimate-note {
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 30px;
}

.factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.factor-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.factor-card:hover {
  transform: translateY(-10px);
}

.factor-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.factor-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.financing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.financing-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.financing-header {
  padding: 25px;
  background: var(--primary);
  color: white;
  text-align: center;
  position: relative;
}

.financing-header h3 {
  margin-bottom: 0;
}

.financing-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px auto;
}

.financing-icon i {
  font-size: 1.5rem;
}

.financing-body {
  padding: 30px;
}

.financing-body ul {
  margin-bottom: 30px;
}

.financing-body li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.financing-body i {
  color: var(--primary);
  margin-right: 10px;
  margin-top: 3px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.tip-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  position: relative;
  padding-left: 80px;
}

.tip-number {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cost-cta {
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)),
    url("../img/main-about.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 100px 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .calculator-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .maintenance-hero,
  .cost-hero {
    height: 50vh;
    min-height: 400px;
  }

  .cost-row {
    grid-template-columns: 1.5fr 1fr 1fr;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .maintenance-hero,
  .cost-hero {
    height: 60vh;
  }

  .cost-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 10px;
  }

  .cost-service,
  .cost-range,
  .cost-time {
    padding: 5px 0;
  }

  .cost-row.header {
    display: none;
  }
}
