/* ==========================================================================
    Custom Craft Metal — Stylesheet
    ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --ccm-gold: #d4b27c;
    --ccm-gold-soft: #c9a876;
    --ccm-gold-light: #e0c190;
    --ccm-dark: #1a1c1d;
    --ccm-dark-2: #2a2d2e;
    --ccm-white: #ffffff;
    --ccm-muted: rgba(255, 255, 255, 0.7);
    --ccm-muted-2: rgba(255, 255, 255, 0.5);

    --ccm-font: 'Urbanist';
    --ccm-transition: all 0.25s ease;
    --ccm-radius: 0.5rem;
}

/* ---------- Global Resets & Base ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ccm-font);
    color: var(--ccm-white);
    background-color: var(--ccm-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--ccm-transition);
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    background-color: #2a2d2e;
    /* fallback */
    background-image: url('../img/hero-bg.webp');
    /* your image */
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* ==========================================================================
    Buttons
    ========================================================================== */
.btn-gold-pill {
    background-color: var(--ccm-gold);
    color: var(--ccm-dark) !important;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 0.7rem 1.75rem;
    border-radius: 999px;
    border: none;
    transition: var(--ccm-transition);
}

.btn-gold-pill:hover,
.btn-gold-pill:focus {
    background-color: var(--ccm-gold-light);
    color: var(--ccm-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 178, 124, 0.35);
}

.btn-gold-block {
    display: block;
    width: 100%;
    background-color: var(--ccm-gold);
    color: var(--ccm-dark);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    border: none;
    transition: var(--ccm-transition);
}

.btn-gold-block:hover,
.btn-gold-block:focus {
    background-color: var(--ccm-gold-light);
    color: var(--ccm-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(212, 178, 124, 0.4);
}

/* ==========================================================================
    HERO SECTION
    ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    color: var(--ccm-white);
    /* Top padding compensates for the now-fixed .site-header which
        is removed from the document flow. Adjusted in media queries
        below since the header gets taller as columns stack. */
    padding: 10rem 0 2rem;
    isolation: isolate;
}

/* ---------- Sticky / Transparent Site Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 1rem 0;
    background-color: transparent;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        padding 0.3s ease,
        backdrop-filter 0.3s ease;
}

.site-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Inside the fixed header we no longer need the bottom spacer
    that originally separated the topbar from .hero__main */
.site-header .hero__topbar {
    padding-bottom: 0;
}

/* Logo and phone are vertically centered together via the row's
    align-items-center class, so no extra logo nudge is needed. */

/* Scrolled state — solid background with blur + subtle shadow */
.site-header.is-scrolled {
    background-color: rgba(26, 28, 29, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 178, 124, 0.15);
}


/* Architectural accent lines on the background */
.hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, transparent, transparent 49.9%, rgba(212, 178, 124, 0.06) 50%, transparent 50.1%),
        linear-gradient(90deg, transparent, transparent 19.9%, rgba(212, 178, 124, 0.05) 20%, transparent 20.1%),
        linear-gradient(90deg, transparent, transparent 79.9%, rgba(212, 178, 124, 0.05) 80%, transparent 80.1%);
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(74, 69, 67, 0.4) 0%, transparent 70%);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 13, 14, 0.65) 0%, rgba(12, 13, 14, 0.65) 60%, rgba(12, 13, 14, 0.5) 100%);
    z-index: -1;
}

.hero__inner {
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---------- Top Bar ---------- */
.hero__topbar {
    padding-bottom: 3rem;
}

.hero__logo {
    color: var(--ccm-gold);
    gap: 0.85rem;
}

.hero__logo-img {
    height: 100px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.hero__logo-mark {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.hero__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.hero__logo-name {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    color: var(--ccm-gold);
}

.hero__logo-tagline {
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--ccm-gold);
    margin-top: 0.2rem;
    opacity: 0.9;
}

.hero__contact {
    margin-top: 0.25rem;
}

.hero__phone {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.01em;
    color: var(--ccm-white);
}

.hero__phone a {
    color: var(--ccm-gold);
}

.hero__phone a:hover {
    color: var(--ccm-gold-light);
}

/* ---------- Main Grid ---------- */
.hero__main {
    padding-top: 2rem;
}

.hero__eyebrow {
    color: var(--ccm-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.hero__title {
    font-family: var(--ccm-font);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ccm-white);
    margin-bottom: 1.75rem;
}

.hero__desc {
    color: var(--ccm-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 460px;
    margin-bottom: 2.5rem;
}

/* ---------- Feature Grid ---------- */
.hero__features {
    margin-bottom: 3rem;
    max-width: 560px;
}

.hero__feature {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Elegant pop-in entrance for the feature icons */
@keyframes ccm-icon-pop-in {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.6);
    }
    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.08);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Subtle continuous float so they feel alive */
@keyframes ccm-icon-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hero__feature-icon {
    width: 44px;
    height: 44px;
    display: block;
    border: 2px solid var(--ccm-white);
    border-radius: 50%;
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease,
                background-color 0.4s ease;
    animation:
        ccm-icon-pop-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards,
        ccm-icon-float 4s ease-in-out infinite 1s;
}

/* Stagger the entrance — each icon pops in slightly after the previous */
.hero__features > .col-sm-6:nth-child(1) .hero__feature-icon { animation-delay: 0.15s, 1.15s; }
.hero__features > .col-sm-6:nth-child(2) .hero__feature-icon { animation-delay: 0.3s, 1.3s; }
.hero__features > .col-sm-6:nth-child(3) .hero__feature-icon { animation-delay: 0.45s, 1.45s; }
.hero__features > .col-sm-6:nth-child(4) .hero__feature-icon { animation-delay: 0.6s, 1.6s; }

/* Hover state — pop out with a warm gold glow */
.hero__feature:hover .hero__feature-icon {
    transform: translateY(-6px) scale(1.12);
    border-color: var(--ccm-gold);
    background-color: rgba(212, 178, 124, 0.12);
    box-shadow:
        0 10px 28px rgba(212, 178, 124, 0.4),
        0 0 0 4px rgba(212, 178, 124, 0.12);
    animation-play-state: paused;
}

.hero__feature-text {
    color: var(--ccm-white);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
}

/* ---------- Phone CTA ---------- */
.hero__phone-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    background-color: var(--ccm-gold);
    color: var(--ccm-dark);
    padding: 1rem 2.5rem;
    border-radius: 999px;
    text-align: center;
    transition: var(--ccm-transition);
    gap: 0.15rem;
}

.hero__phone-cta:hover {
    background-color: var(--ccm-gold-light);
    color: var(--ccm-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 178, 124, 0.4);
}

.hero__phone-cta-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.hero__phone-cta-number {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

/* ---------- Form Card ---------- */
.hero__form-card {
    background:
        radial-gradient(ellipse at 50% 25%,
            rgba(78, 56, 34, 0.96) 0%,
            rgba(50, 36, 22, 0.96) 55%,
            rgba(26, 19, 12, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 178, 124, 0.22);
    border-radius: 1rem;
    padding: 2.5rem 2.25rem;
    position: relative;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 178, 124, 0.08);
}

.hero__form-title {
    font-family: var(--ccm-font);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ccm-white);
    text-align: center;
    margin-bottom: 0.85rem;
    line-height: 1.2;
}

.hero__form-subtitle {
    color: var(--ccm-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 0.5rem;
}

.hero__form-underline {
    display: block;
    width: 70%;
    height: auto;
    margin: 0 auto 1.5rem;
}

.hero__input {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ccm-radius);
    color: var(--ccm-white);
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    transition: var(--ccm-transition);
}

.hero__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero__input:focus {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--ccm-gold);
    box-shadow: 0 0 0 0.15rem rgba(212, 178, 124, 0.15);
    color: var(--ccm-white);
    outline: none;
}

textarea.hero__input {
    resize: vertical;
    min-height: 60px;
}

/* "I'm a" dropdown — input-group label + dark-themed select */
.hero__input-group {
    border-radius: var(--ccm-radius);
    overflow: hidden;
}

.hero__input-group .hero__input-label {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: var(--ccm-radius) 0 0 var(--ccm-radius);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    white-space: nowrap;
}

.hero__input-group .hero__select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d4b27c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 14px 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.25rem;
    cursor: pointer;
}

.hero__input-group .hero__select:focus {
    border-color: var(--ccm-gold);
    box-shadow: 0 0 0 0.15rem rgba(212, 178, 124, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--ccm-white);
    outline: none;
}

.hero__input-group .hero__select option {
    background-color: var(--ccm-dark);
    color: var(--ccm-white);
}

.hero__input-group .hero__select:invalid,
.hero__input-group .hero__select option[disabled] {
    color: rgba(255, 255, 255, 0.5);
}

.hero__consent .form-check-input {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-top: 0.25rem;
}

.hero__consent .form-check-input:checked {
    background-color: var(--ccm-gold);
    border-color: var(--ccm-gold);
}

.hero__consent .form-check-input:focus {
    border-color: var(--ccm-gold);
    box-shadow: 0 0 0 0.15rem rgba(212, 178, 124, 0.2);
}

.hero__consent .form-check-label {
    color: var(--ccm-muted-2);
    font-size: 0.72rem;
    line-height: 1.4;
    margin-left: 0.2rem;
}

.hero__form-footer {
    color: var(--ccm-muted-2);
    font-size: 0.7rem;
    text-align: center;
    margin: 1rem 0 0;
    line-height: 1.4;
}

.hero__form-footer a {
    color: var(--ccm-muted-2);
    text-decoration: underline;
}

.hero__form-footer a:hover {
    color: var(--ccm-gold);
}

/* ==========================================================================
    SERVICES SECTION
    ========================================================================== */
.services {
    background-color: #fdfaf3;
    padding: 5rem 1rem;
    color: var(--ccm-dark);
}

.services__header {
    max-width: 820px;
    margin: 0 auto 3rem;
}

.services__title {
    font-family: var(--ccm-font);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ccm-dark);
    margin-bottom: 0.85rem;
}

.services__title-gold {
    color: var(--ccm-gold);
}

.services__subtitle {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

/* ---------- Service Card ---------- */
.service-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.5;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: var(--ccm-transition);
    isolation: isolate;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.service-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card__img {
    transform: scale(1.05);
}

.service-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1.25rem 1.4rem;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.88) 100%);
    color: var(--ccm-white);
}

.service-card__title {
    font-family: var(--ccm-font);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ccm-white);
    margin: 0 0 0.5rem;
}

.service-card__desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.services__cta-wrap {
    text-align: center;
    margin-top: 3rem;
}

.services .btn-gold-pill {
    padding: 0.9rem 2.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

/* ==========================================================================
    SHOWCASE SECTION (Engineered Finishes)
    ========================================================================== */
.showcase {
    background-color: #0d0f10;
    padding: 6rem 1rem;
    color: var(--ccm-white);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.showcase__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.showcase__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase__title {
    font-family: var(--ccm-font);
    font-size: clamp(2rem, 3.8vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ccm-white);
    margin-bottom: 1rem;
}

.showcase__title-gold {
    color: var(--ccm-gold);
}

.showcase__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 480px;
    margin-bottom: 2.25rem;
}

/* ---------- Feature rows ---------- */
.showcase__features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.showcase__feature {
    display: flex;
    flex-direction: column;
}

.showcase__feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background-color: rgba(212, 178, 124, 0.12);
    border: 1px solid rgba(212, 178, 124, 0.35);
    border-radius: 999px;
    color: var(--ccm-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.showcase__feature-badge i {
    font-size: 0.95rem;
    line-height: 1;
}

.showcase__feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ccm-white);
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.showcase__feature-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.showcase .btn-gold-pill {
    padding: 0.95rem 2.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

/* ---------- Image Collage ---------- */
.showcase__collage {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1.05;
    margin: 0 auto;
}

.showcase__collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
}

.showcase__collage-item {
    position: absolute;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s ease;
}

.showcase__collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image 1 — top-left (interior with wood ceiling) */
.showcase__collage-item--1 {
    top: 8%;
    left: 5%;
    width: 58%;
    height: 38%;
    z-index: 2;
}

/* Image 2 — middle right (wood panel close-up) */
.showcase__collage-item--2 {
    top: 30%;
    right: 2%;
    width: 52%;
    height: 32%;
    z-index: 4;
}

/* Image 3 — bottom left (manufacturing/coating — muted) */
.showcase__collage-item--3 {
    bottom: 8%;
    left: 0;
    width: 36%;
    height: 38%;
    z-index: 1;
    opacity: 0.55;
    filter: grayscale(0.3) brightness(0.7);
}

/* Image 4 — bottom center (outdoor pergola) */
.showcase__collage-item--4 {
    bottom: 0;
    left: 28%;
    width: 56%;
    height: 38%;
    z-index: 5;
}

/* Floating brand badge on image 1 */
.showcase__collage-tag {
    position: absolute;
    left: 1rem;
    bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background-color: rgba(20, 22, 24, 0.92);
    border-radius: 999px;
    color: var(--ccm-white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.showcase__collage-tag-dot {
    display: inline-block;
    width: 18px;
    height: 8px;
    background: linear-gradient(90deg, #d4b27c 0%, #c9a876 30%, #8b6f4e 60%, #5a4535 100%);
    border-radius: 2px;
}

/* ==========================================================================
    WHY CCM SECTION (Why Custom Craft Metal)
    ========================================================================== */
.why-ccm {
    position: relative;
    padding: 6rem 1rem;
    overflow: hidden;
    color: var(--ccm-dark);
    isolation: isolate;
    min-height: 600px;
}

.why-ccm__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.why-ccm__bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

.why-ccm__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.why-ccm__title {
    font-family: var(--ccm-font);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ccm-dark);
    margin-bottom: 2rem;
}

.why-ccm__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-ccm__item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.why-ccm__check {
    color: var(--ccm-gold);
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.why-ccm__item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ccm-dark);
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.why-ccm__item-desc {
    color: #5a6268;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 440px;
}

.why-ccm .btn-gold-pill {
    padding: 0.85rem 2.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

/* ---------- Foreground image cluster ---------- */
.why-ccm__images {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.why-ccm__image {
    position: absolute;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.why-ccm__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.why-ccm__image--1 {
    top: 0;
    right: 0;
    width: 65%;
    height: 45%;
    z-index: 2;
}

.why-ccm__image--2 {
    bottom: 0;
    left: 8%;
    width: 65%;
    height: 45%;
    z-index: 3;
}

.why-ccm__brusher {
    display: none;
    position: absolute;
    bottom: -20%;
    right: 0;
    width: 100%;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

/* ==========================================================================
    TESTIMONIALS SECTION
    ========================================================================== */
.testimonials {
    background-color: var(--ccm-dark);
    padding: 11rem 1rem 11rem;
    /* normal padding; form no longer overlaps up */
    position: relative;
    color: var(--ccm-white);
}

.testimonials__title {
    font-family: var(--ccm-font);
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 700;
    color: var(--ccm-white);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    padding: 1.85rem 1.5rem;
    height: 100%;
    transition: var(--ccm-transition);
}

.testimonial-card:hover {
    border-color: rgba(212, 178, 124, 0.25);
    transform: translateY(-3px);
}

.testimonial-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ccm-white);
    margin: 0 0 0.9rem;
    line-height: 1.35;
}

.testimonial-card__quote {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.testimonial-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.testimonial-card__avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.testimonial-card__name {
    color: var(--ccm-white);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0;
}

.testimonial-card__role {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin: 0;
}

.testimonial-card__stars {
    color: var(--ccm-gold);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ==========================================================================
    FINAL CTA SECTION (wood bg with overlapping form)
    The form overlaps into the testimonials section above via negative margin.
    The brand block is now in its own <section class="brand-footer"> below.
    ========================================================================== */
.final-cta {
    position: relative;
    padding: 3.5rem 1rem 4rem;
    isolation: isolate;
    color: var(--ccm-white);
    background-image: url('../img/decoral-footer-bg.webp');
    background-size: cover;
    background-position: center;
    background-color: #3a2c1e;
    /* fallback if image fails */
}



.final-cta__title {
    font-family: var(--ccm-font);
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--ccm-white);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.final-cta__desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    max-width: 420px;
    line-height: 1.55;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
    BRAND FOOTER SECTION (separate dark section for brand block)
    ========================================================================== */
.brand-footer {
    background-color: var(--ccm-dark);
    padding: 2.75rem 1rem 3rem;
    color: var(--ccm-white);
}

.brand-footer__eyebrow {
    color: var(--ccm-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.brand-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.brand-footer__mark {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.brand-footer__logo-img {
    height: 52px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.brand-footer__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-footer__name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--ccm-gold);
}

.brand-footer__tagline {
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--ccm-gold);
    margin-top: 0.2rem;
    opacity: 0.9;
}

.brand-footer__motto {
    color: var(--ccm-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.75rem 0 0 0;
}

.brand-footer__address {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
    color: var(--ccm-white);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.brand-footer__address:hover,
.brand-footer__address:focus {
    color: var(--ccm-gold);
}

.brand-footer__address-icon {
    color: var(--ccm-gold);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Form overlap wrapper — on desktop, positioned absolutely so the form
    spans across both .final-cta (wood bg) and .brand-footer (dark bg) */
.cta-group {
    position: relative;
}

.cta-form-overlap {
    position: relative;
    z-index: 5;
}

@media (min-width: 992px) {
    .cta-form-overlap {
        position: absolute;
        top: -5rem;
        left: 0;
        right: 0;
        bottom: auto;
        z-index: 10;
        pointer-events: none;
        /* let clicks pass through to layers below */
    }

    .cta-form-overlap .hero__form-card {
        pointer-events: auto;
        /* but the form itself is interactive */
    }
}

/* brand-footer needs extra bottom padding on desktop so the form's bottom
    sits comfortably within it */
@media (min-width: 992px) {
    .brand-footer {
        padding-bottom: 5rem;
    }
}

/* MOBILE: taller final-cta + overlapping form (matches mobile mockup) */
@media (max-width: 991.98px) {
    .final-cta {
        padding: 7rem 1rem 45rem;
        background-image: url('../img/footer-bg-mobile.webp');
    }

    .cta-form-overlap {
        margin-top: -45rem;
    }
}

/* ==========================================================================
    SITE FOOTER (copyright bar)
    ========================================================================== */
.site-footer {
    background-color: #2a3436;
    padding: 1.1rem 1rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.site-footer__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ccm-gold);
}

.site-footer__powered-logo {
    display: block;
    height: 30px;
    width: auto;
    padding-left: 4.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.site-footer__powered-logo:hover {
    opacity: 1;
}

/* ==========================================================================
    Responsive
    ========================================================================== */
@media (max-width: 991.98px) {
    .hero {
        /* Header gets taller here as the right column has more vertical
            space below the button (mt-2 phone + larger margin-top on contact) */
        padding-top: 13rem;
    }

    .hero__topbar {
        padding-bottom: 2rem;
    }

    .hero__contact {
        text-align: left !important;
        margin-top: 1.5rem;
    }

    .hero__phone {
        font-size: 1.5rem;
    }

    .hero__phone-cta {
        min-width: 0;
        width: 100%;
    }

    .hero__form-card {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .why-ccm__overlay {
        background: linear-gradient(180deg,
                rgba(248, 248, 248, 0.96) 0%,
                rgba(248, 248, 248, 0.88) 60%,
                rgba(248, 248, 248, 0.70) 100%);
    }

    .why-ccm__images {
        max-width: 420px;
        margin-top: 2.5rem;
    }

    .why-ccm__image--1 {
        height: 55%;
    }

    .why-ccm__image--2 {
        height: 55%;
    }

    .why-ccm__brusher {
        display: block;
    }

    .brand-footer {
        padding: 2rem 1rem 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .services {
        padding: 3.5rem 1rem;
    }

    .service-card {
        aspect-ratio: 4 / 5;
    }

    .showcase {
        padding: 4rem 1rem;
    }

    .showcase__collage {
        max-width: 420px;
        margin-bottom: 2.5rem;
    }

    .why-ccm {
        padding: 4rem 1rem;
    }

    /* Section CTA pill buttons go full-width on mobile */
    .services .btn-gold-pill,
    .showcase .btn-gold-pill,
    .why-ccm .btn-gold-pill {
        display: block;
        width: 100%;
    }
}

/* ---------- MOBILE HERO: Centered Layout (matches mobile mockup) ---------- */
@media (max-width: 767.98px) {

    .hero {
        /* On mobile, logo + button + phone all stack vertically inside the
            fixed header. ~11rem leaves a small visual gap below the header
            without creating a big empty band. */
        padding-top: 11rem;
    }

    /* Topbar: center logo, button, and phone */
    .hero__topbar {
        padding-bottom: 2rem;
        text-align: center;
    }

    .hero__topbar .col-md-6 {
        text-align: center;
    }

    /* Override the tablet 991.98px left-align rule on mobile */
    .hero__contact {
        text-align: center !important;
        margin-top: 1.25rem;
    }

    .hero__phone {
        text-align: center;
    }

    /* Main hero content: center eyebrow, title, description, CTA pill */
    .hero__main {
        text-align: center;
    }

    .hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    /* Hide the 2x2 feature grid on mobile so the CTA sits directly
        below the description, matching the reference mockup */
    .hero__features {
        display: none;
    }

    /* Phone CTA pill already stretches full-width on mobile;
        this just keeps it centered within its column */
    .hero__phone-cta {
        margin-left: auto;
        margin-right: auto;
    }

    /* ----- Mobile feature grid (circular badges, below form) ----- */
    .hero__features-m-wrap {
        margin-top: 3rem;
    }

    .hero__feature-m {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 0.25rem 0.25rem;
    }

    .hero__feature-badge {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.06);
        border: 2px solid var(--ccm-white);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--ccm-gold);
        font-size: 1.55rem;
        flex-shrink: 0;
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.35),
            inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                    box-shadow 0.4s ease,
                    border-color 0.4s ease,
                    background-color 0.4s ease;
        animation:
            ccm-icon-pop-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards,
            ccm-icon-float 4s ease-in-out infinite 1s;
    }

    .hero__feature-badge img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        display: block;
    }

    /* Stagger the mobile badge entrance for an elegant cascade */
    .hero__features-m-wrap .col-6:nth-child(1) .hero__feature-badge { animation-delay: 0.15s, 1.15s; }
    .hero__features-m-wrap .col-6:nth-child(2) .hero__feature-badge { animation-delay: 0.3s, 1.3s; }
    .hero__features-m-wrap .col-6:nth-child(3) .hero__feature-badge { animation-delay: 0.45s, 1.45s; }
    .hero__features-m-wrap .col-6:nth-child(4) .hero__feature-badge { animation-delay: 0.6s, 1.6s; }

    /* Tap state — gold glow pop on touch */
    .hero__feature-m:active .hero__feature-badge {
        transform: translateY(-4px) scale(1.1);
        border-color: var(--ccm-gold);
        background-color: rgba(212, 178, 124, 0.15);
        box-shadow:
            0 10px 28px rgba(212, 178, 124, 0.4),
            0 0 0 4px rgba(212, 178, 124, 0.15);
    }

    .hero__feature-text-m {
        color: var(--ccm-white);
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.35;
        margin: 0;
    }

    /* ----- Testimonials: trim the desktop overlap padding on mobile ----- */
    .testimonials {
        padding: 4rem 1rem 3.5rem;
    }

    /* ----- Brand footer: center content on mobile ----- */
    .brand-footer {
        text-align: center;
    }

    .brand-footer .col-lg-7 {
        text-align: center;
    }

    .brand-footer__logo {
        justify-content: center;
    }

    /* ----- Site footer (copyright bar): stack centered, "DESIGN BY" above "COPYRIGHT" per mockup ----- */
    .site-footer__row {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 0.4rem;
    }
}

@media (max-width: 575.98px) {
    .hero__inner {
        padding: 1rem 1.25rem;
    }

    .site-header__inner {
        padding: 0 1.25rem;
    }

    .hero__logo-name {
        font-size: 1.05rem;
    }

    .hero__logo-tagline {
        font-size: 0.6rem;
    }

    .hero__logo-mark {
        width: 46px;
        height: 46px;
    }

    .hero__logo-img {
        height: 76px;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__phone-cta-number {
        font-size: 1.75rem;
    }

    .hero__phone-cta-label {
        font-size: 0.75rem;
    }

    .hero__form-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   FLOATING CALL BUTTON — circular, gold, pulsing
   ========================================================================== */
.float-call {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ccm-gold-light) 0%, var(--ccm-gold) 55%, var(--ccm-gold-soft) 100%);
    color: var(--ccm-dark) !important;
    text-decoration: none !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 4px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, filter 0.3s ease;
}

.float-call:hover,
.float-call:focus {
    transform: translateY(-3px) scale(1.06);
    filter: brightness(1.08);
    color: var(--ccm-dark) !important;
    text-decoration: none !important;
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.5),
        0 6px 14px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.float-call:active {
    transform: translateY(-1px) scale(1.02);
}

.float-call__icon {
    position: relative;
    z-index: 2;
    font-size: 26px;
    line-height: 1;
    animation: float-call-shake 2.4s ease-in-out infinite;
    transform-origin: center;
}

/* Expanding ring (sits behind the button) */
.float-call__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--ccm-gold);
    z-index: 1;
    animation: float-call-pulse 2s ease-out infinite;
}

@keyframes float-call-pulse {
    0%   { transform: scale(1);    opacity: 0.55; }
    70%  { transform: scale(1.7);  opacity: 0;    }
    100% { transform: scale(1.7);  opacity: 0;    }
}

/* Subtle phone-ring wiggle on the icon itself */
@keyframes float-call-shake {
    0%, 60%, 100% { transform: rotate(0); }
    65%  { transform: rotate(-15deg); }
    70%  { transform: rotate(12deg); }
    75%  { transform: rotate(-10deg); }
    80%  { transform: rotate(8deg); }
    85%  { transform: rotate(-4deg); }
    90%  { transform: rotate(0); }
}

/* Mobile: slightly smaller, tucked closer to edge */
@media (max-width: 575.98px) {
    .float-call {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    .float-call__icon {
        font-size: 22px;
    }
}

/* Respect users who disable motion */
@media (prefers-reduced-motion: reduce) {
    .float-call__ring,
    .float-call__icon {
        animation: none;
    }
}