/*
Theme Name: GC Framing v2026
Theme URI: https://gcframing.com/
Description: The theme for GC Framing
Author: Interactive Utopia
Author URI: http://InteractiveUtopia.com
License: Private

Colors:
#574109  Primary Brown
#D4C369  Gold / Tan
#737144  Olive Green
#FFE3C8  Light Peach
#156073  Deep Teal
#4AA8C0  Light Teal
*/

/* ==============================================
   DESIGN TOKENS
   ============================================== */
:root {
    /* Brand Colors */
    --color-brown: #574109;
    --color-gold: #D4C369;
    --color-olive: #737144;
    --color-peach: #FFE3C8;
    --color-teal: #156073;
    --color-teal-light: #4AA8C0;
    --color-white: #ffffff;

    /* Translucent variants */
    --color-brown-05: rgba(87, 65, 9, 0.05);
    --color-brown-10: rgba(87, 65, 9, 0.10);
    --color-brown-20: rgba(87, 65, 9, 0.20);
    --color-teal-10: rgba(21, 96, 115, 0.10);

    /* Spacing scale (4px base) */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;

    /* Typography */
    --font-serif: 'Kameron', Georgia, serif;
    --font-sans: 'Pavanam', Arial, sans-serif;

    /* Type scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Easing */
    --ease-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows — warm brown tones */
    --shadow-sm: 0 1px 3px rgba(87, 65, 9, 0.08), 0 1px 2px rgba(87, 65, 9, 0.05);
    --shadow-md: 0 4px 12px rgba(87, 65, 9, 0.10), 0 2px 4px rgba(87, 65, 9, 0.06);
    --shadow-lg: 0 12px 28px rgba(87, 65, 9, 0.12), 0 4px 8px rgba(87, 65, 9, 0.07);

    /* Border radii */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Layout */
    --max-content: 1140px;

    /* Set by JS to the actual rendered header height; fallback used before script fires */
    --header-height: 110px;
}

/* ==============================================
   RESET & BASE
   ============================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-white);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: #2d2d2d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==============================================
   TYPOGRAPHY
   ============================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--color-brown);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(1.6rem, 4vw, var(--text-4xl));
    padding: var(--sp-3) 0;
}

h2 {
    font-size: clamp(1.2rem, 3vw, var(--text-3xl));
    padding: var(--sp-2) 0 var(--sp-3);
}

h3 {
    font-size: clamp(1.05rem, 2.5vw, var(--text-xl));
    padding: var(--sp-2) 0;
}

h4 {
    font-size: var(--text-lg);
    margin: var(--sp-4) 0 var(--sp-8);
}

p {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    margin-bottom: var(--sp-4);
}

strong {
    color: var(--color-brown);
}

a {
    color: var(--color-teal);
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color var(--ease-fast), text-decoration-color var(--ease-fast);
}

a:hover {
    color: var(--color-teal-light);
    text-decoration-color: currentColor;
}

/* ==============================================
   LAYOUT UTILITIES
   ============================================== */
.container {
    max-width: var(--max-content);
    margin-inline: auto;
    padding-inline: var(--sp-4);
}

.container-fluid {
    /* 90% on normal screens, capped at 1600px on 4K/ultrawide */
    max-width: min(90%, 1600px);
    margin-inline: auto;
}

.browserDisplayContainer {
    width: 100%;
}

.homeContainer {
    background-color: var(--color-white);
    padding: var(--sp-4);
    margin-inline: auto;
}

/* Legacy float utilities — kept for backward compatibility */
.floatLeft {
    float: left;
    margin-right: var(--sp-2);
    margin-bottom: var(--sp-2);
}

.clearFloat {
    clear: both;
}

/* ==============================================
   HEADER — STICKY WITH SCROLL SHADOW
   ============================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease-base);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

/* --- Phone Banner --- */
#phoneNumberClickToCallContainerBox {
    background: linear-gradient(to right, var(--color-peach), rgba(255, 227, 200, 0.65));
    border-bottom: 1px solid var(--color-brown-10);
}

#phoneNumberClickToCall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-4);
    flex-wrap: wrap;
}

#phoneNumberClickToCall h3 {
    font-size: var(--text-xs);
    padding: 0;
    margin: 0;
    color: var(--color-brown);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#phoneNumberClickToCall a {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 700;
    text-decoration: none;
    color: var(--color-brown);
    letter-spacing: 0.02em;
    display: inline-block;
    transition: color var(--ease-fast), transform var(--ease-spring);
}

#phoneNumberClickToCall a:hover {
    color: var(--color-teal);
    transform: scale(1.04);
    text-decoration: none;
}

.callTodayIcon {
    width: 20px;
    height: auto;
    float: none;
    margin: 0;
    animation: phone-ring 4s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes phone-ring {

    0%,
    84%,
    100% {
        transform: rotate(0deg);
    }

    86% {
        transform: rotate(-14deg);
    }

    88% {
        transform: rotate(14deg);
    }

    90% {
        transform: rotate(-10deg);
    }

    92% {
        transform: rotate(10deg);
    }

    94% {
        transform: rotate(-5deg);
    }

    96% {
        transform: rotate(5deg);
    }
}

/* Legacy span — kept for backward compatibility */
.callTodaySpan {
    font-weight: bold;
    font-size: var(--text-2xl);
    font-family: var(--font-serif);
}

/* --- Navbar --- */
nav {
    margin: 0;
}

.navbar {
    padding: var(--sp-2) 0;
}

.bg-light {
    background-color: var(--color-white) !important;
}

.mainLogo {
    width: 160px;
    height: auto;
    transition: opacity var(--ease-fast);
}

.mainLogo:hover {
    opacity: 0.82;
}

.logoContainer {
    width: auto;
    margin: 0;
    padding: 0;
}

.navbar-toggler {
    border: 1.5px solid var(--color-brown-20);
    border-radius: var(--radius-md);
    padding: var(--sp-2) var(--sp-3);
    color: var(--color-brown);
    font-size: var(--text-sm);
    transition: background-color var(--ease-fast), border-color var(--ease-fast);
}

.navbar-toggler:hover {
    background-color: var(--color-brown-05);
    border-color: var(--color-brown-20);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--color-teal-10);
    outline: none;
}

/* Nav links with underline reveal */
.nav-link {
    position: relative;
    color: var(--color-brown) !important;
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: 500;
    padding: var(--sp-2) var(--sp-3) !important;
    margin: 0 var(--sp-1);
    letter-spacing: 0.01em;
    transition: color var(--ease-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: var(--sp-3);
    right: var(--sp-3);
    height: 2px;
    background: var(--color-teal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--ease-base);
    border-radius: var(--radius-full);
}

.nav-link:hover {
    color: var(--color-teal) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown */
.dropdown-item {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    padding: var(--sp-2) var(--sp-5);
    color: var(--color-brown);
    transition: background-color var(--ease-fast), color var(--ease-fast), padding-left var(--ease-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--color-peach);
    color: var(--color-teal);
    padding-left: calc(var(--sp-5) + 4px);
}

.dropdown-menu {
    border: 1px solid var(--color-brown-10);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--sp-2) 0;
    margin-top: var(--sp-1);
    animation: menu-appear var(--ease-base) forwards;
}

@keyframes menu-appear {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==============================================
   SCROLL-REVEAL ANIMATIONS
   ============================================== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
}

.animate-on-scroll.is-visible {
    /* --anim-delay set per-element by JS for stagger */
    animation: fadeSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--anim-delay, 0s) forwards;
}

@media (prefers-reduced-motion: reduce) {

    .animate-on-scroll,
    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Legacy SlickNav — hidden */
.slicknav_menu {
    display: none;
}

/* Legacy headerMenu */
.headerMenu a {
    font-size: var(--text-lg);
    font-family: var(--font-serif);
    color: var(--color-olive);
    text-decoration: none;
    transition: color var(--ease-fast);
}

.headerMenu a:hover {
    color: var(--color-teal);
}

.headerMenu li {
    list-style: none;
}

/* ==============================================
   HERO IMAGE
   ============================================== */
.container-header {
    margin: 0;
    overflow: hidden;
    position: relative;
    background-color: var(--color-brown-05);
    /* Fill remaining viewport below the sticky header.
       --header-height is written by JS on every load/resize.
       100dvh = dynamic viewport height (adjusts for mobile browser chrome). */
    height: calc(100dvh - var(--header-height));
    min-height: 300px;
}

.container-header picture {
    display: block;
    width: 100%;
    height: 100%;
}

.container-header picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ==============================================
   HOMEPAGE TWO-COLUMN LAYOUT
   ============================================== */
.home-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-8);
    padding-block: var(--sp-6);
}

/* Prevent grid blowout */
.homeLeftContent,
.homeSideBar {
    min-width: 0;
}

/* Social icons */
.socialMedia {
    margin-bottom: var(--sp-6);
}

.socialMedia h3 {
    padding-bottom: var(--sp-2);
    margin-bottom: var(--sp-3);
    border-bottom: 2px solid var(--color-gold);
}

.socialMedia a {
    display: inline-block;
    margin-right: var(--sp-2);
    margin-bottom: var(--sp-2);
    border-radius: var(--radius-sm);
    transition: transform var(--ease-spring), opacity var(--ease-fast);
}

.socialMedia a:hover {
    transform: translateY(-3px) scale(1.12);
    opacity: 0.88;
}

.socialMedia img {
    width: 36px;
    height: 36px;
    vertical-align: middle;
}

/* Sidebar heading accent */
.homeSideBar>h3:first-of-type {
    padding-bottom: var(--sp-2);
    margin-bottom: var(--sp-4);
    border-bottom: 2px solid var(--color-gold);
}

/* Estimate form controls */
.homeSideBar .form-control,
.homeSideBar .form-select {
    border-color: var(--color-brown-20);
    border-radius: var(--radius-md);
    transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}

.homeSideBar .form-control:focus,
.homeSideBar .form-select:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px var(--color-teal-10);
}

.homeSideBar .btn-primary {
    width: 100%;
    background-color: var(--color-brown);
    border-color: var(--color-brown);
    padding: var(--sp-3) var(--sp-8);
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.025em;
    border-radius: var(--radius-full);
    transition: background-color var(--ease-fast),
        border-color var(--ease-fast),
        transform var(--ease-spring),
        box-shadow var(--ease-fast);
}

.homeSideBar .btn-primary:hover {
    background-color: var(--color-teal);
    border-color: var(--color-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.homeSideBar .btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Thank-you confirmation */
.home-confirmation h3 {
    padding: var(--sp-8) 0;
    color: var(--color-teal);
}

/* ==============================================
   ARTICLES CAROUSEL
   ============================================== */
#myCarousel {
    height: 425px;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0 0 var(--sp-4) 0;
    border-radius: var(--radius-lg);
    background-color: var(--color-brown-05);
}

#myCarousel .carousel-item {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity var(--ease-slow);
}

#myCarousel .carousel-item.active {
    display: block;
    opacity: 1;
}

#myCarousel .img-fluid {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    background: rgba(87, 65, 9, 0.55);
    color: var(--color-white);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    transform: translateY(-50%);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background-color var(--ease-fast), transform var(--ease-spring);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(87, 65, 9, 0.85);
    transform: translateY(-50%) scale(1.1);
    color: var(--color-white);
}

.carousel-control-prev {
    left: var(--sp-3);
}

.carousel-control-next {
    right: var(--sp-3);
}

/* ==============================================
   PAGINATION
   ============================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-1);
    padding: var(--sp-8) 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 var(--sp-3);
    background-color: var(--color-gold);
    color: var(--color-brown);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-right: 0;
    transition: background-color var(--ease-fast),
        color var(--ease-fast),
        transform var(--ease-spring);
}

.page-numbers:hover {
    background-color: var(--color-teal-light);
    color: var(--color-white);
    transform: translateY(-2px);
}

.page-numbers.current {
    background-color: var(--color-brown);
    color: var(--color-white);
}

.page-numbers.dots {
    background-color: transparent;
    color: var(--color-olive);
    pointer-events: none;
}

.page-numbers.prev,
.page-numbers.next {
    background-color: var(--color-teal);
    color: var(--color-white);
    font-weight: 600;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
    background-color: var(--color-teal-light);
    transform: translateY(-2px);
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
    background-color: var(--color-gold);
    color: var(--color-olive);
}

footer h3 {
    color: var(--color-brown);
}

footer a {
    color: var(--color-brown);
    transition: color var(--ease-fast);
}

footer a:hover {
    color: var(--color-teal);
    text-decoration-color: currentColor;
}

.footerContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: var(--sp-8) var(--sp-4);
    margin-inline: auto;
    overflow: auto;
}

/* Clear legacy floats — grid handles layout */
.footerEmailSignUp,
.footerTestimonials {
    width: auto;
    float: none;
}

.footerTestimonials p {
    color: var(--color-brown);
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-style: italic;
    line-height: 1.65;
}

.footer_title {
    font-size: var(--text-xl) !important;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-brown) !important;
    margin-bottom: var(--sp-3);
}

/* Newsletter form */
.emailNewsletterSignUpForm {
    display: flex;
    gap: var(--sp-2);
    align-items: center;
    flex-wrap: wrap;
}

.emailNewsletterSignUpForm input[type=email] {
    flex: 1;
    min-width: 180px;
    height: 2.5rem;
    padding: 0 var(--sp-4);
    border: 1.5px solid var(--color-brown-20);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    background: rgba(255, 255, 255, 0.65);
    width: auto;
    margin-right: 0;
    transition: border-color var(--ease-fast),
        box-shadow var(--ease-fast),
        background var(--ease-fast);
}

.emailNewsletterSignUpForm input[type=email]:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px var(--color-teal-10);
    background: var(--color-white);
}

.emailNewsletterSignUpFormSubmitBtn {
    background-image: url(https://gcframing.com/images/btn_signUp.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    height: 31px;
    width: 102px;
    border: none;
    cursor: pointer;
    font-size: 0px;
    line-height: 1em;
    transition: opacity var(--ease-fast), transform var(--ease-spring);
}

.emailNewsletterSignUpFormSubmitBtn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.footerText {
    font-size: var(--text-xs);
    margin-top: var(--sp-4);
    text-align: center;
    color: var(--color-brown);
    line-height: 1.8;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--color-brown-20);
    grid-column: 1 / -1;
    clear: none;
}

/* ==============================================
   HOMEPAGE CONTENT SECTIONS (from WP content)
   ============================================== */

/* Services icon grid */
#hp-jobsWeCanHelpYouWith-container ul {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-4);
    padding: 0;
    list-style: none;
    margin: 0;
}

#hp-jobsWeCanHelpYouWith li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--sp-4) var(--sp-2);
    font-size: var(--text-lg);
    font-family: var(--font-sans);
    min-height: 5em;
    vertical-align: top;
    transition: transform var(--ease-spring);
}

#hp-jobsWeCanHelpYouWith li:hover {
    transform: translateY(-4px);
}

#hp-jobsWeCanHelpYouWith li img {
    width: 70%;
    height: auto;
}

/* Intro paragraphs */
#introPGCFraming {
    color: var(--color-brown);
    font-size: 1.45em;
    line-height: 1.6;
}

#introPSDContractor {
    color: var(--color-olive);
    font-size: 1.15em;
    line-height: 1.65;
}

/* Feature list */
#homeListWhatGCHasToOffer li {
    display: inline-block;
    float: left;
    color: var(--color-olive);
    font-size: var(--text-base);
    font-family: var(--font-serif);
    width: 45%;
    margin-left: 5%;
    margin-top: var(--sp-2);
}

/* Legacy home slider */
#homeSlider {
    clear: both;
    max-height: 500px;
    overflow: hidden;
    margin: 0;
}

#homeSlider li {
    margin: 0;
}

#homeSlider li img {
    max-height: 500px;
}

/* ==============================================
   INNER PAGE & POST STYLES
   ============================================== */
.post li {
    margin-left: var(--sp-8);
    font-family: var(--font-sans);
    margin-bottom: var(--sp-1);
}

.post ul {
    margin-bottom: var(--sp-4);
}

/* Display posts listing */
.storycontent ul.display-posts-listing {
    margin: 0;
    padding: 0;
}

ul.display-posts-listing .listing-item {
    list-style: none;
    margin: 0 0 var(--sp-4);
}

ul.display-posts-listing .title {
    font-family: var(--font-serif);
    color: var(--color-brown);
    font-size: var(--text-xl);
    transition: color var(--ease-fast);
}

ul.display-posts-listing .title:hover {
    color: var(--color-teal);
}

/* Painting services */
.paint_images_container .row {
    margin: var(--sp-4) 0 var(--sp-8);
}

.paint_images_container .row p {
    margin: var(--sp-4) 0 0;
}

.paint_images {
    width: 100%;
    max-height: 12em;
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* Ninja Forms */
.ninja_form_title {
    font-size: var(--text-2xl);
    font-weight: bold;
}

#nf-field-4 {
    background-image: url(https://gcframing.com/images/btn_requestEstimate.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    height: 31px;
    width: 158px;
    border: none;
    cursor: pointer;
    font-size: 0px;
    line-height: 1em;
    transition: opacity var(--ease-fast), transform var(--ease-spring);
}

#nf-field-4:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.nf-field-label label {
    font-weight: normal !important;
}

.nf-form-fields-required {
    font-size: var(--text-sm);
}

#nf-field-4-container {
    text-align: right;
}

/* Jetpack related posts */
.jp-relatedposts-post-date,
.jp-relatedposts-post-context {
    color: #333300;
    opacity: 1 !important;
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */
:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ==============================================
   REDUCED MOTION
   ============================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==============================================
   RESPONSIVE — MOBILE FIRST
   ============================================== */

/* Tablet: 700px+ */
@media (min-width: 700px) {
    #innerPageLeftContainer {
        float: left;
        width: 72%;
        padding-right: 3%;
    }

    #innerPageRightContainer {
        float: right;
        width: 25%;
    }
}

/* Tablet landscape / small desktop: 768px+ */
@media (min-width: 768px) {
    .home-layout {
        grid-template-columns: 62fr 38fr;
        gap: var(--sp-10);
        align-items: start;
    }

    .footerContainer {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .footerText {
        grid-column: 1 / -1;
    }

    #myCarousel {
        height: 425px;
    }
}

/* Desktop: 1025px+ */
@media (min-width: 1025px) {
    .homeContainer {
        width: 80%;
        max-width: 1008px;
    }

    .mainLogo {
        width: 200px;
    }

    .logoContainer {
        width: 200px;
    }

    .footerContainer {
        width: 80%;
        max-width: 1008px;
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* Legacy float columns — overridden by grid */
    .footerContactInformation,
    .footerSocialMedia,
    .footerRequestAnEstimate {
        float: none;
        width: auto;
        margin-left: 0;
    }

    /* Legacy header columns */
    .headerContainer {
        display: inline-block;
        float: right;
        width: 70%;
        text-align: right;
    }

    .headerMenu {
        padding-top: var(--sp-10);
    }

    .headerMenu li {
        display: inline-block;
        float: right;
        padding-left: var(--sp-5);
    }

    #phoneNumberClickToCall {
        padding: var(--sp-3) var(--sp-4);
    }

    #phoneNumberClickToCall a {
        font-size: 1.5rem;
    }

    #phoneNumberClickToCall h3 {
        font-size: 0.8rem;
    }

    #hp-jobsWeCanHelpYouWith li {
        max-width: 10%;
        margin: var(--sp-2) 0.5%;
    }

    .socialMedia img {
        margin-right: var(--sp-2);
    }

    .nf-field-label label {
        font-weight: normal !important;
    }

    .nf-form-fields-required {
        font-size: var(--text-xs);
    }
}

/* Extra large: 2048px+ */
@media (min-width: 2048px) {
    #hp-jobsWeCanHelpYouWith li {
        max-width: 9%;
    }
}

/* Max-width overrides — backward compatibility */
@media (max-width: 1540px) {
    #hp-jobsWeCanHelpYouWith li {
        max-width: 15%;
    }
}

@media (max-width: 1024px) {
    .homeContainer {
        width: 90%;
    }

    #hp-jobsWeCanHelpYouWith li {
        width: 35%;
        margin: var(--sp-4) 1%;
    }

    h1 {
        padding: var(--sp-2) 0 0;
    }

    h2 {
        font-size: var(--text-xl);
    }

    .clearLogo {
        margin-bottom: var(--sp-4);
        text-align: center;
        margin-top: var(--sp-4);
    }

    .callTodayIcon {
        float: none;
    }

    .footerContainer {
        width: 90%;
    }

    .mainLogo {
        max-width: 75%;
    }
}

@media (max-width: 767px) {
    .container-header {
        height: auto;
        min-height: unset;
    }

    .container-header picture,
    .container-header picture img {
        height: auto;
        object-fit: initial;
    }

    #hp-jobsWeCanHelpYouWith li {
        max-width: 19%;
        margin: var(--sp-2) 0.5%;
    }

    #myCarousel {
        height: auto;
        max-height: 170px;
        overflow: hidden;
        object-fit: cover;
        border-radius: var(--radius-md);
    }

    #phoneNumberClickToCall {
        padding: var(--sp-2) var(--sp-3);
        gap: var(--sp-2);
    }

    .menu {
        display: none;
    }

    .navbar-collapse {
        flex-basis: 100%;
    }

    /* ---- Sidebar hidden from grid — becomes bottom-sheet drawer ---- */
    .homeSideBar {
        display: none;
    }

    .homeSideBar.drawer-open {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85dvh;
        overflow-y: auto;
        background: var(--color-white);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: var(--sp-6) var(--sp-5) var(--sp-10);
        z-index: 1200;
        box-shadow: var(--shadow-lg);
        animation: slideUpSheet 0.32s var(--ease-spring) forwards;
    }

    /* ---- Dim overlay ---- */
    .estimate-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(87, 65, 9, 0.45);
        z-index: 1199;
    }

    .estimate-overlay.overlay-open {
        display: block;
        animation: fadeIn 0.2s ease forwards;
    }

    /* ---- FAB button ---- */
    .estimate-fab {
        display: flex;
        align-items: center;
        gap: var(--sp-2);
        position: fixed;
        bottom: var(--sp-6);
        right: var(--sp-4);
        z-index: 1100;
        background: var(--color-teal);
        color: var(--color-white);
        border: none;
        border-radius: var(--radius-full);
        padding: var(--sp-3) var(--sp-5);
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: var(--text-sm);
        box-shadow: var(--shadow-md);
        cursor: pointer;
        letter-spacing: 0.02em;
        transition: transform var(--ease-spring), box-shadow var(--ease-fast), background-color var(--ease-fast);
    }

    .estimate-fab:hover {
        background: var(--color-brown);
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

    /* ---- Close button inside drawer ---- */
    .drawer-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: var(--sp-4);
        right: var(--sp-4);
        width: 32px;
        height: 32px;
        background: transparent;
        border: 1.5px solid var(--color-brown-20);
        border-radius: 50%;
        font-size: var(--text-base);
        color: var(--color-brown);
        cursor: pointer;
        line-height: 1;
        transition: background-color var(--ease-fast);
    }

    .drawer-close-btn:hover {
        background: var(--color-brown-05);
    }
}

@keyframes slideUpSheet {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* FAB, overlay, and close button are mobile-only */
@media (min-width: 768px) {

    .estimate-fab,
    .estimate-overlay,
    .drawer-close-btn {
        display: none;
    }
}

@media (max-width: 375px) {
    #hp-jobsWeCanHelpYouWith li {
        max-width: 35%;
    }
}

@media (max-width: 320px) {
    #hp-jobsWeCanHelpYouWith li {
        max-width: 75%;
    }

    p {
        font-size: var(--text-base);
    }
}