/*
 * Quark — user customizations
 * Loaded last — overrides theme.css without !important
 * Last updated: June 2026
 */

/* ── Header — transparent over hero, white on scroll ── */
#header {
    background: rgba(255,255,255,0.0) !important;
    border-bottom: none !important;
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

#header.scrolled {
    background: rgba(255,255,255,0.96) !important;
    border-bottom: 3px solid #FFED00 !important;
}

/* ── Nav links white when header is transparent ── */
#header:not(.scrolled) .navbar-link {
    color: white !important;
}

/* ── Header nav logo size ── */
.navbar-brand img {
    height: 60px;
    width: auto;
    margin: 4px 0;
}

/* ── Hero — fix text clipping at top caused by fixed header ── */
.modular-hero .container.grid-lg {
    padding-top: 3rem !important;
    padding-bottom: 4rem !important;
}

/* ─────────────────────────────────────────
   CUSTOM HERO LAYOUT — TWO COLUMN
   ───────────────────────────────────────── */

/* ── Hero section background ── */
section.modular-hero.hero-custom-layout {
    background: #000000 !important;
    min-height: 520px;
    display: flex;
    align-items: stretch;
    padding: 0 !important;
}

section.modular-hero.hero-custom-layout .container.grid-lg {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ── Two-column wrapper ── */
.hero-2col {
    display: grid;
    grid-template-columns: 45fr 55fr;
    align-items: stretch;
    width: 100%;
    min-height: 520px;
}

/* ── Left column: Tim icon + EIES logo + text + CTA ── */
.hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.1rem;
    padding: 3rem 2.5rem 3rem 2.5rem;
}

/* ── Tim's icon-sized photo ── */
.hero-tim-icon-wrap {
    width: 88px;
    height: 88px;
    margin-top: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FFED00;
    flex-shrink: 0;
}

.hero-tim-icon {
    width: 88px !important;
    height: 88px !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* ── Main company logo ── */
.hero-main-logo {
    width: auto !important;
    max-width: 340px !important;
    height: auto !important;
    display: block !important;
    float: none !important;
    margin: 0 auto !important;
}

/* ── Subline text ── */
.hero-subline {
    color: rgba(255,255,255,0.8);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

/* ── CTA button ── */
.hero-cta-btn {
    display: inline-block;
    background: #0072FF;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.hero-cta-btn:hover {
    background: #005ed4;
    color: #ffffff !important;
}

/* ── Right column: Corghi announcement ── */
.hero-right-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.5rem 2.5rem 1.5rem;
    border-left: 1px solid rgba(255,237,0,0.15);
}

/* ── Announcement panel — Corghi red card on black column ── */
.hero-dealer-announcement {
    background: #CC0000;
    border: none;
    border-radius: 8px;
    padding: 2rem 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 460px;
}

/* ── ANNOUNCING label — bold, single word ── */
.hero-announcement-new {
    display: inline-block;
    background: #FFED00;
    color: #3D3B3C;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.45rem 1.2rem;
    border-radius: 3px;
    align-self: flex-start;
}

/* ── Corghi logo — on white pill so it pops off the red ── */
.hero-corghi-logo {
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
}

/* ── Announcement body text ── */
.hero-announcement-text {
    color: rgba(255,255,255,0.95);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
    border-top: 2px solid rgba(255,237,0,0.5);
    padding-top: 1.25rem;
}

.hero-announcement-text strong {
    color: #FFED00;
}

/* ── Responsive — tablet ── */
@media (max-width: 900px) {
    .hero-2col {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left-col {
        padding: 2.5rem 2rem 2rem 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(255,237,0,0.15);
    }

    .hero-right-col {
        border-left: none;
        padding: 2rem;
        justify-content: flex-start;
    }

    .hero-dealer-announcement {
        max-width: 100%;
    }
}

/* ── Responsive — mobile ── */
@media (max-width: 600px) {
    .hero-left-col {
        padding: 2rem 1.25rem 1.75rem 1.25rem;
    }

    .hero-right-col {
        padding: 1.25rem;
    }

    .hero-main-logo {
        max-width: 220px !important;
    }

    .hero-cta-btn {
        width: 100%;
        text-align: center;
    }

    .hero-corghi-logo {
        max-width: 260px !important;
    }
}

/* ── Remove h2 decorative dash (excludes services page) ── */
body:not(.services-page) article.content-item h2::before {
    display: none;
}

/* ── H1 size and alignment on content pages (excludes services page) ── */
body:not(.services-page) #body-wrapper .container.grid-lg h1 {
    font-size: 1.7rem !important;
    text-align: left !important;
    line-height: 1.25 !important;
    margin-top: 1rem !important;
}

/* ── Byline styling — bold paragraph directly under H1 ── */
#body-wrapper .container.grid-lg h1 + p strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6C757D;
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
   IMAGES
   ───────────────────────────────────────── */

/* ── Default: article images full width, no float ── */
article.content-item img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    float: none !important;
    margin: 1.5rem 0 !important;
}

/* ── Tim's photo on About page — floated right, fixed width ── */
img.tim-photo {
    float: right !important;
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
    border-radius: 10px !important;
    margin: 0 0 1.5rem 2rem !important;
    display: block !important;
}

/* ─────────────────────────────────────────
   ABOUT PAGE
   ───────────────────────────────────────── */

/* ── Pull quote ── */
article.content-item p em {
    display: block;
    font-size: 1.1rem;
    font-style: italic;
    color: #0072FF;
    border-top: 3px solid #FFED00;
    border-bottom: 3px solid #FFED00;
    padding: 1rem 0;
    margin: 1.5rem 0;
    line-height: 1.5;
    clear: right;
}

/* ── Horizontal rule styling ── */
article.content-item hr {
    border: none;
    border-top: 2px solid #FFED00;
    margin: 2rem 0 1rem 0;
    clear: both;
}

/* ── Signature block ── */
article.content-item hr ~ p em {
    font-style: italic;
    color: #6C757D;
    line-height: 1.8;
}

/* ─────────────────────────────────────────
   HOMEPAGE — AUTHORIZED DEALER TRUST STRIP
   Handled via HTML in hero.md — see .corghi-dealer-strip below
   ───────────────────────────────────────── */

/* ─────────────────────────────────────────
   ACCORDION — SHORTCODE UI
   ───────────────────────────────────────── */

/* ── Accordion wrapper spacing ── */
.accordion-wrapper {
    margin-bottom: 4px !important;
}

/* ── Hide the radio inputs ── */
.accordion-wrapper input[type="radio"] {
    display: none !important;
}

/* ── The clickable label — accordion header ── */
.accordion-wrapper label {
    display: block !important;
    background: #0072FF !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 1.2rem !important;
    border-radius: 4px !important;
    margin-bottom: 4px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    position: relative !important;
}

/* ── Arrow indicator ── */
.accordion-wrapper label::after {
    content: '▼' !important;
    position: absolute !important;
    right: 1.2rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 0.7rem !important;
    opacity: 0.8 !important;
}

/* ── Hover state ── */
.accordion-wrapper label:hover {
    background: #005ed4 !important;
}

/* ── Content panel ── */
.accordion-wrapper article {
    border: 2px solid #dee2e6 !important;
    border-top: none !important;
    border-bottom-left-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
    margin-bottom: 4px !important;
}

/* ── Padding on inner p tags ── */
.accordion-wrapper article p {
    padding: 0 1.2rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

/* ─────────────────────────────────────────
   WHY-US SECTION
   ───────────────────────────────────────── */

section.modular-text.standard.bg-gray {
    background: #D0D3D6 !important;
    padding: 4rem 0;
}

section.modular-text.standard.bg-gray .columns.left {
    align-items: center;
}

section.modular-text.standard.bg-gray img {
    float: none !important;
    width: 100% !important;
    max-width: 340px !important;
    height: auto !important;
    border-radius: 12px !important;
    border: 4px solid #0072FF !important;
    box-shadow: 0 4px 16px rgba(0, 114, 255, 0.15) !important;
    margin: 0 auto !important;
    display: block !important;
}

section.modular-text.standard.bg-gray h2 {
    color: #3D3B3C;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

section.modular-text.standard.bg-gray h3 {
    color: #0072FF;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

section.modular-text.standard.bg-gray h3:first-of-type {
    margin-top: 0;
}

section.modular-text.standard.bg-gray p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #3D3B3C;
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */

#footer .footer-col-content img {
    width: 160px !important;
    height: auto !important;
    display: block !important;
    float: none !important;
    margin: 0 0 0.5rem 0 !important;
    border-radius: 3px !important;
}

#footer .footer-col-content p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.75) !important;
}

#footer .footer-col-content p + p {
    margin-top: 0.1rem !important;
}

#footer .footer-col-content a {
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
    display: block !important;
    line-height: 1.5 !important;
    font-size: 0.8rem !important;
    margin-top: 0.4rem !important;
}

#footer .footer-col-content a:hover {
    color: #FFED00 !important;
}

/* ─────────────────────────────────────────
   SHARED BUTTON STYLES — PRODUCT PAGES
   ───────────────────────────────────────── */

.machine-btn-primary {
    background: #0072FF !important;
    color: #ffffff !important;
    border: 2px solid #0072FF !important;
    border-radius: 4px !important;
    padding: 0.7rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
    white-space: nowrap;
    display: inline-block;
}

.machine-btn-primary:hover {
    background: #005ed4 !important;
    border-color: #005ed4 !important;
    color: #ffffff !important;
}

.machine-btn-secondary {
    background: transparent !important;
    color: #0072FF !important;
    border: 2px solid #0072FF !important;
    border-radius: 4px !important;
    padding: 0.7rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
    white-space: nowrap;
    display: inline-block;
}

.machine-btn-secondary:hover {
    background: #0072FF !important;
    color: #ffffff !important;
}

/* ─────────────────────────────────────────
   PRODUCTS PAGE — CATEGORY OVERVIEW
   ───────────────────────────────────────── */

/* ── Products page — zero inner container padding, keep body-wrapper nav clearance ── */
body.products-fullwidth.header-fixed #body-wrapper {
    padding-top: 4rem !important;
}

body.products-fullwidth #body-wrapper.section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.products-fullwidth .container.grid-lg {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── Kill theme's 2rem padding on inner container inside header band ── */
body.products-fullwidth #body-wrapper .products-page-header .container {
    padding: 0 !important;
}

/* ── Kill theme's 2rem padding on inner container inside category sections ── */
body.products-fullwidth #body-wrapper .products-category-section .container {
    padding: 0 !important;
}

/* ── Kill theme's 2rem padding on inner container inside contact bar ── */
body.products-fullwidth #body-wrapper .products-contact-bar .container {
    padding: 0 !important;
}

/* ── Page header band ── */
.products-page-header {
    background: #D6DCE4;
    padding: 1rem 1.5rem 1rem 1.5rem;
    border-bottom: 4px solid #FFED00;
}

.products-page-header h1 {
    color: #0072FF !important;
    font-size: 2.4rem !important;
    text-align: left !important;
    margin: 0 0 0.6rem 0 !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

.products-intro {
    color: #3D3B3C;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0;
    font-weight: 400;
}

/* ── Category sections — alternating backgrounds ── */
.products-category-section {
    padding: 0.5rem 1.5rem 2rem 1.5rem;
    background: #ffffff;
}

.products-category-section--alt {
    background: #F8F9FA;
}

/* ── Category header ── */
.category-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #FFED00;
}

.category-title {
    color: #3D3B3C;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
}

.category-title::before {
    display: none !important;
}

.category-description {
    color: #3D3B3C;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 700px;
    font-weight: 400;
}

/* ── Machine cards grid ── */
.machine-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* ── Individual machine card ── */
.machine-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    cursor: pointer;
}

.machine-card:hover {
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.12);
    transform: translateY(-2px);
}

/* ── Card image area ── */
.machine-card-image {
    background: #F8F9FA;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #dee2e6;
}

.machine-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 1rem !important;
    margin: 0 !important;
    float: none !important;
}

.machine-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #3D3B3C;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ── Card body ── */
.machine-card-body {
    padding: 1rem 1rem 0.5rem 1rem;
    flex-grow: 1;
}

.machine-card-model {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3D3B3C;
    margin: 0 0 0.25rem 0;
}

.machine-card-tagline {
    font-size: 0.85rem;
    color: #3D3B3C;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

/* ── Card footer ── */
.machine-card-footer {
    padding: 0.75rem 1rem 1rem 1rem;
}

.machine-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #0072FF !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
    position: static;
}

.machine-card-btn::after {
    content: '';
    position: absolute;
    inset: 0;
}

.machine-card-btn:hover {
    background: #005ed4 !important;
    color: #ffffff !important;
}

/* ── Category divider ── */
.category-divider {
    height: 4px;
    background: #FFED00;
}

/* ── Bottom contact bar ── */
.products-contact-bar {
    background: #D6DCE4;
    padding: 1.2rem 1.5rem;
    border-top: 4px solid #FFED00;
}

.products-contact-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: nowrap;
}

.products-contact-bar-text h3 {
    color: #3D3B3C;
    font-size: 1.2rem;
    margin: 0 0 0.4rem 0;
    font-weight: 700;
}

.products-contact-bar-text p {
    color: #3D3B3C;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

.products-contact-bar-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   MACHINE SALES PAGE
   ───────────────────────────────────────── */

/* ── Machine page — remove body-wrapper top padding via body class ── */
body.machine-page.header-fixed #body-wrapper {
    padding-top: 4rem !important;
}

body.machine-page #body-wrapper.section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.machine-page .container.grid-lg {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── Kill theme's 2rem top/bottom padding on container inside machine page ── */
body.machine-page #body-wrapper .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ── Kill theme's 2rem padding on inner container inside breadcrumb ── */
body.machine-page #body-wrapper .machine-breadcrumb .container {
    padding: 0 1.5rem !important;
}

/* ── Kill theme's 2rem padding on inner container inside machine page ── */
body.machine-page #body-wrapper .machine-page-inner .container {
    padding: 0 !important;
}

.machine-breadcrumb {
    background: #D6DCE4;
    border-bottom: 4px solid #FFED00;
    padding: 0;
    font-size: 0.82rem;
    color: #3D3B3C;
    display: flex;
    align-items: center;
    min-height: 2.2rem;
}

/* ── Kill theme's inner container padding inside breadcrumb ── */
.machine-breadcrumb .container {
    padding: 0 1.5rem !important;
}

.machine-breadcrumb a {
    color: #0072FF;
    text-decoration: none;
    font-weight: 600;
}

.machine-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 0.4rem;
    color: #3D3B3C;
}

/* ── Page wrapper ── */
.machine-page {
    padding: 1.5rem 0 0 0;
}

/* ── Two-column grid ── */
.machine-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

/* ── Image column ── */
.machine-image-col {
    position: sticky;
    top: 80px;
}

.machine-photo {
    width: 100% !important;
    height: auto !important;
    background: #F8F9FA !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    display: block !important;
    float: none !important;
    margin: 0 0 1rem 0 !important;
    object-fit: contain !important;
}

.machine-photo-placeholder {
    width: 100%;
    height: 360px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3D3B3C;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ── Warranty badge ── */
.machine-warranty-badge {
    background: #3D3B3C;
    color: #ffffff;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.warranty-years {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFED00;
    line-height: 1;
}

.warranty-label {
    font-weight: 600;
    display: block;
}

.warranty-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    display: block;
}

/* ── Details column ── */
.machine-details-col {
    padding-top: 0.5rem;
}

.machine-category-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #3D3B3C;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.4rem 0;
}

.machine-model {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #3D3B3C !important;
    line-height: 1.1 !important;
    margin: 0 0 0.5rem 0 !important;
    text-align: left !important;
}

.machine-tagline {
    font-size: 1.05rem;
    color: #3D3B3C;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
    font-weight: 400;
}

/* ── Price block ── */
.machine-price-block {
    background: #F8F9FA;
    border: 1px solid #dee2e6;
    border-left: 4px solid #0072FF;
    border-radius: 0 6px 6px 0;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
}

/* ── FIXED June 18, 2026: renamed from .price-label to match
   actual class output by machine.html.twig (machine-price-label) ── */
.machine-price-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3D3B3C;
    display: block;
    margin-bottom: 0.2rem;
}

/* ── FIXED June 18, 2026: renamed from .price-amount to match
   actual class output by machine.html.twig (machine-price-amount).
   Also covers the "Call for Pricing" state via the .call-for-pricing
   modifier class that the twig already appends. ── */
.machine-price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0072FF;
    line-height: 1;
    display: block;
}

.machine-price-amount.call-for-pricing {
    font-size: 1.2rem;
    color: #3D3B3C;
}

/* ── FIXED June 18, 2026: renamed from .price-note to match
   actual class output by machine.html.twig (machine-price-note) ── */
.machine-price-note {
    font-size: 0.75rem;
    color: #3D3B3C;
    display: block;
    margin-top: 0.3rem;
    font-weight: 400;
}

/* ── NEW June 18, 2026: freight_note field — shown under price_note,
   muted blue-gray to read as secondary/related info without
   competing with the price itself ── */
.machine-freight-note {
    font-size: 0.75rem;
    color: #6C757D;
    display: block;
    margin-top: 0.3rem;
    font-weight: 600;
    font-style: italic;
}

/* ── Top CTA buttons ── */
.machine-cta-top {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* ── Divider ── */
.machine-divider {
    border: none !important;
    border-top: 2px solid #dee2e6 !important;
    margin: 0 0 1.25rem 0 !important;
}

/* ── Description ── */
.machine-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3D3B3C;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* ── Section headings inside details col ── */
.machine-section-heading {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #3D3B3C !important;
    margin: 0 0 0.75rem 0 !important;
    padding-bottom: 0.4rem !important;
    border-bottom: 2px solid #FFED00 !important;
}

/* ── Features list ── */
.machine-features {
    margin-bottom: 1.5rem;
}

.machine-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.machine-feature-list li {
    padding: 0.4rem 0 0.4rem 1.4rem;
    position: relative;
    font-size: 0.92rem;
    color: #3D3B3C;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 400;
}

.machine-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0072FF;
    font-weight: 700;
}

/* ── Specs table ── */
.machine-specs-block {
    background: #E1E5EA;
    border: 1px solid #ccd0d6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.machine-specs-block .machine-section-heading {
    margin-bottom: 1rem !important;
}

.machine-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.machine-specs-table th {
    text-align: left;
    font-weight: 400;
    color: #3D3B3C;
    padding: 0.6rem 1rem 0.6rem 0;
    width: 40%;
    border-bottom: 1px solid #b8bec8;
    vertical-align: top;
}

.machine-specs-table td {
    font-weight: 700;
    color: #3D3B3C;
    padding: 0.6rem 0;
    border-bottom: 1px solid #b8bec8;
}

.machine-specs-table tr:last-child th,
.machine-specs-table tr:last-child td {
    border-bottom: none;
}

/* ── Accessories note ── */
.machine-accessories-note {
    background: #fff9e0;
    border: 1px solid #FFED00;
    border-radius: 6px;
    padding: 0.85rem 1.25rem;
    font-size: 0.88rem;
    color: #3D3B3C;
    margin-bottom: 1rem;
    font-weight: 400;
}

.machine-accessories-note p {
    margin: 0;
}

/* ── Most Popular badge ── */
.machine-popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #FFED00;
    color: #3D3B3C;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    margin-bottom: 0.85rem;
}

.popular-star {
    color: #3D3B3C;
    font-size: 0.9rem;
    line-height: 1;
}

/* ── Product Literature block ── */
.machine-mfr-link-block {
    background: #3D3B3C;
    border-radius: 6px;
    border-top: 4px solid #FFED00;
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    margin-bottom: 1.5rem;
}

.machine-mfr-link-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #FFED00;
    margin-bottom: 0.85rem;
}

/* ── Button row ── */
.machine-lit-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Base link style — transparent, inline ── */
.machine-lit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none !important;
    background: transparent;
    border: none;
    padding: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.machine-lit-btn:hover {
    opacity: 0.8;
}

/* ── Circle badge icon ── */
.machine-lit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    line-height: 1;
}

/* ── PDF badge — red circle ── */
.machine-lit-btn--pdf .machine-lit-icon {
    background: #CC0000;
    color: #ffffff;
}

/* ── Video badge — red circle ── */
.machine-lit-btn--video .machine-lit-icon {
    background: #CC0000;
    color: #ffffff;
}

/* ── Label text beside the badge ── */
.machine-lit-label {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    line-height: 1;
}

.machine-lit-btn:hover .machine-lit-label {
    color: #ffffff;
}

/* ── Fallback when neither PDF nor video is set ── */
.machine-lit-pending {
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    font-style: italic;
}

/* ── Bottom CTA bar — matches breadcrumb band ── */
.machine-cta-bottom {
    background: #D6DCE4;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    border-top: 4px solid #FFED00;
}

.machine-cta-bottom-text h3 {
    color: #3D3B3C;
    font-size: 1.1rem;
    margin: 0 0 0.4rem 0;
    font-weight: 700;
}

.machine-cta-bottom-text p {
    color: #3D3B3C;
    font-size: 0.88rem;
    margin: 0;
    max-width: 500px;
    font-weight: 400;
}

.machine-cta-bottom-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   RESPONSIVE — PRODUCT PAGES
   ───────────────────────────────────────── */

@media (max-width: 900px) {
    .machine-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .machine-image-col {
        position: static;
    }

    .machine-cta-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-contact-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .machine-cards-grid {
        grid-template-columns: 1fr;
    }

    .machine-model {
        font-size: 1.7rem !important;
    }

    .machine-cta-top {
        flex-direction: column;
    }

    .machine-cta-bottom-buttons {
        flex-direction: column;
        width: 100%;
    }

    .machine-btn-primary,
    .machine-btn-secondary {
        text-align: center;
        width: 100%;
    }
}

/* ─────────────────────────────────────────
   SERVICES PAGE
   ───────────────────────────────────────── */

/* ── Breathing room top and bottom ── */
body.services-page #body-wrapper .container.grid-lg {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
}

/* ── H1 — page headline, blue, yellow underline ── */
body.services-page #body-wrapper .container.grid-lg h1 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #0072FF !important;
    text-align: left !important;
    line-height: 1.2 !important;
    margin: 0 0 1.25rem 0 !important;
    border-bottom: 4px solid #FFED00 !important;
    padding-bottom: 1rem !important;
}

/* ── Intro paragraphs under H1 ── */
body.services-page #body-wrapper .container.grid-lg h1 + p,
body.services-page #body-wrapper .container.grid-lg h1 + p + p {
    font-size: 1.05rem !important;
    color: #3D3B3C !important;
    line-height: 1.7 !important;
    margin-bottom: 0.75rem !important;
}

/* ── HR dividers — thicker, more breathing room ── */
body.services-page #body-wrapper .container.grid-lg hr {
    border: none !important;
    border-top: 3px solid #FFED00 !important;
    margin: 2.5rem 0 2rem 0 !important;
    clear: both !important;
}

/* ── H2 — service block headings with blue left border ── */
body.services-page #body-wrapper .container.grid-lg h2 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #3D3B3C !important;
    margin: 0 0 0.75rem 0 !important;
    padding-left: 1rem !important;
    border-left: 5px solid #0072FF !important;
    line-height: 1.3 !important;
}

/* ── Body paragraphs in service blocks ── */
body.services-page #body-wrapper .container.grid-lg h2 + p {
    font-size: 0.97rem !important;
    color: #3D3B3C !important;
    line-height: 1.75 !important;
    margin-bottom: 1.25rem !important;
}

/* ── CTA button paragraph wrapper — remove extra line-height ── */
body.services-page #body-wrapper .container.grid-lg h2 + p + p,
body.services-page #body-wrapper .container.grid-lg h2 + p + p + p {
    line-height: 1 !important;
    margin-bottom: 1rem !important;
}

/* ── CTA buttons — styled as blue pill buttons ── */
body.services-page #body-wrapper .container.grid-lg h2 + p + p a,
body.services-page #body-wrapper .container.grid-lg h2 + p + p + p a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0072FF !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.65rem 1.4rem !important;
    border-radius: 4px !important;
    transition: background 0.2s ease !important;
    line-height: 1 !important;
}

body.services-page #body-wrapper .container.grid-lg h2 + p + p a:hover,
body.services-page #body-wrapper .container.grid-lg h2 + p + p + p a:hover {
    background: #005ed4 !important;
    color: #ffffff !important;
}

/* ── Final CTA band — "Not Sure If We Can Help?" ── */
body.services-page #body-wrapper .container.grid-lg h2:last-of-type {
    background: #D6DCE4 !important;
    border-left: none !important;
    border-top: 4px solid #FFED00 !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 1.5rem 1.5rem 0 1.5rem !important;
    margin: 0 !important;
}

body.services-page #body-wrapper .container.grid-lg h2:last-of-type + p {
    background: #D6DCE4 !important;
    padding: 0.5rem 1.5rem !important;
    margin: 0 !important;
}

body.services-page #body-wrapper .container.grid-lg h2:last-of-type + p + p {
    background: #D6DCE4 !important;
    padding: 0.75rem 1.5rem 1.5rem 1.5rem !important;
    margin: 0 0 2rem 0 !important;
    border-radius: 0 0 8px 8px !important;
}

body.services-page #body-wrapper .container.grid-lg h2:last-of-type + p + p a {
    background: #3D3B3C !important;
    color: #FFED00 !important;
    font-size: 1rem !important;
    padding: 0.75rem 1.75rem !important;
}

body.services-page #body-wrapper .container.grid-lg h2:last-of-type + p + p a:hover {
    background: #222222 !important;
    color: #FFED00 !important;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    body.services-page #body-wrapper .container.grid-lg h1 {
        font-size: 1.6rem !important;
    }
    body.services-page #body-wrapper .container.grid-lg h2 {
        font-size: 1.2rem !important;
    }
}

/* ─────────────────────────────────────────
   CORGHI AUTHORIZED DEALER TRUST STRIP
   ───────────────────────────────────────── */

.corghi-dealer-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: #3D3B3C;
    border-top: 3px solid #FFED00;
    padding: 0.6rem 1.5rem;
    margin-top: 2rem;
    border-radius: 4px;
    flex-wrap: wrap;
}

.corghi-strip-logo {
    height: 60px;
    width: auto;
    display: block;
    flex-shrink: 0;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
}

.corghi-strip-text {
    color: #FFED00;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    white-space: normal;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .corghi-dealer-strip {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ─────────────────────────────────────────
   FEATURES SECTION — CTA BUTTON
   ───────────────────────────────────────── */

.modular-features .features-btn-wrap {
    text-align: center;
}

.modular-features .features-btn-wrap .btn {
    display: inline-block !important;
    padding: 0.75rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    overflow: visible !important;
    height: auto !important;
}

/* ─────────────────────────────────────────
   CONTACT PAGE
   ───────────────────────────────────────── */

body.contact-page.header-fixed #body-wrapper {
    padding-top: 4rem !important;
}

body.contact-page #body-wrapper.section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.contact-page .container.grid-lg {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.contact-page-header {
    background: #D6DCE4;
    border-bottom: 4px solid #FFED00;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.contact-page-header h1 {
    color: #0072FF;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.contact-intro {
    color: #3D3B3C;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

.contact-body {
    padding: 2rem 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-col h2,
.contact-form-col h2 {
    color: #3D3B3C;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #FFED00;
}

.contact-info-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3D3B3C;
}

.contact-info-icon {
    color: #0072FF;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    width: 1.5rem;
    flex-shrink: 0;
}

.contact-info-block a {
    color: #0072FF;
    text-decoration: none;
    font-weight: 600;
}

.contact-info-block a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ─────────────────────────────────────────
   THANK YOU PAGE
   ───────────────────────────────────────── */

body.thankyou-page #body-wrapper .container.grid-lg {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    text-align: center;
}

body.thankyou-page #body-wrapper .container.grid-lg h1 {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #0072FF !important;
    text-align: center !important;
    margin: 0 0 1rem 0 !important;
}

body.thankyou-page #body-wrapper .container.grid-lg p {
    font-size: 1.05rem;
    color: #3D3B3C;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 1rem auto;
}

body.thankyou-page #body-wrapper .container.grid-lg a[href^="tel"] {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0072FF;
    text-decoration: none;
    margin: 0.5rem 0 2rem 0;
}

body.thankyou-page #body-wrapper .container.grid-lg a[href^="tel"]:hover {
    text-decoration: underline;
}

body.thankyou-page #body-wrapper .container.grid-lg p:last-of-type {
    margin-top: 1rem;
}
