/* --- Variables --- */
:root {
    --dementia-primary: #ff4d6d;       /* Deep Teal - Trust & Stability */
    --dementia-secondary: #6B9080;     /* Sage Green - Calm & Health */
    --dementia-accent: #EAF4F4;        /* Very Light Teal - Backgrounds */
    --dementia-text-dark: #333333;     /* Main Text */
    --dementia-text-light: #666666;    /* Subtext */
    --dementia-white: #ffffff;
    --dementia-gold: #C5A065;          /* Elegant Accent */
    
    --dementia-font-heading: 'Playfair Display', serif;
    --dementia-font-body: 'Lato', sans-serif;
    
    --dementia-radius: 12px;
    --dementia-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

	
/* --- Containers & Layout --- */
.dementia-container {
    max-width: 1100px;
    margin-left: 3rem;
    margin-right: auto;
    padding: 0 20px;
}

.dementia-text-center { text-align: center; }

/* --- Buttons --- */
.dementia-btn {
  display: inline-block;
  background: #ff4d6d;
  color: #fff;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dementia-btn-primary {
    background-color: var(--dementia-primary);
    color: var(--dementia-white);
}

.dementia-btn-primary:hover {
    background: #d6336c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 111, 117, 0.3);
}

.dementia-btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* --- Hero Section --- */
.dementia-hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: url('/images/dimentia/dimentia-hero.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--dementia-white);
    text-align: left;
}

.dementia-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
     rgba(225, 190, 231, 0.95) 0%,   /* Slightly deeper lavender for text backing */
        rgba(243, 229, 245, 0.9) 45%,   /* Your Lite Purple (#f3e5f5) extending further */
        rgba(243, 229, 245, 0.7) 65%,   /* Softening the purple */
        rgba(243, 229, 245, 0.3) 85%,   /* Starting the fade-out later */
        rgba(243, 229, 245, 0) 95%      /* Transparent near the far right edge */
    );
}



.dementia-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.dementia-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dementia-accent);
    display: block;
    margin-bottom: 15px;
}

.dementia-hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 400;
  margin-left: 0;
}

.dementia-hero-sub {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #100C08;
}

/* --- Generic Sections --- */
.dementia-section {
    padding: 80px 0;
}

.dementia-bg-light { background-color: var(--dementia-accent); }
.dementia-bg-dark { background-color: var(--dementia-primary); color: var(--dementia-white); }
.dementia-bg-dark h2 { color: var(--dementia-white); }

.dementia-section-header {
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dementia-divider {
    width: 60px;
    height: 3px;
    background-color: var(--dementia-gold);
    margin: 15px auto;
}

/* --- Two Column Layout --- */
.dementia-row {
    display: flex;
    gap: 50px;
    align-items: center;
}

.dementia-col-text { flex: 1; }
.dementia-col-image { flex: 1; }

.dementia-col-image img {
    width: 100%;
    border-radius: var(--dementia-radius);
    box-shadow: var(--dementia-shadow);
    display: block;
}

.dementia-lead {
    font-size: 1.25rem;
    color: var(--dementia-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

/* --- Features Grid --- */
.dementia-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dementia-feature-card {
    background: var(--dementia-white);
    padding: 30px;
    border-radius: var(--dementia-radius);
    box-shadow: var(--dementia-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.dementia-feature-card:hover { transform: translateY(-5px); }

.dementia-feature-card .dementia-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* --- 360 Approach Grid --- */
.dementia-approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 25px;
}

.dementia-approach-item {
    background: var(--dementia-white);
    border: 1px solid #eee;
    padding: 25px;
    border-radius: var(--dementia-radius);
    position: relative;
    padding-left: 70px; /* Space for number */
}

.dementia-step-num {
    position: absolute;
    left: 20px;
    top: 20px;
    font-family: var(--dementia-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(233, 30, 99, 0.15);
}

.dementia-approach-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.dementia-approach-item p {
    font-size: 0.95rem;
    color: var(--dementia-text-light);
}

/* --- tracking and what males different --- */

/* --- Spacing Helper --- */
.dementia-mb-large {
    margin-bottom: 80px; /* Separates the tracking part from the differentiators */
}

/* --- Difference Wrapper --- */
.dementia-difference-wrapper {
    background: #fff;
    padding: 50px 40px;
    border-radius: var(--dementia-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(42, 111, 117, 0.1);
}

/* --- 3-Column Grid for USPs --- */
.dementia-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* --- Icon Box Styling --- */
.dementia-icon-box {
    display: flex;
    align-items: center; /* Vertically centers text with checkmark */
    padding: 15px;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.dementia-icon-box:hover {
    background-color: var(--dementia-accent);
}

.dementia-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--dementia-primary);
    color: var(--dementia-white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0; /* Prevents icon from squishing on small screens */
}

.dementia-check-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.dementia-text {
    font-size: 1rem;
    color: var(--dementia-text-dark);
    font-weight: 500;
}


/****** Who we serve *******/

.dementia-who-serve {
    background-color: #ffffff;
    padding: 80px 0;
}

/* Grid layout for the cards */
.dementia-serve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.dementia-serve-card {
    position: relative;
    background: #fff;
    padding: 30px;
    border: 1px solid #f0f0f0; /* Very light border */
    border-radius: 8px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); /* Almost invisible shadow */
}

/* The elegant purple vertical line on the left */
.dementia-card-accent {
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background-color: #f48fb1;; /* Soft pink */
    border-radius: 0 4px 4px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dementia-serve-card p {
    margin: 0;
    padding-left: 15px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.4;
}

/* Interaction: The line grows when you hover over the card */
.dementia-serve-card:hover {
    border-color: #fce4ec;    /* Very light pink border on hover */
    background-color: #fffafb; /* Hint of pink in the background */
    transform: translateX(8px);
}

.dementia-serve-card:hover .dementia-card-accent {
    top: 0;           /* Line expands to full height on hover */
    bottom: 0;
    background-color: #f06292; /* Deeper pink on hover */
}

/* Center the 5th card if it's on its own row */
@media (min-width: 992px) {
    .dementia-serve-card:last-child:nth-child(3n-1) {
        grid-column-end: 3;
    }
}
/* --- Mobile Responsiveness for Grid --- */
@media (max-width: 768px) {
    .dementia-grid-3 {
        grid-template-columns: 1fr; /* Stack items on mobile */
        gap: 10px;
    }
    
    .dementia-difference-wrapper {
        padding: 30px 20px;
    }
}

/* --- Check Lists & Callouts --- */
.dementia-check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}
