/* Color Scheme from jkab2.jpg */
:root {
    --brand-orange: #f36f21;
    --brand-grey: #414042;
    --dark-bg: #111111;
    --light-bg: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #333;
}

/* Navigation - Mobile Responsive */
/* header logo under jkab css*/
.main-header {
    background: var(--dark-bg);
    padding: 20px;
    border-bottom: 3px solid var(--brand-orange);
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.orange-text { color: var(--brand-orange); }
.grey-text { color: #888; }

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-menu a.active {
    color: var(--brand-orange);
}

/* Hero Section */
/* Hero Section Layout */
.hero-block {
    position: relative; /* Needed to layer the text over images */
    height: 60vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

/* Slideshow Container */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind the text */
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth fade effect */
}

/* The Active Slide */
.hero-slide.active {
    opacity: 1;
}

/* Dark overlay so text is readable */
.hero-block::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Adjust darkness here */
    z-index: 2;
}

/* Hero Text Content */
.hero-inner {
    position: relative;
    z-index: 3; /* Above the images and the overlay */
    padding: 20px;
}

/* Desktop Adjustment */
@media (min-width: 768px) {
    .hero-block { height: 80vh; }
    .hero-inner h1 { font-size: 4rem; }
}
/* end of Hero Section */
.cta-button {
    display: inline-block;
    background-color: #f36f21 !important; /* The JKAB Orange */
    color: #ffffff !important;             /* White Text */
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 20px;
    position: relative; 
    z-index: 10;                           /* Layers it above the slideshow */
    transition: transform 0.2s;
    border: none;
}
.cta-button:hover { transform: scale(1.05); }

/* Slogan */
.slogan-strip {
    background: var(--brand-grey);
    color: var(--white);
    text-align: center;
    padding: 25px;
    font-style: italic;
    font-size: 1.2rem;
}

/* Grid Layout */
.info-section { padding: 50px 20px; background: var(--light-bg); }

.grid-layout {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.card h3 { color: var(--brand-orange); margin-bottom: 10px; }

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: #777;
    text-align: center;
    padding: 30px;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .brand { margin-bottom: 0; }
    
    .hero-block { height: 75vh; }
    .hero-inner h1 { font-size: 4rem; }

    .grid-layout {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    }
}

/* features section or cards css*/


/* Card Container - New Black Background */
.card {
    background: var(--dark-bg); /* Uses the black from your logo */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent; /* Hidden border to prevent jumping on hover */
    transition: border-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* White text for the black cards */
.card h3 { 
    color: var(--brand-orange); 
    margin-bottom: 10px; 
}

.card p {
    color: var(--white);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Card Image Frame */
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #222; /* Darker placeholder if image fails to load */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover Effect: Orange Border and Lift */
.card:hover {
    border-color: var(--brand-orange); /* The orange border from your logo */
    transform: translateY(-5px); /* Makes the card lift up slightly */
    cursor: pointer;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

/* Small adjustment for mobile to keep the cards distinct */
@media (max-width: 767px) {
    .card {
        margin-bottom: 10px;
    }
}

/* Contact Page Layout css exclusively for contact*/
/* Dark Theme Base */
.dark-theme {
    background-color: #1a1a1b; /* Dark grey background from conp1.jpg */
    color: #ffffff;
}

.page-title {
    text-align: center;
    color: var(--brand-orange);
    margin: 40px 0;
    font-size: 2rem;
}

/* Three-Column Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 col on mobile */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.contact-card {
    background: #2d2d2e; /* Slightly lighter card background */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.card-heading {
    color: var(--brand-orange);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

/* Quote Form Styling */
.quote-form input, .quote-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #3e3e3f;
    border: 1px solid #555;
    color: white;
    border-radius: 4px;
}

/* Business Hours Styling */
.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.emergency-note {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 20px;
    font-style: italic;
}

/* Map Styling */
.map-placeholder {
    margin-top: 15px;
}

.map-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.map-link {
    color: var(--brand-orange);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Desktop Adjustment (Screens wider than 992px) */
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cols on desktop */
    }
} 
/* end of css for contact page  */


/* logo css on the home page under jkab contracting  */
/* Clean Header Reset */
.site-header {
    background-color: #1a1a1b;
    padding: 15px 0;
    width: 100%;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-top {
    display: flex;
    align-items: center; /* This puts logo and text on the same line */
    gap: 15px;           /* Space between logo and text */
    margin-bottom: 15px;
}

.brand-img {
    height: 80px;        /* Keeps logo height aligned with text */
    width: auto;
}

.brand-name {
    font-size: 1.8rem;
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-item.active {
    color: #f36f21;
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .header-top {
        flex-direction: column; /* Stacks them if the screen is too narrow */
        text-align: center;
    }
}
/* Making logo bigger on the home page  */
/* Updated Logo Size for Home Page */
.brand-img {
    height: 100px; /* Increased from 60px to 100px */
    width: auto;
    transition: height 0.3s ease; /* Makes the resize look smooth */
}

.brand-name {
    font-size: 2.2rem; /* Increased text size slightly to match the bigger logo */
    margin: 0;
}

/* Desktop Adjustment - Make it even bolder on big screens */
@media (min-width: 992px) {
    .brand-img {
        height: 130px; /* Nice and big for desktop users */
    }
    
    .brand-name {
        font-size: 2.8rem;
    }
    
    .header-top {
        gap: 25px; /* More space between the big logo and big text */
    }
}
/* css for the about page  */
/* --- ABOUT PAGE STYLES --- */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.about-hero {
    text-align: center;
    padding: 40px 0;
}

.about-title {
    color: var(--brand-orange);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    font-style: italic;
}

/* Two-column layout for Bio */
.about-content-box {
    display: grid;
    grid-template-columns: 1fr; /* 1 col on mobile */
    gap: 40px;
    margin: 40px 0;
    background: #2d2d2e;
    padding: 30px;
    border-radius: 8px;
    align-items: center;
}

.about-text h2 {
    color: var(--brand-orange);
    margin-bottom: 20px;
}

.about-text p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.about-pic {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Core Values 3-Column Grid */
.values-section {
    margin: 60px 0;
    text-align: center;
}

.section-heading {
    color: var(--brand-orange);
    margin-bottom: 30px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.value-card {
    background: #2d2d2e;
    padding: 25px;
    border-radius: 6px;
    border-top: 3px solid var(--brand-orange); /* Adds a sharp orange line at the top */
}

.value-card h3 {
    margin-bottom: 10px;
}

.value-card p {
    color: #ccc;
    font-size: 0.95rem;
}

/* About Page CTA section */
.about-cta {
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('jkab2.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.about-cta h2 {
    color: #fff;
    margin-bottom: 10px;
}

.about-cta p {
    color: #ccc;
    margin-bottom: 25px;
}

/* Desktop Adjustments */
@media (min-width: 768px) {
    .about-content-box {
        grid-template-columns: 1.2fr 0.8fr; /* Text wider than image */
    }
    
    .values-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cards side-by-side */
    }
}  
/* css for the about page slideshow */
/* --- ABOUT CTA SLIDESHOW STYLE --- */
.about-cta {
    position: relative;
    width: 100%;
    min-height: 350px; /* Gives the section good height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* The container for the moving backgrounds */
.cta-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Individual Slides */
.cta-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth crossfade */
}

/* Dark tint over the images so white text pops */
.cta-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Adjust 0.75 to make it darker or lighter */
    z-index: 2;
}

/* The actual text content sitting safely on top */
.about-cta-content {
    position: relative;
    z-index: 3; /* Keeps text above the dark overlay */
    text-align: center;
    padding: 40px 20px;
}

.about-cta-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-cta-content p {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 25px;
} 
/* css  for why chose jkab Images  */
/* Value Card Image Styling */
.value-card-image {
    width: 100%;
    height: 180px;       /* Sets a uniform height for the image area */
    overflow: hidden;    /* Cuts off any extra image spill */
    border-radius: 4px;  /* Slightly rounds the image corners */
    margin-bottom: 15px; /* Creates space between image and the text below it */
}

.value-img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Magic line: fills the space perfectly without stretching or squishing */
    object-position: center;
    display: block;
}

/* Adjusting the card itself to look clean with an image */
.value-card {
    display: flex;
    flex-direction: column;
    text-align: left;    /* Aligns text nicely under the image */
} 
/* css for the slideshow on the description of services */
/* --- CARD SLIDER STYLES --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 200px; /* Keeps the card image area a consistent height */
    overflow: hidden;
    border-radius: 4px;
}

.slider-track {
    display: flex; /* Lines images up horizontally side-by-side */
    width: 300%;   /* 300% because there are 3 images total */
    height: 100%;
    transition: transform 0.5s ease-in-out; /* Creates the smooth sliding look */
}

.slider-track img {
    width: 33.333%; /* Each image takes up exactly 1/3 of the track */
    height: 100%;
    object-fit: cover;
}


/* Chevron Buttons */
.chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 18px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    z-index: 10;
    user-select: none;
}

.chevron:hover {
    background: var(--brand-orange);
    color: #000;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Mobile optimization */
@media (max-width: 600px) {
    .slider-container {
        height: 180px; /* Marginally shorter on small mobile devices */
    }
    .chevron {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* css for the hammer/nails animation */

/* --- HERO 3D TOOL ANIMATION --- */
.tool-animation-container {
    display: none; /* Hidden by default until click */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Dims background to focus on animation */
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.animation-stage {
    position: relative;
    width: 300px;
    height: 300px;
}

/* 3D-Look Nail */
.the-nail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 80px;
    background: linear-gradient(90deg, #888, #bbb, #555); /* 3D metallic shine */
    border-radius: 0 0 4px 4px;
    transition: height 0.2s ease;
}
/* Nail Head */
.the-nail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 32px;
    height: 10px;
    background: linear-gradient(180deg, #bbb, #777);
    border-radius: 3px;
}

/* 3D-Look Hammer */
.the-hammer {
    position: absolute;
    top: -20px;
    left: 140px;
    width: 120px;
    height: 40px;
    background: linear-gradient(180deg, #444, #222); /* Metal head */
    border-radius: 6px;
    transform-origin: 100px 20px; /* Pivot point for the swing */
    transform: rotate(-45deg);
}
/* Hammer Handle */
.the-hammer::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 80px;
    width: 25px;
    height: 180px;
    background: linear-gradient(90deg, #d36f21, #f36f21, #a34f01); /* Orange/Wood handle */
    border-radius: 4px;
    transform: rotate(-90deg);
    transform-origin: top left;
}

/* THE SWINGING ACTION */
@keyframes hammerStrike {
    0% { transform: rotate(-45deg); }
    30% { transform: rotate(15deg); } /* Hits nail */
    40% { transform: rotate(5deg); }  /* Slight rebound */
    70% { transform: rotate(-45deg); } /* Pulls back */
    100% { transform: rotate(-45deg); }
}

.animate-hammer {
    animation: hammerStrike 1.2s ease-in-out infinite;
}

/* Impact Spark Visual */
.spark-effect {
    display: none;
    position: absolute;
    bottom: 125px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ffea00 10%, transparent 70%);
    border-radius: 50%;
}

/* --- new orange HQ hammer  --- */
CSS
/* --- PREMIUM REALISTIC HAMMER ANIMATION (HAMMA.PNG) --- */

/* 1. Safely hide old CSS block code without breaking the container */
.tool-animation-container .the-hammer {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    opacity: 0 !important;
}

/* 2. Position and mathematically size your high-res hamma.png */
.pro-hammer-img {
    position: absolute;
    top: -150px;        /* Pulls the tall image container up to align the metal head */
    left: 45px;         /* Aligns the strike zone right over the nail head */
    width: 210px;       /* Sharp desktop scaling */
    height: auto;
    display: block;
    
    /* PINS THE PIVOT POINT TO THE BOTTOM-RIGHT ORANGE GRIP HAND-ZONE */
    transform-origin: 175px 235px; 
    
    /* Default angled resting position */
    transform: rotate(35deg); 

    /* Rich depth shadow behind the tool cutout */
    filter: drop-shadow(6px 12px 8px rgba(0,0,0,0.45));
}

/* 3. The Perfect Counter-Clockwise Strike Flow */
@keyframes hammerStrike {
    0% { transform: rotate(35deg); }
    30% { transform: rotate(-22deg); }  /* Fast downward smash flush against the nail head */
    40% { transform: rotate(-12deg); }  /* Snappy mechanical rebound bounce */
    70% { transform: rotate(35deg); }   /* Smooth reset draw back */
    100% { transform: rotate(35deg); }
}

/* Ties the swing keyframes to your new asset class */
.animate-hammer {
    animation: hammerStrike 1.2s ease-in-out infinite !important;
}

/* Mobile Screen Container Protection */
@media (max-width: 600px) {
    .animation-stage {
        transform: scale(0.75); 
    }
}

/* css for get free estimate on about page */
/* --- PREMIUM ESTIMATE BUTTON & IMAGE BOUNCE --- */

/* Base Button Styling */
.estimate-button {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Clean spacing between your PNG and the text */
    padding: 14px 28px;
    background-color: #f36f21; /* Brand JKAB Orange */
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.estimate-button:hover {
    background-color: #d36f21;
}

/* Crisp Sizing for calc1.png */
.estimate-icon {
    width: 24px;   /* Shrinks the 512px canvas perfectly into the button */
    height: 24px;  
    object-fit: contain; /* Prevents image squishing */
    display: block;
}

/* The Animated Class (Triggered via JS click) */
.animate-bounce {
    /* Uses the exact 1.2s duration of your hammer strike! */
    animation: iconBounce 1.2s ease-in-out infinite !important;
}

/* Physics-based Bounding Box Animation */
@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-12px); /* Pops straight up into the air */
    }
    45% {
        transform: translateY(2px);   /* Slight landing compression */
    }
    60% {
        transform: translateY(-4px);  /* Smaller trailing bounce */
    }
    75% {
        transform: translateY(0);
    }
}
/* end of css for get free estimate on about page */

/* --- FIX: FULL SCREEN CALCULATOR TAKEOVER --- */

/* Fresh Button Styling to prevent duplication bugs */
.mega-estimate-btn {
    display: inline-block !important;
    padding: 14px 28px !important;
    background-color: #f36f21 !important; /* JKAB Orange */
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    transition: background 0.3s ease !important;
    cursor: pointer !important;
}

.mega-estimate-btn:hover {
    background-color: #d36f21 !important;
}

/* Forces the full-screen container to stay completely hidden until clicked */
.calc-animation-container {
    display: none; 
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important; /* Deep dark overlay */
    z-index: 99999 !important; /* Pushes it above EVERYTHING else */
    align-items: center !important;
    justify-content: center !important;
}

/* Stage Area Box */
.calc-stage {
    position: relative !important;
    width: 300px !important;
    height: 300px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* The Giant Bouncing Calculator Asset */
.giant-calc-img {
    width: 220px !important; 
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6)) !important; 
}

/* High-Impact 1.2s Bouncing Loop */
@keyframes megaBounce {
    0%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-80px); /* Launches straight up */
    }
    45% {
        transform: translateY(10px);  /* Crisp ground impact bounce */
    }
    60% {
        transform: translateY(-20px); /* Micro bounce decay */
    }
    75% {
        transform: translateY(0);
    }
}

/* Triggers the loop on click */
.animate-mega-calc {
    animation: megaBounce 1.2s ease-in-out infinite !important;
}



