* {
    box-sizing: border-box;
    font-family: "apertura", sans-serif;
}

:root {
    /* Blue Palette */
    --color-matisse-50: #f1f8fe;
    --color-matisse-100: #e3effb;
    --color-matisse-200: #c0dff7;
    --color-matisse-300: #88c6f1;
    --color-matisse-400: #49a8e7;
    --color-matisse-500: #218ed6;
    --color-matisse-600: #1370b6;
    --color-matisse-700: #1261a0;
    --color-matisse-800: #124c7a;
    --color-matisse-900: #144166;
    --color-matisse-950: #0e2943;

    /* Accent & Neutrals */
    --color-red: #e63946;
    --color-white: #ffffff;
    --color-off-white: #f5f8fa;
    --color-black: #111111;
}

h1, h2, h3, h4, h5 {
    font-family: "din-2014", sans-serif;
    margin: 0 0 16px 0;
    color: var(--color-matisse-900);
}

.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cs-single-wrapper {
    background-color: var(--color-white);
}

/* --- Typography Helpers --- */
.cs-text-body {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #444;
}

.cs-text-body p { margin-bottom: 24px; }

.cs-text-body-small {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* --- Reusable Pointy Polygon --- */
.cs-pointy-image-wrapper {
    width: 100%;
    display: block;
    overflow: hidden;
    /* Pointy Corners via CSS Polygon */
    -webkit-clip-path: polygon(60px 0, 100% 0, 100% calc(100% - 60px), calc(100% - 60px) 100%, 0 100%, 0 60px);
    clip-path: polygon(60px 0, 100% 0, 100% calc(100% - 60px), calc(100% - 60px) 100%, 0 100%, 0 60px);
}

.cs-pointy-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Hero Section --- */
.cs-single-hero {
    background-color: var(--color-matisse-800);
    padding: 80px 0 60px;
    text-align: left;
    color: var(--color-white);
}

.cs-single-title {
    color: var(--color-white);
    font-size: 3rem;
    line-height: 1.1;
    max-width: 900px;
    margin-bottom: 24px;
}

.cs-single-subtitle {
    font-size: 1.25rem;
    color: var(--color-matisse-100);
    max-width: 800px;
    margin-bottom: 32px;
}

.cs-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cs-tag {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    font-size: 0.875rem;
    color: var(--color-white);
    font-weight: 500;
}

/* --- Main Image Section --- */
.cs-main-image-section {
    margin-top: -40px; /* Pulls image up into the blue hero area */
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

/* --- Intro Section --- */
.cs-two-col-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.cs-intro-content h2 {
    font-size: 2.25rem;
}

/* Sidebar Boxes */
.cs-info-box {
    background-color: var(--color-matisse-50);
    padding: 32px;
    margin-bottom: 32px;
    display: flex;
    gap: 20px;
    /* Pointy Cuts */
    -webkit-clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
}

.cs-icon-wrapper {
    flex-shrink: 0;
    width: 80px; 
    height: 80px; 
    color: var(--color-red);
}

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

.cs-info-content h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* --- How We Did It (Steps) --- */
.cs-steps-section {
    padding: 80px 0;
    background-color: var(--color-off-white);
    margin: 80px 0;
}

.cs-steps-section h2 {
    font-size: 2.25rem;
    margin-bottom: 40px;
}

.cs-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cs-step-box {
    background: var(--color-white);
    padding: 40px 32px;
    /* Pointy cuts */
    -webkit-clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    border: 1px solid var(--color-matisse-100);
}

.cs-step-box .cs-icon-wrapper {
    width: 80px; 
    height: 80px; 
    margin-bottom: 24px;
    color: var(--color-matisse-500);
}

.cs-step-content h5 {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

/* --- Main Content (Gutenberg WP Body) --- */
.cs-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #444;
}

.cs-content-wrapper h2 {
    font-size: 2.25rem;
    margin: 60px 0 24px;
}

.cs-content-wrapper h5 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
    color: var(--color-matisse-700);
}

.cs-content-wrapper p {
    margin-bottom: 24px;
}

.cs-content-wrapper img {
    margin: 40px 0;
    width: 100%;
    height: auto;
    display: block;
    -webkit-clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
    clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
}

/* --- Bottom CTA Section --- */
.cs-cta-section {
    padding: 80px 0 100px;
}

.cs-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.cs-cta-card {
    padding: 48px;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    -webkit-clip-path: polygon(60px 0, 100% 0, 100% calc(100% - 60px), calc(100% - 60px) 100%, 0 100%, 0 60px);
    clip-path: polygon(60px 0, 100% 0, 100% calc(100% - 60px), calc(100% - 60px) 100%, 0 100%, 0 60px);
}

.cs-cta-card h2 { color: var(--color-white); }

.cs-cta-primary { background-color: var(--color-matisse-500); }
.cs-cta-secondary { background-color: var(--color-matisse-900); }

.cs-cta-title { font-size: 2rem; margin-bottom: 16px; }
.cs-cta-text { font-size: 1rem; line-height: 1.6; margin-bottom: 32px; opacity: 0.9; }

/* CTA Form */
.cs-cta-form {
    display: flex;
    width: 100%;
    max-width: 400px;
    background: var(--color-white);
    padding: 4px;
    margin-bottom: 16px;
}

.cs-cta-form input {
    flex-grow: 1;
    border: none;
    padding: 12px 16px;
    font-family: "apertura", sans-serif;
    outline: none;
}

.cs-cta-form button {
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cs-cta-form button:hover { background-color: #d12e3b; }

.cs-cta-link {
    color: var(--color-white);
    text-decoration: underline;
    font-size: 0.875rem;
}

.cs-btn {
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.cs-btn:hover { background-color: #d12e3b; }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .cs-two-col-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cs-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cs-single-hero {
        padding: 60px 0 40px;
    }
    .cs-single-title {
        font-size: 2rem;
    }
    .cs-main-image-section {
        margin-top: 24px; /* Pulls image away from tabs on mobile */
    }
    .cs-steps-grid,
    .cs-cta-grid {
        grid-template-columns: 1fr;
    }
    .cs-cta-card, .cs-pointy-image-wrapper {
        -webkit-clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
        clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    }
    .cs-cta-card { padding: 32px; }
}