/* home.css - Extracted and modernized styles from Unify theme for ERBCS homepage */
/* Replaces: one.style.css, one.dark.css, footer-v7.css, custom.css, line-icons */
/* Architecture: Mobile-first responsive (base = mobile, min-width queries for larger) */

/* ===== Base / Dark Theme ===== */
body.dark {
    background: #151515;
    color: #777;
}
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5, body.dark h6 {
    color: #ccc;
    font-weight: 600;
}
body.dark p, body.dark li, body.dark li a {
    color: #777;
}

/* ===== Navbar ===== */
.one-page-header {
    border-bottom: none;
    background: rgba(0,0,0,.4);
    transition: background 0.3s, box-shadow 0.3s;
    padding: 0;
}
.one-page-header .navbar-brand {
    font-size: 22px;
    font-weight: 600;
    color: #fff !important;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.3px;
}
.one-page-header .navbar-brand span {
    color: #72c02c !important;
}
.one-page-header .navbar-toggler {
    border: none;
    padding-right: 0;
}
.one-page-header .navbar-toggler:focus {
    box-shadow: none;
}
.one-page-header .navbar-toggler-icon {
    filter: invert(1);
}
.one-page-header .navbar-nav > li > a {
    color: #eee;
    font-size: 14px;
    padding: 8px 12px;
}
.one-page-header .navbar-nav > li > a:hover {
    color: #72c02c;
}
.one-page-header .navbar-nav > li > a:focus {
    color: #fff;
}
.one-page-header .navbar-nav > .active > a {
    color: #72c02c !important;
    background: transparent;
}

/* Mobile navbar collapse (base = mobile) */
.one-page-header .navbar-collapse {
    background: rgba(0,0,0,0.9);
    padding: 10px 15px;
}

/* Scrolled navbar */
.one-page-header.top-nav-collapse {
    background: #fff;
    box-shadow: 0 0 3px #b5b5b5;
}
.one-page-header.top-nav-collapse .navbar-brand,
.one-page-header.top-nav-collapse .navbar-nav > li > a {
    color: #777;
}
.one-page-header.top-nav-collapse .navbar-toggler-icon {
    filter: none;
}

/* Dark theme scrolled navbar */
body.dark .top-nav-collapse {
    box-shadow: none;
    background: rgba(0,0,0,.3);
}
body.dark .top-nav-collapse .navbar-brand {
    color: #eee !important;
}
body.dark .top-nav-collapse .navbar-nav > li > a {
    color: #fff;
}
body.dark .top-nav-collapse .navbar-nav > .active > a {
    color: #72c02c;
}

#blkNavLogo {
    padding-top: 10px;
}

/* ===== Hero / Swiper Slider ===== */
.intro-section {
    background: #222;
    position: relative;
}
.hero-slide {
    height: 70vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.62);
    z-index: 1;
}
.hero-slide .slide-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}
.hero-slide .slide-title {
    color: #fff;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.hero-slide .slide-desc {
    color: #fff;
    font-size: clamp(16px, 2.4vw, 18px);
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.hero-slide .slide-buttons .btn {
    margin: 5px;
}

/* Swiper navigation/pagination */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: #72c02c;
    opacity: 1;
}
.swiper-button-next, .swiper-button-prev {
    color: #fff;
}

/* Dotted overlay on slider (subtle scanline effect) */
.swiper-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
}

/* ===== Buttons ===== */
.btn-u {
    color: #fff;
    background: #72c02c;
    border: 1px solid #72c02c;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.btn-u:hover {
    color: #fff;
    background: #5fb61c;
    border-color: #5fb61c;
}
.btn-brd {
    background: transparent;
}
.btn-brd:hover {
    background: #72c02c;
    border-color: #72c02c;
}
.btn-u-light {
    color: #fff;
    border-color: #fff;
}
.btn-u-light:hover {
    color: #fff;
    background: #72c02c;
    border-color: #72c02c;
}

/* ===== Content Sections ===== */
.content-lg {
    padding: 60px 0;
}
.section-first {
    padding-top: 0;
}

/* Block v1 */
.block-v1 {
    padding: 50px 0 10px;
}

/* Title v1 */
.title-v1 {
    text-align: center;
    margin-bottom: 40px;
}
.title-v1 h1, .title-v1 h2 {
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}
.title-v1 h1::after, .title-v1 h2::after {
    content: "";
    width: 70px;
    height: 2px;
    background: #72c02c;
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -35px;
}
.title-v1 p {
    font-size: 16px;
    margin-top: 15px;
}
.title-v1 p a {
    color: #7fc046;
    text-decoration: underline;
    text-decoration-color: rgba(127,192,70,0.5);
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.15s, text-decoration-color 0.15s;
}
.title-v1 p a:hover,
.title-v1 p a:focus {
    color: #a3d96a;
    text-decoration-color: #a3d96a;
}

/* Content Boxes v3 (About icons) */
.content-boxes-v3 {
    text-align: center;
}
.content-boxes-v3 .col-md-4 {
    text-align: center;
}
.content-boxes-v3 i.icon-custom {
    margin-bottom: 10px;
}
.content-boxes-v3 h2 {
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Content boxes inline (features) */
.clearfix .icon-custom {
    float: left;
    margin-right: 15px;
}
.content-boxes-in-v3 {
    overflow: hidden;
}

/* ===== Icons ===== */
.icon-custom {
    width: 60px;
    height: 60px;
    font-size: 28px;
    line-height: 60px;
    text-align: center;
    display: inline-block;
    border-radius: 50%;
}
.icon-md {
    width: 50px;
    height: 50px;
    font-size: 22px;
    line-height: 50px;
}
.icon-lg {
    width: 70px;
    height: 70px;
    font-size: 32px;
    line-height: 70px;
}
.icon-bg-dark {
    color: #fff;
    background: #555;
}
body.dark i.icon-bg-dark {
    color: #ccc;
    background: #222;
}
.icon-bg-u {
    color: #fff;
    background: #72c02c;
}
.rounded-x {
    border-radius: 50% !important;
}

/* ===== Headings ===== */
.heading-sm {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}
.heading-md {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== About Image Section ===== */
.about-section .about-image {
    padding-top: 60px;
}
.about-image.bg-grey {
    background: #f7f7f7;
    padding-bottom: 40px;
}
body.dark .about-section .about-image {
    background: #111;
    border-top-color: #171717;
    border-bottom-color: #171717;
}
.img-center {
    text-align: center;
}
.img-center img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* ===== Parallax Sections (CSS-based) ===== */
/* Mobile base: scroll attachment (fixed not supported on iOS) */
.parallax-quote,
.parallax-counter {
    padding: 60px 0;
    position: relative;
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.parallax-quote {
    background-image: url("../img/home/bg2.jpg");
}
.parallax-counter {
    background-image: url("../img/home/bg3.jpg");
}

.parallax-quote::before,
.parallax-counter::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
}

.parallax-quote-in {
    position: relative;
    text-align: center;
    z-index: 1;
}
.parallax-quote-in p {
    color: #fff;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 500;
    line-height: 1.55;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.parallax-quote-in small {
    color: #cfcfcf;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-top: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* ===== Counters ===== */
.counters {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: 15px 0;
}
.counters .counter {
    color: #fff;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.counters span {
    color: #fff;
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.counters h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* ===== Service Blocks ===== */
.service-box-v1 {
    text-align: center;
}
.service-box-v1 .service-block {
    background: #fff;
    padding: 30px 20px 20px;
    margin-bottom: 20px;
}
.service-block-default {
    background: #fafafa;
    border: solid 1px #eee;
    transition: box-shadow 0.3s;
}
.service-block-default:hover {
    box-shadow: 0 0 8px #eee;
}
.service-block-default p,
.service-block-default h2 {
    color: #555;
}
.service-box-v1 p {
    position: relative;
    margin-bottom: 30px;
}
.service-box-v1 p::after {
    content: "";
    left: 50%;
    height: 1px;
    width: 50px;
    bottom: -15px;
    position: absolute;
    margin-left: -25px;
    background: #72c02c;
}
.service-box-v1 ul {
    padding: 0 30px;
    text-align: left;
}
.service-box-v1 li {
    margin: 8px 0;
    font-size: 15px;
    padding-top: 8px;
    border-top: dotted 1px #72c02c;
}

body.dark .service-box-v1 .service-block {
    background: #171717;
    border-color: #171717;
}
body.dark .service-box-v1 .service-block:hover {
    box-shadow: 0 0 8px #111;
}

/* ===== Contact Section ===== */
/* Mobile base: scroll attachment */
.contacts-section {
    color: #fff;
    position: relative;
    background: url("../img/home/contact-bg.jpg") center scroll #1a1a1a;
    background-size: cover;
}
.contacts-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/home/gridtile.png") repeat;
    z-index: 0;
    opacity: 0.4;
}
.contacts-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.7) 100%);
    z-index: 0;
}
.contacts-in {
    z-index: 1;
    color: #fff;
    position: relative;
}
.contacts-in ul {
    margin-top: 20px;
    list-style: none;
    padding: 0;
}
.contacts-in li {
    color: #ffffff;
    margin: 18px 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}
.contacts-in li .contact-text {
    flex: 1;
    min-width: 0;
}
.contacts-in li a {
    color: #b6e07a;
    text-decoration: underline;
    text-decoration-color: rgba(182,224,122,0.5);
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
.contacts-in li a:hover,
.contacts-in li a:focus {
    color: #d4f0a3;
    text-decoration-color: #d4f0a3;
}
.contacts-in li i {
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 18px;
    margin: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(127,192,70,0.18);
    border: 1px solid rgba(127,192,70,0.35);
    border-radius: 4px;
    color: #c8e89a;
}
.contacts-section .title-v1 h2 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.contacts-section .title-v1 p {
    color: #e8e8e8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
@media (max-width: 767px) {
    .contacts-in li {
        font-size: 18px;
        margin: 16px 0;
    }
}

/* ===== Copyright / Footer ===== */
.copyright-section {
    z-index: 1;
    background: #fff;
    position: relative;
    text-align: center;
    padding: 25px 0 20px;
}
body.dark .copyright-section {
    background: #151515;
}
.copyright-section p {
    font-size: 14px;
    color: #555;
}
body.dark .copyright-section p {
    color: #777;
}

/* Social Icons */
.social-icons {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}
.social-icons li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 50%;
    color: #999;
    border: 1px solid #555;
    background: transparent;
    transition: color 0.3s, border-color 0.3s;
    text-decoration: none;
}
.social-icons li a:hover {
    color: #72c02c;
    border-color: #72c02c;
}

/* Back to top */
.back-to-top {
    color: #555;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}
.back-to-top:hover {
    color: #72c02c;
}

/* ===== Color Utilities ===== */
.color-green {
    color: #72c02c;
}

/* ===== Spacing Utilities ===== */
.margin-bottom-30 {
    margin-bottom: 30px;
}
.margin-bottom-40 {
    margin-bottom: 40px;
}

/* Responsive margin helpers (apply margin on mobile/tablet, reset at desktop) */
.md-margin-bottom-30 {
    margin-bottom: 30px;
}
.md-margin-bottom-40 {
    margin-bottom: 40px;
}

/* ===== Responsive: Mobile-first (min-width) ===== */

/* -- Tablet and up (>=768px) -- */
@media (min-width: 768px) {
    .hero-slide {
        height: 100vh;
    }
    .hero-slide .slide-title {
        font-size: 24px;
    }
    .counters .counter {
        font-size: 42px;
    }
}

/* -- Desktop and up (>=992px) -- */
@media (min-width: 992px) {
    .md-margin-bottom-30 {
        margin-bottom: 0;
    }
    .md-margin-bottom-40 {
        margin-bottom: 0;
    }
    .one-page-header .navbar-collapse {
        background: transparent;
        padding: 0;
    }
    .hero-slide .slide-title {
        font-size: 36px;
    }
    .hero-slide .slide-desc {
        font-size: 18px;
    }
    /* Enable parallax fixed attachment on desktop */
    .parallax-quote,
    .parallax-counter {
        background-attachment: fixed;
    }
    .contacts-section {
        background-attachment: fixed;
    }
    #blkNavLogo {
        display: inline-block;
    }
}
