/* Torquay Fencing - Main Stylesheet */

/* ===== Variables ===== */
:root {
  --primary-color: #2A9134;
  --primary-hover: rgba(42, 145, 52, 0.9);
  --secondary-color: #207227;
  --secondary-hover: rgba(32, 114, 39, 0.9);
  --text-color: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --light-green-bg: rgba(42, 145, 52, 0.1);
}

/* ===== Base Styles ===== */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.bg-light-green {
  background-color: var(--light-green-bg);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.font-semibold {
  font-weight: 600;
}

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

/* ===== Header & Navigation ===== */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  background-color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 50;
}

/* Override for blog pagination nav */
.pagination-nav {
  position: static;
  box-shadow: none;
  background-color: #f9fafb; /* gray-50 to match section background */
}

.pagination-container {
  padding: 2rem 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

nav a {
  color: var(--gray-700);
}

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

#menuToggle {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mobileMenu {
  position: fixed;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 40;
  top: 3.5rem;
  left: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

#mobileMenu.open {
  transform: translateY(0);
}

#mobileMenu a {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: block;
}

#mobileMenu .mobile-call-btn {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: background-color 0.3s;
}

#mobileMenu .mobile-call-btn:hover {
  background-color: var(--secondary-hover);
}

#mobileMenu .mobile-email-btn {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: background-color 0.3s;
}

#mobileMenu .mobile-email-btn:hover {
  background-color: var(--primary-hover);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

/* Mobile call button styles */
@media (max-width: 1023px) {
  .flex.lg\:hidden .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .flex.lg\:hidden .btn i {
    font-size: 0.9rem;
  }
}

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

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

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

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

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

.btn-white:hover {
  background-color: var(--gray-100);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding-top: 5rem; /* For nav offset */
  min-height: 380px; /* A more sensible minimum height */
  padding-bottom: 3rem; /* Add some bottom padding */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem; /* Increased vertical padding */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.profile-image {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  margin-bottom: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  padding: 3px;
  background-color: white;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  background-color: white;
  background-image: url('../images/Joe.png');
  background-size: 110%;
  background-position: center 39%;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .profile-image {
    width: 11rem;
    height: 11rem;
  }
}

.hero h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
}

.rating-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rating-stars {
  display: flex;
  align-items: center;
}

.rating-stars i {
  color: #fbbf24; /* yellow-400 */
}

.rating-stars span {
  color: white;
  margin-left: 0.5rem;
}

.rating-container p {
  color: white;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== Section Backgrounds ===== */
.section-bg-gray {
  background-color: #f1f5f9; /* gray-100, darker than previous gray-50 */
}

.section-bg-white {
  background-color: #ffffff;
}

.section-bg-light-green {
  background-color: #e6f0e6; /* Light green background for contrast */
}

/* ===== Trust Indicators ===== */
.trust-indicators {
  padding: 2rem 1rem;
  background-color: #f1f5f9; /* gray-100, darker than previous gray-50 */
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.trust-item {
  background-color: white;
  padding: 1rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.trust-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.trust-item h3 {
  font-weight: 600;
  font-size: 0.875rem;
}

.trust-item p {
  font-size: 0.75rem;
  color: #4b5563; /* gray-600 */
}

/* ===== About Section ===== */
.about-section {
  padding: 2.5rem 1rem;
}

.about-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.about-layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .about-layout {
    flex-direction: row;
  }
}

.about-image {
  width: 100%;
}

@media (min-width: 1024px) {
  .about-image {
    width: 50%;
  }
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .about-image img {
    height: 100%;
  }
}

.about-content {
  width: 100%;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .about-content {
    width: 50%;
    padding: 2rem;
  }
}

.about-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--primary-color);
  margin: 0 auto 1rem;
  border-radius: 9999px;
}

.about-content p {
  color: #4b5563; /* gray-600 */
  margin-bottom: 1rem;
}

.about-content .quote {
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ===== Section Styles ===== */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-description {
  text-align: center;
  color: #4b5563; /* gray-600 */
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Portfolio Section ===== */
.portfolio-section {
  padding: 4rem 1rem;
  background-color: var(--gray-100);
}

.portfolio-gallery-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem; /* Add padding for the navigation arrows */
}

.portfolio-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  gap: 1rem;
  padding: 1rem 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.portfolio-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Navigation buttons */
.portfolio-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.portfolio-nav:hover {
  background-color: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.portfolio-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.portfolio-prev {
  left: 0.5rem;
}

.portfolio-next {
  right: 0.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  cursor: pointer;
  height: 12rem;
  flex: 0 0 calc(100% - 2rem); /* Full width on mobile minus gap */
  max-width: calc(100% - 2rem);
  transition: transform 0.3s ease;
  scroll-snap-align: start;
}

/* Show 2 items on medium screens */
@media (min-width: 768px) {
  .portfolio-item {
    flex: 0 0 calc(50% - 1rem); /* 2 items per view minus gap */
    max-width: calc(50% - 1rem);
  }
}

/* Show 3 items on large screens */
@media (min-width: 1024px) {
  .portfolio-item {
    flex: 0 0 calc(33.333% - 1rem); /* 3 items per view minus gap */
    max-width: calc(33.333% - 1rem);
  }
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  font-size: 0.875rem;
  font-weight: 500;
}

.portfolio-overlay p {
  font-size: 0.75rem;
}

/* ===== Reviews Section ===== */
.reviews-section {
  padding: 2.5rem 1rem;
  background-color: #f1f5f9; /* gray-100, darker than previous gray-50 */
}

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

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.testimonial-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}

.testimonial-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(42, 145, 52, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.testimonial-avatar i {
  color: var(--primary);
  font-size: 1.25rem;
}

.testimonial-author h4 {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-author p {
  font-size: 0.75rem;
  color: #6b7280; /* gray-500 */
}

.rating-stars {
  display: flex;
  color: #f59e0b; /* yellow-400 */
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 0.875rem;
  color: #4b5563; /* gray-600 */
}

/* ===== Service Area Section ===== */
.service-area-section {
  padding: 4rem 1rem;
  background-color: white;
}

.service-area-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.service-area-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-divider-small {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--primary);
  margin: 0 auto 1rem auto;
  border-radius: 9999px;
}

.service-area-description {
  color: #4b5563; /* gray-600 */
  max-width: 42rem;
  margin: 0 auto;
}

.service-area-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .service-area-content {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
  }
}

.service-area-card {
  width: 100%;
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6; /* gray-100 */
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .service-area-card {
    width: 50%;
  }
}

.service-area-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.service-area-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(42, 145, 52, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.service-area-icon i {
  color: var(--primary);
  font-size: 1.25rem;
}

.service-area-card-title {
  font-weight: 700;
  font-size: 1.25rem;
}

.service-area-locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .service-area-locations {
    grid-template-columns: repeat(3, 1fr);
  }
}

.location-item {
  background-color: rgba(42, 145, 52, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.location-item:hover {
  background-color: rgba(42, 145, 52, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.25rem);
}

.location-name {
  font-weight: 500;
  color: #1f2937; /* gray-800 */
  font-size: 0.875rem;
  word-break: break-word;
  hyphens: auto;
}

@media (min-width: 640px) {
  .location-name {
    font-size: 1rem;
  }
}

.service-area-note {
  margin-top: 1.5rem;
  color: #4b5563; /* gray-600 */
  font-size: 0.875rem;
  font-style: italic;
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6; /* gray-100 */
}

@media (min-width: 1024px) {
  .map-container {
    width: 50%;
  }
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Emergency Fence Repair Section ===== */
.emergency-section {
  padding: 4rem 1rem;
  background-color: white;
}

.emergency-container {
  max-width: 64rem;
  margin: 0 auto;
}

.emergency-mobile-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .emergency-mobile-header {
    display: none;
  }
}

.emergency-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.emergency-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: #fee2e2; /* red-100 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.emergency-icon i {
  color: #dc2626; /* red-600 */
  font-size: 1.5rem;
}

.emergency-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937; /* gray-800 */
}

@media (min-width: 768px) {
  .emergency-title {
    font-size: 1.875rem;
  }
}

.emergency-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: #ef4444; /* red-500 */
  margin: 0 auto;
  border-radius: 9999px;
}

@media (min-width: 768px) {
  .emergency-divider {
    margin: 0 0 1.5rem 0;
  }
}

.emergency-card {
  background-color: #fef2f2; /* red-50 */
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #fee2e2; /* red-100 */
}

.emergency-content {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .emergency-content {
    flex-direction: row;
  }
}

.emergency-text {
  width: 100%;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .emergency-text {
    width: 50%;
    padding: 2.5rem;
  }
}

.emergency-desktop-header {
  display: none;
}

@media (min-width: 768px) {
  .emergency-desktop-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
}

.emergency-description {
  color: #374151; /* gray-700 */
  margin-bottom: 1.5rem;
}

.emergency-list {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.emergency-list-item {
  display: flex;
  align-items: flex-start;
}

.emergency-check-icon {
  color: #dc2626; /* red-600 */
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.emergency-list-text {
  color: #374151; /* gray-700 */
}

.emergency-button {
  display: inline-block;
  background-color: #dc2626; /* red-600 */
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.emergency-button:hover {
  background-color: #b91c1c; /* red-700 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-0.25rem);
}

.emergency-button-content {
  display: flex;
  align-items: center;
}

.emergency-button i {
  margin-right: 0.5rem;
}

.emergency-right-content {
  width: 100%;
}

@media (min-width: 768px) {
  .emergency-right-content {
    width: 50%;
  }
}

.emergency-mobile-issues {
  padding: 1.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .emergency-mobile-issues {
    display: none;
  }
}

.emergency-issues-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #fee2e2; /* red-100 */
}

.emergency-issues-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #1f2937; /* gray-800 */
}

.emergency-issues-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #374151; /* gray-700 */
}

.emergency-issues-item {
  display: flex;
  align-items: flex-start;
}

.emergency-issues-icon {
  color: #dc2626; /* red-600 */
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.emergency-desktop-image {
  display: none;
  height: 100%;
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .emergency-desktop-image {
    display: block;
  }
}

.emergency-desktop-overlay {
  height: 100%;
  width: 100%;
  background-image: linear-gradient(to right, rgba(220, 38, 38, 0.2), rgba(220, 38, 38, 0.6));
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.emergency-desktop-card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #fee2e2; /* red-100 */
}

.emergency-desktop-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1f2937; /* gray-800 */
}

.emergency-desktop-text {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: #374151; /* gray-700 */
}

.emergency-desktop-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  font-size: 0.875rem;
}

.emergency-desktop-item {
  display: flex;
  align-items: flex-start;
  color: #374151; /* gray-700 */
}

/* ===== Footer ===== */
footer {
  margin-top: auto;
}

footer .cta-section {
  padding: 4rem 1rem;
  background-color: var(--primary-color);
}

footer .footer-section {
  background-color: var(--gray-800);
  color: var(--white);
  padding: 2rem 1rem;
  padding-bottom: 5rem; /* Add padding to the bottom to prevent mobile tab bar overlap */
}

@media (min-width: 1024px) {
  footer .footer-section {
    padding-bottom: 2rem; /* Reset padding on desktop */
  }
}

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

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--gray-300);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

/* ===== Tab Bar ===== */
.tab-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 50;
  display: none;
}

@media (max-width: 1024px) {
  .tab-bar {
    display: block;
  }
}

.tab-bar .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 60px;
}

.tab-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tab-bar a span {
  white-space: nowrap;
  font-size: 0.85rem;
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
  position: fixed;
  bottom: 70px;
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(45, 55, 72, 0.5);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 40;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--gray-900);
  color: var(--white);
  padding: 1rem;
  z-index: 50;
  display: none;
}

/* ===== Utilities ===== */
.hidden {
  display: none;
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }
  
  .lg\:hidden {
    display: none;
  }
  
  .lg\:flex {
    display: flex;
  }
  
  .hero {
    height: 700px;
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
  .sm\:flex-col {
    flex-direction: column;
  }
}

/* ===== Body Styles ===== */
.site-body {
  background-color: white;
  min-height: 100vh;
}

/* ===== Hero Section Styles ===== */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

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

.hero-text {
  color: white;
}

.hero-cta {
  font-size: 1.25rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  min-width: 220px;
  text-align: center;
}

/* ===== Base Styles ===== */
:where([class^="ri-"])::before { content: "\f3c2"; }
html, body {
  height: 100%;
  margin: 0;
}
body {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Cookie Consent Styles ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* ===== Testimonial Styles ===== */
.testimonial-container {
  scroll-snap-type: x mandatory;
}

.testimonial-card {
  scroll-snap-align: start;
}

/* ===== Content Section Styles ===== */
.content-section {
  padding: 4rem 1rem;
}

.content-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.content-body {
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .content-section {
    padding: 5rem 2rem;
  }
}

/* ===== Animation Styles ===== */
@keyframes pulsate {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(42, 145, 52, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(42, 145, 52, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(42, 145, 52, 0); }
}

.pulsate-button {
  animation: pulsate 2s ease-in-out infinite;
}

/* Service card hover grow effect */
.service-card-grow {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-grow:hover {
  transform: scale(1.03);
}

@keyframes subtle-ripple {
  0% { box-shadow: 0 0 0 0 rgba(42, 145, 52, 0.3); }
  70% { box-shadow: 0 0 0 10px rgba(42, 145, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 145, 52, 0); }
}

.ripple-button {
  animation: subtle-ripple 2s infinite;
}

/* ===== Mobile Dropdown Styles ===== */
.mobile-dropdown-header {
  padding: 8px 0;
}

.mobile-dropdown-icon {
  transition: transform 0.2s ease-in-out;
}

.mobile-dropdown-icon.rotate-180 {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  transition: all 0.3s ease-in-out;
}

.mobile-dropdown-content.hidden {
  display: none;
}

/* ===== Portfolio Styles ===== */
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ===== Scroll To Top Styles ===== */
.scroll-to-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

/* ===== Text Shadow Classes ===== */
.text-shadow-sm {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.text-shadow-md {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
}

/* ===== Logo Styles ===== */
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

@media (min-width: 1024px) {
  .logo-text {
    font-size: 1.25rem;
  }
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--gray-600);
}

@media (min-width: 1024px) {
  .logo-tagline {
    font-size: 0.8rem;
  }
}

.logo-image {
  max-height: 50px; /* Smaller size for mobile */
  width: auto;
}

@media (min-width: 768px) {
  .logo-image {
    max-height: 65px; /* Medium size for tablet */
  }
}

@media (min-width: 1024px) {
  .logo-image {
    max-height: 60px; /* Original desktop size */
  }
}

.footer-section .logo-image {
  max-height: 60px; /* Increased size for better visibility */
  background-color: white;
  padding: 10px;
  border-radius: 5px;
}

@media (min-width: 768px) {
  .footer-section .logo-image {
    max-height: 70px; /* Larger size for larger screens */
  }
}

/* ===== Lightbox Styles ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  margin: auto;
  display: block;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  padding: 10px 0;
  text-align: center;
  width: 100%;
  max-width: 700px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1200; /* Ensure it's above other elements */
  padding: 10px; /* Larger hit area */
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #2A9134; /* Change color on hover */
}

.lightbox-nav {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.lightbox-prev, .lightbox-next {
  color: white;
  font-size: 30px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background-color: rgba(42, 145, 52, 0.7);
}

/* ===== Post Hero Section ===== */
.post-hero {
  min-height: auto; /* Override default hero height */
  padding-top: 8rem; /* Space for nav */
  padding-bottom: 4rem;
}

.post-hero .hero-content {
  padding: 1rem 1.5rem;
}

/* ===== Single Post Page Styles ===== */
.post-content .prose h2 {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700;
  color: var(--gray-800);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.post-content .prose h3 {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content .prose p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  color: var(--text-light);
}

.post-content .prose a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.post-content .prose a:hover {
  color: var(--primary-hover);
}

.post-content .prose ul,
.post-content .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-content .prose ul {
    list-style-type: disc;
}

.post-content .prose ol {
    list-style-type: decimal;
}

.post-content .prose li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-light);
}

.post-content .prose li::marker {
    color: var(--primary-color);
}
