/* Hero Rounded Within (components/hero/rounded_within.html) — copy bottom-left, quote card bottom-right */
.hero-rounded-inner.hero-rounded-within {
    align-items: flex-end;
    padding: 0;
    min-height: 480px;
}
.hero-rounded-inner.hero-rounded-within.hero-rounded-has-img {
    min-height: 620px;
}
.hero-rounded-inner.hero-rounded-within:not(.hero-rounded-has-img) {
    background-color: var(--color-primary);
}
.hero-rounded-inner.hero-rounded-within:not(.hero-rounded-has-img) .hero-rounded-overlay {
    display: none;
}
.hero-rounded-within .hero-rounded-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.35) 38%,
        rgba(0, 0, 0, 0.08) 65%,
        transparent 100%
    );
}
.hero-rounded-within-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 32px;
    padding: 40px 48px 44px;
    box-sizing: border-box;
}
.hero-rounded-within-copy {
    flex: 1 1 280px;
    max-width: min(58%, 720px);
    align-self: flex-end;
}
.hero-rounded-within-title {
    font-size: clamp(2.35rem, 4.8vw, 3.85rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px 0;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.hero-rounded-within-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.45;
    margin: 0;
    max-width: 40rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hero-rounded-within-quote-card-wrap {
    flex: 0 1 340px;
    width: 100%;
    max-width: 360px;
    align-self: flex-end;
    perspective: 1000px;
}
.hero-rounded-within-quote-card {
    display: block;
    width: 100%;
    background: #fff;
    border-radius: var(--border-radius, 16px);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    color: inherit;
    text-decoration: none;
    transform: rotateY(0deg) rotateX(0deg) translateZ(0);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    will-change: transform;
}
.hero-rounded-within-quote-card:hover {
    transform: rotateY(-10deg) rotateX(4deg) translateY(-6px) translateZ(12px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    color: inherit;
    text-decoration: none;
}
.hero-rounded-within-quote-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}
.hero-rounded-within-quote-img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    max-height: 200px;
}
.hero-rounded-within-quote-body {
    padding: 20px 22px 22px;
}
.hero-rounded-within-quote-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.hero-rounded-within-quote-subtitle {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 14px;
}
.hero-rounded-within-quote-subtitle p:last-child {
    margin-bottom: 0;
}
.hero-rounded-within-quote-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap 0.2s ease;
}
.hero-rounded-within-quote-card:hover .hero-rounded-within-quote-cta {
    gap: 12px;
}
.hero-rounded-within-quote-cta-arrow {
    font-size: 0.85rem;
}
@media (prefers-reduced-motion: reduce) {
    .hero-rounded-within-quote-card {
        transition: box-shadow 0.2s ease;
    }
    .hero-rounded-within-quote-card:hover {
        transform: translateY(-4px);
    }
}
@media (max-width: 991px) {
    .hero-rounded-within-layout {
        padding: 32px 28px 36px;
    }
    .hero-rounded-within-copy {
        max-width: 100%;
    }
    .hero-rounded-within-quote-card-wrap {
        max-width: 100%;
        flex: 1 1 100%;
    }
}
@media (max-width: 767px) {
    .hero-rounded-inner.hero-rounded-within {
        min-height: auto;
        padding: 0;
    }
    .hero-rounded-inner.hero-rounded-within.hero-rounded-has-img {
        min-height: 420px;
        background-color: var(--color-primary) !important;
        background-image: none !important;
    }
    .hero-rounded-inner.hero-rounded-within.hero-rounded-has-img .hero-rounded-overlay {
        display: none;
    }
    .hero-rounded-within-layout {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px 28px;
        gap: 20px;
    }
    .hero-rounded-within-copy {
        order: 1;
    }
    .hero-rounded-within-quote-card-wrap {
        order: 2;
        margin-left: auto;
        margin-right: auto;
        align-self: center;
        max-width: min(100%, 320px);
    }
    .hero-rounded-within-quote-body {
        text-align: center;
    }
    .hero-rounded-within-quote-cta {
        justify-content: center;
    }
    .hero-rounded-within-title {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
    }
    .hero-rounded-inner.hero-rounded-within:not(.hero-rounded-has-img) {
        background-color: var(--color-primary) !important;
        background-image: none !important;
    }
}
