/* CSS for DPS Consulting Landing Page */

/* --- Import Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@700&display=swap');

/* --- Variables --- */
:root {
    --bg-main: #fcfcfc; /* Warm off-white */
    --bg-alt: #f1f5f9; /* Light blue-grey */
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-main: #334155; /* Slate grey */
    --text-navy: #1e3a8a; /* Strong blue */
    --accent: #3b82f6; /* Bright blue */
    --accent-light: #dbeafe; /* Very light blue */
    --accent-hover: #2563eb;
    --grey-light: #f1f5f9;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --container-width: 1100px;
    --container-narrow: 800px;
    --shadow-soft: 0 10px 25px rgba(30, 58, 138, 0.05);
    --shadow-strong: 0 20px 40px rgba(30, 58, 138, 0.1);
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
    color: var(--text-navy);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

h2.text-center::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

h3 {
    font-size: 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
    color: #4a5568;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.narrow {
    max-width: var(--container-narrow);
}

.section-padding {
    padding: 2.5rem 0;
}

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

.bg-light-grey {
    background-color: #f8fafc;
}

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

/* --- Header --- */
header {
    padding: 2rem 0;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-navy);
    letter-spacing: 1px;
}
.logo-image img {
    max-height: 100px;
    width: auto;
    display: block;
    /*margin-bottom: 4rem;*/
    padding-bottom: 30px;
}

/* --- Hero --- */
.hero {
    padding: 6.5rem 0 3.5rem;
    background: radial-gradient(circle at top right, #eef2ff 0%, #fcfcfc 50%);
    overflow: hidden;
}

.hero-title {
    margin-bottom: 2rem;
    max-width: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.lead {
    font-size: 1.35rem;
    font-weight: 400;
    color: #2d3748;
}

.cta-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 1rem;
    font-style: italic;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--text-navy);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 2px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.15);
}

.btn-large {
    padding: 1.3rem 3rem;
    font-size: 1rem;
}

/* --- Hero Visual --- */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    padding: 0;
    background: white;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-main-image {
    transform: scale(1.02);
}

/* --- Problem Section --- */
.side-by-side {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.side-content {
    flex: 1.2;
}

.side-image {
    flex: 0.8;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.side-image:hover {
    transform: translateY(-5px);
}

.rounded-img {
    width: 100%;
    border-radius: 4px;
    transition: transform 0.5s ease;
}

.side-image:hover .rounded-img {
    transform: scale(1.02);
}

.shadow {
    box-shadow: var(--shadow-strong);
}

.subtitle {
    font-weight: 500;
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.problem-list {
    list-style-type: none;
    margin: 1rem 0;
}

.problem-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: #4a5568;
}

.problem-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.8;
}

/* --- What We Do (Cards) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.card:nth-child(3) {
    grid-column: 1 / span 2;
    justify-self: center;
    max-width: 500px;
}

.card {
    background: white;
    padding: 0;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--grey-light);
}

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

.card h3, .card p, .card h4, .card ul {
    padding: 0 2.5rem;
}

.card h3 {
    margin-top: 2.5rem;
    font-family: var(--font-heading);
}

.card p {
    font-size: 0.95rem;
}

.card ul {
    margin-bottom: 3rem;
    list-style: none;
    padding-left: 2.5rem;
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 25, 47, 0.2) 100%);
}

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

.card:hover .card-image img {
    transform: scale(1.1);
}

.card h4 {
    margin-top: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 600;
}

.card li {
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* --- AI Positioning --- */
.ai-positioning {
    background: var(--text-navy) url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
    position: relative;
    color: white;
}

.ai-positioning::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.9);
    z-index: 1;
}

.ai-positioning .container {
    position: relative;
    z-index: 2;
}

.ai-positioning h2 {
    color: white;
}

.ai-positioning p {
    color: #a0aec0;
}

.highlight {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-family: var(--font-heading);
}

/* --- Examples (Scenario Cards) --- */
.scenario-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.scenario-card {
    flex: 1 1 300px;
    max-width: calc(33.333% - 1.34rem);
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-left-color: var(--accent-hover);
}

@media (max-width: 1024px) {
    .scenario-card {
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .scenario-card {
        max-width: 100%;
    }
}

.quote {
    font-weight: 600;
    font-style: italic;
    color: var(--text-navy);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

/* --- Stepper (formerly Timeline) --- */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.timeline::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--accent-light);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--accent);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    box-shadow: 0 0 0 8px var(--bg-main);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-number {
    background: var(--accent);
    color: white;
    transform: translateY(-5px);
}

.timeline-item h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-navy);
}

.timeline-content {
    flex: 1;
}

.timeline-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .timeline::after {
        display: none;
    }
    .timeline-item {
        text-align: left;
        padding: 0;
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .timeline-number {
        margin: 0;
        flex-shrink: 0;
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    .timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Philosophy --- */
.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    flex: 1 1 250px;
    max-width: 320px;
    text-align: center;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--grey-light);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent);
}

.value-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.25rem;
    color: var(--accent);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-item strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-navy);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.value-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- Final CTA --- */
.final-cta {
    background: var(--bg-alt);
    background-image: radial-gradient(var(--accent) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    position: relative;
}

.final-cta .container {
    background: white;
    padding: 3rem 3rem;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.final-cta .container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

/* --- Footer --- */
.footer {
    background: #050c16;
    color: white;
    padding: 3rem 0 2rem;
}

.footer h2, .footer h3, .footer p, .footer a {
    color: #a0aec0;
}

.footer a:hover {
    color: white;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.logo-small {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-links a {
    margin-left: 3rem;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.pulse-node {
    animation: pulse-blue 3s infinite;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .hero-grid { gap: 2rem; }
    .timeline { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .timeline::after { display: none; }
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .hero-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3rem;
        font-size: 2.75rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        max-width: 500px;
        margin: 0 auto 3rem;
    }

    .side-by-side {
        flex-direction: column;
        gap: 4rem;
    }

    .overlay-visual {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        margin-top: 2rem;
        transform: none;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 2.5rem 0; }
    .timeline { grid-template-columns: 1fr; }
    
    .footer-grid {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-brand { margin: 0 auto; }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 0 auto;
    }

    .footer-links a { margin-left: 0; }
}


/* --- Offer hierarchy additions --- */
.section-intro {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

.primary-offers .card { position: relative; }
.offer-label {
    display: inline-block;
    margin: 2rem 2.5rem 0;
    padding: 0.35rem 0.7rem;
    background: var(--accent-light);
    color: var(--text-navy);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
}
.offer-card h3 { margin-top: 1rem; }
.supporting-capability {
    max-width: 800px;
    margin: 2.5rem auto 0;
    padding: 2rem 2.25rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
}
.supporting-capability h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.supporting-capability p { margin-bottom: 0; }

.mid-cta {
    padding: 3rem 0;
    background: #0f255f;
}
.mid-cta h2, .mid-cta p { color: white; }
.mid-cta h2 { font-size: 2rem; }
.mid-cta p { color: #d6def0; max-width: 700px; margin-left: auto; margin-right: auto; }
.mid-cta .btn { background: white; color: var(--text-navy); }
.mid-cta .btn:hover { background: var(--accent-light); color: var(--text-navy); }

.before-after-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.before-after-card {
    background: white;
    border: 1px solid var(--grey-light);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}
.before-after-card h3 { margin: 0.6rem 0 1.5rem; font-size: 1.45rem; }
.example-type {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.before-after-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.before-after-row > div {
    padding: 1.25rem;
    background: #f8fafc;
}
.before-after-row strong {
    display: block;
    color: var(--text-navy);
    margin-bottom: 0.5rem;
}
.before-after-row p { margin-bottom: 0; font-size: 0.95rem; }

.trust { background: white; }
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.trust-panel {
    padding: 2.5rem;
    background: var(--bg-alt);
    border-top: 4px solid var(--accent);
}
.trust-panel h2 { font-size: 1.65rem; }
.trust-panel p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
    .before-after-row, .trust-grid { grid-template-columns: 1fr; }
}

/* --- Privacy Page --- */

.privacy-header {
    position: relative;
    padding: 2rem 0 0;
}

.privacy-page {
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.privacy-page h1 {
    margin-bottom: 1.5rem;
}

.privacy-page h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.privacy-page h2::after {
    display: none;
}

.privacy-back {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.privacy-list {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #4a5568;
}

.privacy-list li {
    margin-bottom: 0.5rem;
}

.analytics-opt-out {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
