/********** Core Theme Variables **********/
:root {
    --primary: #AB7442;        /* warm brown */
    --accent-brown: #8A5A28;  /* darker brown accents */
    --light: #F5F5F5;
    --dark: #353535;
}

/********** Utility Font Weights **********/
.fw-medium { font-weight: 500 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-black { font-weight: 900 !important; }

/********** Back to Top Button **********/
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/********** Spinner **********/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out;
    z-index: 99999;
}
#spinner.show {
    visibility: visible;
    opacity: 1;
}

/********** Buttons **********/
.btn {
    font-weight: 500;
    transition: .4s ease;
}
.btn-square, .btn-sm-square, .btn-lg-square {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/*******************************************************************
 * NAVIGATION BAR
 *******************************************************************/




.navbar-light .navbar-brand {
    height: 75px;
}

/* Brand Title (Left side "Mills Remodeling & Maintenance") */
.brand-bar {
    font-weight: 700;
    font-size: 1.75rem;
    padding-left: 12px;
    border-left: 4px solid var(--accent-brown);
    letter-spacing: 0.5px;
    color: var(--accent-brown);
}

/* Navbar Links */
.navbar-light .navbar-nav .nav-link {
    color: var(--accent-brown) !important;
    font-weight: 600;
    padding: 12px 18px;
}

/* Hover + Active States */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #5c3c1e !important; /* darker shade of brown */
}

/*******************************************************************
 * HERO SECTION
 *******************************************************************/
.hero-section {
    height: 75vh;
    overflow: hidden;
}
.hero-section .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content h1,
.hero-content p {
    animation: fadeInUp .8s ease both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/*******************************************************************
 * SECTION TITLES – CLEANED (NO UNDERLINES)
 *******************************************************************/
.section-title h1,
.section-title h2 {
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

/* Fully remove ALL underline styling from template */
.section-title h1::after,
.section-title h2::after,
.section-title::after,
.section-title h1::before,
.section-title h2::before {
    display: none !important;
    content: none !important;
}

/*******************************************************************
 * PORTFOLIO / PROJECTS
 *******************************************************************/
.portfolio-item img {
    transition: .5s ease;
}
.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(53, 53, 53, .6);
    transition: .5s ease;
}
.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}
.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
    transition: .3s ease;
}
.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}

/*******************************************************************
 * ABOUT & FEATURE SECTIONS
 *******************************************************************/
.about-text,
.feature-text {
    padding: 3rem;
}

@media (min-width: 992px) {
    .about-text { padding-right: calc(((100% - 960px) / 2) + .75rem); }
    .feature-text { padding-left: calc(((100% - 960px) / 2) + .75rem); }
}
@media (min-width: 1200px) {
    .about-text { padding-right: calc(((100% - 1140px) / 2) + .75rem); }
    .feature-text { padding-left: calc(((100% - 1140px) / 2) + .75rem); }
}
@media (min-width: 1400px) {
    .about-text { padding-right: calc(((100% - 1320px) / 2) + .75rem); }
    .feature-text { padding-left: calc(((100% - 1320px) / 2) + .75rem); }
}

/*******************************************************************
 * FOOTER
 *******************************************************************/
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)),
                url(../img/footer.jpg) center/cover no-repeat;
    color: var(--light);
}

.footer .btn.btn-social {
    width: 35px;
    height: 35px;
    border: 1px solid #fff;
    color: #fff;
    transition: .3s ease;
}
.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    color: #FFFFFF;
    font-size: 15px;
    transition: .3s ease;
}
.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}
.footer .copyright a {
    color: var(--light);
}
.footer .copyright a:hover {
    color: var(--primary);
}