/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
  }
  
  a:hover {
    color: #2486ba;
  }
  
  /* Navigation Bar */
 /* Base Styles */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 50px;
}

.pura-services {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  font-weight: 500;
  color: #333;
  position: relative;
  text-decoration: none;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #0077cc;
  transition: width 0.3s;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Flash Button */
/* Free Quote button: always white text and smooth scale on hover */
.flash-button {
  background-color: #2486ba;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  /* Remove any transform or scale overrides */
  will-change: transform;
}

.flash-button:hover,
.flash-button:focus {
  background-color: #005fa3;
  color: #fff !important;
  transform: scale(1.1);
}

/* Remove underline effect from the Free Quote button in the nav */
.nav-links .flash-button,
.nav-links a.flash-button {
  position: static;
}

.nav-links .flash-button::after,
.nav-links a.flash-button::after {
  display: none !important;
  content: none !important;
}

/* Remove any conflicting transform from parent nav or li */
.nav-links li,
.nav-links {
  transition: none !important;
  transform: none !important;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links img {
  height: 24px;
  transition: transform 0.3s;
}

.social-links img:hover {
  transform: scale(1.1);
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #222 !important; /* or #333 for dark gray, or #000 for black */
  z-index: 1100;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #fff;
    gap: 1rem;
    padding: 1rem 2rem;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .social-links {
    display: none;
  }
}

.social-links a img {
    height: 24px;
    margin-left: 1rem;
    transition: transform 0.3s;
  }
  
  .social-links a:hover img {
    transform: scale(1.1);
  }
  
  /* Services Section */
 /* Services Section */
#services {
  padding: 4rem 2rem;
  background-color: #eef6fb;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.services-container h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #2486ba;
  font-weight: bold;
}

/* Grid Layout */
#services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Service Cards */


.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px; /* Match card radius */
}

/* Service Images */
.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Headings and Text */
.service-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2486ba;
}

.service-item p {
  font-size: 1rem;
  color: #444;
  flex-grow: 1;
}
  
  .checkbox-group {
    display: flex; /* Enables flexbox layout */
    flex-wrap: wrap; /* Allows wrapping to the next line if needed */
    gap: 1rem; /* Adds spacing between the boxes */
    justify-content: center; /* Centers the group horizontally */
    align-items: center; /* Centers the group vertically */
    margin: 1rem auto; /* Adds spacing and centers the group within its container */
}

.service-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    width: 200px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked + .service-box {
    background: #eef6fb;
    border-color: #2486ba;
    color: #2486ba;
    font-weight: bold;
}

.service-box:hover {
    background: #eef6fb;
    border-color: #2486ba;
}
  
  /* FAQ Section */
  /* FAQ Section Wrapper */
#faq {
  padding: 4rem 2rem;
  background-color: #ffffff;
}

/* FAQ Content Styling */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-section h1 {
  font-size: 2.5rem;
  color: #2486ba;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: bold;
}

/* Individual FAQ Items */
.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* FAQ Toggle Button */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  cursor: pointer;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s, background-color 0.3s;
}

.faq-question:hover {
  color: #2486ba;
  background-color: #f2f9ff;
}

/* Arrow Indicator */
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #2486ba;
  transition: transform 0.3s;
}

/* Active State for Opened FAQ */
.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

/* Keep hover effect (color and background) when FAQ is active */
.faq-item.active .faq-question {
  color: #2486ba;
  background-color: #f2f9ff;
}

/* Answer Content */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background-color: #f9f9f9;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* adjust if needed */
  padding: 1rem;
}

/* FAQ Answer: Show more content on small screens */
@media (max-width: 600px) {
  .faq-item.active .faq-answer {
    max-height: 600px; /* Increased from 200px for mobile */
    padding: 1rem;
  }
}

/* Answer Paragraph */
.faq-answer p {
  margin: 0;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.faq-answer a {
  color: #2486ba;
  text-decoration: underline;
}

.faq-answer a:hover {
  color: #005fa3;
}

/* Quote Form */
.quote-form {
    display: flex; /* Enables flexbox layout */
    flex-direction: column; /* Stacks the content vertically */
 
    
    text-align: center; /* Centers the text inside the section */
    padding: 4rem 2rem;
    background: #eef6fb;
  }
  
  .quote-form h1 {
    font-size: 2.5rem; /* Adjusts the font size for better visibility */
    margin-bottom: 2rem; /* Adds spacing below the heading */
    color: #2486ba; /* Sets a modern blue color */
  }
  
  .quote-form form {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  /* Left-align all quote form labels except "Select Services" */
.quote-form label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

/* Center "Select Services" label only */
.quote-form label[for="services"] {
    text-align: center;
    margin-bottom: 1rem;
}
  
  .quote-form input,
  .quote-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.25rem;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  
  .quote-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.25rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none; /* Disables resizing of the textarea */
    height: 100px; /* Sets a fixed height */
}
  
  /* Make the upload photo input smaller vertically in the quote form */
  #quote-form input[type="file"] {
    margin: 0 auto 1rem auto;
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f1f5f9;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
  
  .form-submitted {
    color: green; /* Makes the text green */
    font-size: 2rem; /* Adjusts the font size */
    text-align: center; /* Centers the text */
    margin-top: 1rem; /* Adds spacing above the message */
  }

  .form-error {
    color: red; /* Makes the error message red */
    font-size: 2rem; /* Adjusts the font size */
    text-align: center; /* Centers the text */
    margin-top: 1rem; /* Adds spacing above the message */
}

.error-list {
    color: red; /* Makes the error list red */
    font-size: 1rem; /* Adjusts the font size */
    margin-top: 1rem; /* Adds spacing above the list */
    list-style-type: disc; /* Adds bullet points */
    padding-left: 1.5rem; /* Adds left padding for bullets */
}
  
  /* Footer */
  .site-footer {
    background-color: #ffffff;
    color: #333;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
  }
  
  .footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .footer-branding,
  .footer-links,
  .footer-social {
    flex: 1 1 200px;
    min-width: 200px;
  }
  
  .footer-logo {
    width: 60px;
    height: auto;
    margin-bottom: 0.5rem;
  }
  
  .footer-branding h3 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: #2486ba;
  }
  
  .footer-branding p {
    font-size: 0.9rem;
    color: #555;
  }
  
  /* Quick Links Centered */
  .footer-links h4 {
    font-size: 1.1rem;
    color: #2486ba;
    margin-bottom: 0.75rem;
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
  }
  
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  
  .footer-links a {
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
  }

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #2486ba;
    transition: width 0.3s;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #2486ba;
}

.footer-links a:hover::after,
.footer-links a:focus::after {
    width: 100%;
}
  
  /* Social Icons Centered */
  .footer-social h4 {
    font-size: 1.1rem;
    color: #2486ba;
    margin-bottom: 0.75rem;
  }
  
  .footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }
  
  .footer-social-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
  }
  
  .footer-social-links img:hover {
    transform: scale(1.1);
  }
  
  /* Bottom Text */
  .footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #2486ba;
  }
  
  /* Responsive Tweak */
  @media (max-width: 600px) {
    .footer-container {
      flex-direction: column;
      align-items: center;
    }
  
    .footer-links ul {
      text-align: center;
    }
  }
  
  .comparison-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .comparison-slider img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
  }
  
  /* The AFTER image is clipped horizontally */
  .img-after {
    clip-path: inset(0 50% 0 0); /* show left half by default */
    z-index: 2;
    
  }
  
  /* The BEFORE
  .img-before {
    z-index: 1;
  }
  
  /* Handle line and circle */
  .slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
  }
  
  .handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #2486ba;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: ew-resize;
  }
  
  .arrow {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
  }
  .arrow.left {
    border-right: 8px solid white;
    margin-right: 3px;
  }
  .arrow.right {
    border-left: 8px solid white;
    margin-left: 3px;
  }
  
  /* Comparison Sliders Grid */
.comparison-slider-grid {
  background-color: #ffffff;
    padding: 2rem;
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 2rem auto;
}

/* Make each slider smaller for grid */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 250px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

/* Standalone style for the submit button, matching the Free Quote button with smooth scale */
.submit-button {
    background-color: #2486ba;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none !important;
    position: relative;
    transition: transform 0.3s, background-color 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    letter-spacing: 0.5px;
    will-change: transform;
}

.submit-button:hover,
.submit-button:focus {
    transform: scale(1.1);
    background-color: #005fa3;
    color: white;
}

/* Center and style the Photos section heading to match Our Services */
#photos h1 {
  font-size: 2.5rem; /* Adjusts the font size for better visibility */
  margin-bottom: 2rem; /* Adds spacing below the heading */
  color: #2486ba; /* Sets a modern blue color */
  text-align: center;
}

.contact-section {
  background-color: #eef6fb;
  padding: 4rem 2rem;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2486ba;
}

.contact-section p {
  font-size: 1.1rem;
  color: #333;
  margin: 0.5rem 0;
}

.contact-section strong {
  color: #000;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 1.5rem;
  }

  .contact-section h2 {
    font-size: 1.75rem;
  }

  .contact-section p {
    font-size: 1rem;
  }
}

#photos {
    background: #eef6fb;
    padding: 3rem 1.5rem 2.5rem 1.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: center;
    margin: 0 auto;
}

/* Responsive grid for comparison-slider-grid */
@media (max-width: 900px) {
  .comparison-slider-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
    max-width: 100%;
  }
  .comparison-slider {
    max-width: 100%;
    height: 220px;
  }
}

@media (max-width: 600px) {
  .comparison-slider-grid {
    padding: 1rem;
    gap: 1.2rem;
  }
  .comparison-slider {
    height: 250px;
  }
}

/* Service item entrance animation */
@keyframes serviceItemFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.03);
  }
  80% {
    transform: translateY(4px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.service-item,
.service-item-contact {
  opacity: 0;
  animation: serviceItemFadeInUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Stagger the animation for each service item */
#services-grid .service-item:nth-child(1) { animation-delay: 0.1s; }
#services-grid .service-item:nth-child(2) { animation-delay: 0.3s; }
#services-grid .service-item:nth-child(3) { animation-delay: 0.5s; }
#services-grid .service-item-contact { animation-delay: 0.7s; }

/* Style for photo preview thumbnails */
.photo-preview {
  display: none !important;
}
.photo-preview img {
  border: 1px solid #ccc;
  background: #fff;
  padding: 2px;
}

/* Prevent zoom on form fields for iOS Safari and mobile browsers */
input,
textarea,
select {
  font-size: 16px !important;
}

/* Remove styles for photo upload and preview */



/* Remove or comment out any other .photo-preview or file input styles if present */

/* Responsive: Make service boxes fit 2x2 grid on small screens */
@media (max-width: 600px) {
  .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
  }
  .checkbox-group label {
    flex: 1 1 45%;
    max-width: 48%;
    min-width: 140px;
    margin: 0.3rem 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
  }
  .service-box {
    width: 100%;
    font-size: 1rem;
    padding: 0.7rem 0.2rem;
    text-align: center;
  }
}

/* Add these styles for the flip card effect */
.service-item {
  perspective: 1200px;
  cursor: pointer;
  height: 400px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.4,2,.3,1);
  transform-style: preserve-3d;
}

.service-item.flipped .service-card {
  transform: rotateY(-180deg); /* Negative value flips from left */
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.service-card-front img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: #2486ba;
  text-align: center;
  transform: rotateY(180deg); /* Flip the back to match the front */
}

/* Arrow icon for service card front, bottom right */
.card-arrow {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 16px;
  height: 16px;
  font-size: 0; /* Hide ">" character */
  color: #005fa3;
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-arrow::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml;utf8,<svg width="22" height="22" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11" fill="%232486ba"/><text x="12" y="17" text-anchor="middle" font-size="16" fill="white" font-family="Arial" font-weight="bold">i</text></svg>') no-repeat center center;
  background-size: contain;
}
.service-card-front {
  position: absolute;
}

@media (max-width: 600px) {
  .service-item {
    height: 290px;
    max-width: 95vw;
  }
}
@media (max-width: 600px) {
  .service-card-back p {
    font-size: 0.85rem;
  }
}
