/* ============================================
   Gemco Fab-Tech - Main Stylesheet
   Based on Astra theme + Beaver Builder
   ============================================ */

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

html {
    font-size: 93.75%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: inherit;
    font-size: 15px;
    font-size: 1rem;
    color: #3a3a3a;
    line-height: 1.7;
    background-color: #fff;
}

a {
    color: #dd411a;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #3a3a3a;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul {
    list-style: none;
}

::selection {
    background-color: #dd411a;
    color: #ffffff;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: #3a3a3a;
    font-weight: 700;
    line-height: 1.3;
}

h1, .entry-content h1 {
    font-size: 48px;
    font-size: 3.2rem;
}

h2, .entry-content h2 {
    font-size: 42px;
    font-size: 2.8rem;
}

h3, .entry-content h3 {
    font-size: 30px;
    font-size: 2rem;
}

h4, .entry-content h4 {
    font-size: 20px;
    font-size: 1.333rem;
}

h5, .entry-content h5 {
    font-size: 18px;
    font-size: 1.2rem;
}

h6, .entry-content h6 {
    font-size: 15px;
    font-size: 1rem;
}

/* --- Container --- */
.ast-container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.ast-flex {
    display: flex;
}

.ast-justify-content-flex-end {
    justify-content: flex-end;
}

.ast-flex-grow-1 {
    flex-grow: 1;
}

/* --- Header --- */
.site-header {
    background-color: #fff;
    border-bottom: none;
    position: relative;
    z-index: 10;
}

.main-header-bar {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    line-height: 4;
    padding: 1em 0;
    position: relative;
    z-index: 4;
}

.main-header-bar .ast-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.main-header-bar-navigation {
    text-align: right;
    flex: 1;
}

.site-branding {
    line-height: 1;
}

.site-logo-img .custom-logo-link img {
    max-width: 350px;
    height: auto;
}

.main-navigation {
    display: inline-block;
    font-weight: 600;
    padding-left: 15px;
    vertical-align: top;
}

.main-header-menu a {
    text-decoration: none;
    padding: 0 1em;
    display: inline-block;
    color: #3a3a3a;
    font-size: 15px;
    transition: all 0.2s linear;
}

.main-header-menu li {
    position: relative;
}

.main-header-menu a:hover,
.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-ancestor > a {
    color: #dd411a;
}

.main-header-menu .submenu-with-border > li > a {
    border-bottom: 3px solid transparent;
}

.main-header-menu .submenu-with-border > li > a:hover,
.main-header-menu .submenu-with-border > .current-menu-item > a {
    border-bottom-color: #dd411a;
}

/* Mobile Menu */
.ast-mobile-menu-buttons {
    display: none;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 0;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #3a3a3a;
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background-color: #3a3a3a;
    position: absolute;
    left: 0;
}

.menu-toggle-icon::before {
    top: -7px;
}

.menu-toggle-icon::after {
    top: 7px;
}

/* --- Buttons --- */
.fl-button,
.fl-builder-content a.fl-button:visited {
    display: inline-block;
    font-size: 16px;
    font-weight: normal;
    line-height: 18px;
    padding: 12px 24px;
    text-decoration: none;
    text-shadow: none;
    border-radius: 2px;
    color: #ffffff;
    background-color: #dd411a;
    border: 2px solid #dd411a;
}

.fl-button:hover {
    text-decoration: none;
    color: #ffffff;
    background-color: #3a3a3a;
    border-color: #3a3a3a;
}

.fl-button:active {
    position: relative;
    top: 1px;
}

.fl-button i {
    font-size: 1.3em;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
    width: auto;
}

.fl-button i.fl-button-icon-after {
    margin-left: 8px;
    margin-right: 0;
}

/* --- Astra theme button styles (form elements) --- */
button,
.ast-button,
.button,
input[type="button"],
input[type="submit"] {
    display: inline-block;
    padding: 10px 40px;
    color: #ffffff;
    background-color: #dd411a;
    border: 2px solid #dd411a;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

button:hover,
.ast-button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    color: #ffffff;
    background-color: #3a3a3a;
    border-color: #3a3a3a;
}

.fl-button-wrap {
    text-align: center;
}

.fl-button-center {
    text-align: center;
}

.fl-button-width-auto {
    display: inline-block;
}

.fl-button-width-custom {
    display: inline-block;
}

.fl-button-icon {
    margin-right: 8px;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/images/hero-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-section h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 42px;
}

.hero-section p {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 25px;
}

/* --- Full-Width Background Sections --- */
.section-full-width-bg {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* --- Section Styling --- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 30px;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.section-separator {
    border-top: 3px solid #ebce42;
    width: 5%;
    max-width: 100%;
    margin: 0 auto 40px;
    opacity: 1;
}

/* --- Services Section --- */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.service-item {
    text-align: center;
    width: 500px;
}

.service-item .fl-photo-crop-circle .fl-photo-content {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

.service-item .fl-photo-crop-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-item h4 {
    margin-top: 15px;
    font-size: 18px;
    text-transform: uppercase;
}

.service-item h4 a {
    color: #3a3a3a;
}

.service-item h4 a:hover {
    color: #dd411a;
}

/* --- Two Column Layout --- */
.two-col {
    display: flex;
    align-items: center;
    gap: 40px;
}

.two-col .col-text {
    flex: 1;
}

.two-col .col-image {
    flex: 1;
}

.two-col .col-image img {
    width: 100%;
    border-radius: 4px;
}

/* --- Commercial / Residential Sections --- */
.project-section {
    padding: 80px 0;
}

.project-section h3 {
    font-size: 30px;
    margin-bottom: 10px;
}

.project-section .section-separator {
    margin: 0 0 25px 0;
}

.project-section p {
    color: #000000;
    line-height: 1.8;
}

/* --- About Section --- */
.about-section {
    padding: 80px 0;
}

.about-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 80px 0;
    text-align: center;
}

.testimonial-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
}

.testimonial-card .author-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-card .author-designation {
    color: #dd411a;
    font-size: 14px;
    margin-bottom: 15px;
}

.testimonial-card .stars {
    color: #dd411a;
    margin-bottom: 15px;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

/* --- Contact Form --- */
.contact-section {
    padding: 80px 0;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 600;
    color: #3a3a3a;
}

.form-group input,
.form-group textarea {
    display: inline-block;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dd411a;
}

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

.form-error {
    color: #DD4420;
    font-size: 12px;
    font-weight: lighter;
    margin-top: 2px;
    display: none;
}

.form-success {
    color: #28a745;
    font-size: 15px;
    text-align: center;
    padding: 15px;
    display: none;
}

/* --- Contact Info Callouts --- */
.contact-info-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px 0;
    text-align: center;
}

.contact-info-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
}

.contact-info-item .fa {
    display: block;
    font-size: 30px;
    color: #ebce42;
    margin-bottom: 20px;
    height: auto;
    width: auto;
}

.contact-info-item h4 {
    font-size: 18px;
    margin: 0;
    padding: 0 0 10px 0;
    text-transform: uppercase;
}

.contact-info-item p {
    color: #000000;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 0 10px 0 !important;
}

/* --- Waterjet Page --- */
.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.materials-list li {
    background-color: #f8f8f8;
    padding: 10px 25px;
    border-radius: 3px;
    font-weight: 500;
    border: 1px solid #eee;
}

.workflow-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.workflow-image {
    flex: 0 0 45%;
}

.workflow-image img {
    width: 100%;
    border-radius: 4px;
}

.workflow-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    flex: 1;
}

.workflow-step {
    text-align: center;
}

.workflow-step .step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: #dd411a;
    color: #ffffff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.workflow-step h4 {
    margin-bottom: 10px;
}

.workflow-step p {
    color: #666;
    line-height: 1.6;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.05);
}

/* --- About Page --- */
.about-story {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-story .story-text {
    flex: 1;
}

.about-story .story-image {
    flex: 1;
}

.about-story .story-image img {
    width: 100%;
    border-radius: 4px;
}

/* --- Footer --- */
.site-footer {
    background-color: #3a3a3a;
    color: #ffffff;
}

.ast-small-footer {
    padding: 20px 0;
}

.ast-small-footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ast-small-footer-section-1 {
    color: #ccc;
}

.ast-small-footer-section-1 .ast-footer-site-title {
    color: #fff;
}

.ast-small-footer-section-2 .widget-title {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
}

.cnss-social-icon {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.cnss-social-icon li {
    display: inline-block;
}

.cnss-social-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 5px;
    margin: 5px;
    color: #ffffff;
    border-radius: 10%;
    transition: opacity 0.3s ease;
}

.cnss-social-icon a:hover {
    opacity: 0.7;
    color: #ffffff;
}

.cnss-facebook { background-color: #3b5998; }
.cnss-instagram { background-color: #e4405f; }
.cnss-linkedin { background-color: #0077b5; }

/* --- Contact Page Layout --- */
.contact-page-layout {
    display: flex;
    gap: 40px;
}

.contact-page-layout .contact-info-sidebar {
    flex: 0 0 300px;
}

.contact-page-layout .contact-form-area {
    flex: 1;
}

/* --- Waterjet Page --- */
.waterjet-section {
    padding: 80px 0;
}

/* --- Responsive --- */
@media (max-width: 920px) {
    .main-header-bar {
        display: block;
        padding: 1.5em 0 0;
    }

    .site-branding {
        display: flex;
        flex: 1;
        align-self: center;
        padding-bottom: 1.5em;
    }

    .main-header-bar-navigation {
        display: none;
        width: 100%;
        line-height: 3;
    }

    .main-header-bar-navigation.active {
        display: block;
    }

    .ast-mobile-menu-buttons {
        display: flex;
        justify-content: flex-end;
        padding-bottom: 1.5em;
    }

    .main-header-menu {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-header-menu a {
        padding: 0 20px;
        display: inline-block;
        width: 100%;
        border-bottom: 1px solid #dadada;
    }

    .main-header-bar .ast-container {
        flex-wrap: wrap;
    }

    .main-navigation {
        display: block;
        width: 100%;
        padding-left: 0;
    }

    .two-col,
    .about-story,
    .contact-page-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85.5%;
    }

    h1, .entry-content h1 {
        font-size: 30px;
    }

    h2, .entry-content h2 {
        font-size: 25px;
    }

    h3, .entry-content h3 {
        font-size: 20px;
    }

    .hero-section {
        padding: 50px 15px;
    }

    .hero-section h2 {
        font-size: 28px;
    }

    .services-grid {
        gap: 30px;
    }

    .service-item .fl-photo-crop-circle .fl-photo-content {
        width: 250px;
        height: 250px;
    }

    .workflow-layout {
        flex-direction: column;
    }

    .workflow-image {
        flex: none;
        width: 100%;
    }

    .workflow-steps {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-grid {
        flex-direction: column;
        align-items: center;
    }

    .ast-small-footer-wrap {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 544px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .service-item .fl-photo-crop-circle .fl-photo-content {
        width: 250px;
        height: 250px;
    }
}

/* --- Lightbox Overlay --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 85%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #cccccc;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    z-index: 10000;
    transition: color 0.2s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #cccccc;
}
