/*
 * Theme Name: Lineproof Engineering
 * Author: Nexfira Digital
 * Description: A flexible and modern WordPress theme designed for blogs, portfolios, and business websites.
 * Version: 1.1.2
 * Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */


/**
 * Global Reset & Base
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    background-color: #fff;
    color: var(--e-global-color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/**
 * Lenis Required CSS
 */
html.lenis {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
    overflow: hidden;
}


/**
 * Typography
 */
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}


/**
 * Links
 */
a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
    transition: color 0.3s ease;
}
a:hover,
a:active {
    color: var(--e-global-color-primary);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0; 
}


/**
 * Forms & Inputs
 */
label {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}
button,
input,
select,
textarea {
    font: inherit;
    margin: 0;
    border: none;
    outline: none;
    background: none;
    color: inherit;
    line-height: 1;
}

/* Input Fields */
input,
select,
textarea {
    width: 100%;
    padding: 22px;
    font-size: 1rem;
    border-radius: 6px;
    background-color: var(--primary-light-bg);
    border: 1px solid transparent;
    color: var(--e-global-color-text);
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--gradient-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
}
textarea {
    height: 160px;
    resize: vertical;
    overflow: auto;
}

select {
    display: block;
    cursor: pointer;
    font-style: italic;
    color: #5e5e5e;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--primary-light-bg);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23898989' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px 6px;
    padding-right: 2.5rem;
}
select option {
    background-color: #fff;
    color: var(--e-global-color-text);
    font-style: normal;
}
select option:first-of-type {
    color: #4a4a4a;
    font-style: italic;
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
    color: #5e5e5e;
    font-style: italic;
}

@media (max-width: 991px) {
    input,
    select,
    textarea {
        padding: 14px;
        font-size: 0.875rem;
    }

    textarea {
        height: 100px;
    }
}


/**
 * Button Style
 */
.elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff !important;
    background-color: var(--e-global-color-primary);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}
.elementor-button:hover {
    transform: translateX(3px);
}
.elementor-button::after {
    content: '\F138';
    font-family: bootstrap-icons !important;
    font-weight: 400;
    font-size: 1.5rem;
    transform: rotate(-45deg);
    transition: all 0.4s ease;
}
.elementor-button:hover::after {
    transform: rotate(0deg);
}
.elementor-button:focus {
    outline: none;
}
@media (max-width: 991px) {
    .elementor-button {
        gap: 5px;
        padding: 9px 16px;
        font-size: 0.75rem;
    }
    .elementor-button::after {
        font-size: 1rem;
    }    
}


/**
 * Contact form
 */
form.ncf-inquiry-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 767px) {
    form.ncf-inquiry-form {
        gap: 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.alt,
.submit-btn {
    grid-column: span 2;
}
.form-group label {
    margin-bottom: 10px;
    font-size: 0.875rem;
}

/* Error Styling */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: red;
}
.error-message {
    display: block;
    margin-top: 5px;
    font-size: 0.815rem;
    color: red;
}

/* Response Messages */
.ncf-form-response {
    display: block;
}
.success-response,
.error-response {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px dashed;
}
.success-response {
    color: green;
    border-color: green;
}
.error-response {
    color: red;
    border-color: red;
}

/* Loader Spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--e-global-color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 2s linear infinite;
}
@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


/**
 * Table Style
 */
table {
    width: 100%;
    border-collapse: collapse;
}
table th {
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--primary-light-bg);
    border-bottom: 1px solid var(--primary-light-bg);
}
table thead tr th:nth-child(2),
table thead tr th:nth-child(4){
    text-align: left !important;
}

table td {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--primary-light-bg);
}
table tbody td:nth-child(1),
table tbody td:nth-child(3){
    width:70px;
    text-align: center;
}
table tbody tr:last-child td {
    border: 0;
}

table tbody tr {
    transition: background 0.4s ease;
}
table tbody tr:hover{
    background: var(--gradient-bg);
}

/* Responsive */
@media (min-width: 991px) {
    table th {
        padding: 15px;
        font-size: 1rem;
    }
    table td {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}


/**
 * Lists
 */
ul,
ol,
li {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    background: transparent;
    position: relative;
}


/**
 * 404
 */
body.error404 .error-page {
    padding: 50px 15px;
    background: var(--e-global-color-secondary);
}
body.error404 .error-page .elementor-widget-wrap {
    padding: 0 15px;
}
body.error404 .error-page h1 {
    margin-bottom: 20px;
    color: #fff;
}
@media (min-width: 767px) {
    body.error404 .error-page {
        padding: 80px 15px;
    }
}
@media (min-width: 991px) {
    body.error404 .error-page {
        padding: 120px 0;
    }
}