/* FAM Hero Widget */

/* Layout wrapper */
.fam-hero {
    width: 100%;
    padding: 60px 0;
}

/* default CSS değişkenleri */
.fam-hero {
    --fam-shape-main: #ffad3b;
    --fam-shape-secondary: #ff7e1b;
}

.fam-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
    padding: 0 20px;
}

/* Left side with image and shapes */
.fam-hero-left {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
}

.fam-hero-image-circle {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    z-index: 2;
}

.fam-hero-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image shape variants */
.fam-hero-image--round {
    border-radius: 50%;
}

.fam-hero-image--oval {
    border-radius: 40px;
}

.fam-hero-image--rect {
    border-radius: 20px;
}

/* Background big rounded square */
.fam-hero-shape-square {
    position: absolute;
    left: 10%;
    top: -10%;
    width: 70%;
    height: 80%;
    border-radius: 32px;
    background: linear-gradient(180deg, var(--fam-shape-main) 0%, var(--fam-shape-secondary) 100%);
    opacity: 0.9;
    z-index: 0;
}

/* Bottom card shape */
.fam-hero-card-bottom {
    position: absolute;
    bottom: -12%;
    right: 0;
    width: 55%;
    height: 34%;
    border-radius: 26px;
    background: linear-gradient(180deg, var(--fam-shape-main) 0%, var(--fam-shape-secondary) 100%);
    z-index: 1;
}

/* Dots */
.fam-hero-shape-dots {
    position: absolute;
    left: -10px;
    top: 20%;
    width: 60px;
    height: 160px;
    background-image: radial-gradient(circle, rgba(0,0,0,0.12) 2px, transparent 2px);
    background-size: 10px 10px;
    z-index: 0;
}

/* Right side content */
.fam-hero-right {
    flex: 1 1 50%;
    min-width: 0;
}

/* Badge */
.fam-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: #ffe6bf;
    color: #f2992e;
    font-size: 13px;
    margin-bottom: 18px;
}

.fam-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Title & text */
.fam-hero-title {
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #1f2933;
}

.fam-hero-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 20px;
}

/* List */
.fam-hero-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.fam-hero-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #111827;
}

.fam-hero-list-icon {
    color: #f2992e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fam-hero-list-icon i {
    font-size: 16px;
}

/* Button */
.fam-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1.5px solid #f2992e;
    background-color: #ffffff;
    color: #f2992e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fam-hero-button-icon {
    font-size: 18px;
    line-height: 1;
}

.fam-hero-button:hover {
    /* background-color ve color Elementor stil kontrollerindən gələcək */
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

/* Responsive */
@media (min-width: 900px) {
    .fam-hero-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .fam-hero-inner {
        flex-direction: column;
        text-align: left;
    }
    .fam-hero-left,
    .fam-hero-right {
        flex: 1 1 100%;
    }
    .fam-hero {
        padding: 40px 0;
    }
}

/* Mobilde shapes kapat seçeneği */
@media (max-width: 899px) {
    .fam-hero.fam-hero--no-shapes-mobile .fam-hero-shape-square,
    .fam-hero.fam-hero--no-shapes-mobile .fam-hero-card-bottom,
    .fam-hero.fam-hero--no-shapes-mobile .fam-hero-shape-dots {
        display: none;
    }
}

@media (max-width: 600px) {
    .fam-hero-inner {
        padding: 0 16px;
    }
    .fam-hero-title {
        font-size: 28px;
    }
    .fam-hero-text {
        font-size: 14px;
    }
}
