/* =============================================
   CANVASLY HERO WIDGET — hero.css
   ============================================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500&display=swap');

/* ---- RESET / BASE ---- */
.ch-hero *,
.ch-hero *::before,
.ch-hero *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- HERO WRAPPER ---- */
.ch-hero {
    position: relative;
    min-height: 100vh;
    background-color: #0d0d0d;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 60px 60px;
    font-family: 'DM Sans', sans-serif;
}

/* ---- NOISE OVERLAY ---- */
.ch-noise-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ---- DECORATIVE CIRCLE ---- */
.ch-circle {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,240,96,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---- INNER GRID ---- */
.ch-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* =============================================
   LEFT: CONTENT
   ============================================= */

.ch-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Badge */
.ch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c8f060;
    color: #0d0d0d;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px 6px 10px;
    border-radius: 100px;
    width: fit-content;
}

.ch-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0d0d0d;
    flex-shrink: 0;
}

/* Heading */
.ch-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(42px, 5.5vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    color: #f5f0e8;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ch-line {
    display: block;
    overflow: hidden;
}

.ch-line-italic {
    font-style: italic;
    color: #f5f0e8;
}

/* Subtext */
.ch-subtext {
    font-size: 16px;
    line-height: 1.7;
    color: #a09d96;
    max-width: 420px;
    font-weight: 300;
}

/* CTA Buttons */
.ch-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ch-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c8f060;
    color: #0d0d0d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    letter-spacing: 0.02em;
}

.ch-cta-primary svg {
    transition: transform 0.3s ease;
}

.ch-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(200, 240, 96, 0.28);
    background: #d4f570;
}

.ch-cta-primary:hover svg {
    transform: translateX(3px);
}

.ch-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f5f0e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid rgba(245, 240, 232, 0.3);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.ch-cta-secondary:hover {
    color: #c8f060;
    border-color: #c8f060;
}

/* Stats */
.ch-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 8px;
}

.ch-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ch-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #c8f060;
    line-height: 1;
}

.ch-stat-label {
    font-size: 12px;
    font-weight: 400;
    color: #a09d96;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ch-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(245, 240, 232, 0.15);
}

/* =============================================
   RIGHT: IMAGES
   ============================================= */

.ch-images {
    position: relative;
    height: 580px;
}

/* Base image wrapper */
.ch-img-wrap {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
}

.ch-img-wrap:hover {
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.ch-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.ch-img-wrap:hover img {
    transform: scale(1.06);
}

/* Image tag overlay */
.ch-img-tag {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(13, 13, 13, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    transform: translateY(4px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ch-img-wrap:hover .ch-img-tag {
    opacity: 1;
    transform: translateY(0);
}

.ch-img-tag span {
    font-size: 14px;
    font-weight: 700;
    color: #c8f060;
    font-family: 'Playfair Display', serif;
}

.ch-img-tag small {
    font-size: 11px;
    color: #a09d96;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Image positions — mimic Canvasly stagger */
.ch-img-1 {
    width: 52%;
    aspect-ratio: 3/4;
    top: 0;
    left: 0;
    z-index: 3;
    border-radius: 100px 20px 20px 20px;
}

.ch-img-2 {
    width: 46%;
    aspect-ratio: 3/4;
    top: 60px;
    right: 0;
    z-index: 2;
    border-radius: 20px 100px 20px 20px;
}

.ch-img-3 {
    width: 36%;
    aspect-ratio: 1/1;
    bottom: 0;
    left: 26%;
    z-index: 4;
    border-radius: 20px;
}

/* Floating animation */
.ch-img-1 { animation: ch-float 6s ease-in-out infinite; }
.ch-img-2 { animation: ch-float 6s ease-in-out infinite 1.5s; }
.ch-img-3 { animation: ch-float 6s ease-in-out infinite 3s; }

@keyframes ch-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

/* =============================================
   SCROLL INDICATOR
   ============================================= */

.ch-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.ch-scroll-line {
    display: block;
    width: 40px;
    height: 1px;
    background: #a09d96;
    position: relative;
    overflow: hidden;
}

.ch-scroll-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: #c8f060;
    animation: ch-scroll-sweep 2.2s ease-in-out infinite;
}

@keyframes ch-scroll-sweep {
    0%   { left: -100%; }
    50%  { left: 0; }
    100% { left: 100%; }
}

.ch-scroll-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #a09d96;
}

/* =============================================
   ENTRANCE ANIMATIONS
   ============================================= */

.ch-anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ch-anim.ch-visible {
    opacity: 1;
    transform: translateY(0);
}

.ch-img-anim {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.ch-img-anim.ch-img-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
    .ch-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .ch-images {
        height: 400px;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .ch-hero {
        padding: 90px 24px 60px;
    }
    .ch-heading {
        font-size: clamp(36px, 10vw, 60px);
    }
    .ch-images {
        height: 320px;
    }
    .ch-img-1 { width: 50%; }
    .ch-img-2 { width: 44%; }
    .ch-img-3 { width: 34%; }
    .ch-scroll-hint {
        left: 24px;
    }
}

@media (max-width: 480px) {
    .ch-images { height: 260px; }
    .ch-actions { flex-direction: column; align-items: flex-start; }
    .ch-stats { gap: 16px; }
    .ch-stat-number { font-size: 22px; }
}
