/* =========================================================
   CONTAINER POOLS — page-specific styles
   იყენებს base.css-ის ცვლადებს: --navy, --blue, --blue-dark,
   --blue-light, --text-dark, --text-gray, --border, --radius, --shadow
   ========================================================= */

/* ---------- Hero ---------- */
.cp-hero {
    position: relative;
    background: var(--navy); /* fallback, თუ ფოტო ვერ ჩაიტვირთა */
    color: var(--white);
    padding: 90px 0;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.cp-hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
/* გრადიენტი ცალკე ფენად, ფოტოსა და ტექსტს შორის — იგივე პატერნი
   რაც home.css-ის .hero-ზე გავასწორეთ */
.cp-hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(10,31,68,0.55) 0%, rgba(15,63,168,0.35) 120%);
    z-index: 1;
}
.cp-hero-inner { position: relative; z-index: 2; }
.cp-hero-tag { color: #8fb4ff; }
.cp-hero-inner h1 {
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.cp-hero-inner p {
    color: #cdd8ee;
    max-width: 620px;
    margin: 0 auto 30px;
    font-size: 17px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.cp-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Problem grid ---------- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 44px;
}
.problem-item { display: flex; flex-direction: column; gap: 12px; }
.problem-num {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 800; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
}
.problem-item h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.problem-item p { font-size: 14px; color: var(--text-gray); }

.problem-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ---------- Solution / features ---------- */
.cp-solution { background: var(--bg-light); }
.cp-solution-title { margin-bottom: 30px; }

.feature-list { display: flex; flex-direction: column; gap: 30px; }
.feature-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.feature-row img {
    width: 100%; height: 140px;
    object-fit: cover;
    border-radius: 8px;
}
.feature-row h3 { color: var(--navy); font-size: 19px; margin-bottom: 8px; }
.feature-row p { color: var(--text-gray); font-size: 14.5px; }

/* ---------- Gallery ---------- */
.cp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.cp-gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s ease;
}
.cp-gallery-grid img:hover { transform: translateY(-4px); }

/* ---------- Timeline ---------- */
.cp-timeline-section { background: var(--bg-light); }
.cp-timeline { margin-top: 40px; display: flex; flex-direction: column; gap: 0; }
.cp-timeline-step {
    display: flex; align-items: flex-start; gap: 24px;
    padding-bottom: 40px;
    position: relative;
}
.cp-timeline-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 27px; top: 56px; bottom: 0;
    width: 2px;
    background: var(--border);
    background-image: linear-gradient(var(--border) 60%, transparent 40%);
    background-size: 2px 10px;
}
.cp-timeline-dot {
    flex-shrink: 0;
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12.5px;
    color: var(--white);
    text-align: center;
    line-height: 1.2;
    padding: 4px;
}
.cp-timeline-dot--dark { background: var(--navy); }
.cp-timeline-dot--light { background: var(--blue); }
.cp-timeline-step h3 { color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.cp-timeline-step p { color: var(--text-gray); font-size: 14.5px; }

/* ---------- Final CTA ---------- */
.cp-final-cta {
    background: var(--navy);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}
.cp-final-cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cp-final-cta p { color: #cdd8ee; margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .problem-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr; }
    .feature-row img { height: 180px; }
}
@media (max-width: 600px) {
    .problem-grid { grid-template-columns: 1fr; }
    .cp-gallery-grid { grid-template-columns: 1fr; }
    .cp-hero { padding: 60px 0; }
}