/*
 * General Styles & Typography
 * Reset, base typography, and container for the entire page.
 */

 /* 1. Global Variables (Custom Properties) */
:root {
  /*--color-primary: white;*/
  --color-text: #333;
  --font-family-body: 'Source Sans Pro', sans-serif;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --max-width-content: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 10px;
  /* Enables smooth scrolling for all anchor links */
    scroll-behavior: smooth;
}

body {
  color: #333333;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  font-family: 'Karla', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
}


/*
 * Navigation & Header
 * Sticky header with a logo and navigation menu.
 */
.nav { /*container for the top nav*/
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    width: 100%;
}

.header{
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  background-color: white;
}


/* ----------------------------------------------------
 * Scroll To Top Button Styling 
 * ----------------------------------------------------
 */
#btnScrollToTop {
    /* Positioning: Use your fixed position and spacing */
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1000; /* Ensure it's on top */
    
    /* Appearance: Use your size, shape, color, and shadow */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #A9A9A9; /* Your preferred gray color */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    
    /* Functional: Initially hidden */
    display: none; 
    
    /* Center the icon visually inside the button */
    line-height: 50px; 
    padding: 0; 
    text-align: center;
}

#btnScrollToTop:hover {
  background-color: black; /* Your dark hover color */
}

.logo{
  padding: 2rem 0.5rem 2rem 2rem;
  display: flex;
  justify-content: left;
  align-items: center;
  flex:1
}

.logo img {
  width: 50%; /* Mobile logo size */
}

.header .menu{/*flex container*/
  display: flex;
  align-items: center;
  margin-left: 3rem;
  list-style:none;
  justify-content: center;
  font-size: 12px;
}

/* Base link styling */
.page a {
  text-decoration: none;
  color: black;
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2rem;
  padding: 2rem 2rem 1rem 1rem;
  display: inline-block;
}

.page a span {
  position: relative;
  display: inline-block;
}

/* Underline on span */
.page a span::after {
  content: "";
  position: absolute;
  bottom: 0;      /* right under the text */
  left: 50%;
  width: 100%;     /* short underline */
  height: 2px;
  background-color: #EFBB3F;
  transform: translateX(-50%) scaleX(0); /* hidden initially */
  transform-origin: center;
  transition: transform 0.4s ease;
}

/* Hover effect */
.page a:hover span::after {
  transform: translateX(-50%) scaleX(1); /* reveal underline */
}

.page a:hover {
  color: #EFBB3F;
}


/*
 * HERO Content Sections
 * 
 */

.hero-container {
  /* Use Flexbox for easy vertical stacking and centering on mobile */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center;
  padding: 20px;
  padding-top: 3rem;
  margin: 0 auto; /* Center the container itself */
  max-width: var(--max-width-content); /* Optional: keep content centered and readable */
}

/* Hero Text Styling */
.hero-text {
  /* Set a max-width to keep the text lines readable (not too wide on desktop) */
  max-width: 600px; 
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.site-title {
  font-family: var(--font-family-header);
  font-size: 7rem; /* Larger title for impact */
  /* Reduce space below the title */
  margin-bottom: 0.8rem; 
  /* Ensure the title is bold and impactful */
  
  line-height: 1.1; /* Tighter line height for large text */
}

.site-description {
  font-family: var(--font-family-body);
  /* Slightly smaller than the tagline, using a softer color */
  font-size: 20px; 
  color: #333333; 
  opacity: 1; /* Remove opacity and use color for subtlety */
  line-height: 1.5; /* Good line height for body text */
  margin-top: 0; 
  margin-bottom: 2rem; /* Space below the description */
  /* Remove auto margins for this block when text-align: center is used */
  margin-left: 0;
  margin-right: 0;
}

.site-title a {
  text-decoration: none; /* Remove underline from the title link */
  color: var(--color-primary); 
}

.site-tagline {
  font-family: var(--font-family-body);
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);

  /* Gradient text */
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  animation: fadeSlideColor 1.5s ease-out forwards;
}

@keyframes fadeSlideColor {
  0% {
    opacity: 0;
    transform: translateY(10px);
    background-position: left;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background-position: right;
  }
}

/* Hero Image Styling */
.hero-image {
  width: 100%; /* Take up full width on mobile */
  max-width: 400px; /* Moderate size: max out at 400px wide for the image itself */
  margin-top: var(--spacing-md);
  /* Centering is achieved by aligning the parent (.hero-container) */
  position: relative;
}

.hero-image img {
  display: block; /* Removes any baseline spacing issues */
  width: 100%;
  height: auto;
  /* Modern styling: subtle rounded corners and a slight shadow */
  border-radius: 8px; 
}

/* 2. Styling and Positioning the Subtle Link */
.hero-cta-button {
  /* --- SUBTLE GREY LINK STYLING --- */
  color: #666666; /* Neutral grey text color */
  text-decoration: underline;
  text-decoration-color: #666666; /* Matching underline color */
  font-weight: normal; 
  font-size: 1em; 
  
  /* --- POSITIONING STYLES (CENTERED AND BOTTOM) --- */
  position: absolute;
  /* Start link 50% from the left edge of the image container */
  left: 50%;
  /* Move link 15px up from the bottom of the image container (adjust 
     this value to control its distance from the bottom edge) */
  /*bottom: 15px; */
  bottom: -5px;
  /* Shift the link back by half of its own width for perfect centering */
  transform: translateX(-50%); 
  
  /* Ensure it's on top of the image */
  z-index: 10;
  /* Optional: Small padding if you want it to feel like a clickable area */
  padding: 5px 10px; 
  /* Optional: Remove the default background if any parent style affects it */
  background: none; 
}

/* 2. Visited State (Must come before :hover) */
.hero-cta-button:visited {
  color: #666666;
  text-decoration-color: #666666;
}

/* 3. Hover State (Must come after :visited) */
.hero-cta-button:hover {
  /* Using 'black' will be less subtle than '#333333' but will work */
  color: black; 
  text-decoration-color: black;
}

/* 4. Active State (Optional, but good practice - for when the user clicks) */
.hero-cta-button:active {
  color: black;
  text-decoration-color: black;
}

.animated-divider {
  border: none;
  height: 1px; /* thin, subtle */
  max-width: 1200px; /* match your content container */
  margin: 2rem auto; /* center the line with spacing */
  margin-top: 6rem;
  
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0),       /* transparent fade in */
    rgba(200,200,200,0.6), /* very light grey center */
    rgba(0,0,0,0)        /* transparent fade out */
  );
  background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/*
*Specs&Details of the project
*
*/
.specs-container {
  /* Key change: Center the entire section on the page */
  margin: 0 auto 2rem auto; /* Top/Bottom Margin, Auto side margins for centering */
  max-width: var(--max-width-content); /* Use a global max-width (e.g., 1200px) */
  
  /* Internal spacing (equal padding on the sides for *all* screen sizes) */
  padding: 20px;

  /* Flex properties for mobile: vertical stacking */
  display: flex;
  flex-direction: column;
  /* Use 'normal' alignment for left-aligned text */
  align-items: normal; 
  
  /* Remove min-width: 100%; as it's often redundant and can cause overflow */
}

/* Style for individual items (role, deliverables, specifications) */
.role,
.deli,
.dur {
  width: 100%; /* Make each section take full width on mobile */
  padding-bottom: 2rem; /* Add space between stacked sections */
}

/* Specs Text Styling (Applies to all h2, h3, p) */
.specs-container h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #888; /* Slightly darker grey for better contrast/readability */
  letter-spacing: 0.2rem;
  margin-top: 1.5rem; /* Add some margin above h2s for spacing */
}

/* Remove redundant margin-top for 'deli h2' and 'dur h2' in mobile view */
/* The general h2 margin above handles the spacing. */
.role h2 {
  margin-top: 0; /* Remove top margin for the first h2 (ROLE) */
}

.specs-container p {
  font-size: 2rem; /* Adjusted for better mobile hierarchy/readability */
  font-weight: normal; /* Lighter is okay, but using 'normal' is cleaner */
  padding-bottom: 10px;
}

.deli h3{
  font-size: 2rem;
  font-weight: bold;
  color: #333333;
  margin-top: 1rem;
}

.deli p {
  font-weight: normal; /* Keep it consistent */
  padding-bottom: 1rem;
  font-size: 2rem; /* Slightly smaller detail text */
}

.deli a {
  color: var(--color-text, black);
  letter-spacing: 0.05rem; /* Reduced letter-spacing for better readability */
  text-decoration: underline; /* Standard underline for links */
  text-decoration-color: #EFBB3F;
  text-decoration-thickness: 2px;
  font-size: 2rem;
}

/* ----------------------------------------------------
 * Navigation Link Styling (Inside .deli)
 * ----------------------------------------------------
 */

/* Target the anchor tag inside the h3 */
.deli h3 a {
  /* Ensure the link text is the color you want (e.g., black or dark gray) */
  color: var(--color-text, #333); 
  text-decoration: none; /* Remove default underline */
  font-weight: bold;
  position: relative; /* Essential for positioning the ::after pseudo-element */
  display: inline-block; /* Essential for the underline to start/end correctly */
}

/* ----------------------------------------------------
 * Navigation Link Styling (Inside .deli)
 * ----------------------------------------------------
 */

.deli h3 a {
  /* Keep the text color as is (it inherits from h3 or is explicitly set) */
  color: #333; /* Assuming a dark gray text color */
  font-weight: bold;

  /* --- FIX: Add a visible underline by default --- */
  text-decoration: underline; /* Re-enable underline */
  text-decoration-color: #FFC000; /* Use a default gold/yellow color */
  text-decoration-thickness: 2px; /* Keep it thin and clean */
  text-underline-offset: 3px; /* Ensure space between text and underline */
  
  /* Make the link behave like a block/inline-block to accept padding and background */
  display: inline-block; 
  
  /* Add padding so the highlight is visible around the text */
  padding: 0 0.25rem; 
  margin: 0 -0.25rem; /* Use negative margin to offset the padding and maintain horizontal flow */
  
  /* Initial state: Transparent background */
  background-color: transparent;
  
  /* Apply the smooth transition to the background-color property */
  transition: background-color 0.3s ease-in-out; 
}

/* On HOVER, change the background color to the desired yellow/gold */
.deli h3 a:hover {
  /* Use a subtle yellow/gold color (adjust hex code as needed) */
  background-color: #FFEB8F; /* A light, soft yellow */
  
  /* Explicitly ensure the text color DOES NOT change on hover */
  color: #333; 
  text-decoration: none;
}

/* Optional: Keep the descriptive paragraph color simple */
.deli p {
    color: #555;
    /* Remove any transition or hover effects applied to the paragraph */
}

.dur h3{
  font-size: 2rem;
  font-weight: bold;
  color: #333333;
  margin-top: 1rem;
}

[id^="EchoAI_casestudy_"] {
    /* Sets a margin when scrolling to the target, preventing content 
       from being hidden by a sticky header or from hugging the top. */
    scroll-margin-top: 100px; 
}

/*
* SUMMARY Section
*/
.intro-container {
  /* Key for consistency: Center the container and use global max-width */
  margin: var(--spacing-lg) auto 0 auto; /* Top margin, auto side margins for centering */
  max-width: var(--max-width-content);
  
  /* Use padding for internal spacing and side margins */
  padding: 0 2rem;

  display: flex; /* Kept flex, but mainly for centering the content */
  flex-direction: column;
  align-items: center; /* Center the entire article block */
}

/* Ensure the article content does not stretch too wide on larger mobiles */
.summary {
  width: 100%;
  max-width: 650px; /* Optional: Constrain the content width even on mobile */
  /* Remove min-width: 100%; and flex-wrap from the container */
}

.intro-container h2{
  font-size: 3rem;
  font-weight: bold;
  padding-top: 2rem;
  padding-bottom: 1rem;
  letter-spacing: 0.2rem;
  color: grey;
}

.intro-container p{
  font-size: 2rem;
  padding-bottom: 2rem;
  color: #333333;
  line-height: 1.6;
}

.intro-container h3{
  font-size: 2rem;
  font-weight: 600;
  padding-bottom: 3rem;
  line-height: 1.6;
}

/* Specific styling for list items (problem points) */
.list-p {
  font-size: 18px;
  padding-bottom: 0.8rem; /* Tighter space between list items */
  line-height: 1.6;
}

.last {
  padding-bottom: 4rem; /* Add a final margin at the end of the section */
}

/* ----------------------------------------------------
 * Key Decisions Section
 * ----------------------------------------------------
 */

.key-decisions-section {
  /* Inherit consistent padding and max-width from previous sections */
  margin: var(--spacing-lg) auto;
  padding: 0 2rem;
  max-width: var(--max-width-content);
}

.key-decisions-section h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text, #333);
}

.decision-grid {
  /* Default Mobile: Simple vertical stack (CSS Grid default is one column) */
  display: grid;
  gap: 4rem; /* Space between stacked cards */
}

.decision-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Critical for containing content during transition */
  cursor: pointer;
  
  /* Initial padding for the visible content */
  padding: var(--spacing-md);
  
  /* Initial state: The card-solution is hidden/collapsed */
  /* We use the 'expanded' class to override this later */
}

.decision-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--color-text, #333);
}

.card-image-wrapper {
  /* Use Flexbox to center the content horizontally */
  display: flex;
  justify-content: center;
  
  margin-bottom: 1rem;
  /* Optional: You can set a max-width for the image wrapper here
     if you want the image to be smaller than 100% of the card on desktop. */
}


.card-image-wrapper img {
  /* Keep this rule to ensure the image scales correctly */
  width: 100%; 
  max-width: 400px; /* Example: Limit image size for centering effect */
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid #eee;
}

/* Solution Content (Initially Hidden/Collapsed) */
.card-solution {
  /* Start with max-height 0 and overflow hidden for the collapse effect */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 1rem; /* Match the side padding of the card */
  
  /* Smooth transition for height and opacity */
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in;
}

.solution-label {
  font-weight: bold;
  font-size: 12px;
  color: var(--color-primary);
  margin-top: 2rem;
}

.card-solution p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 1rem; /* Adds space at the bottom of the card when expanded */
}


/* --- State: Expanded/Active Card Styles --- */

/* This class is added by JavaScript */
.decision-card.expanded .card-solution {
  /* A large enough max-height to ensure all solution content fits */
  max-height: 500px; 
  opacity: 1;
}

/* For hover effect on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .decision-card:hover .card-solution {
    max-height: 500px;
    opacity: 1;
  }
}

/* ----------------------------------------------------
 * Solutions Section
 * ----------------------------------------------------
 */

 .solution-section {
  margin: var(--spacing-lg) auto;
  max-width: var(--max-width-content);
  padding: 0 2rem;
}

.solution-section h2 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--color-text, #333);
  text-align: left; /* Center the Solutions title */
}

.solution-content-flex {
  /* MOBILE FIRST: Stack image and text vertically */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally in the stack */
  
  /* Add consistent styling to the whole block on mobile */
  background-color: #f8f8f8; /* Light background for the card */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* Ensures border-radius applies to image/text */
}

.solution-main-image {
  display: block;
  width: 100%; /* Image takes full width of its flex container */
  height: auto;
  /* border-radius: 8px; - Removed here, applies to parent .solution-content-flex */
}

/* --- Text Block Styling (Mobile First - BELOW IMAGE) --- */
.solution-text-block {
  /* Remove absolute positioning for mobile */
  position: static; 
  
  color: var(--color-text, #333); /* Dark text color for readability on light background */
  background-color: transparent; /* No background needed on mobile now */
  
  width: 100%; /* Take full width */
  padding: 2rem; 
  font-size: 2rem; 
  line-height: 1.6;
  margin: 0;
  
  text-align: left; /* Center text within its block on mobile */
  
  /* Remove border-radius on text block for mobile, it's on the parent now */
  border-radius: 0;
}

/* ----------------------------------------------------
 * Solutions Showcase Grid (Mobile First)
 * ----------------------------------------------------
 */

.solution-showcase-grid {
  /* Remove Grid properties from mobile base */
  display: flex; /* Use Flexbox for horizontal layout */
  flex-direction: row; /* Arrange items horizontally */
  
  /* Enable horizontal scrolling and hide vertical overflow */
  overflow-x: auto;
  overflow-y: hidden;
  
  /* Prevent wrapping */
  flex-wrap: nowrap;
  
  /* Resetting vertical spacing and add horizontal padding */
  gap: 2rem; 
  margin-top: 3rem; 
  margin-bottom: 2rem; 
  
  /* Optional: Remove scrollbar on some browsers for a cleaner look */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  padding-left: var(--spacing-md); /* Add left/right padding to start the scroll cleanly */
  padding-right: var(--spacing-md); 
}

/* Hide the scrollbar for WebKit browsers (Chrome, Safari) */
.solution-showcase-grid::-webkit-scrollbar {
    display: none;
}

/* Update the individual item sizing for the horizontal scroll */
.showcase-visual-item {
  flex-shrink: 0; /* Prevents items from shrinking */
  width: 90vw; /* Make each image take up 75% of the viewport width */
  max-width: 350px; /* Optional: Sets a max size for wider phones/tablets */
  text-align: center; 
}

/* Ensure the image takes the full width of its constrained item */
.showcase-visual-item img {
  width: 100%;
}

/* 1. Positioning Context for the Scroll Cue */
.scroll-wrapper {
    position: relative;
    margin: 0 auto; 
}

/* 2. Scroll Indicator Styling (Default: HIDDEN) */
.scroll-cue {
 /* Set dimensions for the cue container (makes a square box for the circle) */
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center; /* Centers the arrow horizontally */
    align-items: center;     /* Centers the arrow vertically */
    
    /* Needed for the arrow/text color, z-index, and transition */
    color: #333; 
    font-size: 2.5rem;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.5s, transform 0.5s;
    position: relative;
    
    /* 🟢 POSITIONING & ANIMATION (ON for Mobile) 🟢 */
    position: absolute; /* Sticks to the viewport */
    right: 10px; 
    top: 30%; /* Using 30% from your last code */
    transform: translateY(-50%);
    animation: nudgeRight 1.5s infinite;
}

/* New: Circle Background using ::before */
.scroll-cue::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #EFBB3F; /* White circle background */
    border-radius: 50%;
    z-index: -1; /* Place behind the arrow */
    opacity: 0.5;
    
    /* New: Animation for the pulse effect */
    animation: pulse 2s infinite; 
}

@keyframes nudgeRight {
    0%, 100% { 
        transform: translateY(-50%) translateX(0); 
    }
    50% { 
        transform: translateY(-50%) translateX(8px); 
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        transform: scale(1);
    }
}

/* Remove the justify-items: center; which is no longer needed on flex */
/* The base styling now handles the flow */

.showcase-global-explanation {
  background-color: #f7f7f7;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease-in-out;
  margin-top: 1rem;
  
  /* --- FIX 1: Limit the width and center the block --- */
  max-width: 1800px; /* Set a max width for the content block (adjust as needed) */
  margin-left: auto;
  margin-right: auto;
}

.expansion-header-global {
  display: flex;
  justify-content: center; 
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
}

.read-more-label {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  
  /* *** FIX: Add space to the right of the text label *** */
  margin-right: 0.5rem; 
}

.showcase-global-explanation .arrow-icon {
  width: 0;
  height: 0;
  border-left: 5px solid transparent; 
  border-right: 5px solid transparent; 
  /* This border-top creates the downward-pointing triangle */
  border-top: 5px solid var(--color-primary, #EFBB3F); /* Added fallback color */
  transition: transform 0.3s ease;
  display: inline-block; /* Ensure it behaves correctly */
}

/* --- Content that expands/collapses --- */
.expansion-content-global {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 2rem; /* Horizontal padding */
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in;
}

.expansion-content-global h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 0;
  padding-bottom: 0.5rem;
  color: var(--color-text, #333);
}

.expansion-content-global p {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #555;
  padding-bottom: 1rem;
  margin-bottom: 0;
}


/* --- State: Expanded/Active Block Styles (Applied by JS) --- */

.showcase-global-explanation.expanded {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
}

.showcase-global-explanation.expanded .arrow-icon {
  transform: rotate(180deg); 
}

.showcase-global-explanation.expanded .expansion-content-global {
  max-height: 800px; /* Large height for the full text */
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* ----------------------------------------------------
 * Outcome Section (Mobile-First: Vertical Stack)
 * ----------------------------------------------------
 */
.outcome-section {
  max-width: var(--max-width-content);
  margin: auto 2rem;
  padding: 2rem;
  text-align: left;
}

.outcome-section h2 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--color-text, #333);
}

.outcome-grid {
  /* Mobile: Stack vertically using Flexbox */
  display: flex;
  flex-direction: column;
  gap: 3rem; /* Space between stacked cards */
  align-items: center; /* Center the cards horizontally */
}

.outcome-card {
  width: 100%;
  max-width: 350px; 
  padding: 3rem 1.6rem;
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #EBEBEB;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  
  /* --- FIX 1: Enable Flexbox inside the card --- */
  display: flex;
  flex-direction: column; /* Stack the elements (number then text) vertically */
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  text-align: center;
}

/* Big Number Styling */
.stat-number {
  font-size: 8rem; /* Large number on mobile */
  font-weight: 900;
  line-height: 1;
  color: var(--color-text, #333);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-number .percent-symbol {
  font-size: 2rem;
  vertical-align: super;
  font-weight: 600;
}

/* Engagement Card Specifics */
.stat-engagement-numbers {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin: 0.5rem 0;
  font-size: 1.6rem; /* The word 'to' */
  font-weight: 500;
}

.stat-engagement-numbers .small {
  font-size: 8rem;
  margin-right: 0.5rem;
}

.stat-engagement-numbers .large {
  font-size: 8rem;
  margin-left: 0.5rem;
}


/* Description Text */
.stat-description {
  font-size: 1.8rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* ----------------------------------------------------
 * NEW: Full-Width Summary Wrapper
 * ----------------------------------------------------
 */
.outcome-summary-wrapper {
  /* 1. Apply Full-Width Background and Vertical Padding */
  width: 100vw; /* Extends to the full viewport width */
  position: relative; /* Needed to handle negative margin trick below */
  left: 50%; /* Start the element at the center of the screen */
  right: 50%;
  margin-left: -50vw; /* Shift the element back by half the viewport width to align the left edge to the viewport edge */
  margin-right: -50vw;
  
  /* Apply Background Color */
  background-color: #F0F5FA; /* A soft, light blue/gray for contrast */
  padding: 3rem 2rem; /* Vertical padding inside the colored bar */
  
  /* Retain top margin from the outcome section */
  margin-top: 4rem; 
}


/* ----------------------------------------------------
 * Outcome Summary Text (Text centering and width)
 * ----------------------------------------------------
 */
.outcome-summary-text {
  /* 2. Re-constrain the text to the site's content width */
  max-width: 750px; 
  
  /* Center the TEXT content block within the new wrapper */
  margin: 0 auto; 
  
  /* Maintain text styling */
  padding: 0 var(--spacing-md); /* Add left/right padding for small screens */
  font-size: 2.4rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-text, #333);
  text-align: left; /* Center the text for a better summary look */
}

/*-----note----
.last-note{
    margin: 3rem 1rem;
    padding-top: 2rem;
    padding-bottom: 5rem;
    text-align: center;
  }

.last-note p{
  font-size: 2rem;
  font-family: 'Source Sans Pro', sans-serif;
  padding: 5px;
}---*/

/* ----------------------------------------------------
 * Last Note / Thank You Section
 * ----------------------------------------------------
 */
.last-note {
  /* Centering the block on the page */
  max-width: 1800px; /* Limits the max width for readability */
  margin: 4rem auto 6rem; /* Top/Bottom margin to separate it from content */
  padding: 2.5rem 1.5rem; /* Generous vertical padding for impact */
  /* Text Alignment */
  text-align: center;
}

.last-note .one {
  /* Primary impactful message */
  font-size: 2rem; /* Large, easy-to-read size on mobile */
  font-weight: 700; /* Bold */
  color: var(--color-text, #333);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.last-note .two {
  /* Secondary, friendly message */
  font-size: 1.6rem;
  font-weight: 400; /* Regular weight */
  color: #555;
  margin-top: 0;
}

/*
 * Footer
 * Footer columns are stacked on mobile, then transition to a row.
 */
.footer {
  background: #F5F5F5;
  padding: 4rem 2rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-column h2 {
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family:'Karla', sans-serif;
  color: #333333;
  text-align: left;
}

/* Email Button Design */
.btn-email {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background-color: #333;
  border-radius: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1rem 0 2rem 0;
}

/* Hover / focus state */
.btn-email:hover,
.btn-email:focus {
  background-color: #EFBB3F; /* brand gold */
  color: #111;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Active / click state */
.btn-email:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.social-links li {
  display: inline;
}
.social-links a {
  color: #262633;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
}
.social-links a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: left;
  margin-top: 3rem;
  font-size: 1.6rem;
  color: grey;
}

.copyright h4{
  text-align: left;
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-transform: none;
  letter-spacing: 1.2;
  font-weight: 600;
  font-family:'Karla', sans-serif;
}

/*
 * Media Queries for Tablet & Desktop
 */
@media screen and (min-width: 768px) {
 
  .logo img {
    width: 30%;
  }

  .page a{ /*flex item*/
    padding: 2rem 2rem;
    font-size: 1.8rem;
  }
  
/* HERO section----------*/
  .hero-container {
    /* Switch to row layout for side-by-side */
    flex-direction: row; 
    
    /* Ensure items are vertically centered in the hero area */
    justify-content: center; /* Center the group of items horizontally */
    align-items: center;    /* Center the group of items vertically */

    /* Increase top/bottom padding for more breathing room on desktop */
    padding: calc(var(--spacing-lg) * 2) var(--spacing-lg); 
    text-align: left; /* Align text to the left in this view */
  }

  /* Text on the left, Image on the right (or vice-versa) */
  .hero-text {
    /* Give the text space to take up a fraction of the total width */
    flex: 1; 
    max-width: 50%; /* Limit text to half the container width */
    margin-right: var(--spacing-lg); /* Add space between text and image */
    margin-bottom: 0; /* Remove mobile bottom margin */
  }

  /* Increase text size for better readability on desktop */
  .site-title {
    font-size: 8rem;
    margin-bottom: 0; 
  }

  .site-tagline {
    font-size: 32px;
  }

.site-description {
    /* Increase size for desktop readability */
    font-size: 22px; 
    /* Remove auto margins to allow text-align: left to take effect */
    margin-left: 0;
    margin-right: 0;
    max-width: 550px; /* Control width for readability */
  }
  
  /* Slightly larger max-width for the moderate main image on desktop */
  .hero-image {
    max-width: 600px; 
  }

  .hero-cta-button{
    bottom: 10px;
  }
/*
*
*Specs & Details
*/
  .specs-container {
    /* Switch to row layout for side-by-side */
    flex-direction: row;
    justify-content: space-between; /* Evenly space the three columns */
    align-items: flex-start; /* Keep content aligned to the top of the row */
    padding: 0 var(--spacing-lg); /* Increase side padding for larger screens */
    margin-top: 6rem;
    padding-bottom: 3rem;
  }

/* Reset individual item width and use flex-grow for layout */
  .role,
  .deli,
  .dur {
    width: auto; /* Allow flexbox to control width */
    padding-bottom: 0; /* Remove stacking space */
    
    /* Assign flex-grow values to control column width */
    /* role: ~25%, deli: ~50%, dur: ~25% */
    flex: 2; /* ROLE */
  }

  .deli {
    flex: 3; /* DELIVERABLES (The longest column, give it more space) */
    padding: 0 4rem; /* Add generous space between DELIVERABLES and neighbors */
  }
  
  .dur {
    flex: 2; /* SPECIFICATIONS */
  }

 /* Adjust font sizes for desktop readability */
  .specs-container h2 {
    margin-top: 0; /* Remove margin-top as they are now side-by-side */
  }

  .specs-container p{
    font-size: 20px;
  }

  .deli h3, 
  .dur h3 {
    font-size: 2rem;
  }

/*
* SUMMARY SEction
*/

/*.intro-container{ 
    width: 70%;
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .intro{
    padding-left: 5rem;
    padding-right: 5rem;
  }*/

  .intro-container {
    /* Increase side padding on desktop for visual space */
    padding: 0 var(--spacing-lg); 
  }

  /* The most critical change for desktop readability */
  .summary {
    max-width: 750px; /* Set a comfortable reading width (e.g., 800px) */
    width: 100%;
  }

  .intro-container h2{
    font-size: 3rem;
    padding-top: 4rem;
  }

  .intro-container p{
    font-size: 2rem;
    padding-bottom: 3rem;
  }

  .intro-container h3 {
    font-size: 2rem;
  }

  .list-p {
    font-size: 2rem;
    padding-bottom: 1rem;
  }

 /*
 **KeyDecisions-----------
 **
 */ 
.key-decisions-section{
    padding: 0 10rem 5rem 10rem;
}

 .key-decisions-section h2 {
  font-size: 4rem;
  font-weight: 800;
}

.card-image-wrapper img {
  max-width: 300px;
}

.decision-grid {
    /* Switch to a 2-column grid layout */
    grid-template-columns: 1fr 1fr;
    gap: 6rem; /* Larger space between columns */
  }

.decision-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 2rem;
  line-height: 1.4;
  color: var(--color-text, #333);
}

  .decision-card {
    padding: var(--spacing-lg); /* Larger padding on desktop */
  }

  .card-solution {
    padding: 0 2rem; /* Larger side padding on desktop */
  }

  .solution-label {
  font-size: 14px;
  margin-top: 3rem;
}

/*--DESKTOP--
-------------Solution----
-------------------------*/
.solution-section {
    padding: 0 var(--spacing-lg); /* Use larger padding */
  }

.solution-content-flex {
    /* DESKTOP: Revert to using position: relative for the overlay */
    position: relative; 
    flex-direction: row; /* Not strictly necessary as children will be positioned */
    justify-content: center; /* Centers the image if it's not 100% wide */
    align-items: center;
    
    background-color: transparent; /* No card background needed if image is full width */
    box-shadow: none; /* No shadow */
  }

  .solution-main-image {
    width: 100%; /* Ensure image fills the space */
    border-radius: 8px; /* Apply border radius here if not on parent flex */
  }

  .solution-text-block {
    /* DESKTOP: Re-apply absolute positioning for overlay effect */
    position: absolute;
    bottom: 0; 
    left: 0;   
    
    color: #ffffff; /* White text for contrast on the image overlay */
    background-color: transparent; /* Text background is now the image */
    
    max-width: 55%; /* Constrain width to avoid phone mockup */
    padding: 3rem 4rem 3rem var(--spacing-lg);
    font-size: 2.3rem; 
    font-weight: 500; 
    line-height: 1.6;
    
    text-align: left; /* Align text to the left on desktop */
  }

.solution-showcase-grid {
    display: grid; /* Revert back to Grid */
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    
    /* Remove all mobile-specific overrides */
    overflow-x: visible;
    flex-wrap: wrap;
    padding-left: 0;
    padding-right: 0;
  }
  
  .showcase-visual-item {
    /* Reset sizing for desktop grid */
    width: auto; 
    max-width: none;
  }

  .showcase-visual-item img {
  width: 100%;
}

/* ❌ HIDE THE MOBILE-ONLY FEATURE HERE ❌ */
    .scroll-cue {
        display: none !important; /* Override the 'display: block' and hide it on desktop */
    }

  .expansion-content-global h3 {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1rem;
}

.showcase-global-explanation .arrow-icon {
  width: 0;
  height: 0;
  /* INCREASE BORDER SIZE from 5px to 7px */
  border-left: 7px solid transparent; 
  border-right: 7px solid transparent; 
  border-top: 7px solid var(--color-primary, #EFBB3F); /* The visible part */
  
  transition: transform 0.3s ease;
  display: inline-block; 
}

  .expansion-content-global p {
  font-size: 2rem;
  line-height: 1.6;
  color: #555;
  padding-bottom: 1rem;
  margin-bottom: 0;
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------
 * Desktop Styles (Grid Layout)
 * ----------------------------------------------------
 */
@media screen and (min-width: 768px) {
.outcome-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(2, 1fr); 
    gap: 4rem; 
  }
  
.outcome-card {
    height: 100%; /* Keeps the card filling the equal-height row */
    width: auto; 
    max-width: none;
    padding: 6rem;
    /* The internal Flexbox from the base style ensures content is vertically centered */
  }

  .outcome-section {
  max-width: var(--max-width-content);
  margin: 0 auto 0;
  text-align: left;
}
  
  .outcome-section h2{
  font-size: 4rem;
  font-weight: 800;
  }

  .outcome-summary-wrapper {
    padding: 4.5rem 0; /* Increase padding for desktop impact */
  }
  
  .outcome-summary-text {
    font-size: 2.3rem; /* Larger font on desktop */
    text-align: left;
  }

  /* Desktop Number Scaling */
  .stat-number {
    font-size: 8rem; /* Bigger impact on desktop */
  }

  .stat-engagement-numbers .large {
    font-size: 8rem;
  }

/*----NOTE-----*/
.last-note {
    padding: 6rem 3rem; /* Increase padding on large screens */
  }

  .last-note .one {
    font-size: 3rem; /* Make the main message more impactful on desktop */
  }

  .last-note .two {
    font-size: 1.8rem;
  }

/*--UPDATED footer Sep2025---*/
.footer h2{
  font-size: 2.4rem;
}

.btn-email {
  padding: 1.6rem 3.6rem;
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
}

.footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-column {
    flex: 1;
    text-align: left;
  }

  .footer-column h2 {
  font-size: 2.4rem;
}

  .footer {
  padding: 8rem 1.5rem;
}

.right{
  padding-top: 0;
}
}

@media screen and (min-width: 991px) {
  .wrapper {
    padding: 0 10rem;
  }

.logo{
  padding-left: 5rem;
}
  
  .logo img {
    width: 40%;
  }
  
  .page a{
  padding-right: 5rem;
}

 
}