/* 
* Collective Vision Productions
* Main Stylesheet (Updated)
*/

/* ===============================
   CSS Variables
   =============================== */
:root {
  /* Colors */
  --color-off-white: #f2f2f1;
  --color-light-taupe: #c6c1bb;
  --color-medium-gray: #bdbeba;
  --color-slate-gray: #5d6169;
  --color-dark-brown-gray: #544f49;
  --color-charcoal: #313131;
  
  /* Typography */
  --font-heading: 'Quicksand', Arial, sans-serif;
  --font-body: 'DM Serif Text', Georgia, serif;
  
  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  
  /* Spacing */
  --spacing-tiny: 0.25rem;
  --spacing-xs: 0.5rem;
  --spacing-s: 1rem;
  --spacing-m: 1.5rem;
  --spacing-l: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  --spacing-xxxl: 8rem;
  
  /* Borders */
  --border-radius-small: 0.25rem;
  --border-radius-medium: 0.5rem;
  --border-radius-large: 1rem;
  
  /* Shadows */
  --shadow-small: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-medium: 0 4px 8px rgba(0,0,0,0.08);
  --shadow-large: 0 8px 16px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===============================
   Base Styles
   =============================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--color-dark-brown-gray);
  background-color: var(--color-off-white);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   Typography
   =============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-weight: var(--weight-regular);
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
}

h2, h3 {
  font-weight: var(--weight-light);
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.3px;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 2rem;
  letter-spacing: -0.25px;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  letter-spacing: -0.2px;
  margin-bottom: 0.75rem;
}

h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: var(--spacing-m);
}

a {
  color: var(--color-dark-brown-gray);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--color-slate-gray);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* ===============================
   Layout & Containers
   =============================== */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

section {
  padding: var(--spacing-xl) 0;
}

/* ===============================
   Accessibility
   =============================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -3.5rem;
  left: 0;
  padding: 0.5rem 1rem;
  background-color: var(--color-charcoal);
  color: var(--color-off-white);
  transition: top var(--transition-fast);
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ===============================
   Header & Navigation
   =============================== */
.site-header {
  background-color: var(--color-off-white);
  padding: var(--spacing-s) 0;
  box-shadow: var(--shadow-small);
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  text-decoration: none;
}

.logo img {
  max-height: 50px;
  width: auto;
  vertical-align: middle;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-navigation li {
  margin-left: var(--spacing-m);
}

.main-navigation a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  font-size: 1rem;
  color: var(--color-charcoal);
  padding: var(--spacing-xs) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-medium), border-color var(--transition-medium);
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--color-slate-gray);
}

.main-navigation .current-menu-item a {
  border-bottom: 2px solid var(--color-slate-gray);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 30px;
  height: 22px;
  position: relative;
}

.hamburger-line {
  display: block;
  position: absolute;
  height: 3px;
  background-color: var(--color-charcoal);
  border-radius: 3px;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease, width 0.3s ease, left 0.3s ease, opacity 0.3s ease;
}

.hamburger-line-1 {
  width: 100%;
  top: 0;
}

.hamburger-line-2 {
  width: 100%;
  top: 9px;
}

.hamburger-line-3 {
  width: 20px;
  top: 18px;
}

.main-navigation.active .hamburger-line-1 {
  transform: translateY(9px) rotate(45deg);
  width: 100%;
}

.main-navigation.active .hamburger-line-2 {
  opacity: 0;
}

.main-navigation.active .hamburger-line-3 {
  transform: translateY(-9px) rotate(-45deg);
  width: 100%;
  left: 0;
}

.menu-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-charcoal);
  font-size: 2.5rem;
}

/* Mobile Menu Slide-in Styles */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
    z-index: 1001; /* Ensure toggle is above menu */
  }

  /* Updated Menu Styles: Slide-from-Top & Frosted Glass */
  .main-navigation ul.menu {
    position: fixed;
    top: 0;
    left: 0;
    height: auto;
    min-height: 100vh;
    width: 100%;
    background-color: rgba(242, 242, 241, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 80px var(--spacing-l) var(--spacing-xl);
    flex-direction: column;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
  }

  .main-navigation.active ul.menu {
    transform: translateY(0);
  }

  .main-navigation li {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .main-navigation a {
    display: block;
    padding: var(--spacing-s) 0;
    font-size: 1.5rem;
    color: var(--color-charcoal);
    border-bottom: 1px solid rgba(93, 97, 105, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .main-navigation a:hover,
  .main-navigation a:focus {
    background-color: rgba(93, 97, 105, 0.05);
    color: var(--color-slate-gray);
  }

  .main-navigation .current-menu-item a {
    color: var(--color-slate-gray);
    font-weight: 600;
    border-bottom-color: transparent;
  }

  .hero {
    height: 70vh; /* Adjusted height */
    min-height: 450px; /* Adjusted min-height */
    display: flex; /* Keep flex for alignment */
    align-items: flex-end; /* Align content to the bottom */
    justify-content: center; /* Center content horizontally */
    padding: var(--spacing-l) var(--spacing-l) var(--spacing-xl); /* Add bottom padding */
    text-align: center; /* Ensure text is centered */
  }

  /* Enhance overlay for better contrast on mobile */
  .hero::before {
    background-color: rgba(0, 0, 0, 0.55); /* Slightly darker overlay */
  }

  /* Remove background styles from hero-content on mobile */
  .hero-content {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: none;
    padding: 0; /* Remove padding */
    max-width: 90%; /* Allow content to take more width */
    color: var(--color-off-white); /* Ensure text is white */
  }

  .hero h2 {
    font-size: 2.2rem; /* Slightly adjusted size */
    color: var(--color-off-white); /* Ensure headline is white */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Add text shadow for readability */
    margin-bottom: var(--spacing-s); /* Adjust margin */
  }

  .hero p {
    font-size: 1.1rem; /* Slightly adjusted size */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add text shadow */
    margin-bottom: var(--spacing-l); /* Ensure sufficient space before buttons */
  }

  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-m); /* Increase gap for better spacing */
    align-items: center; /* Center buttons horizontally */
  }

  /* Ensure buttons have good contrast and size */
  .cta-buttons .button {
      width: 80%; /* Make buttons wider */
      max-width: 280px; /* Set a max width */
      padding: 0.9rem 1.5rem; /* Increase padding */
  }

  .portfolio-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure service details are visible by default (reverting accordion) */
  .service-hover-details {
      display: block; /* Ensure it's visible */
      margin-top: auto; /* Keep this for layout */
       /* Reset styles from accordion if any persist */
      padding-top: 0;
      border-top: none;
  }

  /* Mobile Services Carousel Styles */
  .services-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    /* Remove padding - use scroll-padding instead */
    /* padding-left: 10%; */
    /* padding-right: 10%; */
    scroll-padding-inline: 20px; /* Define snap area inset */
    margin-bottom: var(--spacing-m);
     scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .services-horizontal-scroll::-webkit-scrollbar {
      display: none;
  }

  .service-card-horizontal {
    /* Width should fill the container minus the scroll padding */
    width: calc(100% - 40px); /* 100% - (2 * scroll-padding-inline) */
    min-width: calc(100% - 40px);
    scroll-snap-align: center; 
    /* Remove margins - spacing handled by container */
    /* margin-left: 2.5%; */
    /* margin-right: 2.5%; */
    margin: 0 10px; /* Add small margin for visual separation */
    flex-shrink: 0;
    height: auto;
    padding-bottom: var(--spacing-l);
  }

  /* Remove specific first/last child margin overrides */
  /* 
   .service-card-horizontal:first-child { ... }
   .service-card-horizontal:last-child { ... } 
  */

  /* Pagination Styles */
  .service-pagination {
      text-align: center;
      margin-top: var(--spacing-s);
  }

  .service-pagination-dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      background-color: var(--color-light-taupe);
      border-radius: 50%;
      margin: 0 5px;
      cursor: pointer; /* Indicate they might be clickable (though scroll drives it) */
      transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .service-pagination-dot.active {
      background-color: var(--color-slate-gray);
      transform: scale(1.2);
  }

  /* Testimonials Section Mobile Carousel */
  .testimonials-grid {
      /* Override desktop grid settings for mobile */
      display: block; /* Remove grid display */
  }

  .testimonials-carousel-container {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      gap: 0; /* Remove gap */
      padding-bottom: var(--spacing-s); /* Add padding below cards if needed */
      margin-bottom: var(--spacing-m); /* Space before pagination */
      /* Center snapping area */
      scroll-padding-inline: 25px; /* Adjust inset as needed */
      /* Hide scrollbar */
      scrollbar-width: none;
      -ms-overflow-style: none;
  }
  .testimonials-carousel-container::-webkit-scrollbar {
      display: none;
  }

  .testimonial-card {
      /* Reset any grid-specific items if needed */
      grid-column: auto;
      grid-row: auto;
      /* Carousel item styling */
      width: calc(100% - 50px); /* 100% - (2 * scroll-padding-inline) */
      min-width: calc(100% - 50px);
      scroll-snap-align: center;
      margin: 0 10px; /* Visual spacing between cards */
      flex-shrink: 0;
      height: auto; /* Allow height to adjust based on content */
      /* Ensure consistent height if desired, though auto is usually better */
       display: flex; /* Keep flex settings for internal layout */
      flex-direction: column;
  }

  /* Remove first/last child overrides if they exist */
  /* 
  .testimonial-card:first-child { ... }
  .testimonial-card:last-child { ... }
  */

  /* Testimonial Pagination */
  .testimonial-pagination {
      text-align: center;
      margin-top: var(--spacing-s);
  }

  .testimonial-pagination-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      background-color: var(--color-light-taupe);
      border-radius: 50%;
      margin: 0 4px;
      transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .testimonial-pagination-dot.active {
      background-color: var(--color-slate-gray);
      transform: scale(1.3);
  }

  /* Portfolio Page Mobile Optimizations */
  .portfolio-grid {
    grid-template-columns: 1fr; /* Ensure single column */
    gap: var(--spacing-l); /* Adjust vertical gap between items */
  }

  .portfolio-item {
    /* Remove any specific margins if gap is used */
    margin-bottom: 0; 
  }

  .portfolio-info {
    padding: var(--spacing-m); /* Adjust padding within the info box */
  }

  .portfolio-info h3 {
    font-size: 1.1rem; /* Slightly smaller heading for mobile */
    margin-bottom: var(--spacing-xs); /* Adjust space below heading */
  }

  .portfolio-info p {
    font-size: 0.95rem; /* Slightly smaller paragraph text */
    margin-bottom: 0; /* Remove default bottom margin if it's the last element */
  }

  /* Services Page Mobile Optimizations */
  .services-grid {
    grid-template-columns: 1fr; /* Ensure single column */
    gap: var(--spacing-l); /* Adjust vertical gap between service items */
    margin-bottom: 0; /* Remove bottom margin if section padding handles it */
  }

  .service-item {
    padding: var(--spacing-m); /* Adjust internal padding for mobile */
    /* Remove transform on hover/focus for mobile if it interferes */
    transition: box-shadow var(--transition-medium); /* Keep shadow transition */
    
    /* Add active state for touch feedback */
    &:active {
        transform: scale(0.98); /* Slight scale down on tap */
        box-shadow: var(--shadow-small); /* Reduce shadow slightly */
    }
  }

  .service-icon {
    /* Ensure icon size is appropriate, adjust if needed */
    margin-bottom: var(--spacing-s); /* Adjust space below icon */
  }

  .icon-placeholder {
    width: 50px; /* Slightly smaller icon placeholder */
    height: 50px;
  }

  .icon-placeholder svg {
    width: 25px; /* Adjust icon size within placeholder */
    height: 25px;
  }

  .service-item h3 {
    font-size: 1.2rem; /* Adjust title font size for mobile */
    margin-bottom: var(--spacing-xs); /* Adjust space below title */
    color: var(--color-charcoal); /* Ensure color consistency if needed */
  }

  .service-item p {
    font-size: 0.95rem; /* Adjust description font size */
    line-height: 1.6; /* Ensure good line height */
    margin-bottom: 0; /* Remove bottom margin if padding handles spacing */
    color: var(--color-dark-brown-gray); /* Ensure color consistency */
  }

  /* Services Page: Convert Grid to Horizontal Carousel on Mobile */
  .services-page .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    grid-template-columns: unset; /* Remove grid columns */
    gap: 0;
    padding-bottom: var(--spacing-s);
    margin-bottom: var(--spacing-m);
    scroll-padding-inline: 20px; /* Define snap area inset */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  .services-page .services-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .services-page .service-item {
    flex: 0 0 auto;
    width: calc(90% - 40px);
    min-width: calc(90% - 40px);
    scroll-snap-align: center;
    margin: 0 10px;
    height: auto;
  }
  
  /* Add pagination dots container for services carousel */
  .services-page .service-carousel-pagination {
    text-align: center;
    margin-top: var(--spacing-s);
    margin-bottom: var(--spacing-l);
  }
  
  .services-page .service-pagination-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--color-light-taupe);
    border-radius: 50%;
    margin: 0 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .services-page .service-pagination-dot.active {
    background-color: var(--color-slate-gray);
    transform: scale(1.2);
  }
}

/* Further adjustments for very small screens if needed */
@media (max-width: 479px) {
  .portfolio-grid {
    gap: var(--spacing-m); /* Reduce gap further */
  }

  .portfolio-info {
    padding: var(--spacing-s); /* Reduce padding further */
  }

  .portfolio-info h3 {
    font-size: 1rem;
  }

  .portfolio-info p {
    font-size: 0.9rem;
  }

  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
      height: 75vh; /* Slightly taller on very small screens */
      min-height: 400px;
  }

  .hero h2 {
    font-size: 1.9rem; /* Adjust for smaller screens */
  }

  .hero p {
      font-size: 1rem; /* Adjust for smaller screens */
  }

  /* Adjust button width for very small screens */
   .cta-buttons .button {
      width: 90%;
   }

  .section-title {
    margin-bottom: var(--spacing-l);
  }

  .services-grid {
      gap: var(--spacing-m);
  }
  .service-item {
      padding: var(--spacing-s);
  }
  .service-item h3 {
      font-size: 1.1rem;
  }
  .service-item p {
      font-size: 0.9rem;
  }
}

/* ===============================
   Hero Section
   =============================== */
.hero {
  background-color: var(--color-light-taupe);
  background-image: url('../images/hero.gif');
  background-size: cover;
  background-position: top;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;
  color: var(--color-off-white);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero h2 {
  font-size: 3.5rem;
  color: var(--color-light-taupe);
  margin-bottom: var(--spacing-m);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-l);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-m);
  flex-wrap: wrap;
}

/* ===============================
   Buttons
   =============================== */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-small);
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.button-primary {
  background-color: var(--color-slate-gray);
  color: var(--color-off-white);
}

.button-primary:hover,
.button-primary:focus {
  background-color: #4d515a; /* Darker version of slate gray */
  color: var(--color-off-white);
}

.button-secondary {
  background-color: transparent;
  color: var(--color-slate-gray);
  border: 1px solid var(--color-slate-gray);
}

.button-secondary:hover,
.button-secondary:focus {
  background-color: var(--color-slate-gray);
  color: var(--color-off-white);
}

.button-tertiary {
  background-color: transparent;
  color: var(--color-dark-brown-gray);
  text-decoration: underline;
  padding: var(--spacing-xs) 0;
  border: none;
}

.button-tertiary:hover,
.button-tertiary:focus {
  color: var(--color-slate-gray);
}

/* ===============================
   Featured Work Section
   =============================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-l);
}

.portfolio-item {
  border-radius: var(--border-radius-small);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-large);
}

.portfolio-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-image {
  margin: 0;
  overflow: hidden;
}

.portfolio-image img {
  transition: transform var(--transition-medium);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: var(--spacing-m);
  background-color: var(--color-off-white);
}

.portfolio-info h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.25rem;
}

.portfolio-info p {
  margin-bottom: 0;
  font-size: 1rem;
}

.view-all-link {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* ===============================
   Services Section
   =============================== */
.services {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.service-item {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  margin-bottom: var(--spacing-md);
}

.icon-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.icon-placeholder svg {
  width: 30px;
  height: 30px;
}

.service-item h3 {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-md);
  color: var(--color-primary);
}

.service-item p {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* Carousel Services Section */
.services-carousel-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-light);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  margin: 0 auto;
  margin-bottom: var(--spacing-lg);
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  width: 100%;
}

.carousel-slide {
  flex: 0 0 auto;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.carousel-slide:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-slide:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: var(--spacing-md);
}

.service-content h3 {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-md);
  color: var(--color-primary);
}

.service-content p {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Services button styling */
.view-all-link {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.services-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background-color: var(--color-slate-gray);
  color: var(--color-off-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--weight-regular);
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(93, 97, 105, 0.25);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

.services-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-charcoal);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.services-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(93, 97, 105, 0.35);
  color: var(--color-off-white);
}

.services-button:hover::before {
  width: 100%;
}

.services-button:hover .button-text {
  transform: translateX(-4px);
}

.services-button:hover .button-icon {
  transform: translateX(4px);
}

.services-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(93, 97, 105, 0.25);
}

/* Responsive adjustments for the services grid */
@media screen and (max-width: 992px) {
  .carousel-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .carousel-track {
    grid-template-columns: 1fr;
  }
  
  .view-all-link {
    text-align: center;
  }
  
  .services-button {
    padding: 10px 24px;
    font-size: 1rem;
  }
}

/* ===============================
   About Preview Section
   =============================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius-small);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

/* ===============================
   About Section (Modern Redesign)
   =============================== */
.about-section {
  position: relative;
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-off-white);
  overflow: hidden;
}

/* Horizontal scrolling marquee */
.about-marquee {
  position: relative;
  overflow: hidden;
  background-color: var(--color-charcoal);
  color: var(--color-off-white);
  padding: 1.25rem 0;
  margin-bottom: var(--spacing-xxl);
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-content span {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: var(--weight-light);
  font-size: 4rem;
  letter-spacing: 1px;
  padding: 0 2rem;
  text-transform: uppercase;
}

.marquee-content .dot {
  width: 12px;
  height: 12px;
  background-color: var(--color-off-white);
  border-radius: 50%;
  padding: 0;
}

/* About header */
.about-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.about-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-s);
  position: relative;
  display: inline-block;
}

.title-line {
  width: 120px;
  height: 3px;
  background-color: var(--color-slate-gray);
  margin: 0 auto;
}

/* About main content */
.about-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.about-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.about-text-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-text {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: var(--spacing-l);
  position: relative;
  padding-left: var(--spacing-m);
  border-left: 3px solid var(--color-slate-gray);
}

/* Stats section */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-m);
  margin-top: var(--spacing-l);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-slate-gray);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Image grid */
.about-image-column {
  position: relative;
}

.image-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--spacing-s);
}

.grid-image {
  position: relative;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium);
}

.grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.main-image {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 4/3;
}

.secondary-image {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 3/4;
}

.grid-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.grid-image:hover img {
  transform: scale(1.05);
}

/* Values section */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-l);
  margin: var(--spacing-xxl) 0;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-medium-gray);
}

.value-item {
  position: relative;
  padding: var(--spacing-m);
  border-radius: var(--border-radius-small);
  background-color: var(--color-light-taupe);
  transition: transform var(--transition-medium), background-color var(--transition-medium);
}

.value-item:hover {
  transform: translateY(-5px);
  background-color: var(--color-off-white);
  box-shadow: var(--shadow-medium);
}

.value-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(93, 97, 105, 0.2);
  position: absolute;
  top: var(--spacing-xs);
  right: var(--spacing-s);
  line-height: 1;
}

.value-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-s);
  position: relative;
  z-index: 1;
}

.value-item p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

/* CTA section */
.about-cta {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* Responsive styles */
@media (max-width: 1200px) {
  .marquee-content span {
    font-size: 3rem;
  }
}

@media (max-width: 1023px) {
  .about-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-l);
  }
  
  .about-text-column {
    order: 1;
  }
  
  .about-image-column {
    order: 0;
    margin-bottom: var(--spacing-l);
  }
  
  .marquee-content span {
    font-size: 2.5rem;
  }
  
  .about-values {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .about-title {
    font-size: 2.5rem;
  }
  
  .lead-text {
    font-size: 1.25rem;
  }
  
  .marquee-content span {
    font-size: 1.75rem;
    padding: 0 1.5rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-s);
  }
  
  .about-values {
    grid-template-columns: 1fr;
    gap: var(--spacing-m);
  }
  
  .value-number {
    font-size: 2rem;
  }
}

/* ===============================
   Testimonials Section
   =============================== */
.testimonials {
  background-color: var(--color-light-taupe);
  padding: var(--spacing-xxl) 0;
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  margin: 0 0 var(--spacing-m);
  font-size: 1.25rem;
}

.testimonial p {
  position: relative;
  padding: 0 var(--spacing-m);
}

.testimonial p::before,
.testimonial p::after {
  content: '"';
  font-size: 3rem;
  line-height: 0;
  position: relative;
}

.testimonial cite {
  font-style: normal;
  display: block;
}

.client-name {
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  color: var(--color-charcoal);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.client-title {
  font-size: 0.875rem;
  display: block;
}

/* ===============================
   Modern Testimonials Section (New Design)
   =============================== */
.testimonials-section {
  background-color: var(--color-off-white);
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

.testimonials-header .section-title {
  margin-bottom: var(--spacing-m);
  font-size: 2.75rem;
  color: var(--color-charcoal);
}

.section-description {
  font-size: 1.2rem;
  color: var(--color-slate-gray);
  line-height: 1.6;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: var(--spacing-l);
  margin-bottom: var(--spacing-xl);
}

.testimonial-card {
  background-color: #fff;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.testimonial-card.featured {
  grid-column: 1;
  grid-row: span 2;
  background-color: var(--color-slate-gray);
  color: var(--color-off-white);
}

.card-header {
  padding: var(--spacing-m);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.company-logo {
  height: 40px;
  width: auto;
}

.card-content {
  padding: var(--spacing-l);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card blockquote {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-l);
  position: relative;
}

.testimonial-card.featured p {
  font-size: 1.25rem;
  color: var(--color-off-white);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.author-image {
  margin-right: var(--spacing-s);
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-off-white);
}

.testimonial-card.featured .avatar {
  border-color: var(--color-light-taupe);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  font-size: 1.1rem;
  color: var(--color-charcoal);
  font-style: normal;
}

.testimonial-card.featured .author-name {
  color: var(--color-off-white);
}

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

.testimonial-card.featured .author-title {
  color: var(--color-light-taupe);
}

.testimonials-footer {
  text-align: center;
  margin-top: var(--spacing-l);
}

@media (max-width: 1023px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card.featured {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .testimonials-header .section-title {
    font-size: 2.25rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .testimonial-card p {
    font-size: 1rem;
  }
  
  .testimonial-card.featured p {
    font-size: 1.1rem;
  }
  
  .avatar {
    width: 50px;
    height: 50px;
  }
}

/* Updated testimonials section styling */
.testimonial-card.featured {
  background-color: var(--color-light-taupe);
  color: var(--color-dark-brown-gray);
}

.testimonial-card.featured p {
  color: var(--color-dark-brown-gray);
}

.testimonial-card.featured .author-name {
  color: var(--color-charcoal);
}

.testimonial-card.featured .author-title {
  color: var(--color-slate-gray);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.author-info {
  display: flex;
  flex-direction: column;
}

/* ===============================
   Contact CTA Section
   =============================== */
.contact-cta, .cta-section {
  text-align: center;
  padding: var(--spacing-xxl) 0;
  background: var(--color-light-taupe);
  color: var(--color-slate-gray);
  position: relative;
  overflow: hidden;
}

.contact-cta .container, .cta-section .container, .cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.contact-cta h2, .cta-section h2, .cta-content h2 {
  font-size: 3rem;
  margin-bottom: var(--spacing-m);
  color: var(--color-charcoal);
  position: relative;
  display: inline-block;
}

.contact-cta h2::after, .cta-section h2::after, .cta-content h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--color-slate-gray);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.contact-cta p, .cta-section p, .cta-content p {
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-charcoal);
}

.contact-cta .button, .cta-section .button, .cta-content .button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--color-slate-gray);
  color: var(--color-off-white);
  font-weight: var(--weight-regular);
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  transform: translateY(0);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-cta .button::before, .cta-section .button::before, .cta-content .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-charcoal);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.contact-cta .button:hover, .cta-section .button:hover, .cta-content .button:hover {
  color: var(--color-off-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--color-slate-gray);
}

.contact-cta .button:hover::before, .cta-section .button:hover::before, .cta-content .button:hover::before {
  width: 100%;
}

.cta-background-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  z-index: 1;
}

.shape-1 {
  top: -150px;
  right: 10%;
  width: 400px;
  height: 400px;
}

.shape-2 {
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
}

@media (max-width: 767px) {
  .contact-cta h2, .cta-section h2, .cta-content h2 {
    font-size: 2.5rem;
  }
  
  .contact-cta p, .cta-section p, .cta-content p {
    font-size: 1.1rem;
  }
  
  .contact-cta .button, .cta-section .button, .cta-content .button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-cta h2, .cta-section h2, .cta-content h2 {
    font-size: 2rem;
  }
  
  .contact-cta p, .cta-section p, .cta-content p {
    font-size: 1rem;
  }
}

/* ===============================
   Footer
   =============================== */
.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-off-white);
  padding: var(--spacing-xl) 0 var(--spacing-m);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-l);
  margin-bottom: var(--spacing-xl);
}

.footer-info h3 {
  color: var(--color-off-white);
  margin-bottom: var(--spacing-m);
  font-size: 1.25rem;
}

.footer-info address {
  font-style: normal;
  margin-bottom: var(--spacing-m);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-info a {
  color: var(--color-off-white);
  text-decoration: none;
}

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

.footer-nav h4,
.footer-social h4 {
  color: var(--color-off-white);
  font-size: 1rem;
  margin-bottom: var(--spacing-m);
}

.footer-nav ul,
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: var(--spacing-xs);
}

.footer-nav a {
  color: var(--color-off-white);
  text-decoration: none;
  font-size: 0.875rem;
}

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

.social-links {
  display: flex;
  gap: var(--spacing-s);
}

.social-icon {
  display: block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-m);
  font-size: 0.75rem;
}

.footer-legal {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--spacing-m);
}

.footer-legal a {
  color: var(--color-off-white);
  text-decoration: none;
}

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

/* ===============================
   Responsive Styles
   =============================== */
@media (max-width: 1023px) {
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .hero h2 {
    font-size: 3rem;
  }
  
  .portfolio-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    gap: var(--spacing-l);
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--spacing-xl);
  }
  
  .footer-info {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: var(--spacing-l) 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-navigation ul {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background-color: var(--color-off-white);
    flex-direction: column;
    padding: var(--spacing-xl) var(--spacing-l);
    box-shadow: var(--shadow-large);
    z-index: 100;
  }
  
  .main-navigation.active ul {
    display: flex;
  }
  
  .main-navigation li {
    margin: 0 0 var(--spacing-m);
  }
  
  .main-navigation a {
    display: block;
    padding: var(--spacing-s) 0;
  }
  
  .hero {
    height: 70vh; /* Adjusted height */
    min-height: 450px; /* Adjusted min-height */
    display: flex; /* Keep flex for alignment */
    align-items: flex-end; /* Align content to the bottom */
    justify-content: center; /* Center content horizontally */
    padding: var(--spacing-l) var(--spacing-l) var(--spacing-xl); /* Add bottom padding */
    text-align: center; /* Ensure text is centered */
  }
  
  /* Enhance overlay for better contrast on mobile */
  .hero::before {
    background-color: rgba(0, 0, 0, 0.55); /* Slightly darker overlay */
  }
  
  /* Remove background styles from hero-content on mobile */
  .hero-content {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: none;
    padding: 0; /* Remove padding */
    max-width: 90%; /* Allow content to take more width */
    color: var(--color-off-white); /* Ensure text is white */
  }
  
  .hero h2 {
    font-size: 2.2rem; /* Slightly adjusted size */
    color: var(--color-off-white); /* Ensure headline is white */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Add text shadow for readability */
    margin-bottom: var(--spacing-s); /* Adjust margin */
  }
  
  .hero p {
    font-size: 1.1rem; /* Slightly adjusted size */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add text shadow */
    margin-bottom: var(--spacing-l); /* Ensure sufficient space before buttons */
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-m); /* Increase gap for better spacing */
    align-items: center; /* Center buttons horizontally */
  }
  
  /* Ensure buttons have good contrast and size */
  .cta-buttons .button {
      width: 80%; /* Make buttons wider */
      max-width: 280px; /* Set a max width */
      padding: 0.9rem 1.5rem; /* Increase padding */
  }
  
  .portfolio-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-text {
    order: 2;
  }
  
  .about-image {
    order: 1;
    margin-bottom: var(--spacing-l);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-m);
  }
}

@media (max-width: 479px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
      height: 75vh; /* Slightly taller on very small screens */
      min-height: 400px;
  }
  
  .hero h2 {
    font-size: 1.9rem; /* Adjust for smaller screens */
  }

  .hero p {
      font-size: 1rem; /* Adjust for smaller screens */
  }

  /* Adjust button width for very small screens */
   .cta-buttons .button {
      width: 90%;
  }
  
  .section-title {
    margin-bottom: var(--spacing-l);
  }
}

/* ===============================
   New Photocentric About Section
   =============================== */
.about-section-new {
  position: relative;
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-off-white);
  overflow: hidden;
}

.about-header-new {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title-new {
  font-size: 3.75rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-charcoal);
  font-weight: var(--weight-light);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.5rem;
  color: var(--color-slate-gray);
  font-family: var(--font-body);
  position: relative;
  display: inline-block;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 2px;
  background-color: var(--color-slate-gray);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Main grid layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xxl);
}

/* Left column with feature image */
.about-image-feature {
  position: relative;
}

.feature-image-wrapper {
  position: relative;
  overflow: visible;
  height: 100%;
}

.feature-image {
  width: 100%;
  height: 90%;
  object-fit: cover;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-large);
  transition: transform var(--transition-medium);
}

.feature-image:hover {
  transform: scale(1.02);
}

.image-overlay-box {
  position: absolute;
  bottom: 0;
  right: -40px;
  width: 80%;
  z-index: 2;
}

.stats-card {
  background-color: var(--color-charcoal);
  padding: var(--spacing-m);
  border-radius: var(--border-radius-small);
  box-shadow: var(--shadow-large);
}

.stat-row {
  display: flex;
  justify-content: space-around;
  gap: var(--spacing-s);
  text-align: center;
}

.stat-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number-new {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: var(--weight-light);
  line-height: 1;
  color: var(--color-off-white);
  margin-bottom: var(--spacing-xs);
}

.stat-label-new {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--color-light-taupe);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Right column with content */
.about-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--spacing-xl);
}

.about-text {
  flex: 1;
}

.lead-text-new {
  font-size: 1.75rem;
  line-height: 1.4;
  margin-bottom: var(--spacing-l);
  position: relative;
  color: var(--color-charcoal);
}

.body-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-dark-brown-gray);
  margin-bottom: var(--spacing-l);
}

/* Value pills */
.value-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-s);
  margin-bottom: var(--spacing-l);
}

.value-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-m);
  background-color: var(--color-light-taupe);
  border-radius: 50px;
  margin-bottom: var(--spacing-xs);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.value-pill:hover {
  transform: translateY(-2px);
  background-color: var(--color-medium-gray);
}

.value-icon {
  margin-right: var(--spacing-xs);
  font-size: 1.2rem;
  color: var(--color-slate-gray);
}

.value-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: var(--weight-regular);
  color: var(--color-charcoal);
}

/* Secondary images */
.secondary-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-m);
}

.image-small {
  position: relative;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium);
  aspect-ratio: 16/9;
}

.image-small:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.secondary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.image-small:hover .secondary-img {
  transform: scale(1.05);
}

.about-cta-new {
  margin-top: var(--spacing-l);
  text-align: left;
}

.about-us-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background-color: var(--color-slate-gray);
  color: var(--color-off-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--weight-regular);
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(93, 97, 105, 0.25);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

.about-us-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-charcoal);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.about-us-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(93, 97, 105, 0.35);
  color: var(--color-off-white);
}

.about-us-button:hover::before {
  width: 100%;
}

.button-text {
  display: inline-block;
  transition: transform 0.3s ease;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease;
}

.about-us-button:hover .button-text {
  transform: translateX(-4px);
}

.about-us-button:hover .button-icon {
  transform: translateX(4px);
}

.button-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-off-white);
}

/* Active state for button */
.about-us-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(93, 97, 105, 0.25);
}

/* Responsive styles */
@media (max-width: 767px) {
  .about-cta-new {
    text-align: center;
  }
  
  .about-us-button {
    padding: 10px 24px;
    font-size: 1rem;
  }

  /* Redesign for "Who We Are" Section (.about-section-new) on Mobile */

  .about-grid {
    /* Ensure it remains single column if it wasn't already */
    grid-template-columns: 1fr;
    gap: var(--spacing-l); /* Adjust gap for vertical stacking */
    margin-top: var(--spacing-xl); /* Adjust top margin */
  }

  .about-image-feature {
    order: 1; /* Ensure image comes first */
    margin-bottom: var(--spacing-l); /* Add space below image feature area */
  }
  
  .feature-image-wrapper {
      height: auto; /* Allow height to adjust */
      overflow: hidden; /* Keep overflow hidden for border-radius */
      margin-bottom: 0; /* Remove bottom margin if stats follow directly */
  }

  .feature-image {
    height: auto; /* Adjust height if needed, or keep object-fit */
    max-height: 400px; /* Example max height */
    width: 100%;
    object-fit: cover;
    display: block; /* Ensure it behaves as block */
  }

  .image-overlay-box {
    position: relative; /* Change from absolute */
    bottom: auto;
    right: auto;
    width: 100%; /* Take full width */
    z-index: auto;
    margin-top: calc(-1 * var(--spacing-l)); /* Pull stats up slightly over image bottom - OPTIONAL, adjust/remove if needed */
    padding: 0 var(--spacing-s); /* Add horizontal padding to constrain card */
  }

  .stats-card {
    /* background-color: var(--color-charcoal); /* Keep or change background */
    border-radius: var(--border-radius-small);
    padding: var(--spacing-m);
    box-shadow: var(--shadow-medium); /* Adjust shadow if needed */
    margin: 0 auto; /* Center card if width is less than 100% */
    max-width: 400px; /* Example max width for stats card */
  }

  .stat-row {
    gap: var(--spacing-m); /* Adjust gap between stats */
  }

  .stat-number-new {
    font-size: 2rem; /* Adjust font size for mobile */
  }

  .about-content {
     order: 2; /* Ensure content comes after image/stats */
     /* Remove grid styles if applied directly here in mobile */
     display: block; /* Ensure it's block flow */
  }

  .about-text {
    margin-bottom: var(--spacing-l);
  }

  .lead-text-new {
      font-size: 1.4rem; /* Adjust size */
      margin-bottom: var(--spacing-s);
  }

  .body-text {
      font-size: 1rem; /* Ensure readable size */
      margin-bottom: var(--spacing-m);
  }

  .value-pillars {
    flex-direction: column; /* Stack pills vertically */
    align-items: flex-start; /* Align to the left */
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-l);
  }

  .value-pill {
      width: 100%; /* Make pills take full width */
      justify-content: flex-start;
      padding: var(--spacing-s) var(--spacing-m);
  }

  .secondary-images {
    display: grid; /* Use grid for side-by-side */
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-m);
    margin-bottom: var(--spacing-l);
  }

  .image-small {
     width: 100%; /* Ensure images fill grid cells */
  }

  .secondary-img {
      aspect-ratio: 1 / 1; /* Make them square */
      object-fit: cover;
  }

  .about-cta-new {
      text-align: center; /* Center button */
      margin-top: 0; /* Adjust spacing if needed */
  }

  .about-us-button {
      width: 80%; /* Make button wider */
      max-width: 300px;
  }

  /* Remove styles specific to desktop grid */
  .about-text-column,
  .about-image-column {
     /* Reset any desktop-specific grid/flex properties if needed */
  }

  /* Adjustments for very small screens */
  @media (max-width: 479px) {
      .section-title-new {
        font-size: 2.5rem; /* Further reduce title size */
      }
      .section-subtitle {
          font-size: 1.1rem;
      }
      .stats-card {
          padding: var(--spacing-s);
      }
      .stat-row {
          gap: var(--spacing-xs);
      }
      .stat-number-new {
          font-size: 1.8rem;
      }
      .stat-label-new {
          font-size: 0.75rem;
      }
      .lead-text-new {
          font-size: 1.3rem;
      }
      .value-pill {
          padding: var(--spacing-xs) var(--spacing-s);
      }
      .secondary-images {
          gap: var(--spacing-s);
      }
      .about-us-button {
          width: 90%;
      }
  }
}

@media (max-width: 1200px) {
  .about-grid {
    gap: var(--spacing-l);
  }
  
  .section-title-new {
    font-size: 3.25rem;
  }
  
  .stat-number-new {
    font-size: 2.25rem;
  }
  
  .lead-text-new {
    font-size: 1.5rem;
  }
}

@media (max-width: 1023px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .image-overlay-box {
    right: 0;
    width: 70%;
  }
  
  .feature-image {
    height: auto;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 767px) {
  .section-title-new {
    font-size: 2.75rem;
  }
  
  .section-subtitle {
    font-size: 1.25rem;
  }
  
  .value-pillars {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .value-pill {
    width: 100%;
  }
  
  .stat-row {
    flex-wrap: wrap;
  }
  
  .stat-highlight {
    flex: 0 0 30%;
    margin-bottom: var(--spacing-s);
  }
  
  .stat-number-new {
    font-size: 2rem;
  }
  
  .secondary-images {
    grid-template-columns: 1fr;
  }
}

/* Testimonials button styling */
.testimonials-footer {
  text-align: center;
  margin-top: var(--spacing-l);
}

.testimonials-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background-color: var(--color-slate-gray);
  color: var(--color-off-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--weight-regular);
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(93, 97, 105, 0.25);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

.testimonials-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-charcoal);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.testimonials-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(93, 97, 105, 0.35);
  color: var(--color-off-white);
}

.testimonials-button:hover::before {
  width: 100%;
}

.testimonials-button:hover .button-text {
  transform: translateX(-4px);
}

.testimonials-button:hover .button-icon {
  transform: translateX(4px);
}

.testimonials-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(93, 97, 105, 0.25);
}

@media (max-width: 767px) {
  .testimonials-button {
    padding: 10px 24px;
    font-size: 1rem;
  }
}

.testimonials-section {
  background-color: var(--color-off-white);
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
} 

/* Menu Close Button */
.menu-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: #000000;
  font-size: 2.5rem;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  display: none; /* Hidden by default */
  transition: color 0.3s, transform 0.3s;
}

.menu-close-btn:hover,
.menu-close-btn:focus {
  color: #FF6B6B;
  transform: scale(1.1);
}

/* Only display close button when menu is active */
.main-navigation.active .menu-close-btn {
  display: block;
}

/* Adjust menu padding when active to account for close button */
@media (max-width: 991px) {
  .main-navigation.active #primary-menu {
    padding-top: 60px;
  }
} 

@media (max-width: 767px) {
  /* Existing mobile styles */

  /* About Page Mobile Optimizations */
  
  /* 1. Content Hierarchy */
  .about-page .page-header {
    margin-bottom: var(--spacing-m); /* Reduce space after header */
    text-align: center; /* Center header on mobile */
  }
  
  .about-page .section-title {
    font-size: 2.2rem; /* Reduce title size */
    margin-bottom: var(--spacing-s); /* Tighten spacing */
  }
  
  .about-page section {
    margin-bottom: var(--spacing-xl); /* Add clear spacing between sections */
    padding-top: var(--spacing-l);
    padding-bottom: var(--spacing-l);
  }
  
  /* Add visual section separators */
  .about-page section:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  
  /* 2. Image Optimization */
  .about-page .feature-image {
    max-height: 300px; /* Reduce max height for faster loading */
    object-fit: cover;
    border-radius: var(--border-radius-small);
  }
  
  /* Horizontal scrollable team gallery */
  .about-page .team-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--spacing-s);
    padding-bottom: var(--spacing-s);
    margin-bottom: var(--spacing-m);
    scroll-padding-inline: 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  .about-page .team-gallery::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .about-page .team-member {
    flex: 0 0 80%;
    min-width: 250px;
    scroll-snap-align: start;
    background-color: var(--color-off-white);
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-small);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0; /* Reset default margin */
  }
  
  /* 3. Typography Refinements */
  .about-page p {
    font-size: 1rem;
    line-height: 1.7; /* Increased for better readability */
    margin-bottom: var(--spacing-m);
  }
  
  .about-page .lead-text {
    font-size: 1.2rem; /* Slightly larger for emphasis */
    line-height: 1.5;
    color: var(--color-charcoal);
    font-weight: var(--weight-regular);
    margin-bottom: var(--spacing-m);
  }
  
  .about-page .section-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-s);
  }
  
  /* 5. Visual Elements */
  .about-page .value-pill {
    transition: transform 0.3s ease, background-color 0.3s ease;
    background-color: rgba(198, 193, 187, 0.2); /* Lighter background */
    border-left: 3px solid var(--color-slate-gray); /* Add visual anchor */
    padding: var(--spacing-s) var(--spacing-m);
    margin-bottom: var(--spacing-xs);
  }
  
  .about-page .value-pill.in-view {
    transform: translateX(0);
    opacity: 1;
  }
  
  .about-page .value-pill:not(.in-view) {
    transform: translateX(-10px);
    opacity: 0.8;
  }
  
  /* Team member cards fade-in */
  .about-page .team-member {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .about-page .team-member.in-view {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* 6. Layout Enhancement */
  .about-page .container {
    padding-left: var(--spacing-s);
    padding-right: var(--spacing-s);
  }
  
  /* Increased tap targets */
  .about-page .read-more-btn {
    padding: var(--spacing-xs) var(--spacing-s);
    margin-top: var(--spacing-xs);
    display: inline-block;
  }
  
  /* Sticky mini-nav for quick jumping */
  .about-page .page-nav {
    position: sticky;
    top: 60px; /* Below header */
    background-color: rgba(242, 242, 241, 0.95);
    padding: var(--spacing-xs) 0;
    z-index: 5;
    margin-bottom: var(--spacing-m);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    white-space: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .about-page .page-nav::-webkit-scrollbar {
    display: none;
  }
  
  .about-page .page-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .about-page .page-nav li {
    margin-right: var(--spacing-s);
  }
  
  .about-page .page-nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-dark-brown-gray);
    padding: var(--spacing-xs) 0;
    position: relative;
  }
  
  .about-page .page-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-slate-gray);
    transition: width 0.3s ease;
  }
  
  .about-page .page-nav a.active::after,
  .about-page .page-nav a:hover::after {
    width: 100%;
  }
  
  /* Team member expandable info */
  .about-page .team-member-bio {
    height: 80px;
    overflow: hidden;
    position: relative;
    transition: height 0.3s ease;
  }
  
  .about-page .team-member-bio.expanded {
    height: auto;
    max-height: 500px;
  }
  
  .about-page .bio-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(242, 242, 241, 0), rgba(242, 242, 241, 1));
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .about-page .team-member-bio.expanded .bio-gradient {
    opacity: 0;
  }

  /* Other mobile styles */

  /* About Page - Values Carousels */
  .about-page .values-grid {
    display: block; /* Override desktop grid */
  }
  
  .about-page .values-carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding-bottom: var(--spacing-s);
    margin-bottom: var(--spacing-s); /* Space before pagination */
    scroll-padding-inline: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .about-page .values-carousel-container::-webkit-scrollbar {
    display: none;
  }
  
  .about-page .values-carousel-container .value-card-new {
    flex: 0 0 85%; /* Show slightly more than one */
    min-width: 280px; /* Ensure minimum width */
    scroll-snap-align: center;
    margin: 0 10px;
    height: auto; /* Let height adjust */
    /* Reset any grid-specific styles if needed */
    transform: none; /* Reset hover transform */
    box-shadow: var(--shadow-medium); /* Use consistent shadow */
    margin-bottom: 0;
    opacity: 1; /* Ensure visible if animations were applied */
  }
  
  .about-page .values-pagination {
    text-align: center;
    margin-bottom: var(--spacing-m);
  }
  
  .about-page .value-pagination-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-light-taupe);
    border-radius: 50%;
    margin: 0 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .about-page .value-pagination-dot.active {
    background-color: var(--color-slate-gray);
    transform: scale(1.3);
  }
  
  /* Other mobile styles */
} 

@media (max-width: 767px) {
  /* Existing mobile styles */

  /* Contact Page Mobile Optimizations */
  .contact-page .page-header {
    padding-bottom: 0; /* Reduce extra padding */
    text-align: center;
  }
  
  .contact-page .section-title {
      font-size: 2rem; /* Adjust title size */
  }
  
  /* Layout & Spacing */
  .contact-page .contact-grid {
    grid-template-columns: 1fr; /* Stack columns */
    gap: var(--spacing-l);
  }
  
  .contact-page .contact-info {
    order: 1; /* Show info before map on mobile */
    text-align: center; /* Center align info */
  }
  
  .contact-page .contact-map {
    order: 2;
    margin-bottom: var(--spacing-l); /* Add space below map */
  }
  
  .contact-page section {
    padding-top: var(--spacing-l);
    padding-bottom: var(--spacing-l);
  }
  
  .contact-page .container {
      padding-left: var(--spacing-s);
      padding-right: var(--spacing-s);
  }
  
  /* Contact Info Display */
  .contact-page .contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0 auto; /* Center list block */
    max-width: 350px; /* Constrain width */
    text-align: left; /* Align text within list */
  }
  
  .contact-page .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-s);
    font-size: 1rem; /* Adjust text size */
    line-height: 1.6;
  }
  
  .contact-page .contact-info i {
    margin-right: var(--spacing-s);
    margin-top: 0.25em; /* Align icon slightly better */
    color: var(--color-slate-gray); /* Icon color */
    width: 1.2em; /* Ensure consistent icon spacing */
    text-align: center;
  }
  
  .contact-page .contact-info a {
      text-decoration: underline; /* Ensure links are clear */
      word-break: break-word; /* Prevent long links overflowing */
  }
  
  /* Map Integration */
  .contact-page .contact-map iframe {
    height: 300px; /* Adjust map height for mobile */
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-small);
  }
  
  /* Form Optimization */
  .contact-page .contact-form .form-group {
    margin-bottom: var(--spacing-m); /* Increase space between fields */
  }
  
  .contact-page .contact-form label {
    display: block; /* Ensure labels are on their own line */
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: var(--weight-regular);
    color: var(--color-charcoal);
  }
  
  .contact-page .contact-form input[type="text"],
  .contact-page .contact-form input[type="email"],
  .contact-page .contact-form textarea {
    width: 100%;
    padding: var(--spacing-s); /* Increase padding for easier tapping */
    font-size: 1rem;
    border: 1px solid var(--color-medium-gray);
    border-radius: var(--border-radius-small);
    line-height: 1.4;
    background-color: var(--color-off-white);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }
  
  .contact-page .contact-form input[type="text"]:focus,
  .contact-page .contact-form input[type="email"]:focus,
  .contact-page .contact-form textarea:focus {
    border-color: var(--color-slate-gray);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06), 0 0 0 2px rgba(93, 97, 105, 0.2);
    outline: none;
  }
  
  .contact-page .contact-form textarea {
    min-height: 120px; /* Ensure decent textarea height */
  }
  
  .contact-page .contact-form .form-submit-button {
    width: 100%; /* Make button full width */
    padding: var(--spacing-m); /* Larger padding for button */
    font-size: 1.1rem;
    margin-top: var(--spacing-s); /* Add space above button */
  }
  
  /* Typography */
  .contact-page .contact-info h3 {
      font-size: 1.8rem;
      margin-bottom: var(--spacing-s);
  }
  
  .contact-page .contact-form-section h2 {
      font-size: 1.8rem;
      text-align: center;
      margin-bottom: var(--spacing-l);
  }

  /* Other mobile styles */
} 

/* Desktop-only Core Values Section Redesign */
@media (min-width: 768px) {
  .about-page .values-section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--color-off-white) 0%, #f5f5f5 100%);
  }
  
  .about-page .values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 10% 10%, rgba(198, 193, 187, 0.05) 0%, transparent 70%),
      radial-gradient(circle at 90% 90%, rgba(93, 97, 105, 0.07) 0%, transparent 70%);
    z-index: 0;
  }
  
  .about-page .values-section .container {
    position: relative;
    z-index: 1;
  }
  
  .about-page .about-header-new {
    margin-bottom: var(--spacing-xxl);
  }
  
  .about-page .values-carousel-container {
    display: block;
  }
  
  .about-page .values-carousel-1,
  .about-page .values-carousel-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0;
  }
  
  .about-page .values-carousel-2 {
    margin-top: 40px;
  }
  
  .about-page .value-card-new {
    height: 100%;
    min-height: 280px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 5px solid transparent;
    position: relative;
    overflow: hidden;
  }
  
  .about-page .value-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-slate-gray) 0%, var(--color-light-taupe) 100%);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }
  
  .about-page .value-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  }
  
  .about-page .value-card-new:hover::before {
    transform: translateY(0);
  }
  
  .about-page .value-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
  }
  
  .about-page .value-content::before {
    content: attr(data-number);
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(93, 97, 105, 0.06);
    line-height: 1;
    z-index: -1;
  }
  
  .about-page .value-title-new {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--color-charcoal);
    position: relative;
    padding-bottom: 15px;
  }
  
  .about-page .value-title-new::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-slate-gray);
  }
  
  .about-page .value-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-dark-brown-gray);
  }
  
  /* Hide pagination on desktop */
  .about-page .values-pagination {
    display: none;
  }
} 

/* Desktop-only Testimonial Carousel Styles */
@media (min-width: 768px) {
  .testimonials-section-desktop {
    /* Styles for the main section on desktop if needed */
  }
  
  .testimonials-desktop-wrapper {
    position: relative; /* For positioning arrows */
    padding: 0 50px; /* Add space for arrows */
    overflow: hidden; /* Hide overflowing cards */
  }
  
  .testimonials-carousel-container {
    /* Override mobile styles */
    display: flex;
    overflow-x: visible; /* Allow seeing cards for transform */
    scroll-snap-type: none;
    scroll-padding-inline: 0;
    gap: var(--spacing-l); /* Gap between cards */
    padding-bottom: 0;
    margin-bottom: 0;
    transition: transform 0.5s ease; /* Smooth transition for sliding */
    /* Reset scrollbar hiding */
    scrollbar-width: auto;
    -ms-overflow-style: auto;
  }
  
  .testimonials-carousel-container::-webkit-scrollbar {
    display: block;
  }
  
  .testimonial-card {
    /* Desktop card size */
    flex: 0 0 calc(33.333% - (var(--spacing-l) * 2 / 3)); /* 3 cards with gap */
    min-width: calc(33.333% - (var(--spacing-l) * 2 / 3));
    scroll-snap-align: none;
    margin: 0; /* Reset mobile margins */
    height: auto; /* Let height be determined by content */
    min-height: 400px; /* Example min height */
    /* Ensure flex settings remain */
    display: flex;
    flex-direction: column;
  }
  
  /* Hide mobile pagination on desktop */
  .testimonial-pagination {
    display: none;
  }
  
  /* Carousel Arrow Styles */
  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-charcoal);
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-medium);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    display: flex; /* Center icon */
    align-items: center;
    justify-content: center;
  }
  
  .carousel-arrow.prev {
    left: 10px;
  }
  
  .carousel-arrow.next {
    right: 10px;
  }
  
  .carousel-arrow:hover {
    background-color: var(--color-slate-gray);
    color: var(--color-off-white);
    transform: translateY(-50%) scale(1.1);
  }
  
  .carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
  }
}