/* ==========================================================================
   CTSPL content pages: Our Promise & Sustainability
   (page-our-promise.php / page-sustainability.php). Uses the --ett-* tokens
   from ettihad-custom.css.
   ========================================================================== */

.cts-page {
    font-family: var(--ett-font-main);
    color: var(--ett-slate-700);
    background: #fff;
    overflow-x: hidden;
}

.cts-page *,
.cts-page *::before,
.cts-page *::after { box-sizing: border-box; }

.cts-page img { max-width: 100%; display: block; }

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

/* ---------- Hero ---------- */
.cts-hero {
    position: relative;
    padding: 110px 24px 100px;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.cts-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(6, 13, 23, .92) 0%, rgba(10, 22, 40, .80) 50%, rgba(76, 189, 161, .55) 100%);
}

.cts-hero-green::before {
    background: linear-gradient(135deg, rgba(6, 13, 23, .90) 0%, rgba(8, 36, 32, .72) 55%, rgba(58, 168, 141, .55) 100%);
}

.cts-hero-inner { max-width: 820px; margin: 0 auto; }

.cts-breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ett-slate-300);
    margin-bottom: 20px;
}

.cts-breadcrumb a { color: var(--ett-slate-300); text-decoration: none; }
.cts-breadcrumb a:hover { color: #fff; }
.cts-crumb-current { color: var(--ett-primary); font-weight: 600; }

.cts-pill {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 18px;
    border-radius: var(--ett-radius-full);
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #fff;
}

.cts-hero-title {
    font-family: var(--ett-font-heading);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff !important;
    margin: 0 0 18px;
}

.cts-hero-text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
    margin: 0 auto;
    max-width: 680px;
}

/* ---------- Sections ---------- */
.cts-section { padding: 96px 0; }
.cts-section-alt { background: var(--ett-slate-50); }

.cts-section-head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.cts-section-head p { font-size: 17px; line-height: 1.75; margin: 0; }

.cts-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ett-ink);
}

.cts-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--ett-secondary);
}

.cts-h2 {
    font-family: var(--ett-font-heading);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ett-navy-900) !important;
    margin: 0 0 20px;
}

.cts-page p { line-height: 1.8; }
.cts-split-body p,
.cts-feature-body p { font-size: 16px; margin: 0 0 16px; }
.cts-lead { font-size: 18px !important; color: var(--ett-slate-600); }

/* ---------- Split (image collage + text) ---------- */
.cts-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.cts-collage {
    position: relative;
    padding: 0 48px 64px 0;
}

.cts-collage-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--ett-radius-lg);
    box-shadow: var(--ett-shadow-hover);
}

.cts-collage-sub {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--ett-radius-lg);
    border: 6px solid #fff;
    box-shadow: var(--ett-shadow-hover);
}

.cts-collage-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    padding: 18px 22px;
    border-radius: var(--ett-radius-md);
    background: var(--ett-primary);
    color: #fff;
    box-shadow: var(--ett-shadow-primary);
    text-align: center;
}

.cts-collage-badge strong {
    font-family: var(--ett-font-heading);
    font-size: 32px;
    line-height: 1.1;
}

.cts-collage-badge span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .85;
}

.cts-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.cts-checks li {
    position: relative;
    padding-left: 30px;
    font-weight: 600;
    color: var(--ett-navy-800);
}

.cts-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ett-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Pillars ---------- */
.cts-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cts-pillar {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--ett-radius-lg);
    background: #fff;
    box-shadow: var(--ett-shadow-card);
    transition: var(--ett-transition);
}

.cts-pillar:hover {
    transform: translateY(-6px);
    box-shadow: var(--ett-shadow-hover);
}

.cts-pillar-media { position: relative; overflow: hidden; }

.cts-pillar-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .6s ease;
}

.cts-pillar:hover .cts-pillar-media img { transform: scale(1.06); }

.cts-pillar-num {
    position: absolute;
    left: 20px;
    bottom: -22px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 4px solid #fff;
    background: var(--ett-primary);
    color: #fff;
    font-family: var(--ett-font-heading);
    font-weight: 700;
}

.cts-pillar-media { overflow: visible; }
.cts-pillar-media img { border-radius: var(--ett-radius-lg) var(--ett-radius-lg) 0 0; }

.cts-pillar-body { padding: 40px 28px 30px; }

.cts-pillar-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ett-secondary-dark);
}

.cts-pillar-body h3 {
    font-family: var(--ett-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--ett-navy-900) !important;
    margin: 6px 0 14px;
}

.cts-pillar-body p { font-size: 15px; margin: 0 0 12px; }

/* ---------- CTA band ---------- */
.cts-cta {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--ett-navy-900) 0%, var(--ett-primary-dark) 100%);
    color: #fff;
}

.cts-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cts-cta h2 {
    font-family: var(--ett-font-heading);
    font-size: 30px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 8px;
}

.cts-cta p { margin: 0; color: rgba(255, 255, 255, .8); }

.cts-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.cts-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--ett-radius-full);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: var(--ett-transition);
    white-space: nowrap;
}

.cts-btn-primary {
    background: var(--ett-secondary);
    color: #fff !important;
    box-shadow: var(--ett-shadow-secondary);
}

.cts-btn-primary:hover { background: var(--ett-secondary-dark); transform: translateY(-2px); }

.cts-btn-ghost {
    border: 2px solid rgba(255, 255, 255, .6);
    color: #fff !important;
}

.cts-btn-ghost:hover { background: #fff; color: var(--ett-navy-900) !important; }

/* ---------- Goals band + timeline ---------- */
.cts-goals-band {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    isolation: isolate;
}

.cts-goals-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 13, 23, .93) 0%, rgba(10, 22, 40, .88) 100%);
}

.cts-on-dark .cts-h2 { color: #fff !important; }
.cts-on-dark p { color: rgba(255, 255, 255, .8); }
.cts-on-dark .cts-eyebrow { color: var(--ett-primary); }

.cts-goals-title {
    font-family: var(--ett-font-heading);
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #fff !important;
    margin: 0 0 40px;
}

.cts-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cts-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--ett-secondary), var(--ett-primary));
    opacity: .6;
}

.cts-tl-item {
    position: relative;
    padding: 0;
}

.cts-tl-year {
    position: relative;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    border: 3px solid var(--ett-secondary);
    background: var(--ett-navy-900);
    color: #fff;
    font-family: var(--ett-font-heading);
    font-weight: 700;
    font-size: 17px;
}

.cts-tl-item ul {
    list-style: none;
    margin: 0;
    padding: 22px;
    height: calc(100% - 90px);
    border-radius: var(--ett-radius-md);
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(4px);
}

.cts-tl-item li {
    position: relative;
    padding-left: 20px;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .88);
}

.cts-tl-item li + li { margin-top: 12px; }

.cts-tl-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ett-secondary);
}

/* ---------- Feature rows ---------- */
.cts-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.cts-feature-reverse .cts-feature-media { order: 2; }

.cts-feature-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--ett-radius-lg);
    box-shadow: var(--ett-shadow-hover);
}

.cts-icon-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.cts-icon-list li {
    position: relative;
    padding: 14px 16px 14px 52px;
    margin-bottom: 12px;
    border-radius: var(--ett-radius-md);
    background: #fff;
    border: 1px solid var(--ett-slate-200);
    font-size: 15px;
    line-height: 1.65;
}

.cts-section-alt .cts-icon-list li { background: #fff; }
.cts-section:not(.cts-section-alt) .cts-icon-list li { background: var(--ett-slate-50); }

.cts-icon-list li strong { color: var(--ett-navy-900); }

.cts-icon-list li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 16px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ett-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- What's next ---------- */
.cts-next {
    position: relative;
    padding: 110px 0;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.cts-next::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(6, 13, 23, .88) 0%, rgba(8, 36, 32, .75) 100%);
}

.cts-next-inner { max-width: 820px; }

.cts-next h2 {
    font-family: var(--ett-font-heading);
    font-size: 40px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 18px;
}

.cts-next p {
    font-size: 18px;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 32px;
}

.cts-next .cts-cta-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .cts-pillars { grid-template-columns: 1fr 1fr; }
    .cts-timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .cts-timeline::before { display: none; }
    .cts-split,
    .cts-feature { gap: 48px; }
}

@media (max-width: 860px) {
    .cts-split,
    .cts-feature { grid-template-columns: 1fr; }
    .cts-feature-reverse .cts-feature-media { order: 0; }
    .cts-cta-inner { flex-direction: column; text-align: center; }
    .cts-cta-actions { justify-content: center; }
    .cts-goals-band { background-attachment: scroll; }
}

@media (max-width: 640px) {
    .cts-hero { padding: 80px 16px 70px; }
    .cts-hero-title { font-size: 36px; }
    .cts-hero-text { font-size: 16px; }
    .cts-section { padding: 64px 0; }
    .cts-container { padding: 0 16px; }
    .cts-h2 { font-size: 28px; }
    .cts-pillars,
    .cts-timeline,
    .cts-checks { grid-template-columns: 1fr; }
    .cts-collage { padding: 0 24px 48px 0; }
    .cts-next { padding: 80px 0; }
    .cts-next h2 { font-size: 30px; }
    .cts-tl-item ul { height: auto; }
}
