/* Service Section */
.service-card {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* Add transitions for smooth hover effects */
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-medium);
}

/* Service button specific chevron styling */
.service-button svg.faq-chevron {
  margin-left: 0 !important; /* Remove left margin */
  margin-right: 1rem !important; /* Set right margin to 1rem */
}

/* Service section heading text alignment */
.service-button .flex-1 {
  margin-left: -1.5rem !important; /* Increased leftward shift from -1.25rem */
}
/* --- Category Section Styles --- */
.category-heading,
.category-spacer {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.category-heading.hidden,
.category-spacer.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.category-projects {
  display: contents; /* This makes the children participate in the parent grid */
}

/* --- Portfolio Filter Button Styles --- */
.filter-btn:focus {
  outline: 1px solid rgb(59, 130, 246);
  outline-offset: 0;
}
.filter-btn {
  min-width: 130px;
  width: 145px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  margin: 0 0.25rem 0.5rem 0.25rem;
}
.filter-btn[data-filter="all"] {
  background: #ff6600;
  color: #fff;
}
.filter-btn[data-filter="New"] {
  background: #7c3aed;
  color: #fff;
}
.filter-btn[data-filter="Reno"] {
  background: #22c55e;
  color: #fff;
}
.filter-btn[data-filter="TI"] {
  background: #1190f1;
  color: #fff;
}
.filter-btn.active {
  /* This combines outline from :focus and specific active styles */
  outline: 1px solid rgb(59, 130, 246);
  outline-offset: 0;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}
.filter-btn:not(.active):hover {
  filter: brightness(1.1);
}
.filter-btn strong {
  font-weight: inherit;
}

/* --- Project Category Tags --- */
.tag {
  font-size: 1rem; /* Match 'View Details' (text-base) */
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
}
.tag-New {
  background-color: #e0e7ff;
  color: #3730a3;
}
.tag-Reno {
  background-color: #dcfce7;
  color: #166534;
}
.tag-TI {
  background-color: #dbeafe;
  color: #1e40af;
}
.tag-General {
  background-color: #fef3c7;
  color: #d97706;
}

/* --- Unified Project Card Styles --- */
.project-card {
  background: white;
  border-radius: 1rem; /* Consistent with general .project-card, override for -home was 1.2rem */
  overflow: visible;
  width: 100%; /* For grid layout, takes width of cell */
  max-width: 500px; /* Increased from 380px to 500px */
  margin: 0 auto; /* For centering in grid cell if wider */
  height: auto; /* Changed from 100% to auto to fix dropdown behavior */
  display: flex;
  flex-direction: column;
  align-self: start; /* Prevent grid stretching that can affect dropdown behavior */
}
.project-card:hover {
  -webkit-transform: scale(1.03);
  transform: scale(1.03); /* General hover scale */
}
.project-card .p-6 {
  /* Content padding and flex properties */
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Ensure content area grows */
  /* padding: 1.5rem; Tailwind p-6 */
}
.project-card .p-6 p[itemprop="description"] {
  /* Description truncation for grid cards */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* Firefox compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  min-height: 3.2em; /* Increased from 2.8em to prevent descender clipping */
  max-height: 3.2em;
  height: 3.2em !important;
}
.project-card .card-footer,
.project-card .card-footer,
.project-card .flex.items-center.justify-between {
  /* Standardized footer */
  margin-top: auto; /* Pushes to the bottom */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
}
.project-card .tag {
  /* Positioning for tag within card, not its appearance */
  flex: 0 0 auto;
}

/* --- Unified Project Image Container --- */
.project-image-container {
  position: relative;
  /* padding-top: 75%; Removed in favor of aspect-ratio */
  overflow: hidden;
  background-color: #f3f4f6; /* Placeholder bg */
  flex: 0 0 auto; /* Prevent image container from resizing */
  cursor: pointer; /* For gallery interaction */
  aspect-ratio: 4/3; /* Explicit aspect ratio for CLS reduction */
  /* width: 100%; height: auto; or specific height if needed, handled by aspect-ratio */
}
.project-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Remove extra space below image */
  -webkit-transition: transform 0.5s ease;
  transition: transform 0.5s ease;
}
.project-card:hover .project-image-container img {
  /* Image zoom on hover */
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

/* --- (TAP) Mobile Overlay & (HOVER) Desktop Overlay --- */

/* Shared overlay style */
.project-image-container::after {
  content: "Tap for details"; /* Default for mobile */
  position: absolute;
  inset: 0;
  background: rgba(55, 65, 81, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
  z-index: 2;
  text-align: center;
}

/* Mobile (TAP) - activated by a class */
.project-card.mobile-tapped .project-image-container::after {
  opacity: 1;
}

/* Text change for tap on mobile */
@media (max-width: 1030px) {
  /* Text change for tap on mobile */
  .project-card[data-details-open="true"].mobile-tapped
    .project-image-container::after {
    content: "Tap to open";
    opacity: 1;
  }

  .project-card[data-action-type="gallery"][data-details-open="true"].mobile-tapped
    .project-image-container::after {
    content: "Tap to open gallery" !important;
    opacity: 1 !important;
  }

  .project-card[data-action-type="external"][data-details-open="true"].mobile-tapped
    .project-image-container::after {
    content: "Tap to open" !important;
    opacity: 1 !important;
  }

  .project-card[data-action-type="video"][data-details-open="true"].mobile-tapped
    .project-image-container::after {
    content: "Tap to play video" !important;
    opacity: 1 !important;
  }
}

/* Desktop - only for devices that support hover and are wide enough */
@media (hover: hover) and (min-width: 1029px) {
  /* Default desktop text */
  .project-image-container::after {
    content: "Click for details";
  }

  /* Show overlay on hover (before click) */
  .project-image-container:hover::after,
  .project-image-container:focus-within::after {
    opacity: 1;
  }

  /* After click (details are open), make overlay permanent and change text */
  .project-card[data-details-open="true"] .project-image-container::after {
    opacity: 1 !important;
    content: "Click to open"; /* Desktop override when details are open */
  }

  .project-card[data-action-type="gallery"][data-details-open="true"]
    .project-image-container::after {
    content: "Click to open gallery" !important; /* opacity is inherited from the rule above */
  }

  .project-card[data-action-type="external"][data-details-open="true"]
    .project-image-container::after {
    content: "Click to open" !important;
  }

  .project-card[data-action-type="video"][data-details-open="true"]
    .project-image-container::after {
    content: "Click to play video" !important;
  }
}

/* --- Carousel Specific Styles --- */
#portfolio-carousel {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
  scrollbar-width: none; /* Hide scrollbar in Firefox */
  padding: 1rem 10px; /* Add side padding for the nav buttons */
  gap: 1rem;
  width: 100%;
  content-visibility: auto;
  contain-intrinsic-size: auto; /* Allow carousel to grow with expanded cards */
}

#portfolio-carousel::-webkit-scrollbar,
#carousel::-webkit-scrollbar,
#reviews-carousel::-webkit-scrollbar,
.project-card.hide-thumbnail .project-image-container,
.project-card.hidden,
.filtered-state .project-grid h2,
.filtered-state .project-grid .w-full.mb-12 {
  display: none; /* Hide scrollbar in Chrome/Safari/Opera */
}
#portfolio-carousel > .project-card {
  /* Styling for cards directly inside this carousel */
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex: 0 0 auto; /* Crucial for carousel layout */
  width: 480px; /* Default width for cards in this carousel */
  max-width: 480px !important; /* Override general max-width for carousel item */
  margin: 0; /* Override general margin: 0 auto; for carousel layout */
  /* height property will be inherited from .project-card or can be set here if different */
}

/* Blog Articles Carousel - Same styling as portfolio carousel */
#blog-articles-carousel > .project-card {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex: 0 0 auto;
  width: 480px;
  max-width: 480px !important;
  margin: 0;
}
@media (max-width: 700px) {
  #portfolio-carousel > .project-card {
    width: 340px;
    max-width: 340px !important; /* Fixed width for mobile carousel */
  }

  #blog-articles-carousel > .project-card {
    width: 340px;
    max-width: 340px !important; /* Fixed width for mobile carousel */
  }
  #portfolio-carousel {
    /* Adjust scroll padding for smaller screens */
    scroll-padding-left: 8px;
    scroll-padding-right: 8px;
    padding-left: 2.5px; /* Horizontal padding for the carousel track itself */
    padding-right: 2.5px;
  }
  .project-grid {
    grid-template-columns: 1fr; /* 1 column for mobile */
    gap: 2rem; /* Increased gap for better vertical spacing on mobile */
    justify-content: center;
  }
  .project-card {
    max-width: 98vw; /* Let card fill most of the viewport width on mobile */
  }
}

/* Generic carousel (if used elsewhere) */
#carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 1rem;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2.5rem;
  scroll-padding-right: 2.5rem;
  -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
  scroll-behavior: auto; /* Let JS handle smooth scrolling */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#carousel > .project-card {
  /* Target unified project cards */
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex: 0 0 auto;
  /* Add specific width/height for cards in #carousel if different from #portfolio-carousel */
  width: 320px; /* Example for a generic carousel */
  max-width: 320px !important; /* Prevent expansion */
}

.carousel-nav-button {
  position: absolute !important;
  top: 100px !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.7rem !important;
  height: 2.7rem !important;
  padding: 0 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: white !important;
  border-radius: 2rem !important;
  -webkit-transition: background-color 0.3s ease-in-out !important;
  transition: background-color 0.3s ease-in-out !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
}
.carousel-nav-button:hover {
  background-color: rgba(0, 0, 0, 0.75) !important;
}
.carousel-nav-button:focus-visible {
  outline: 2px solid #3b82f6 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4) !important;
}
.carousel-nav-button svg {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;
}
.left-2 {
  left: -2px !important; /* Move outside the carousel a bit */
}

.right-2 {
  right: -2px !important; /* Move outside the carousel a bit */
}

/* @media (min-width: 768px) {
  .carousel-nav-button {
    width: 50px !important;
    height: 50px !important;
  }
  .left-2 {
    left: -10px !important;
  }
  .right-2 {
    right: -10px !important;
  }
} */

/* --- Project Grid (Shared across all pages) --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(
    3,
    minmax(340px, 500px)
  ); /* Fixed max width per card, fixed gap */
  gap: 1.5rem; /* Fixed gap between grid items */
  padding: 1rem;
  margin: 0 auto;
  min-height: auto !important; /* Changed from 900px to auto for flexibility */
  justify-content: center; /* Center grid when there's extra space */
  align-items: start; /* Prevent stretching */
}

@media (max-width: 1199px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(340px, 500px));
    gap: 1.5rem; /* Keep gap fixed */
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr; /* Single column for tablets and mobile */
    gap: 2rem; /* Increased gap for better vertical spacing */
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .project-card {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 500px) {
  .project-grid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    justify-items: center;
    gap: 2rem; /* Keep increased gap for very small screens */
    min-height: 1200px;
    margin-bottom: 4rem;
  }
  .project-card {
    max-width: 100vw;
  }
  .simple-grid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* --- Other Styles (Details, Animation, Layout Helpers) --- */
.project-details-content {
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height 0.3s ease-out;
  transition: max-height 0.3s ease-out;
}
.project-details-content.expanded {
  max-height: 500px; /* Adjust as needed for content */
  -webkit-transition: max-height 0.5s ease-in;
  transition: max-height 0.5s ease-in;
}
.animate-on-scroll {
  opacity: 0;
  -webkit-transform: translateY(30px);
  transform: translateY(30px);
  -webkit-transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
main,
.max-w-7xl {
  position: relative; /* Or other specific main styling */
}
.text-center.py-8 {
  /* Container for "Back to Homepage" link */
  background-color: transparent;
  padding: 2rem 0;
  /* text-align: center; From Tailwind */
}
.text-center.py-8 a {
  /* "Back to Homepage" link specific styling */
  min-height: 56px;
  line-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Other Tailwind classes like px-8 py-3 etc. are in HTML */
}
.sr-only {
  /* Accessibility helper */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* reviews.min.css - Styles for reviews carousel and cards */

:root {
  --review-gradient-start: #ffffff;
  --review-gradient-end: #f5f5f5;
  --testimonial-gradient-start: #ffffff;
  --testimonial-gradient-end: #f5f5f5;
}

#reviews-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.review-card {
  min-width: 340px !important;
  max-width: 340px !important; /* Prevent expansion */
  flex: 0 0 auto;
  background: linear-gradient(
    145deg,
    var(--review-gradient-start),
    var(--review-gradient-end)
  );
  scroll-snap-align: center;
  padding: 1.5rem;
  border-radius: 1.2rem;
  align-self: start; /* Add this line to prevent stretching */
}
.review-card .flex-grow {
  min-height: 400px; /* Adjust this value as needed */
}
.review-card .flex-shrink-0 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-right: 1rem;
}

.review-card .flex-shrink-0 img,
.review-card .defer-image {
  border-radius: 50%;
  border: 3px solid #e5e7eb; /* Tailwind gray-200 */
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #f3f4f6;
  display: block;
  -webkit-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Add smooth zoom */
}

.review-card:hover .flex-shrink-0 img,
.review-card:hover .defer-image {
  -webkit-transform: scale(1.13);
  transform: scale(1.13);
}

.review-toggle-container {
  text-align: right;
  width: 100%;
}

.star-inline {
  display: inline-block;
  vertical-align: middle;
}

/* Review text transition styles */
.review-text {
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.review-chevron-btn,
.project-grid .project-card {
  -webkit-transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
}

.review-chevron-btn:hover,
#google-review-link:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

@media (max-width: 810px) {
  .review-card {
    min-width: 260px;
  }
}

/* Custom hover effect for Google Review Link */
#google-review-link {
  -webkit-transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
  display: inline-block;
}

/* --- Search Bar Styles (Shared by service-area and virtual-tours) --- */
.search-bar {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.search-bar:focus-within {
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.search-input-container {
  position: relative;
  display: block;
}
.search-icon-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* --- Tour Card Styles (Shared by service-area and virtual-tours) --- */
.tour-card {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  opacity: 1;
}
.tour-card.hidden {
  opacity: 0;
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
  pointer-events: none;
}
.protected-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* --- No Results Styles (Shared by service-area and virtual-tours) --- */
.no-results {
  display: none;
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.no-results.show {
  display: block;
}

/* --- Enhanced Project Card Styles (Shared overrides) --- */

/* --- Click feedback for touch devices --- */
.project-image-container.clicked::after {
  content: "Opening details...";
  opacity: 1 !important;
  background: rgba(34, 197, 94, 0.8); /* Green feedback */
  z-index: 10;
  -webkit-transition: opacity 0.2s ease-in-out;
  transition: opacity 0.2s ease-in-out;
}

/* --- Hide Thumbnail Feature (for list view) --- */

/* --- Hide Card (No search results) --- */
/* --- Portfolio Category Sections --- */
.project-grid h2 {
  scroll-margin-top: 100px; /* Account for fixed header when linking directly to headings */
}

/* Filter state: hide category headings when filtering */

/* Filter state: hide category spacers when filtering */

/* Ensure grid spacing is consistent */

.project-grid .project-card:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}
/* --- Simple Grid System (for service-area type pages) --- */
/* Uses the standard .project-grid styles but with simple grid specific overrides */

/* Mobile margins for simple grids */

/* Shadow card for simple grid UI elements */
.shadow-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.skeleton {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
}
.project-card,
.skeleton {
  flex-shrink: 0;
  width: 20rem;
  height: 24rem;
}
/* Contact Section Background */
.contact-bg {
  background-color: #0055ac;
}

/* Contact Section - Oval Icon Styling */
.contact-icon-oval {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 4rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-icon-oval svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
/* Project type dropdown */
#project-type {
  background-color: #fff;
  color: #333;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  border-width: 1px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%239ca3af" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path d="M6 8.828a1 1 0 0 1-.707-.293l-4-4a1 1 0 1 1 1.414-1.414L6 6.11l3.293-3.292a1 1 0 0 1 1.497 1.32l-.083.094l-4 4A1 1 0 0 1 6 8.828"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25em 1.25em;
  height: 52px; /* 48px, matches py-3 on input */
}
#project-type:focus {
  outline: none;
  border-color: #0059b3;
}
#project-type option[disabled][selected] {
  color: #9ca3af;
}

/* Button styles */
.btn-primary {
  background-color: var(--primary-color);
  -webkit-transition: background-color 0.3s ease, transform 0.3s ease;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--primary-darker);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

/* Google Places Autocomplete Dropdown Styles */
.pac-container {
  z-index: 9999 !important;
  border-radius: 6px;
}
.pac-item {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  line-height: 1.5 !important;
  cursor: pointer;
  font-size: 1.1rem !important;
}
.pac-item-query {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}
.pac-item .pac-matched,
.pac-item span {
  font-size: 1.1rem !important;
}

/* Service Glass Style */
.contact {
  background: linear-gradient(
    135deg,
    rgba(250, 250, 250, 0.95) 0%,
    rgba(217, 232, 255, 0.95) 100%
  );
}

/* Enlarge the select dropdown for mobile */
@media (max-width: 767px) {
  #project-type {
    font-size: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}
.fonts-not-loaded {
  font-family: Arial, sans-serif;
  letter-spacing: -0.01em;
}

.fonts-loaded {
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Back to top button - critical UI element */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000; /* Ensure it stays above all content */
  opacity: 0.6 !important;
  -webkit-transition: opacity 0.3s ease, transform 0.3s ease !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

#back-to-top:hover {
  opacity: 1 !important;
}
.cbp-color,
.project-card h3,
.project-card .project-title {
  color: #0a3a6a; /* Tailwind blue-900 */
}
.cbp-title {
  margin-bottom: 1rem; /* mb-4 */
  font-size: 2rem; /* text-4xl (36px) */
  font-weight: 800;
  text-align: center; /* font-extrabold */ /* or your preferred heading color */
}

@media (min-width: 1030px) {
  .cbp-title {
    font-size: 3rem; /* md:text-5xl (48px) */
  }
}

.cbp-head {
  margin-bottom: 1rem; /* mb-4 */
  font-size: 1.875rem; /* text-3xl (30px) */
  font-weight: 800; /* font-extrabold */
  text-align: center; /* text-center */ /* or your preferred color */
}
.cbp-head.text-left,
.cbp-text.text-left {
  text-align: left;
}
@media (min-width: 1050px) {
  .cbp-head {
    font-size: 2.25rem; /* md:text-4xl (36px) */
  }
}

.cbp-text {
  max-width: 48rem; /* max-w-3xl (1050px) */
  margin-left: auto; /* mx-auto */
  margin-right: auto;
  font-size: 1.25rem; /* text-xl (20px) */
  color: #1f2937; /* text-gray-800 */
}
.cbp-text p + p {
  margin-top: 1rem;
}
.cbp-text.text-gray {
  color: #374151 !important; /* Tailwind text-gray-700 */
}
.cbp-text.text-blue {
  color: #2563eb !important; /* Tailwind blue-600 */
}
/* Font weight classes */
.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

/* Font size classes with stable metrics */
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

img {
  /* KEEP AS IS */
  height: auto;
  max-width: 100%;
}
/* Hero image container styles moved to home.min.css */
/* Ensure images don't cause layout shifts */

/* Container styles are provided by Tailwind */

/* Critical background gradient - used across all pages */
.background-gradient {
  background: linear-gradient(to bottom, #d4e7fa 0%, #afd4fa 50%, #7bb6f7 100%);
  position: relative;
}

/* Mobile hero content padding moved to home.min.css */
/* --- End essential.css --- */

/* --- Begin Global CSS from home.css --- */
/* Define reusable color variables */
:root {
  --primary-color: #0059b3;
  --primary-darker: #3b82f6; /* Changed to lighter blue-500 for better visibility */
  --primary-lighter: #00a8e8; /* Added for progress bar gradient */
  --text-dark: #333;
  --bg-light-gray: #f8f9fa;
  --scrollbar-track: #f1f1f1;
  --scrollbar-thumb: var(--primary-color);

  --gradient-overlay: rgba(0, 0, 0, 0.3);

  /* Header-specific CSS Variables */
  --header-bg: rgba(255, 255, 255, 0.98);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.15);
}

/* Font loading state styles */
.fonts-not-loaded {
  /* Apply fallback fonts when custom fonts haven't loaded yet */
  font-family: Arial, sans-serif;
  /* Prevents layout shift by matching font metrics */
  letter-spacing: -0.01em;
}

.fonts-loaded {
  /* Apply custom fonts when loaded */
  font-family: "Outfit", sans-serif;
  /* Gradually transition to loaded fonts */
  -webkit-transition: font-family 0.1s ease-out, letter-spacing 0.1s ease-out;
  transition: font-family 0.1s ease-out, letter-spacing 0.1s ease-out;
}

/* Base heading styles - low specificity */
:where(h1) {
  margin-block: 0.67em;
  font-size: 4em;
}

/* Direct targeting for h1 in sectioning elements to avoid browser warnings */
article h1,
section h1,
nav h1,
aside h1 {
  font-size: 4em; /* Same size as your :where(h1) */
}

/* Smooth transitions for responsive elements */
.responsive-transition,
#mobileMenu {
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

/* Apply smooth transitions to common responsive elements */
.grid,
.flex,
.container,
.service-accordion,
.faq-item-container,
.hero-bg,
.hero-image-container,
[class*="col-"],
[class*="w-"],
[class*="h-"],
[class*="p-"],
[class*="m-"] {
  -webkit-transition: width 0.3s ease, height 0.3s ease, padding 0.3s ease,
    margin 0.3s ease;
  transition: width 0.3s ease, height 0.3s ease, padding 0.3s ease,
    margin 0.3s ease;
}

/* Button styles */
.btn-primary {
  background-color: var(--primary-color);
  -webkit-transition: background-color 0.3s ease, transform 0.3s ease; /* Combine transitions */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Combine transitions */
}

.btn-primary:hover {
  background-color: var(--primary-darker);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}
/* --- End Global CSS from home.css --- */

/* --- Begin Header CSS from header.css --- */
/* Header Element Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  z-index: 50;
}

header.scrolled {
  box-shadow: 0 2px 10px var(--shadow-medium);
}

/* Mobile Menu Styles */

/* Navigation Links - Shared Styles */
header nav a {
  -webkit-transition: color 0.2s ease-in-out;
  transition: color 0.2s ease-in-out;
}

/* Spacer for fixed header */
.nav-spacer {
  height: 112px; /* Adjust based on your header height */
}

/* Logo container */
header .flex-shrink-0 a,
header .items-center {
  display: flex;
  align-items: center;
}

/* Desktop Navigation */
@media (min-width: 1024px) {
  header nav {
    display: flex;
    gap: 2rem;
  }
}

/* Header Content Container */
header .container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop Contact Info */

@media (max-width: 1023px) {
  header .lg\:flex {
    display: none;
  }
}

/* Request a Quote Button */
header .bg-blue-700 {
  background-color: #1d4ed8;
  -webkit-transition: background-color 0.3s ease, box-shadow 0.3s ease;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header .bg-blue-700:hover {
  background-color: #1e40af;
}
/* Glassmorphism style for service cards */
.service-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(241, 245, 255, 0.85) 100%
  );
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  backdrop-filter: blur(8px) saturate(160%);
  border-radius: 1.2rem;
  border: 1px solid rgba(200, 200, 200, 0.18);
  -webkit-transition: box-shadow 0.3s, background 0.3s;
  transition: box-shadow 0.3s, background 0.3s;
}

.service-glass:hover {
  background: linear-gradient(
    135deg,
    rgba(250, 250, 250, 0.95) 0%,
    rgba(217, 232, 255, 0.95) 100%
  );
}

@media (min-width: 0px) and (max-width: 1280px) {
  .tablet-logo-adjust {
    margin-left: 0.5rem !important;
  }
  .tablet-phone-adjust {
    margin-right: 0.5rem !important;
  }
  .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 1280px) {
  .tablet-logo-adjust,
  .tablet-phone-adjust {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
  }
}
.shadow-card {
  box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.28),
    0 6px 24px 0 rgba(0, 0, 0, 0.18) !important;
  border-radius: 1rem;
  background: #fff;
  -webkit-transition: box-shadow 0.3s;
  transition: box-shadow 0.3s;
  position: relative;
  z-index: 2;
}
.shadow-card:hover {
  box-shadow: 0 24px 64px 0 rgba(31, 38, 135, 0.32),
    0 12px 32px 0 rgba(0, 0, 0, 0.22) !important;
  z-index: 3;
}
