/* ============================================================
   ChemSmog Homepage — corrections from audit pass 1
   ============================================================ */

/* ---------- HERO: ensure arrows are visible + bigger title impact ---------- */
.cs-hero {
    min-height: 640px !important;
}
.cs-hero__content {
    padding: 130px 64px !important;
}
.cs-hero__title {
    font-size: 56px !important;
    font-weight: 700 !important;
    color: var(--cs-white) !important;
    text-shadow: 0 2px 8px rgba(11,64,84,0.3);
}
.cs-hero__subtitle {
    color: var(--cs-white) !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    text-shadow: 0 1px 4px rgba(11,64,84,0.3);
}
.cs-hero__nav {
    bottom: 40px !important;
    right: 48px !important;
}
.cs-hero__nav button {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,0.25) !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(4px);
}

/* ---------- Categories: better card sizing ---------- */
.cs-categories {
    padding: 48px 0 80px !important;
}
.cs-cat-card {
    aspect-ratio: 7/13 !important;
    padding: 28px 14px 14px !important;
    justify-content: flex-start !important;
}
.cs-cat-card__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
}
.cs-cat-card__img {
    margin-top: auto !important;
    aspect-ratio: 1/1 !important;
    border-radius: 8px !important;
}

/* ---------- Featured products: tighten card layout ---------- */
.cs-product-card__body {
    padding: 14px 14px 16px !important;
    gap: 4px !important;
}
.cs-product-card__vendor {
    font-size: 11px !important;
    color: var(--cs-text-light) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cs-product-card__name {
    min-height: auto !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    color: var(--cs-navy) !important;
    margin: 4px 0 !important;
}
.cs-product-card__price {
    font-size: 18px !important;
    color: var(--cs-navy) !important;
}
.cs-product-card__per {
    font-size: 11px !important;
}
.cs-product-card__co2 {
    font-size: 11px !important;
    margin-top: 6px !important;
    color: var(--cs-green) !important;
}
.cs-product-card__ribbon {
    background: var(--cs-blue) !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
}

/* ---------- About: layout fix — image right, callout overlap ---------- */
.cs-about {
    position: relative;
    padding: 80px 0 !important;
}
.cs-about__container {
    position: relative;
    grid-template-columns: 1.1fr 1fr !important;
    gap: 56px !important;
    align-items: center !important;
}
.cs-about__text h2 {
    font-size: 48px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 24px !important;
    line-height: 1 !important;
    background: linear-gradient(90deg, var(--cs-green) 0%, var(--cs-teal) 45%, var(--cs-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    display: inline-block;
}
.cs-about__text p {
    color: var(--cs-text) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}
.cs-about__image {
    position: relative;
    aspect-ratio: 1/1 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: var(--cs-bg);
}
.cs-about__image img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay callout circle */
.cs-about__callout {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    width: 86%; max-width: 360px;
    background: var(--cs-teal);
    border-radius: 16px;
    padding: 32px 28px;
    color: var(--cs-white);
    z-index: 2;
    box-shadow: 0 12px 32px rgba(11,64,84,0.18);
}
.cs-about__callout h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--cs-white) !important;
    margin: 0 0 12px;
    text-transform: none;
}
.cs-about__callout p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--cs-white) !important;
    margin: 0 0 16px;
}
.cs-about__callout a {
    color: var(--cs-white);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 2px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
}
.cs-about__callout a:hover {
    color: var(--cs-white);
    border-color: var(--cs-white);
}

/* ---------- BEFORE YOU BUY: numbers teal vibrant ---------- */
body .cs-step-card__num {
    color: var(--cs-teal) !important;
    font-size: 64px !important;
    line-height: 1 !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}
body .cs-step-card__heading {
    color: var(--cs-blue) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}
body .cs-step-card__body {
    color: var(--cs-blue) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}
body .cs-step-card__icon {
    color: var(--cs-green) !important;
    margin-top: 24px !important;
}

/* ---------- News cards: fix text outline issue ---------- */
.cs-news-card__title {
    color: var(--cs-navy) !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
}
.cs-news-card__body {
    padding: 20px !important;
}

/* ---------- Testimonials: ensure visible ---------- */
.cs-testimonials__row img {
    max-height: 80px !important;
    opacity: 0.85 !important;
}

/* ---------- Section title alignment with Figma (lowercase friendly) ---------- */
.cs-section__title {
    text-transform: none !important;
    font-size: 36px !important;
    color: var(--cs-blue) !important;
    margin-bottom: 48px !important;
}

/* ---------- Latest videos: clean look ---------- */
.cs-video-card iframe { border-radius: 12px !important; }

/* ---------- Responsive hero ---------- */
@media (max-width: 991px) {
    .cs-hero__title { font-size: 34px !important; }
    .cs-about__container { grid-template-columns: 1fr !important; }
    .cs-about__callout { position: static; transform: none; width: 100%; margin-top: 24px; }
}

/* ============================================================
   Latest videos — 3 thumbnail cards + play overlay (Figma 475:*)
   ============================================================ */
.cs-videos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}
.cs-video-card {
    position: relative !important;
    display: block !important;
    aspect-ratio: 16/10 !important;
    background: var(--cs-navy) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    text-decoration: none !important;
}
.cs-video-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform .25s ease, opacity .25s ease;
}
.cs-video-card:hover img { transform: scale(1.04); opacity: 0.9; }
.cs-video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-white);
    pointer-events: none;
    transition: transform .15s ease;
}
.cs-video-card__play::before {
    content: '';
    position: absolute;
    width: 72px;
    height: 72px;
    background: rgba(0, 123, 169, 0.85);
    border-radius: 9999px;
    box-shadow: 0 6px 16px rgba(11,64,84,0.25);
}
.cs-video-card__play svg {
    position: relative;
    margin-left: 4px;
}
.cs-video-card:hover .cs-video-card__play { transform: scale(1.08); }

.cs-videos__cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================================================
   Latest news — 1 featured + 3 stacked (Figma 40:*)
   ============================================================ */
.cs-news {
    background: var(--cs-white) !important;
}
.cs-news__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: start;
}

/* Featured card (left) */
.cs-news-featured {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease;
}
.cs-news-featured:hover { transform: translateY(-2px); color: inherit; }
.cs-news-featured__img {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--cs-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.cs-news-featured__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cs-news-featured__body { padding: 0; }
.cs-news-featured__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--cs-navy);
    line-height: 1.3;
    margin: 8px 0 12px;
}

/* Stacked list (right) */
.cs-news-list {
    display: flex;
    flex-direction: column;
}
.cs-news-item {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid var(--cs-divider);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease;
}
.cs-news-item:first-child { padding-top: 0; }
.cs-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.cs-news-item:hover { transform: translateX(4px); color: inherit; }
.cs-news-item__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--cs-navy);
    line-height: 1.35;
    margin: 8px 0 12px;
}

/* Shared meta + read more */
.cs-news__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--cs-text-light);
}
.cs-news__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cs-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cs-news-featured:hover .cs-news__more,
.cs-news-item:hover .cs-news__more { color: var(--cs-teal); }

.cs-news__cta {
    text-align: center;
    margin-top: 48px;
}

@media (max-width: 991px) {
    .cs-news__layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   BEFORE YOU BUY — Figma icon size + typography
   ============================================================ */
img.cs-step-card__icon {
    width: 64px !important;
    height: auto !important;
    max-width: none !important;
    display: block;
    margin: 24px auto 0;
    color: var(--cs-green) !important;
}
.cs-step-card {
    padding: 40px 28px 32px !important;
    min-height: 460px !important;
}
.cs-step-card__num {
    font-size: 64px !important;
    line-height: 1 !important;
    color: var(--cs-teal) !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
}
.cs-step-card__heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--cs-blue) !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    letter-spacing: 0.3px !important;
    margin: 0 0 18px !important;
}
.cs-step-card__body {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: var(--cs-blue) !important;
    flex: 1 !important;
}
.cs-step-card__body strong { font-weight: 700; color: var(--cs-blue); }
.cs-before-buy__title {
    color: var(--cs-white) !important;
    font-size: 30px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    margin: 0 0 48px !important;
}
