/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Colors */
:root {
  --primary-color: #b91c1c;
  --secondary-color: #00334e;
  --accent-blue: #00334e;
  --text-gray: #6b7280;
  --light-gray: #f9fafb;
  --white: #ffffff;
}

/* Subpage Styles */

.subpage-content h2 {
  font-size: 26px;
  margin-bottom: 15px;
}

.subpage-content h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.subpage-content p {
  margin-bottom: 15px;
}

.subpage-content ul {
  margin-left: 15px;
  margin-bottom: 15px;
  padding-left: 40px;
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}

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

.btn-primary:hover {
  background-color: #991b1b;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.btn-white:hover {
  background-color: #f3f4f6;
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.subpage-section {
  padding: 4rem 0;
}

/* Hero Section */
.hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("images/homepage-hero.jpg");
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  color: white;
}

.subpage-hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("images/hero-bg-new.jpg");
  background-size: cover;
  background-position: center;
  height: 450px;
  display: flex;
  align-items: center;
  color: white;
}

.engine-hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("images/engine-hero.jpg");
  background-size: cover;
  background-position: center;
  height: 450px;
  display: flex;
  align-items: center;
  color: white;
  background-position: 50% 33%;
}

.diagnostics-hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("images/diagnostics-hero.jpg");
  background-size: cover;
  background-position: center;
  height: 450px;
  display: flex;
  align-items: center;
  color: white;
  background-position: 50% 33%;
}

.oil-change-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("images/oil-change-hero.jpg");
  background-size: cover;
  background-position: center;
  height: 450px;
  display: flex;
  align-items: center;
  color: white;
  background-position: 50% 68%;
}

.brake-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("images/brake-hero.jpg");
  background-size: cover;
  background-position: center;
  height: 450px;
  display: flex;
  align-items: center;
  color: white;
  background-position: 50% 68%;
}

.transmission-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("images/transmission-hero.jpg");
  background-size: cover;
  background-position: center;
  height: 450px;
  display: flex;
  align-items: center;
  color: white;
  background-position: 50% 0%;
}

.about-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("images/about-hero.jpg");
  background-size: cover;
  background-position: center;
  height: 450px;
  display: flex;
  align-items: center;
  color: white;
  background-position: 50% 57%;
}

.hero-content {
  max-width: 42rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* Services Section */
.services-section {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-gray);
  max-width: 48rem;
  margin: 0 auto;
}

/* .services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
} */

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: white;
  border-radius: 0.5rem;
  border-top: 4px solid var(--primary-color);
  padding: 2.5rem 1.5rem 1.5rem;
  position: relative;
  transition: transform 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  display: flex;
  justify-content: center;
  margin-top: -2rem;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 32px;
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 16px;
  color: white;
}

/* font-size: 32px;
    background-color: red;
    border-radius: 50%;
    padding: 16px; */

.service-card h3 {
  font-size: 1.12rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.service-card li::before {
  content: "✓";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.learn-more {
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
}

.learn-more:hover {
  text-decoration: underline;
}

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

/* Why Choose Section */
.why-choose-section {
  padding: 4rem 0;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.why-choose-content h2 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.why-choose-content > p {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  color: var(--primary-color);
}

.feature-icon i {
  width: 2rem;
  height: 2rem;
}

.feature-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--text-gray);
}

.map-container {
  position: relative;
}

.map-image {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.map-image img {
  width: 100%;
  height: auto;
}

.map-overlay {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  max-width: 16rem;
}

.map-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  height: 100%;
}

.stars {
  color: #fcd34d;
  margin-bottom: 1rem;
}

.testimonial-card p {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.author-name {
  font-weight: 600;
}

.author-vehicle {
  font-size: 0.875rem;
  color: var(--text-gray);
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.footer {
  background-color: var(--accent-blue);
  color: white;
}

.footer .container {
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  color: white;
  margin-bottom: 1rem;
  font-size: 15px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 15px;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  flex-direction: row;
}

.contact-list .contact-item-nav {
  display: flex;
  gap: 0.75rem;
}

.contact-list .icon {
  color: var(--primary-color);
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.contact-list a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

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

.footer-bottom {
  background-color: #002a3f;
  padding: 1rem 0;
  border-top: 1px solid #374151;
}

.footer-bottom p {
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (min-width: 1100px) {
  .topnav {
    display: none;
  }

  .header .icon {
    display: none;
  }

  .header .dropdown-caret {
    display: block;
    width: 20px;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 150px;
    display: flex;
    align-items: center;
  }

  .header a {
    text-decoration: none;
  }

  .header .container {
    height: 100%;
    padding-top: 1.25rem;
  }

  .top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--accent-blue);
  }

  .contact-info {
    display: flex;
    gap: 1.5rem;
  }

  .contact-item-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .contact-item-nav a {
    color: inherit !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
    color: white;
  }

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

  .contact-item {
    display: flex;
  }

  .footer-times {
    font-size: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
  }

  .main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
  }

  .logo img {
    height: auto;
    max-width: 300px;
    width: auto;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    margin-left: auto;
  }

  .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
  }

  .nav-link:hover {
    background-color: var(--accent-blue);
    color: white;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 14rem;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--accent-blue);
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 50;
  }

  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }

  .dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: white;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s ease;
  }

  .dropdown-item:hover {
    background-color: var(--primary-color);
  }

  .contact-page-flexbox {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .contact-page-map {
    width: 45%;
  }

  .contact-page-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    width: 45%;
  }

  .contact-page-text {
    display: flex;
    flex-direction: column;
  }

  .contact-page-text h2 {
    color: var(--secondary-color);
    font-size: 30px;
    position: relative;
  }

  .contact-page-text h2:after {
    content: "";
    background-color: var(--primary-color);
    width: 172px;
    height: 4px;
    position: absolute;
    top: 45% !important;
    left: 0%;
  }

  .contact-page-text h3 {
    color: var(--secondary-color);
    font-size: 18px;
  }

  .contact-page-info {
    display: flex;
    flex-direction: column;
  }

  .contact-page-type {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .contact-page-type:nth-of-type(2) {
    margin-top: 35px;
  }

  .contact-page-type i {
  }

  .contact-page-icon {
    display: flex;
    justify-content: center;
  }

  .contact-page-icon i {
    font-size: 32px;
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 16px;
    color: white;
  }

  .contact-page-type a {
    text-decoration: none;
    color: var(--accent-blue);
    margin-left: 15px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.5s;
    cursor: pointer;
  }

  .contact-page-type a:hover {
    color: var(--primary-color);
    transition: all 0.5s;
  }
}

@media screen and (max-width: 1099px) {
  main {
    padding-top: 130px;
  }

  .desktop-nav {
    display: none;
  }

  .topnav .topnav-content {
    opacity: 0;
  }

  .topnav.responsive .topnav-content {
    opacity: 1;
    transition: 1s opacity 0.7s;
  }

  .top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--accent-blue);
  }

  .topnav .top-bar {
    opacity: 0;
  }

  .topnav.responsive .top-bar {
    opacity: 1;
    transition: 1s opacity 0.7s;
    margin-top: 30px;
  }

  .contact-info {
    display: flex;
    gap: 1.5rem;
  }

  .contact-item-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .contact-item-nav a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 11px;
  }

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

  .main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
  }

  .logo img {
    height: auto;
    max-width: 300px;
    width: auto;
  }

  .header {
    position: fixed;
    background-color: white;
    padding: 5px 0;
    z-index: 1000000;
    width: 100%;
  }

  .header a.icon {
    position: absolute;
    right: 8%;
    top: 43%;
    font-size: 30px;
    color: black;
    text-decoration: none;
  }

  .header a img {
    display: flex;
    margin: 0 auto;
    padding: 15px;
  }

  .mobile-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .mobile-header-bar #mobile-logo {
    display: block;
    width: 75%;
  }

  .mobile-header-bar .closebtn {
    font-size: 40px;
    color: black;
    text-decoration: none;
    margin-left: auto;
    display: block;
  }

  .topnav #mobile-logo {
  }

  .topnav.responsive #mobile-logo {
    width: 300px;
    margin-right: 10px;
  }

  .topnav a img.mobile-logo {
    width: 300px;
    padding: 15px;
    margin: 0;
    pointer-events: none;
  }

  .topnav a img#fade-logo {
    opacity: 0;
  }

  .topnav.responsive a img#fade-logo {
    opacity: 1;
    transition: 1s opacity 0.7s;
  }

  .topnav {
    height: 100vh;
    width: 0;
    position: fixed;
    z-index: 1000;
    right: 0;
    top: 0;
    background-color: white;
    color: white;
    overflow-x: hidden;
    overflow-y: auto;
    transition: 0.8s;
    padding: 5px 0px;
  }

  .topnav.responsive {
    width: 100%;
  }

  .topnav.responsive
    a:not(#mobile-logo, #closeBtn, #top-phone, #top-email, #mobile-btn),
  .topnav.responsive .dropbtn1,
  .topnav.responsive .dropbtn2 {
    float: none;
    display: block;
    text-align: left;
    text-decoration: none;
    animation-delay: 0.7s;
    color: black;
    background: none;
    border: none;
    font-size: 18px;
  }

  .topnav a:not(#mobile-logo, #closeBtn, #top-phone, #top-email, #mobile-btn),
  .dropbtn1,
  .dropbtn2 {
    display: none;
  }

  .topnav a.closebtn {
    display: none;
  }

  .topnav.responsive a.closebtn {
    float: right;
    font-size: 45px;
    color: black;
    text-decoration: none;
    display: block;
  }

  .topnav.responsive a.mobile-a,
  .topnav.responsive button.dropbtn1.mobile-a,
  .topnav.responsive button.dropbtn2.mobile-a {
    padding: 20px;
    width: 100%;
    border-bottom: 1px solid black !important;
  }

  button.dropbtn1.mobile-a i,
  button.dropbtn2.mobile-a i {
    float: right;
    color: black;
    font-size: 16px;
    margin-top: 5px;
    transition: transform 0.3s ease;
  }

  .topnav.responsive .dropdown {
    float: none;
  }

  .topnav.responsive .dropdown-content {
    position: relative;
  }

  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }

  /* Show dropdowns when active */
  .dropdown-content1.active,
  .dropdown-content2.active,
  .walkthroughs-content.active,
  .real-estate-content.active {
    display: block;
    margin: 10px 0px;
  }

  .dropdown-content1.active .dropdown-a,
  .dropdown-content2.active .dropdown-a,
  .topnav.responsive .dropdown-b,
  .topnav.responsive .dropdown-c {
    float: none;
    display: block;
    text-align: left;
    text-decoration: none;
    animation-delay: 0.7s;
    color: black;
    background: none;
    font-size: 16px !important;
    padding: 10px 10px 10px 30px;
  }

  /* Style icons inside sub-dropdown triggers */
  .topnav.responsive .dropdown-b i,
  .topnav.responsive .dropdown-c i {
    float: right;
    color: black;
    font-size: 16px;
    margin-top: 5px;
  }

  /* Rotate icons when active */
  .topnav.responsive .dropdown-b.active i,
  .topnav.responsive .dropdown-c.active i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }

  /* Ensure dropdown content is hidden by default */
  .walkthroughs-content,
  .real-estate-content {
    display: none;
  }

  /* Show nested dropdowns when active */
  .walkthroughs-content.active,
  .real-estate-content.active {
    display: block;
    margin: 10px 0px 0px 30px;
  }

  /* Style links inside nested dropdowns */
  .walkthroughs-content .dropdown-a,
  .real-estate-content .dropdown-a {
    float: none;
    display: block;
    text-align: left;
    text-decoration: none;
    animation-delay: 0.7s;
    color: white;
    background: none;
    font-size: 16px;
    padding: 10px 10px 10px 30px;
  }

  /* Optional: rotate icon when active */
  button.active i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }

  .dropdown-content1,
  .dropdown-content2 {
    display: none;
  }

  .topnav-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    width: 61%;
    font-family: inherit;
  }

  .topnav-btn-primary {
    background-color: var(--primary-color);
    color: white;
    margin: 60px auto;
    width: 230px;
  }

  .topnav-btn-primary:hover {
    background-color: #991b1b;
  }

  .contact-page-flexbox {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;
    /* margin: 30px 0px; */
  }

  .contact-page-map {
    width: 95%;
  }

  .contact-page-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    width: 95%;
    margin-bottom: 20px;
  }

  .contact-page-text {
    display: flex;
    flex-direction: column;
  }

  .contact-page-text h2 {
    color: var(--secondary-color);
    font-size: 30px;
    position: relative;
  }

  .contact-page-text h2:after {
    content: "";
    background-color: var(--primary-color);
    width: 172px;
    height: 4px;
    position: absolute;
    top: calc(-1.24vw + 31.65%);
    left: 0%;
  }

  .contact-page-text h3 {
    color: var(--secondary-color);
    font-size: 18px;
  }

  .contact-page-info {
    display: flex;
    flex-direction: column;
  }

  .contact-page-type {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .contact-page-type:nth-of-type(2) {
    margin-top: 35px;
  }

  .contact-page-type i {
  }

  .contact-page-icon {
    display: flex;
    justify-content: center;
  }

  .contact-page-icon i {
    font-size: 28px;
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 13px;
    color: white;
  }

  .contact-page-type a {
    text-decoration: none;
    color: var(--accent-blue);
    margin-left: 15px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.5s;
    cursor: pointer;
  }

  .contact-page-type a:hover {
    color: var(--primary-color);
    transition: all 0.5s;
  }

  .footer-times {
    font-size: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
  }
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .cta-buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  /* .top-bar {
    display: flex;
  }

  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  } */

  .hero-content {
    text-align: left;
  }

  .hero-content h1 {
    font-size: 3rem;
    width: 720px;
    text-align: center;
  }

  /* .services-grid {
    grid-template-columns: repeat(2, 1fr);
  } */

  .service-card {
    width: calc(50% - 1rem); /* 2 cards per row */
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  /* .services-grid {
    grid-template-columns: repeat(3, 1fr);
  } */

  .service-card {
    width: calc(33.333% - 1.5rem); /* 3 cards per row */
  }

  /* Center last 2 cards on row 2
  .services-grid > .service-card:nth-child(4),
  .services-grid > .service-card:nth-child(5) {
    margin-left: auto;
    margin-right: auto;
  } */

  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .main-nav {
    width: 1024px;
  }
}

/* Additional Mobile Menu Styles */

.mobile-menu {
  position: fixed;
  top: 150px;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 40;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-menu-open {
  max-height: calc(100vh - 150px);
  padding: 1rem 0;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  padding: 0.75rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
  text-align: left;
}

.mobile-nav-link:hover {
  background-color: var(--accent-blue);
  color: white;
}

.mobile-submenu {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-sublink {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
  text-align: left;
}

.mobile-nav-sublink:hover {
  background-color: var(--accent-blue);
  color: white;
}

.mobile-contact-info {
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.mobile-contact-item .icon {
  color: var(--accent-blue);
}

.mobile-contact-item a {
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
}

.mobile-appointment-btn {
  margin-top: 1rem;
  width: 100%;
}

/* Dropdown enhancements */
.dropdown-menu {
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

/* Button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Service card animations */
.service-card {
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

/* Loading animation for page elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Enhanced hover effects */
.nav-link,
.mobile-nav-link,
.mobile-nav-sublink {
  position: relative;
  overflow: hidden;
}

.nav-link::before,
.mobile-nav-link::before,
.mobile-nav-sublink::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.nav-link:hover::before,
.mobile-nav-link:hover::before,
.mobile-nav-sublink:hover::before {
  left: 100%;
}

/* Testimonial card enhancements for mobile */
@media (max-width: 767px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    position: relative;
    min-height: 200px;
  }

  .testimonial-card {
    transition: opacity 0.5s ease;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.mobile-nav-link:focus,
.mobile-nav-sublink:focus,
.dropdown-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Improved mobile menu backdrop */
.mobile-menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background-color: rgba(0, 0, 0, 0.5);*/
  z-index: -1;
}

/* Enhanced button states */
.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .mobile-menu {
    top: 120px; /* Adjust for smaller header on mobile */
  }

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

  .hero-content p {
    font-size: 1rem;
  }
}

@media screen and (min-width: 376px) and (max-width: 767px) {
  .contact-page-text h2::after {
    top: calc(27% + ((100vw - 375px) * 0.028));
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .contact-page-text h2::after {
    top: calc(40% + ((100vw - 768px) * 0.1367));
  }
}

@media screen and (min-width: 1024px) {
  .contact-page-text h2::after {
    top: 75%;
  }
}
