:root {
  --header-background-color: #4f78a3;
  
  /* Typography Scale */
  --font-xs: 0.875rem;    /* 14px */
  --font-sm: 1rem;        /* 16px */
  --font-md: 1.25rem;     /* 20px */
  --font-lg: 1.5rem;      /* 24px */
  --font-xl: 1.75rem;     /* 28px */
  --font-2xl: 2rem;       /* 32px */
  --font-3xl: 2.5rem;     /* 40px */
  --font-4xl: 3rem;       /* 48px */
}

*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-size: var(--font-sm);
  font-family: "Roboto", sans-serif;
  background-color: var(--header-background-color);
}

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

a {
  cursor: pointer;
}

input[type="checkbox"] {
  accent-color: var(--header-background-color);
}

#menu-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 989;
  background: rgba(0, 0, 0, 0.5);
  display: none;
}

.ul-no-dot {
  list-style: none;
}

.lazyload,
.check:checked ~ .ham-menu .line2 {
  opacity: 0;
}

.anchor {
  display: block;
  visibility: hidden;
}

/* Scroll padding on html element for fixed header navigation */
html {
  scroll-padding-top: 10rem; /* Mobile header height */
}

@media only screen and (min-width: 768px) {
  html {
    scroll-padding-top: 15rem; /* Desktop header height */
  }
}

.home-view,
.contact-view,
.pricing-view-interior,
.reviews-view,
.services-view,
.social-view {
  position: relative;
  overflow: hidden;
}

.services-view {
  min-height: auto;
}

.home-view,
.contact-view,
.pricing-view-interior,
.reviews-view {
  min-height: 30vw;
}

.home-view {
  padding-bottom: 5vw;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -1;
}

.random-padding {
  padding-top: 5vw;
  margin: auto;
  width: 75%;
}

.text-h1,
.contact-text-h1,
.pricing-text-h1,
.social-text-h1,
.faq-text-h1 {
  margin: 0 auto;
  color: white;
  font-size: var(--font-3xl);
  font-family: "Montserrat", sans-serif;
  text-align: center;
  align-content: center;
  padding-top: 15px;
}

#modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 994;
  max-height: 80vh;
  overflow-y: auto;
  width: 80vw;
  max-width: 600px;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.modal-content h2 {
  text-align: center;
  padding-bottom: 5px;
}

.close {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: var(--font-xl);
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
  height: 100%;
}

.home-info-container {
  background-color: rgba(0, 0, 0, 0.5);
  padding-bottom: 5px;
  width: 80%;
  margin: auto;
  border-radius: 3px;
}

.button-container {
  text-align: center;
  margin-top: 40px;
}

.button {
  border: none;
  color: white;
  background-color: var(--header-background-color);
  padding: 15px 32px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  border-radius: 4px;
}

.button:hover {
  background-color: white;
  color: #000;
}

.home-text-h3,
.home-text-p {
  text-align: center;
  font-size: var(--font-2xl);
  color: white;
}

.header {
  background-color: var(--header-background-color);
  padding: 0 20px;
  height: 10rem;
  position: sticky;
  top: 0;
  z-index: 990;
}

.header-logo-container {
  visibility: hidden;
}

@keyframes driveIn {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

.header-logo-text,
.menu-logo-text,
.footer-logo-text {
  font-family: "Damion", cursive;
}

.header-logo-text {
  padding-left: 42px;
  font-size: var(--font-2xl);
  position: absolute;
  top: 3rem;
  left: 6rem;
  color: white;
}

.header-logo {
  height: 25px !important;
  width: auto;
  max-width: none;
  position: absolute;
  top: 3rem;
}

.menu-items {
  z-index: 992;
  text-align: center;
  position: absolute;
  padding: 5rem;
  margin-top: -6rem;
  margin-left: -1rem;
  top: 13rem;
  right: 0.5rem;
  list-style: none;
  visibility: hidden;
  opacity: 0;
  font-size: var(--font-2xl);
  border: 4px solid white;
  background-color: white;
  border-radius: 0.25em;
  transform: translateX(-10%);
  transition: transform 400ms ease-in-out, opacity 300ms ease-in-out,
    visibility 400ms ease-in-out;
}

.menu-logo {
  height: 20px;
}

.menu-items li,
.menu-items li a {
  color: var(--header-background-color);
  text-decoration: none;
  padding: 0.5rem;
}

.menu-items li a:hover {
  color: black;
}

.check {
  position: absolute;
  top: 2.5rem;
  right: 1.5rem;
  height: 3rem;
  width: 3rem;
  opacity: 0;
  z-index: 1000;
}

.check:hover {
  cursor: pointer;
}

.check:checked ~ nav .menu-items {
  display: block;
  visibility: visible;
  transform: translateX(0%);
  opacity: 1;
}

.ham-menu {
  height: 3rem;
  width: 3rem;
  position: absolute;
  top: 3rem;
  right: 5px;
  padding: 0.5rem 3.5rem 0.5rem 0.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-color: transparent;
  border-radius: 0.25em;
  opacity: 0;
}

.ham-menu .line {
  background-color: white;
  border-radius: 1em;
  width: 2rem;
  height: 0.25rem;
}

.ham-menu .line1 {
  transform-origin: 0% 0%;
  transition: transform 300ms ease-in-out;
}

.ham-menu .line3 {
  transform-origin: 0% 100%;
  transition: transform 300ms ease-in-out;
}

.check:checked ~ .ham-menu .line1 {
  display: block;
  transform: rotate(45deg);
}

.check:checked ~ .ham-menu .line3 {
  display: block;
  transform: rotate(-45deg);
}

.large-screen-menu {
  display: none;
}

.large-screen-menu-item {
  line-height: 1.2em;
  color: white;
  padding: 20px;
  opacity: 0;
}

.large-screen-menu-item span {
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
  display: inline-block;
  transform-origin: center;
}
.large-screen-menu-item span:hover {
  transform: scale(1.2);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.about-view,
.about-view-container {
  width: 100%;
  background-color: white;
}

.about-view-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25vw, 1fr));
  gap: 5vw;
  padding: 5vw;
}

.fb-cta,
.about-view-card {
  width: 100%;
}

.about-view-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.about-view-p-header {
  background-color: var(--header-background-color);
  color: white;
  padding: 5px;
  font-size: var(--font-2xl);
  text-align: center;
}

.about-view-p {
  font-size: var(--font-lg);
  color: #000;
  text-align: left;
}

.footer {
  text-align: center;
  padding: 1vw;
  background-color: var(--header-background-color);
  color: white;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer-section {
  margin: 10px;
}

.footer-links {
  display: block;
  margin-bottom: 8px;
  font-size: var(--font-lg);
  color: white;
}

.footer-logo {
  height: 20px;
  margin-top: 8px;
}

.areas-we-service {
  display: flex;
  flex-direction: column;
}

.service-area-map {
  margin: 20px 0 25px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  padding: 3px;
  max-width: 300px;
}

.service-area-map iframe {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.service-areas {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  text-align: left;
}

.service-areas li {
  font-size: var(--font-md);
}

.footer-section-title {
  font-size: var(--font-xl);
  margin-bottom: 8px;
}

.form-container {
  margin: auto;
  width: 90%;
  max-width: 700px;
  background-color: white;
  color: #000;
  list-style-type: none;
  padding: 1px 20px 20px 20px;
  border-radius: 5px;
  text-align: center;
}

.contact-text-h1 {
  color: #000;
  padding-bottom: 20px;
}

.submit-button {
  padding: 10px 50px;
  color: #000;
  cursor: pointer;
  transition-duration: 0.4s;
}

.submit-button:hover {
  color: white !important;
  background-color: var(--header-background-color);
}

.shift-form-groups-left-50-percent {
  float: left;
  width: 50%;
  text-align: left;
}

.shift-form-groups-right-50-percent {
  float: right;
  width: 50%;
  padding-left: 30px;
  box-sizing: border-box;
  text-align: left;
}

.reviews-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 16px;
  flex-wrap: wrap;
}

.reviews-search {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 280px;
}

.reviews-search i {
  color: #666;
  font-size: var(--font-sm);
  margin-right: 10px;
}

.reviews-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--font-sm);
  color: #1a1a1a;
  width: 100%;
}

.reviews-search input::placeholder {
  color: #999;
}

.reviews-sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: var(--font-sm);
  color: #1a1a1a;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.reviews-sort-btn:hover {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reviews-sort-btn:active {
  transform: scale(0.98);
}

.reviews-sort-btn i {
  font-size: var(--font-sm);
  transition: transform 0.3s ease;
}

.reviews-sort-btn.ascending i {
  transform: rotate(180deg);
}

.reviews-count {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: var(--font-sm);
  color: #1a1a1a;
  white-space: nowrap;
}

.no-reviews-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 40px 20px;
  color: #fff;
  font-size: var(--font-md);
  text-align: center;
}

.no-reviews-message p {
  margin: 0;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--font-sm);
}

.search-suggestions span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.suggestion-chip {
  background-color: rgba(0, 0, 0, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 6px 14px;
  color: #fff;
  font-size: var(--font-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.suggestion-chip:hover {
  background-color: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border-color: transparent;
}

.slideshow-wrapper {
  position: relative;
}

.slideshow-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 10%;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  /* Edge blur effect using mask gradients */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.slideshow-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

.mySlides {
  display: inline-block;
  scroll-snap-align: center;
  white-space: normal;
  vertical-align: top;
  min-width: calc(50% - 5px);
}

.prev,
.next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #1a1a1a;
  font-size: var(--font-md);
  transition: all 0.2s ease;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  user-select: none;
  z-index: 100;
}

.prev {
  left: 12px;
  display: none;
}

.next {
  right: 12px;
}

.prev:hover,
.next:hover {
  background-color: #fff;
  color: #1a1a1a;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-50%) scale(1.05);
}

.prev:active,
.next:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.prev i,
.next i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #1a1a1a;
  font-size: var(--font-md);
  line-height: 1;
}

.fb-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.fb-logo {
  margin-left: auto;
  height: 30px;
}

.post {
  width: 95%;
  margin: auto;
  background-color: #fff;
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  justify-content: space-between;
}

.post-header h4 {
  margin: 0;
  font-weight: bold;
}

.post-header span {
  font-size: var(--font-md);
  color: #606770;
}

.post-content {
  margin-bottom: 10px;
  text-align: left;
}

.post-content p,
.post a {
  margin: 0;
  color: #1c1e21;
  line-height: 1.5;
  text-decoration: none;
}

.post a:hover {
  text-decoration: none;
}

.post-content img {
  max-width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dddfe2;
  padding-top: 10px;
}

.post-footer a {
  color: #606770;
  text-decoration: none;
  font-size: var(--font-lg);
  font-weight: bold;
  display: inline-block;
  margin-left: 10px;
}

.post-footer span {
  font-size: var(--font-md);
}

.post-image-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  border: 1px solid white;
}

.post-image-container img {
  flex: 1;
  max-width: 49%;
  height: auto;
  margin: 0 1px;
}

.gold-star {
  color: #ffcd3c;
}

.grey-thumb a,
.google-services p {
  color: #606770;
}

.google-services b {
  color: #1c1e21;
}

.reviews-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1200px;
  overflow: hidden;
}

.reviews-list a {
  text-decoration: none;
}

.underline-text {
  text-decoration: underline;
}

.pricing-container {
  display: block;
  width: 100%;
  padding: 0 5%;
  margin: 0 auto;
  box-sizing: border-box;
}

.pricing-content-container {
  display: flex;
  justify-content: space-between;
  color: var(--header-background-color);
  border-radius: 5px;
  margin: 0 auto;
  gap: 2%;
}

.pricing-disclaimer {
  font-size: var(--font-md);
  color: white;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
  padding: 5px 0;
}

.pricing-text-h1 {
  background-color: rgba(0, 0, 0, 0.5);
  padding-bottom: 20px;
}

.pricing-text-h3 {
  font-size: var(--font-2xl);
  margin-top: 0;
  padding: 20px;
}

.pricing-text-ul {
  margin: 0;
  border-bottom: 1px solid #ccc;
}
.pricing-text-ul:last-child {
  border-bottom: none;
}

.time-price-spans {
  font-weight: bold;
  margin: 10px 0;
}

.description-p {
  margin: 10px 0;
}

/* Mobile: Accordion behavior (default) */
.services-container {
  max-width: 750px;
  margin: 0 auto;
  box-sizing: border-box;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 5px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #000;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

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

.service-card-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.service-card-header:hover {
  background-color: var(--header-background-color);
  color: white;
}

.service-card-title {
  flex: 1;
  font-size: var(--font-lg);
  font-weight: 600;
  margin: 0;
}

.service-card-price {
  font-size: 0.9em;
  opacity: 0.85;
  margin-right: 25px;
  text-align: right;
  min-width: 80px;
  flex-shrink: 0;
}

.service-card-header:hover .service-card-price {
  opacity: 1;
}

/* Accordion chevron icon */
.service-card-header::after {
  content: "\25BC";
  color: #000;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.service-card-header:hover::after {
  color: white;
}

.service-card.active .service-card-header::after {
  content: "\25B2";
  color: white;
}

.service-card.active .service-card-header {
  background-color: var(--header-background-color);
  color: white;
}

/* Collapsible content - Mobile first (default collapsed) */
.service-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.service-card.active .service-card-content {
  max-height: 1000px;
}

.service-content-wrapper {
  display: flex;
  flex-direction: column;
  padding: 15px;
  gap: 15px;
}

.service-card-image {
  width: 100%;
  max-height: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.service-card-text {
  flex: 1;
}

.service-card-description {
  margin: 10px 0;
  line-height: 1.6;
}

.social-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

/* social styles */

.gallery-link-container {
  border: solid;
  background-color: white;
  padding: 5px 0;
  width: 100%;
}

.preview-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background-color: black;
}

.preview-images img {
  max-height: 160px;
  margin-right: 2px;
  border: 2.5px solid white;
  background-color: white;
}

.gallery-link {
  font-size: var(--font-xl);
  color: var(--header-background-color);
  width: 100%;
}

.fb-cta {
  font-size: var(--font-xl);
  background-color: var(--header-background-color);
  margin: 0 auto;
  padding: 10px 0;
}

.fb-cta a {
  color: white;
  text-decoration: none;
}

.fb-container {
  display: flex;
  justify-content: center;
  padding-bottom: 15px;
  margin: 0 auto;
  background-color: white;
}

.social-text-h1 {
  background-color: var(--header-background-color);
  padding-bottom: 20px;
}

.fb-section {
  border: solid;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 10px;
}
.fb-cta {
  width: 100%;
}

.gallery-title {
  text-align: center;
  padding: 2rem 0;
  font-size: var(--font-3xl);
  color: var(--header-background-color);
  font-family: "Montserrat", sans-serif;
}

.gallery {
  background-color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
}

.img-container {
  padding: 5px;
  background-color: black;
}

.img-container img {
  width: 100%;
  height: auto;
  background-color: white;
  border: 2px solid white;
}

.thanks-view {
  width: 100%;
  min-height: 40vw;
  display: none;
}

.thanks-text {
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  padding-top: 1vw;
}

.thanks-sub,
.thanks-banner,
.thanks-text {
  padding: 8px 0;
  background-color: white;
  color: #000;
}

.thanks-banner {
  font-size: var(--font-2xl);
}

.image-container {
  display: flex;
  justify-content: center;
}

.image-container img {
  max-width: 100%;
}

/* Lightbox Modal styles */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 2vw;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  justify-content: center; align-items: center;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  margin: auto; display: block;
  box-shadow: 0 4px 32px #000;
  border-radius: 6px;
  background: white;
}
.lightbox-close {
  position: absolute; top: 20px; right: 35px;
  color: #fff;
  font-size: var(--font-3xl);
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}
@media (max-width: 768px) {
  .lightbox-content { max-width: 98vw; max-height: 76vh; }
  .lightbox-close { font-size: var(--font-2xl); top: 10px; right: 16px; }
}

@media only screen and (max-width: 380px) {
  .header-logo {
    height: 20px !important;
    width: auto;
    max-width: none;
  }
  .header-logo-text {
    font-size: 16px;
    padding-left: 20px;
  }
}

@media only screen and (max-width: 550px) {
  .home-text-h3 {
    font-size: var(--font-lg);
  }
}

@media only screen and (min-width: 641px) {
  .img-container {
    flex-basis: 50%;
    max-width: 50%;
  }
  .slideshow-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 55px;
  }
  .mySlides {
    max-width: calc(50%);
    scroll-snap-align: none;
  }
  .services-view {
    padding-bottom: 3vw;
  }
}

/* Tablet: 2-column layout for about-view */
@media only screen and (min-width: 642px) and (max-width: 900px) {
  .about-view-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3vw;
  }

  .about-view-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .about-view-card img {
    aspect-ratio: 4 / 3;
  }
}

@media only screen and (max-width: 641px) {
  .img-container {
    flex-basis: 100%;
    padding: 6px;
  }

  .fb-cta a,
  .gallery-link {
    font-size: var(--font-lg);
  }

  .post {
    width: 84%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    margin: 10px 0;
  }

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

  .about-view-card {
    margin: auto;
    padding: 20px 0;
    border-bottom: 2px solid var(--header-background-color);
  }

  .about-view-p-header {
    font-size: var(--font-2xl);
  }
}

@media only screen and (max-width: 750px) {
  .background-image {
    height: 100%;
  }

  #closeModal {
    font-size: var(--font-3xl);
    cursor: pointer;
  }
}

@media only screen and (min-width: 768px) {
  .header {
    text-align: center;
    height: 15rem;
    padding: 20px;
  }
  .header-logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .header-logo {
    position: static;
    display: inline-block;
    height: 30px !important;
    width: auto;
    max-width: none;
  }
  .header-logo-text {
    position: static;
    display: inline-block;
    font-size: var(--font-4xl);
    padding-left: 0;
  }
  .large-screen-menu {
    display: block;
    padding: 20px 0 0 0;
  }
  .ham-menu {
    display: none;
  }
  .check {
    display: none;
  }
}

/* Desktop: Always-expanded card grid (≥900px) */
@media only screen and (min-width: 900px) {
  /* Hide background image on desktop for services section */
  .services-view .background-image {
    display: none;
  }

  .services-view {
    background-color: #f5f5f5;
  }

  .services-view .pricing-text-h1 {
    background-color: var(--header-background-color);
  }

  .services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    background-color: transparent;
  }

  .service-card {
    margin-bottom: 0;
    cursor: default;
    user-select: auto;
  }

  .service-card:hover {
    box-shadow: none;
  }

  /* Remove accordion behavior on desktop */
  .service-card-header {
    cursor: default;
    padding: 20px;
  }

  .service-card-header:hover {
    background-color: transparent;
    color: inherit;
  }

  .service-card-header::after {
    display: none;
  }

  /* Always show content on desktop */
  .service-card-content {
    max-height: none;
    overflow: visible;
  }

  .service-card.active .service-card-content {
    max-height: none;
  }

  .service-content-wrapper {
    flex-direction: column;
    padding: 0 20px 20px 20px;
  }

  .service-card-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
  }
}

@media only screen and (max-width: 768px) {
  .about-view-p-header {
    font-size: var(--font-xl);
  }
  .pricing-content-container {
    flex-direction: column;
  }
  .services-column {
    width: 100%;
  }
  .services-column.right {
    margin-left: 0;
  }
}

@media only screen and (max-width: 776px) {
  .shift-form-groups-right-50-percent,
  .shift-form-groups-left-50-percent {
    float: none;
    width: 100%;
    padding-left: 0;
  }
  .submit-button {
    color: white;
    background-color: var(--header-background-color);
  }
}

@media only screen and (min-width: 892px) {
  .img-container {
    flex-basis: 33.33%;
    max-width: 33.33%;
  }
}

@media only screen and (min-width: 970px) {
  .prev,
  .next {
    background-color: white;
    color: var(--header-background-color);
    font-size: var(--font-4xl);
  }
  .prev {
    left: 20px;
  }
  .next {
    right: 20px;
  }
}

@media only screen and (max-width: 991px) {
  .gallery-link-container {
    white-space: nowrap;
    margin-bottom: 20px;
  }

  .preview-images {
    overflow-x: auto;
    display: block;
    flex-wrap: nowrap;
  }
}

@media only screen and (min-width: 992px) {
  /* Desktop: Stacked footer sections */
  .footer-content {
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
  }

  .footer-section {
    margin: 0;
    width: 100%;
  }

  /* Map and city list side-by-side on desktop */
  .service-area-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
  }

  .service-area-map {
    flex: 0 0 auto;
    margin: 0;
  }

  .service-areas {
    flex: 0 0 280px;
    margin: 0;
  }

  .social-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .gallery-link-container {
    flex: 1;
    margin: 0 20px;
    overflow: hidden;
    padding: 0;
  }

  .preview-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    overflow: auto;
    img {
      max-height: 160px;
    }
  }

  .gallery-link {
    padding: 10px 0;
    border-bottom: 1px solid var(--header-background-color);
  }

  .fb-container {
    width: 100%;
  }
}

@media only screen and (min-width: 1200px) {
  .prev {
    left: calc(50% - 470px);
  }

  .next {
    right: calc(50% - 470px);
  }
}

/* Form validation error messages */
.error-message {
  color: #dc3545;
  font-size: var(--font-xs);
  margin-top: 0.25rem;
  min-height: 1.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

.form-control.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Form submission result message */
#result {
  color: #dc3545;
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
}
