/*
Theme Name: Four Star Construction
Theme URI: https://www.4stargeneralcontractorsnyc.com/
Author: Four Star Construction & General Contractors LLC
Author URI: https://www.4stargeneralcontractorsnyc.com/
Description: Custom WordPress theme for Four Star Construction & General Contractors — residential and commercial remodeling in New Jersey & New York.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fourstar
Tags: construction, contractor, remodeling, one-column, two-columns, custom-menu
*/

/* ==========================================================================
   4 Star Construction & General Contractors - Theme Stylesheet
   Font: Montserrat (Google Fonts)
   Primary Blue: #0404a4 | Red: #c80404 | Gold: #a57c00 | Black: #000
   ========================================================================== */

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

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #000000;
    line-height: 1.625;
    overflow-x: hidden;
}

a { text-decoration: none; color: #a57c00; }
a:hover { color: #a57c00; }

p { margin: 0 0 20px; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin: 0 0 20px;
    color: #000000;
}
h1 { font-size: 35px; }
h2 { font-size: 30px; }
h3 { font-size: 25px; }
h4 { font-size: 25px; }
h5, h6 { font-size: 22px; }

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

ul { list-style: none; padding: 0; margin: 0; }

input, select, textarea {
    font-family: inherit;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    font-size: 14px;
}

::placeholder { color: #111111; opacity: 1; }

/* Buttons */
.btn-primary {
    color: #ffffff;
    display: inline-block;
    background: #0404a4;
    padding: 12px 25px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 3px;
    border: 1px solid #0404a4;
    text-transform: uppercase;
    text-decoration: none;
}
.btn-primary:hover {
    background: #c80404;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-red {
    color: #ffffff;
    display: inline-block;
    background: #c80404;
    padding: 12px 25px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 3px;
    border: 1px solid #c80404;
    text-transform: uppercase;
    text-decoration: none;
}
.btn-red:hover {
    background: #0404a4;
    color: #ffffff;
    border: 1px solid #0404a4;
}

/* Layout */
.inner-width {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.full-width { width: 100%; max-width: 1920px; margin: 0 auto; }

.section-padding { padding: 60px 15px; }

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

.section-title {
    font-size: 35px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-desc { margin-bottom: 20px; }

/* ============================
   HEADER
   ============================ */
.site-header {
    position: fixed;
    z-index: 999999;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: #ffffff;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo img { height: 50px; }

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cta .call-label {
    font-size: 10px;
    color: #000000;
    display: block;
    line-height: 1.2;
}

.header-cta .call-number {
    font-size: 22px;
    color: #c80404;
    font-weight: 700;
    line-height: 1.2;
}
.header-cta .call-number:hover { color: #0404a4; }

.header-cta .cta-btn {
    color: #ffffff;
    background: #0404a4;
    font-size: 16px;
    border: 1px solid #0404a4;
    padding: 15px 15px;
    border-radius: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.header-cta .cta-btn:hover {
    background: #c80404;
    border-color: #ffffff;
    color: #ffffff;
}

/* Navigation */
.nav-primary {
    background: #ffffff;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.nav-menu li a {
    color: #ffffff;
    background: #0404a4;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 3px;
    text-transform: uppercase;
    display: block;
    transition: all 0.3s ease;
}
.nav-menu li a:hover,
.nav-menu li a.active,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
    color: #000000;
    background: #ffffff;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 13px 17px;
    color: #000000;
}

/* ============================
   HERO SLIDER
   ============================ */
.hero-slider {
    position: relative;
    margin-top: 120px;
}

.hero-slide {
    width: 100%;
    height: 600px;
    min-height: 450px;
    position: relative;
    display: none;
    overflow: hidden;
}
.hero-slide.active { display: block; }

.hero-slide .hero-image {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slide .hero-caption {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide .caption-inner {
    max-width: 560px;
    padding: 15px;
    border-radius: 3px;
    background-color: rgba(0,0,0,0.5);
    text-align: center;
}

.hero-slide .caption-title {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-slide .caption-desc {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 15px;
}

.hero-slide .caption-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.hero-slide .insurance-link {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
}
.hero-slide .insurance-link img {
    max-width: 200px;
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0; right: 0;
    text-align: center;
    z-index: 5;
}
.slider-dots button {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    margin: 0 3px;
    cursor: pointer;
    padding: 0;
}
.slider-dots button.active {
    background: #000000;
    border-color: #000000;
}

/* ============================
   SERVICES SECTION
   ============================ */
.services-section {
    padding: 60px 15px;
    background: #ffffff;
}

.services-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-section .section-header .section-title {
    font-size: 35px;
    color: #000;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.service-card {
    width: calc(33.333% - 10px);
    background: #ffffff;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s ease;
    border: 1px solid #eee;
}
.service-card:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.service-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.service-card .service-title {
    font-size: 20px;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.service-card .service-excerpt {
    font-size: 14px;
    color: #000000;
    margin-bottom: 15px;
}

.service-card .btn-primary {
    font-size: 14px;
    padding: 8px 15px;
}

/* ============================
   MAIN CONTENT + SIDEBAR
   ============================ */
.content-sidebar-wrap {
    padding: 60px 15px;
}

.content-sidebar-inner {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
}

.main-content h1 {
    font-size: 35px;
    margin-bottom: 15px;
}

.main-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.main-content figure {
    margin: 20px 0;
}

.read-more-btn {
    margin-top: 20px;
}

/* Sidebar */
.primary-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-widget {
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.sidebar-widget .widget-title {
    text-align: center;
    background-color: #c80404;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 16px;
    padding: 15px;
    margin: 0;
}

.sidebar-form {
    padding: 10px;
    background: #fff;
}

.sidebar-form .form-field {
    margin-bottom: 5px;
}

.sidebar-form select {
    padding: 10px 30px 10px 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(1.1em), calc(100% - 10px) calc(1.1em);
    background-size: 6px 5px, 6px 5px;
    background-repeat: no-repeat;
}

.sidebar-form textarea {
    height: 100px;
    resize: vertical;
}

.sidebar-form .form-check {
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.sidebar-form .form-check input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.sidebar-form .recaptcha-note {
    font-size: 12px;
    line-height: 1.2;
    color: #000;
    margin-bottom: 5px;
}

.sidebar-form .recaptcha-note a { color: #000; }

.sidebar-form button {
    width: 100%;
    padding: 12px;
    border: 1px solid #000;
    color: #ffffff;
    background: #0404a4;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}
.sidebar-form button:hover {
    background: #c80404;
    color: #ffffff;
}

/* ============================
   ABOUT SECTION
   ============================ */
.about-section {
    padding: 60px 15px;
    background: #f5f5f5;
}

.about-inner {
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-content { flex: 1; }

.about-content .highlight {
    font-weight: 600;
    color: #000;
}

.about-content ul {
    margin-bottom: 30px;
}

.about-content ul li {
    padding: 0 0 5px 30px;
    position: relative;
}

.about-content ul li::before {
    content: "\f058";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #a57c00;
    font-size: 16px;
    position: absolute;
    left: 0;
    top: 0;
}

.about-image {
    width: 45%;
    flex-shrink: 0;
}

/* ============================
   BADGE SECTION
   ============================ */
.badge-section {
    padding: 60px 15px;
    background: #ffffff;
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.badge-item {
    width: calc(25% - 30px);
    text-align: center;
}

.badge-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.badge-item .badge-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.badge-item .badge-desc {
    font-size: 14px;
    color: #000;
}

/* ============================
   REVIEWS SECTION
   ============================ */
.review-section {
    padding: 60px 15px;
    background: #333333;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff;
}

.review-section::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
}

.review-section .review-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.review-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.review-section .section-title { color: #ffffff; }
.review-section .section-desc { color: #ffffff; }

.review-carousel {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.review-item { display: none; }
.review-item.active { display: block; }

.review-stars { color: #FF9529; font-size: 14px; margin-bottom: 10px; }

.review-text {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.5;
}

.review-author {
    font-style: italic;
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
}

.review-dots {
    text-align: center;
    margin-top: 20px;
}
.review-dots button {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    margin: 0 3px;
    cursor: pointer;
    padding: 0;
}
.review-dots button.active { background: #fff; }

.review-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* ============================
   BLOG SECTION
   ============================ */
.blog-section {
    padding: 60px 15px;
    background: #ffffff;
}

.blog-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-grid {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.blog-card {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.blog-card:hover { box-shadow: 0 0 15px rgba(0,0,0,0.15); }

.blog-card .blog-image {
    width: 100%;
    height: 200px;
    background: #ddd;
    overflow: hidden;
}
.blog-card .blog-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.blog-card .blog-content { padding: 15px; }

.blog-card .blog-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.blog-card .blog-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
}
.blog-card .blog-title a { color: #000; }
.blog-card .blog-title a:hover { color: #0404a4; }

.blog-card .blog-excerpt {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.blog-section .section-btn { text-align: center; }

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
    padding: 60px 15px;
    background: #0404a4;
    text-align: center;
    color: #ffffff;
}

.cta-section .cta-label {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 5px;
}

.cta-section .cta-title {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-section .cta-desc {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 25px;
}

.cta-section .btn-red { font-size: 18px; padding: 15px 30px; }

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 15px 20px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col.footer-about { flex: 1.5; }

.footer-col .footer-logo { margin-bottom: 15px; }
.footer-col .footer-logo img { height: 50px; }

.footer-col p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.footer-col .footer-heading {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-col .footer-info-item {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.4;
}

.footer-col .footer-info-item i {
    margin-right: 8px;
    color: #a57c00;
}

.footer-col .footer-info-item a { color: #ccc; }
.footer-col .footer-info-item a:hover { color: #ffffff; }

.footer-col .footer-links li { margin-bottom: 8px; }
.footer-col .footer-links li a {
    color: #ccc;
    font-size: 14px;
}
.footer-col .footer-links li a:hover { color: #ffffff; }
.footer-col .footer-links li a i { margin-right: 8px; }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: #ffffff;
    border-radius: 3px;
    padding: 8px;
}
.footer-social a img { width: 20px; height: 20px; }
.footer-social a i { color: #000; font-size: 16px; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #999;
}

/* ============================
   SUBPAGE STYLES
   ============================ */
.page-hero {
    margin-top: 120px;
    background: #0404a4;
    padding: 40px 15px;
    text-align: center;
}
.page-hero h1 { color: #ffffff; font-size: 35px; margin: 0; }

.page-content {
    padding: 60px 15px;
}

.page-content .inner-width {
    max-width: 900px;
}

/* Contact page */
.contact-info-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info-item {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.contact-info-item i {
    font-size: 30px;
    color: #0404a4;
    margin-bottom: 10px;
}

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

.contact-form-section .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-form-section .form-row .form-field { flex: 1; }

/* Google Map */
.map-section iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ============================
   HEADER SCROLL STATE
   ============================ */
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* ============================
   FORM RESPONSE MESSAGES
   ============================ */
.form-response {
    display: block;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    min-height: 0;
}

.form-response.form-success {
    color: #1a7a1a;
    background: #e8f5e9;
    padding: 10px 12px;
    border-radius: 4px;
    border-left: 4px solid #1a7a1a;
}

.form-response.form-error {
    color: #c80404;
    background: #fff0f0;
    padding: 10px 12px;
    border-radius: 4px;
    border-left: 4px solid #c80404;
}

/* Disable button while submitting */
.fourstar-contact-form button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================
   POST STYLES
   ============================ */
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 20px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content img { max-width: 100%; height: auto; margin-bottom: 15px; }
.entry-content h2, .entry-content h3 { margin-top: 25px; }

/* WordPress-specific: screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress nav menu overrides */
.nav-menu .menu-item a {
    color: #ffffff;
    background: #0404a4;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 3px;
    text-transform: uppercase;
    display: block;
    transition: all 0.3s ease;
}
.nav-menu .menu-item a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: #000000;
    background: #ffffff;
}

/* ============================
   404 PAGE
   ============================ */
.error-404-content {
    text-align: center;
    padding: 80px 15px;
    max-width: 600px;
    margin: 120px auto 0;
}
.error-404-content h1 {
    font-size: 80px;
    color: #0404a4;
    margin-bottom: 10px;
}
.error-404-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}
.error-404-content p {
    margin-bottom: 30px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .service-card { width: calc(50% - 10px); }
    .badge-item { width: calc(50% - 20px); }
    .blog-grid { flex-direction: column; }
    .about-inner { flex-direction: column; }
    .about-image { width: 100%; }
    .content-sidebar-inner { flex-direction: column; }
    .primary-sidebar { width: 100%; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .menu-toggle { display: block; }
    .nav-menu.show {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0; top: 0;
        width: 100%;
        height: 100vh;
        background: #0404a4;
        padding: 60px 15px;
        z-index: 300;
        overflow-y: auto;
    }
    .nav-menu.show li a {
        border-bottom: 1px solid #eee;
        border-radius: 0;
        padding: 12px 15px;
    }

    .header-cta .cta-btn { display: none; }
    .header-inner { justify-content: center; text-align: center; }
    .header-logo { padding: 0 40px; }

    .hero-slider { margin-top: 100px; }
    .hero-slide { height: 450px; }
    .hero-slide .caption-title { font-size: 22px; }

    .service-card { width: 100%; }
    .badge-item { width: 100%; }

    .footer-inner { flex-direction: column; }
    .footer-col { min-width: 100%; }

    .contact-info-grid { flex-direction: column; }
    .contact-form-section .form-row { flex-direction: column; }

    .services-grid { flex-direction: column; }
}

@media (min-width: 1025px) {
    .menu-toggle { display: none; }
}
