/* Homepage sections (hero excluded) */
.hi-sections {
    --hi-dark: #0f172a;
    --hi-blue: #2563eb;
    --hi-gold: #f59e0b;
    --hi-muted: #64748b;
    --hi-text: #334155;
    --hi-line: #e2e8f0;
    --hi-bg: #f8fafc;
    --hi-radius: 16px;
    --hi-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.hi-section {
    padding: 4rem 0;
}

.hi-section--alt {
    background: var(--hi-bg);
}

.hi-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.hi-head h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: var(--hi-dark);
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hi-head h2 span {
    color: var(--hi-gold);
}

.hi-head p {
    margin: 0;
    color: var(--hi-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Services grid */
.hi-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.35rem;
}

.hi-service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hi-line);
    border-radius: var(--hi-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--hi-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    height: 100%;
}

.hi-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(37, 99, 235, 0.25);
}

.hi-service-img {
    height: 190px;
    overflow: hidden;
    background: #f1f5f9;
}

.hi-service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hi-service-card:hover .hi-service-img img {
    transform: scale(1.05);
}

.hi-service-body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hi-service-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hi-dark);
    margin: 0 0 0.4rem;
    line-height: 1.4;
}

.hi-service-body p {
    font-size: 0.9rem;
    color: var(--hi-muted);
    margin: 0 0 1rem;
    line-height: 1.55;
    flex-grow: 1;
}

.hi-service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hi-blue);
    margin-top: auto;
}

.hi-service-card:hover .hi-service-link {
    gap: 0.65rem;
}

.hi-view-all {
    text-align: center;
    margin-top: 2rem;
}

.hi-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: var(--hi-dark);
    color: #fff;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.hi-view-all a:hover {
    background: #1e293b;
    color: #fff;
    transform: translateY(-2px);
}

/* Approvals */
.hi-approvals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.hi-approval-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--hi-line);
    border-radius: var(--hi-radius);
    padding: 1.25rem;
    box-shadow: var(--hi-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hi-approval-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.hi-approval-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.hi-approval-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hi-dark);
    margin: 0 0 0.35rem;
}

.hi-approval-card p {
    font-size: 0.875rem;
    color: var(--hi-muted);
    margin: 0 0 0.35rem;
    line-height: 1.5;
}

.hi-approval-card .hi-code {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--hi-blue);
    background: #eff6ff;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

/* Testimonials */
.hi-section--testimonials {
    background: linear-gradient(180deg, #fff 0%, var(--hi-bg) 100%);
}

.hi-testimonials-swiper-wrap {
    position: relative;
    padding: 0 0.25rem;
}

.testimonial-swiper .swiper-slide {
    height: auto;
}

.hi-testimonial-card {
    background: #fff;
    border: 1px solid var(--hi-line);
    border-radius: var(--hi-radius);
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: var(--hi-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.swiper-slide-active .hi-testimonial-card {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.hi-testimonial-quote {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #fef3c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hi-blue);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hi-stars {
    color: var(--hi-gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.hi-testimonial-text {
    font-size: 0.95rem;
    color: var(--hi-text);
    line-height: 1.7;
    margin: 0 0 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hi-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.hi-testimonial-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
    flex-shrink: 0;
}

.hi-testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--hi-dark);
    margin-bottom: 0.15rem;
}

.hi-testimonial-author span {
    font-size: 0.78rem;
    color: var(--hi-muted);
}

.hi-testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.hi-tswiper-prev,
.hi-tswiper-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--hi-line);
    background: #fff;
    color: var(--hi-dark);
    box-shadow: var(--hi-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.hi-tswiper-prev:hover,
.hi-tswiper-next:hover {
    background: var(--hi-dark);
    color: #fff;
    border-color: var(--hi-dark);
}

.hi-tswiper-pagination {
    position: static !important;
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.hi-tswiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    opacity: 1;
    margin: 0 !important;
    transition: width 0.25s, background 0.25s;
}

.hi-tswiper-pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    background: var(--hi-dark);
}

/* Blog */
.hi-blog-card {
    background: #fff;
    border: 1px solid var(--hi-line);
    border-radius: var(--hi-radius);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--hi-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.hi-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

.hi-blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hi-blog-body {
    padding: 1.15rem 1.25rem 1.35rem;
}

.hi-blog-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hi-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hi-blog-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.45;
}

.hi-blog-body h3 a {
    color: var(--hi-dark);
    text-decoration: none;
}

.hi-blog-body h3 a:hover {
    color: var(--hi-blue);
}

.hi-blog-read {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hi-blue);
    text-decoration: none;
}

/* Consultancy form */
.hi-consult-card {
    background: #fff;
    border: 1px solid var(--hi-line);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--hi-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.hi-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin: 0 auto 1.25rem;
    max-width: 900px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hi-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.hi-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.hi-consult-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 1.25rem;
}

.hi-form-field--full {
    grid-column: 1 / -1;
}

.hi-form-label {
    display: block;
    font-weight: 600;
    color: var(--hi-dark);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.hi-required {
    color: #dc2626;
}

.hi-form-control {
    width: 100%;
    border: 1px solid var(--hi-line);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    color: var(--hi-dark);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.hi-form-control:focus {
    outline: none;
    border-color: var(--hi-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hi-form-control.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.hi-field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #dc2626;
}

.hi-form-actions {
    margin-top: 0.5rem;
}

.hi-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: var(--hi-dark);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hi-submit-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.hi-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hi-empty {
    text-align: center;
    color: var(--hi-muted);
    padding: 2rem;
    background: #fff;
    border: 1px dashed var(--hi-line);
    border-radius: var(--hi-radius);
}

@media (max-width: 768px) {
    .hi-section {
        padding: 3rem 0;
    }

    .hi-consult-card {
        padding: 1.35rem;
    }

    .hi-consult-form {
        grid-template-columns: 1fr;
    }

    .hi-testimonial-text {
        -webkit-line-clamp: 6;
    }
}
