/**
 * Component: CTA Banner
 * Architecture: Standalone (No external dependencies)
 */

/* 1. Outer Section - Uses Padding to remove white gaps between colored sections */
.tama-cta-section {
    padding: 60px 0; /* Padding instead of margin */
    width: 100%;
    display: block;
}

/* 2. Layout Container */
.tama-cta-container {
    width: 100%;
    max-width: 1521px; /* Bootstrap .container equivalent */
    margin: 0 auto;
    padding: 0 15px;
}

/* 3. The Rounded Box */
.tama-cta-box {
    position: relative;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1521 / 660; /* Figma banner: 1521 x 660 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* 4. Background Image Layers */
.tama-cta-bg-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.tama-cta-bg-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.6);
}

/* 5. Foreground Content */
.tama-cta-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tama-cta-icon {
    max-width: 80px;
    margin-bottom: 20px;
}

/* Typography */
.tama-cta-subtitle {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tama-cta-title {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    max-width: 800px;
}

/* 6. Standalone CTA Button */
.tama-cta-button {
    background-color:#667f06;
    color: #fff;
    font-family: "Titillium", "sans-serif";
    width:max-content;
    justify-content:center;
    border-radius:12px 12px 12px 2px;
    font-weight:600;
    padding:12px 32px 12px 32px;
    cursor:pointer;
    font-size:18px;
    text-align:center;
    transition:all 0.3s ease;
    max-width:100%;
}

.tama-cta-button:hover {
    background-color:#1c2d00; /* Darker Green on hover */
    color:#ffffff;
    text-decoration:none;
}

[dir="rtl"] .tama-cta-button {
    border-radius: 12px 12px 2px 12px;
}

/* 7. Layout: FULL - edge to edge, text at the start of the line (left in LTR, right in RTL) */
.tama-cta-section--full {
    padding: 0;
}

.tama-cta-section--full .tama-cta-container {
    max-width: none;
    padding: 0;
}

.tama-cta-section--full .tama-cta-box {
    border-radius: 0;
    aspect-ratio: 1920 / 740;
    min-height: 420px;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 0;
    text-align: start;
}

.tama-cta-section--full .tama-cta-bg-img {
    filter: none;
}

/* Soft shade on the text side (flips with the direction) */
.tama-cta-section--full .tama-cta-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 75%);
    pointer-events: none;
}

[dir="rtl"] .tama-cta-section--full .tama-cta-box::after {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 75%);
}

.tama-cta-section--full .tama-cta-content {
    align-items: flex-start;
    width: 100%;
    max-width: 1521px;
    margin-inline: auto;
    padding-inline: 15px;
}

.tama-cta-section--full .tama-cta-icon {
    max-width: 126px;
}

.tama-cta-section--full .tama-cta-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    color: #c3d82e;
}

.tama-cta-section--full .tama-cta-title {
    font-size: clamp(36px, 3.9vw, 75px);
    line-height: 1.05;
    max-width: 1100px;
    margin-bottom: 40px;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .tama-cta-section {
        padding: 40px 0;
    }
    .tama-cta-box {
        aspect-ratio: auto;
        min-height: 350px;
    }
    .tama-cta-title {
        font-size: 28px;
    }
    .tama-cta-section--full {
        padding: 0;
    }
    .tama-cta-section--full .tama-cta-box {
        aspect-ratio: auto;
        min-height: 420px;
        padding: 48px 0;
    }
    .tama-cta-section--full .tama-cta-icon {
        max-width: 80px;
    }
    .tama-cta-section--full .tama-cta-subtitle {
        font-size: 18px;
        margin-bottom: 14px;
    }
    .tama-cta-section--full .tama-cta-title {
        font-size: 34px;
        margin-bottom: 28px;
    }
}