/* ===================================================
   HOAI — Components CSS
   Reusable UI components used across all pages
   =================================================== */

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 34px;
    border-radius: 5px;
    font-weight: 700;
    font-size: .9rem;
    transition: var(--transition)
}

.btn-primary:hover {
    background: var(--secondary-mid);
    transform: translateY(-2px)
}

.btn-hero {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 14px 42px;
    font-size: .95rem;
    font-weight: 700;
    border-radius: 5px;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(230, 0, 0, .35)
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-3px)
}

.btn-yellow {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 13px 40px;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 5px;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(230, 0, 0, .3)
}

.btn-yellow:hover {
    background: var(--primary-dark);
    transform: translateY(-2px)
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 36px;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 5px;
    transition: var(--transition);
    margin-left: 14px
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white)
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 14px;
    font-size: .97rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font)
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px)
}

.btn-white {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 13px 34px;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 6px;
    transition: var(--transition)
}

.btn-white:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px)
}

/* ===== DIVIDER ===== */
.divider {
    width: 56px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 26px
}

.divider.center {
    margin-left: auto;
    margin-right: auto
}

/* ===== SECTION LABELS & TITLES ===== */
.section-label {
    display: inline-block;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    padding: 5px 14px;
    background: rgba(230, 0, 0, .08);
    border: 1px solid rgba(230, 0, 0, .25);
    border-radius: 3px;
    margin-bottom: 14px
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 14px
}

.section-title.white {
    color: var(--white)
}

.section-title.center {
    text-align: center
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 40px
}

.section-subtitle.center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto
}

.section-subtitle.white-sub {
    color: rgba(255, 255, 255, .68)
}

/* ===== CONTACT FORM ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start
}

.contact-info h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px
}

.contact-info p {
    color: rgba(255, 255, 255, .65);
    line-height: 1.8;
    margin-bottom: 28px
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
    margin-bottom: 14px
}

.contact-detail .ico {
    font-size: 1.3rem
}

.contact-form {
    background: rgba(255, 255, 255, .07);
    border-radius: 14px;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, .1)
}

.contact-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 22px
}

.form-group {
    margin-bottom: 16px
}

.form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 6px;
    letter-spacing: .5px;
    text-transform: uppercase
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font);
    font-size: .9rem;
    transition: var(--transition);
    outline: none
}

.form-group select {
    cursor: pointer
}

.form-group select option {
    background: var(--secondary);
    color: var(--white)
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, .35)
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, .1)
}

.form-group textarea {
    resize: vertical;
    min-height: 108px
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px
}

.testimonial-card {
    background: var(--white);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(44, 54, 63, .08);
    position: relative
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 22px;
    font-size: 5rem;
    color: var(--primary);
    opacity: .15;
    line-height: 1;
    font-family: Georgia, serif
}

.testimonial-card p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px
}

.testi-author img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    background: var(--secondary)
}

.testi-author strong {
    font-size: .88rem;
    color: var(--secondary);
    display: block
}

.testi-author span {
    font-size: .76rem;
    color: var(--text-muted)
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.faq-item {
    border: 1px solid rgba(44, 54, 63, .1);
    border-radius: 10px;
    overflow: hidden
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    color: var(--secondary);
    transition: var(--transition);
    background: var(--white);
    user-select: none
}

.faq-q:hover {
    background: rgba(230, 0, 0, .04)
}

.faq-icon {
    font-size: 1.3rem;
    color: var(--primary);
    transition: transform .3s;
    flex-shrink: 0
}

.faq-item.open .faq-icon {
    transform: rotate(45deg)
}

.faq-a {
    display: none;
    padding: 0 22px 18px;
    font-size: .87rem;
    color: var(--text-muted);
    line-height: 1.75;
    background: var(--white)
}

.faq-item.open .faq-a {
    display: block
}

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-mid) 100%);
    text-align: center
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px
}

.cta-banner p {
    color: rgba(255, 255, 255, .65);
    margin-bottom: 30px
}

.cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0)
}

.reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0)
}

/* ===== FLOATING BUTTONS ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px rgba(37, 211, 102, .4);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.7rem;
    color: var(--white)
}

.whatsapp-btn:hover {
    transform: scale(1.12)
}

.scroll-top {
    position: fixed;
    bottom: 92px;
    right: 29px;
    z-index: 9998;
    width: 42px;
    height: 42px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    border: 2px solid rgba(255, 255, 255, .15)
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible
}

.scroll-top:hover {
    background: var(--primary);
    transform: translateY(-3px)
}