:root {
  /* Core Brand Palette */
  --brand-deep: #3A0063;    /* Royal Plum (Authority/Heritage) */
  --brand-saffron: #FFD000; /* Primary Action (Clarity/Urgency) */
  --brand-oak: #AD7340;     /* Natural Wood Tone (Reliability) */
  --brand-alert: #FF4D29;   /* High-Contrast Warning/Sales Trigger */
  --brand-bright: #FFFFFF;  /* Pure Canvas */

  /* Plum Tints & Shades */
  --plum-900: #210038;
  --plum-700: #3A0063; /* Base */
  --plum-500: #5E2587;
  --plum-100: #F5F0FA;

  /* Saffron Tints & Shades */
  --saffron-900: #CCA600;
  --saffron-500: #FFD000; /* Base */
  --saffron-100: #FFF9E0;

  /* Oak Tints & Shades */
  --oak-800: #7A512D;
  --oak-500: #AD7340; /* Base */
  --oak-100: #F7F1EB;

  /* Alert Tints & Shades */
  --alert-700: #CC3D20;
  --alert-500: #FF4D29; /* Base */
  --alert-100: #FFEBE8;

  /* UI Neutral Grays (Essential for Balance) */
  --neutral-900: #1A1A1A;
  --neutral-400: #A3A3A3;
  --neutral-100: #F4F4F4;

  /* Text & Content Roles */
  --text-main: #1A1A1B;     /* Off-black for better readability than pure black */
  --text-muted: #575757;    /* For secondary info/subtitles */
  --text-on-dark: #FFFFFF;  /* For use on Purple or Oak backgrounds */
  --text-accent: #3A0063;   /* Using the Purple for emphasized text */

  /* UI Functional Roles */
  --bg-main: var(--brand-bright);
  --bg-offset: #F9F7F2;      /* A slight "parchment" off-white for sections */
  --border-subtle: rgba(58, 0, 99, 0.1); /* Transparent purple border */
  
  /* Shadow Systems (Architectural Depth) */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(58, 0, 99, 0.12); /* Purple-tinted shadow */
}

/* Typography & Container */
.gallery-container {
  padding: 40px 0;
  font-family: 'Inter', sans-serif;
  text-align: center;
  background-color: var(--brand-deep);
}

.gallery-title {
  font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 50px;
  color: var(--brand-saffron);
  text-align: center; /* Title aligned left */
}

/* Slider Logic */
.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--brand-deep);
}

/* Optional: Soft fade on the sides */
.slider::before, .slider::after {
  content: "";
  height: 100%;
  position: absolute;
  width: 15%;
  z-index: 2;
  pointer-events: none;
}

.slider::before { 
  left: 0; 
  background: linear-gradient(to right, var(--brand-deep) 0%, transparent 100%); 
}
.slider::after { 
  right: 0; 
  background: linear-gradient(to left, var(--brand-deep) 0%, transparent 100%); 
}

.slide-track {
  display: flex;
  width: calc(350px * 8);
  animation: scrollGallery 30s linear infinite;
}

.slide-track:hover {
  animation-play-state: paused;
}

.slide {
  width: 350px;
  height: 450px;
  padding: 15px;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* Hover effect on individual images */
.slide img:hover {
  transform: scale(1.02);
}

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  /* Must move by exactly the total width of the UNIQUE images (350 * 5) */
  100% { transform: translateX(calc(-350px * 5)); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-title { font-size: 1.8rem; }
  .slide { width: 280px; height: 380px; }
  .slide-track { width: calc(280px * 8); }
  @keyframes scroll {
    100% { transform: translateX(calc(-280px * 4)); }
  }
}



/* MARQUEE STYLES */

#mighty-oak-services {
  background-color: var(--oak-500);
  padding: 50px 0;
  overflow: hidden;
}

.mighty-slider {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.mighty-track {
  display: flex;
  width: max-content;
  animation: scrollMighty 25s linear infinite;
}

/* PAUSE FEATURES */
/* 1. Pause on Hover */
.mighty-track:hover { animation-play-state: paused; }
/* 2. Pause on Keyboard Focus (Accessibility best practice) */
.mighty-track:focus-within { animation-play-state: paused; }

.mighty-items {
  display: flex;
  align-items: center;
}

.service {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 5rem); /* Responsive typography */
  color: var(--oak-white);
  padding: 0 60px;
  white-space: nowrap;
}

.mighty-dot {
  width: 25px;
  height: 25px;
  background-color: var(--brand-saffron);
  border-radius: 4px; /* Slightly squared for a "sturdy" look */
  transform: rotate(45deg); /* Diamond shape */
}

@keyframes scrollMighty {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ACCESSIBILITY: Reduced Motion */
/* If a user has "Reduce Motion" enabled in their OS, the slider stops automatically */
@media (prefers-reduced-motion: reduce) {
  .mighty-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Helper class to hide text from eyes but not screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}