/* ============================================================
   SCALARTECH — Components CSS
   Reusable UI components
   ============================================================ */

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 0px;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: normal;
    text-align: center;
}

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

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}
.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}
.btn-dark:hover {
    background: var(--dark-2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.8rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dark);
    margin-bottom: 6px;
}

.input-field {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}
.input-field:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(254,139,0,0.18);
}
.input-field::placeholder { color: #aaa; }

textarea.input-field {
    resize: vertical;
    min-height: 70px;
}

select.input-field {
    /* background-image remains inline SVG, no change needed for hosting */
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-button {
    width: 100%;
    padding: 11px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.form-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--white);
    border-radius: 0px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-4px);
}

.feature-card {
    background: var(--gray-light);
    border-radius: 0px;
    padding: 28px;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.feature-card:hover {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.badge-primary { background: rgba(17,65,152,0.12); color: var(--primary); }
.badge-secondary { background: rgba(254,139,0,0.15); color: #9a5300; }
.badge-dark { background: rgba(17,17,17,0.08); color: var(--dark); }

/* ============================================================
   DIVIDERS & DECORATIONS
   ============================================================ */
.divider {
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

.yellow-bar {
    width: 48px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    margin-bottom: 16px;
}

/* ============================================================
   GRID HELPERS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}
.pagination a, .pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--dark);
    transition: all var(--transition);
}
.pagination a:hover, .pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.preloader__logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}
.preloader__logo span { color: var(--secondary); }
.preloader__bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.preloader__bar-fill {
    height: 100%;
    background: var(--secondary);
    animation: preload 1.2s ease forwards;
}
@keyframes preload {
    from { width: 0; }
    to   { width: 100%; }
}

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */
.service-detail__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.service-detail__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.service-detail__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.service-detail__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--dark);
}
.service-detail__feature i { color: var(--secondary); font-size: 0.85rem; }

.service-sidebar {
    position: sticky;
    top: 96px;
}

.service-sidebar__card {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.service-sidebar__card h4 {
    font-size: 1.05rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
}
.service-sidebar__list li {
    margin-bottom: 8px;
}
.service-sidebar__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--dark);
    transition: all var(--transition);
    font-family: var(--font-ui);
}
.service-sidebar__list a:hover, .service-sidebar__list a.active {
    background: var(--secondary);
    color: var(--white);
    font-weight: 600;
}
.service-sidebar__list a i { font-size: 0.8rem; color: var(--secondary); }

.contact-sidebar {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}
.contact-sidebar h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.contact-sidebar p { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-bottom: 20px; }
.contact-sidebar .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
