/*
 Theme Name: Alumex Child Theme
 Template: edifice
 Author: WebIgnite
 Text Domain: alumex-child
*/

/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* Hidden product panels for Doors, Windows and Showers.
   Each panel opens only when its matching icon is clicked. */
.ae-service-panel {
    display: none;
    scroll-margin-top: 180px;
}

/* ============================================================
   SERVICE PAGE H1 HEADINGS
   ============================================================ */

.ae-service-wrapper h1,
.ae-service-wrapper .wp-block-heading,
body.cpt_services-template-default .ae-service-wrapper h1,
body.cpt_services-template-default h1.wp-block-heading {
    font-size: 35px !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
    font-family: "Open Sans", sans-serif !important;
}

/* Open Sans font for all text on service pages only */
body.cpt_services-template-default .ae-service-wrapper,
body.cpt_services-template-default .ae-service-wrapper * {
    font-family: "Open Sans", sans-serif !important;
}

/* Normal text size for service pages - 13px */
body.cpt_services-template-default .ae-service-wrapper p,
body.cpt_services-template-default .ae-service-wrapper li,
body.cpt_services-template-default .ae-service-wrapper ul,
body.cpt_services-template-default .ae-service-wrapper ol {
    font-size: 13px !important;
}

/* Technical detail section - 13px */
body.cpt_services-template-default .ae-technical-text p,
body.cpt_services-template-default .ae-technical-text li {
    font-size: 13px !important;
}

/* Title values stay at original 13px (already set in .ae-title-value) */
body.cpt_services-template-default .ae-title-value {
    font-size: 13px !important;
}

/* Ensure headings also use Open Sans on service pages only */
body.cpt_services-template-default .ae-service-wrapper h1,
body.cpt_services-template-default .ae-service-wrapper h2,
body.cpt_services-template-default .ae-service-wrapper h3,
body.cpt_services-template-default .ae-service-wrapper h4,
body.cpt_services-template-default .ae-service-wrapper h5,
body.cpt_services-template-default .ae-service-wrapper h6,
body.cpt_services-template-default .ae-service-wrapper .wp-block-heading {
    font-family: "Open Sans", sans-serif !important;
}

/* Heading hierarchy - Technical Detail (h3) */
.ae-service-wrapper h3,
.ae-service-wrapper h3.wp-block-heading,
body.cpt_services-template-default .ae-service-wrapper h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-top: 40px !important;
    margin-bottom: 16px !important;
    line-height: 1.3 !important;
}

/* ============================================================
   TITLE BLOCK – CLEAN TABLE STYLE (LEFT COLUMN)
   ============================================================ */

.ae-title-block {
    display: block;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    max-width: 100%;
    border-radius: 0;
}

.ae-title-block-inner {
    display: grid;
    grid-template-columns: 120px 1fr; /* label / value */
    row-gap: 10px;
    column-gap: 20px;
    position: relative;
}

/* Single solid vertical line */
.ae-title-block-inner::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.2);
}

.ae-title-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    padding-right: 10px;
    color: #646464;
}

.ae-title-value {
    font-weight: 400;
    font-size: 13px;
    padding-left: 12px;
    line-height: 2;
    color: #646464;
}

.ae-title-value p {
    margin: 0 0 0.75em 0;
}

.ae-title-value p:last-child {
    margin-bottom: 0;
}

.ae-title-value ul {
    margin: 0.4em 0 0 1.2em;
}

.ae-title-value ul li {
    margin-bottom: 0.75em;
    line-height: 2;
    color: #646464;
}

/* No extra divider under the title block */
.ae-title-block::after {
    content: none;
}

/* Title section with columns layout */
.ae-title-section {
    margin-bottom: 20px;
    align-items: flex-start;
    gap: 24px;
}

/* Title image container */
.ae-title-image {
    margin: 0 !important;
    text-align: left !important;
    display: block !important;
}

/* Title image / GIF styling – NO border */
.ae-title-image img {
    width: 100% !important;
    max-width: 550px !important;
    max-height: 600px !important;
    height: auto !important;
    border-radius: 0;
    border: none;
    display: block !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    object-fit: contain !important;
}

/* Generic overrides / consistency */
body.cpt_services-template-default .ae-title-image img,
body .ae-title-section .ae-title-image img,
.wp-block-columns.ae-title-section .wp-block-column .ae-title-image img,
figure.ae-title-image img {
    max-width: 550px !important;
    max-height: 600px !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    object-fit: contain !important;
}

/* Shower images - scaled down for portrait orientation (500x620px original) */
body.cpt_services-template-default .ae-title-section .ae-title-image img[alt*="Pivot"],
body.cpt_services-template-default .ae-title-section .ae-title-image img[alt*="Return"],
body.cpt_services-template-default .ae-title-section .ae-title-image img[alt*="Glide"],
body.cpt_services-template-default .ae-title-section .ae-title-image img[alt*="Pentagonal"],
body.cpt_services-template-default .ae-title-section .ae-title-image img[alt*="Corner"],
body.cpt_services-template-default .ae-title-section .ae-title-image img[alt*="Bath"],
body.cpt_services-template-default .ae-title-section .ae-title-image img[alt*="Frameless"] {
    max-width: 380px !important;
    max-height: 470px !important;
}

body.cpt_services-template-default .ae-title-image,
body .ae-title-section .ae-title-image,
.wp-block-columns.ae-title-section .wp-block-column .ae-title-image,
figure.ae-title-image {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.wp-block-columns.ae-title-section .wp-block-column {
    text-align: left !important;
}

.wp-block-columns.ae-title-section .wp-block-column figure.ae-title-image {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

/* Small label above GIF, if used */
.ae-gif-label {
    margin: 0 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.45);
}

/* PDF container styling (used elsewhere) */
.ae-pdf-container {
    width: 100%;
    max-width: 100%;
    height: 685px;
    margin: 0;
    min-height: 685px;
}

.ae-pdf-iframe {
    width: 100%;
    height: 100%;
    min-height: 685px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background: #ffffff;
}

/* ============================================================
   TECHNICAL SECTION – SIMPLE TWO COLUMN LAYOUT
   ============================================================ */

.ae-technical-wrapper {
    padding: 0;
    margin: 32px 0 40px;
    max-width: 1280px;
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Ensure inner blocks stay transparent */
.ae-technical-layout,
.ae-technical-text,
.ae-technical-sketches {
    background: transparent !important;
}

/* Columns inside technical section */
.ae-technical-layout {
    align-items: flex-start;
    gap: 40px;
    position: relative;
}

/* Right-hand column padding (used for old sketches; still fine) */
.ae-technical-sketches {
    position: relative;
    padding-left: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Remove old vertical divider line */
.ae-technical-sketches::before {
    content: none;
}

.ae-technical-text {
    padding-right: 20px;
}

/* Text headings and lists - match reference HTML spacing */
.ae-technical-text h5,
.ae-technical-text h5.wp-block-heading {
    margin-top: 25px !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.03em;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: "Open Sans", sans-serif !important;
    color: #1e2831 !important;
}

/* More specific targeting for service pages */
body.cpt_services-template-default .ae-technical-text h5,
.ae-technical-wrapper .ae-technical-text h5 {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: "Open Sans", sans-serif !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
    color: #1e2831 !important;
}

/* First h5 should have less top margin */
.ae-technical-text h5:first-of-type,
.ae-technical-text h5.wp-block-heading:first-child {
    margin-top: 0 !important;
}

/* h6 sub-headings (e.g. Front View, Top View) */
.ae-technical-text h6,
.ae-technical-text h6.wp-block-heading {
    margin-top: 15px !important;
    margin-bottom: 8px !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    color: #1e2831 !important;
}

.ae-technical-text h6:first-of-type {
    margin-top: 8px !important;
}

.ae-technical-text ul {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    padding-left: 20px !important;
}

.ae-technical-text ul li {
    margin-bottom: 5px !important;
    line-height: 1.8 !important;
    color: #646464 !important;
}

.ae-technical-text p {
    margin-top: 4px !important;
    margin-bottom: 20px !important;
    line-height: 1.8 !important;
    color: #646464 !important;
}

/* Expandable info block styling - High specificity to override theme */
body.cpt_services-template-default .ae-technical-wrapper .ae-technical-text .ae-info-block,
.ae-technical-wrapper .ae-technical-text .ae-info-block,
.ae-info-block {
    margin-top: 16px !important;
    padding: 10px 12px !important;
    background: rgba(248, 251, 255, 0.6) !important;
    border: 1px solid rgba(24, 52, 104, 0.15) !important;
    border-radius: 4px !important;
}

body.cpt_services-template-default .ae-info-details,
.ae-technical-wrapper .ae-info-details,
.ae-info-details {
    margin: 0 !important;
    padding: 0 !important;
}

body.cpt_services-template-default .ae-info-summary,
.ae-technical-wrapper .ae-info-summary,
.ae-info-summary {
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: rgba(0, 0, 0, 0.8) !important;
    list-style: none !important;
    user-select: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
    border: none !important;
    background: transparent !important;
}

body.cpt_services-template-default .ae-info-summary::-webkit-details-marker,
.ae-info-summary::-webkit-details-marker {
    display: none !important;
}

body.cpt_services-template-default .ae-info-summary::marker,
.ae-info-summary::marker {
    display: none !important;
}

body.cpt_services-template-default .ae-info-summary::before,
.ae-info-summary::before {
    content: "▶" !important;
    margin-right: 6px !important;
    font-size: 9px !important;
    color: rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.2s !important;
    display: inline-block !important;
}

body.cpt_services-template-default .ae-info-details[open] .ae-info-summary::before,
.ae-info-details[open] .ae-info-summary::before {
    transform: rotate(90deg) !important;
}

body.cpt_services-template-default .ae-info-learn,
.ae-technical-wrapper .ae-info-learn,
.ae-info-learn {
    font-size: 10px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    color: rgba(0, 0, 0, 0.5) !important;
    text-decoration: underline !important;
    margin-left: 8px !important;
}

body.cpt_services-template-default .ae-info-summary:hover .ae-info-learn,
.ae-info-summary:hover .ae-info-learn {
    color: rgba(0, 0, 0, 0.7) !important;
}

body.cpt_services-template-default .ae-info-content,
.ae-technical-wrapper .ae-info-content,
.ae-info-content {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(24, 52, 104, 0.1) !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
}

body.cpt_services-template-default .ae-info-content p,
.ae-technical-wrapper .ae-info-content p,
.ae-info-content p {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

body.cpt_services-template-default .ae-info-content ul,
.ae-technical-wrapper .ae-info-content ul,
.ae-info-content ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 11px !important;
    padding-left: 18px !important;
    color: rgba(0, 0, 0, 0.8) !important;
    list-style: disc !important;
}

body.cpt_services-template-default .ae-info-content li,
.ae-technical-wrapper .ae-info-content li,
.ae-info-content li {
    margin-bottom: 4px !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

/* ============================================================
   TECH SHEET IMAGE + PDF BUTTON (RIGHT COLUMN)
   ============================================================ */

.ae-technical-download {
    text-align: center;
}

.ae-technical-sheet {
    margin: 0 auto 32px !important;
    max-width: 300px !important;
    overflow: visible !important;
}

/* Lightbox link styling */
.ae-technical-sheet .glightbox {
    display: block !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Prevent WordPress/theme auto-links from intercepting clicks - use pointer-events instead of
   display:none so we don't hide the img when theme wraps it in an extra link */
.ae-technical-sheet a:not(.glightbox) {
    pointer-events: none !important;
}

/* Ensure our glightbox link is the clickable one - do NOT use display:none here as it
   would hide the preview image when the theme adds an inner link wrapper */
.ae-technical-sheet figure a:not(.glightbox),
.ae-technical-sheet > a:not(.glightbox) {
    pointer-events: none !important;
}

/* Prevent figure from being clickable */
figure.ae-technical-sheet {
    pointer-events: auto !important;
}

/* Ensure image allows clicks to pass through to link */
.ae-technical-sheet .glightbox img {
    pointer-events: none !important;
}

.ae-technical-sheet img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.2s ease !important;
}

/* Override lazy-load scripts that hide images with lazyloading class */
.ae-technical-sheet img.lazyloading,
.ae-technical-sheet img.ae-technical-sheet-img {
    opacity: 1 !important;
    visibility: visible !important;
}

.ae-technical-sheet .glightbox:hover img {
    transform: scale(1.02) !important;
}

/* More specific selectors to ensure shadow applies and image is always visible */
body.cpt_services-template-default .ae-technical-sheet img,
.ae-technical-wrapper .ae-technical-sheet img,
.ae-technical-download .ae-technical-sheet img,
figure.ae-technical-sheet img,
.wp-block-image.ae-technical-sheet img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Ensure parent containers don't clip the shadow */
.ae-technical-download,
.ae-technical-wrapper,
.ae-technical-layout {
    overflow: visible !important;
}

figure.ae-technical-sheet,
.wp-block-image.ae-technical-sheet {
    overflow: visible !important;
}

/* PDF button under the image */
.ae-pdf-button-wrap {
    margin-top: 24px !important;
    justify-content: center !important;
}

.ae-pdf-button .wp-block-button__link {
    background-color: #EC1C24 !important;   /* red */
    border-radius: 10px !important;
    padding: 12px 40px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-size: 12px !important;
    font-family: "Open Sans", sans-serif !important;
    font-weight: 400 !important;
    border: none !important;
    color: #ffffff !important;
}

.ae-pdf-button .wp-block-button__link:hover {
    background-color: #c81818 !important;
}

/* Sketch grid (3 across desktop) */
.ae-sketch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* Group label for rows (spans full width) */
.ae-sketch-group-label {
    grid-column: 1 / -1;
    text-align: left;
    margin: 0 0 2px 0;
    font-size: 12px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
}

/* Second group label needs top margin for separation */
.ae-sketch-group-label:nth-of-type(2) {
    margin-top: 24px;
}

/* Each sketch block */
.ae-sketch-item {
    text-align: center;
}

/* Placeholder thumbnails */
.ae-sketch-item .wp-block-image {
    margin: 0;
}

.ae-sketch-item .wp-block-image img {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto;
    display: block;
    border: 1px solid #d0d0d0;
    border-radius: 12px !important;
    background-color: #ffffff;
    object-fit: cover;
}

/* Specifically for Sliding Door Styles (Patio, Renaissance, Palace) - only the first grid in technical sketches */
.ae-technical-sketches .ae-sketch-grid:first-of-type .ae-sketch-item .wp-block-image img {
    border-radius: 0 !important;
    object-fit: cover !important;
    width: 180px !important;
    height: 240px !important;
    max-width: 180px !important;
    max-height: 240px !important;
}

/* More specific targeting for Sliding Doors section */
body.cpt_services-template-default .ae-technical-sketches .ae-sketch-grid:first-of-type .ae-sketch-item .wp-block-image img {
    border-radius: 0 !important;
    object-fit: cover !important;
    width: 180px !important;
    height: 240px !important;
    max-width: 180px !important;
    max-height: 240px !important;
}

/* Labels under thumbnails */
.ae-sketch-label {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
}

/* Expandable details for sizes */
.ae-sketch-details {
    margin-top: 8px;
    font-size: 12px;
}

.ae-sketch-summary {
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: underline;
    font-size: 12px;
    list-style: none;
    user-select: none;
}

.ae-sketch-summary::-webkit-details-marker {
    display: none;
}

.ae-sketch-summary::marker {
    display: none;
}

.ae-sketch-summary:hover {
    color: rgba(0, 0, 0, 0.8);
}

.ae-sketch-sizes {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
    font-size: 11px;
    line-height: 1.6;
}

.ae-sketch-sizes strong {
    font-weight: 600;
}

/* ============================================================
   OPTIONAL – SVG STROKE DRAW ANIMATION (for future SVG sketches)
   ============================================================ */

/* Apply to inline SVGs wrapped with .ae-svg-drawing */
.ae-svg-drawing path,
.ae-svg-drawing line,
.ae-svg-drawing polyline {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: ae-drawing-stroke 2.4s ease-out forwards;
}

/* Simple stagger on subsequent drawings */
.ae-svg-drawing:nth-of-type(2) path,
.ae-svg-drawing:nth-of-type(2) line,
.ae-svg-drawing:nth-of-type(2) polyline {
    animation-delay: 0.3s;
}
.ae-svg-drawing:nth-of-type(3) path,
.ae-svg-drawing:nth-of-type(3) line,
.ae-svg-drawing:nth-of-type(3) polyline {
    animation-delay: 0.6s;
}

@keyframes ae-drawing-stroke {
    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-svg-drawing path,
    .ae-svg-drawing line,
    .ae-svg-drawing polyline {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */

@media (max-width: 900px) {
    .ae-technical-layout {
        flex-wrap: wrap;
    }

    .ae-sketch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ae-title-block {
        margin-right: 0;
    }
}

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

/* Table styling for spec details */
.ae-technical-sketches table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.ae-technical-sketches table thead {
    background: rgba(248, 251, 255, 0.8);
}

.ae-technical-sketches table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(24, 52, 104, 0.15);
    color: rgba(0, 0, 0, 0.8);
}

.ae-technical-sketches table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.7);
}

.ae-technical-sketches table tbody tr:hover {
    background: rgba(248, 251, 255, 0.4);
}

.ae-technical-sketches table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   ENGINEERING STYLE SPECS TABLE
   ============================================================ */
body.cpt_services-template-default .ae-technical-sketches .ae-spec-table,
.ae-technical-sketches .ae-spec-table,
.ae-spec-table {
    max-width: 260px !important;
}

/* Override for 3-column tables */
body.cpt_services-template-default .ae-technical-sketches .ae-spec-table.ae-spec-table-3col-wrapper,
.ae-technical-sketches .ae-spec-table.ae-spec-table-3col-wrapper,
.ae-spec-table.ae-spec-table-3col-wrapper {
    max-width: 600px !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-heading,
.ae-technical-sketches .ae-spec-heading,
.ae-spec-heading {
    margin: 20px 0 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: rgba(0, 0, 0, 0.85) !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-heading:first-child,
.ae-technical-sketches .ae-spec-heading:first-child,
.ae-spec-heading:first-child {
    margin-top: 0 !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-heading-small,
.ae-technical-sketches .ae-spec-heading-small,
.ae-spec-heading-small {
    font-size: 18px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table,
.ae-technical-sketches .ae-spec-table table,
.ae-spec-table table {
    width: 100% !important;
    max-width: 260px !important;
    border-collapse: collapse !important;
    font-size: 13px !important;
    font-family: inherit !important;
    margin: 0 !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table thead,
.ae-technical-sketches .ae-spec-table table thead,
.ae-spec-table table thead {
    background: transparent !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table th,
.ae-technical-sketches .ae-spec-table table th,
.ae-spec-table table th {
    padding: 2px 0 !important;
    text-align: left !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    line-height: 1.3 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: rgba(0, 0, 0, 0.7) !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table tr,
.ae-technical-sketches .ae-spec-table table tr,
.ae-spec-table table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table tr:nth-child(even),
.ae-technical-sketches .ae-spec-table table tr:nth-child(even),
.ae-spec-table table tr:nth-child(even) {
    background: transparent !important;
    background-color: transparent !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table tr:nth-child(odd),
.ae-technical-sketches .ae-spec-table table tr:nth-child(odd),
.ae-spec-table table tr:nth-child(odd) {
    background: transparent !important;
    background-color: transparent !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table tr:last-child,
.ae-technical-sketches .ae-spec-table table tr:last-child,
.ae-spec-table table tr:last-child {
    border-bottom: none !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table tbody tr:hover,
.ae-technical-sketches .ae-spec-table table tbody tr:hover,
.ae-spec-table table tbody tr:hover {
    background: transparent !important;
    background-color: transparent !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table td,
.ae-technical-sketches .ae-spec-table td,
.ae-spec-table td {
    padding: 2px 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table tbody td,
.ae-technical-sketches .ae-spec-table table tbody td,
.ae-spec-table table tbody td {
    font-size: 13px !important;
    padding: 2px 0 !important;
    line-height: 1.3 !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table td.code,
.ae-technical-sketches .ae-spec-table td.code,
.ae-spec-table td.code,
body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table tbody td.code,
.ae-technical-sketches .ae-spec-table table tbody td.code,
.ae-spec-table table tbody td.code {
    font-weight: 700 !important;
    width: 150px !important;
    color: rgba(0, 0, 0, 0.85) !important;
    vertical-align: top !important;
    font-size: 13px !important;
    padding: 2px 0 !important;
    line-height: 1.3 !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table td.size,
.ae-technical-sketches .ae-spec-table td.size,
.ae-spec-table td.size,
body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table tbody td.size,
.ae-technical-sketches .ae-spec-table table tbody td.size,
.ae-spec-table table tbody td.size {
    color: rgba(0, 0, 0, 0.6) !important;
    vertical-align: top !important;
    font-size: 13px !important;
    padding: 2px 0 !important;
    line-height: 1.3 !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-spacer,
.ae-technical-sketches .ae-spec-spacer,
.ae-spec-spacer {
    height: 32px !important;
}

/* 3-column tables - wider width */
body.cpt_services-template-default .ae-technical-sketches .ae-spec-table-3col,
.ae-technical-sketches .ae-spec-table-3col,
.ae-spec-table-3col {
    max-width: 600px !important;
    width: 100% !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table.ae-spec-table-3col,
.ae-technical-sketches .ae-spec-table table.ae-spec-table-3col,
.ae-spec-table table.ae-spec-table-3col {
    max-width: 600px !important;
    width: 100% !important;
    table-layout: auto !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table.ae-spec-table-3col th,
.ae-technical-sketches .ae-spec-table table.ae-spec-table-3col th,
.ae-spec-table table.ae-spec-table-3col th {
    padding: 2px 8px 2px 0 !important;
    text-align: left !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    line-height: 1.3 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: rgba(0, 0, 0, 0.7) !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table.ae-spec-table-3col td,
.ae-technical-sketches .ae-spec-table table.ae-spec-table-3col td,
.ae-spec-table table.ae-spec-table-3col td {
    padding: 2px 8px 2px 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    vertical-align: top !important;
    white-space: nowrap !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table.ae-spec-table-3col td.item,
.ae-technical-sketches .ae-spec-table table.ae-spec-table-3col td.item,
.ae-spec-table table.ae-spec-table-3col td.item {
    color: rgba(0, 0, 0, 0.7) !important;
    font-weight: 400 !important;
    min-width: 140px !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table.ae-spec-table-3col td.code,
.ae-technical-sketches .ae-spec-table table.ae-spec-table-3col td.code,
.ae-spec-table table.ae-spec-table-3col td.code {
    font-weight: 700 !important;
    color: rgba(0, 0, 0, 0.85) !important;
    min-width: 80px !important;
    width: auto !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table.ae-spec-table-3col td.size,
.ae-technical-sketches .ae-spec-table table.ae-spec-table-3col td.size,
.ae-spec-table table.ae-spec-table-3col td.size {
    color: rgba(0, 0, 0, 0.6) !important;
    min-width: 180px !important;
}

body.cpt_services-template-default .ae-technical-sketches .ae-spec-table table.ae-spec-table-3col td.description,
.ae-technical-sketches .ae-spec-table table.ae-spec-table-3col td.description,
.ae-spec-table table.ae-spec-table-3col td.description {
    color: rgba(0, 0, 0, 0.6) !important;
    font-weight: 400 !important;
    min-width: 180px !important;
}

/* ============================================================
   HIDE SERVICE PAGE HEADER/TITLE
   ============================================================ */

.services_page_header {
    display: none !important;
}

/***********************************************
 * BUTTON RADIUS
 ***********************************************/
.rounded-btn .sc_button,
.rounded-btn .sc_button:before,
.rounded-btn .sc_button:after {
    border-radius: 10px !important;
    overflow: hidden;
}

/* ===========================
   Services sidebar menu styling
   =========================== */

/* Container box */
.ae-products-sidebar {
    background-color: #f7f7f7 !important;
    border: 1px solid #e5e5e5 !important;
    padding: 15px 18px !important;
    width: 325px !important;
    max-width: 100% !important;
}

/* Heading and red underline */
.ae-products-sidebar .elementor-widget-heading .elementor-heading-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 18px 0 !important;
    position: relative !important;
    color: inherit !important;
}

.ae-products-sidebar .elementor-widget-heading .elementor-heading-title::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -6px !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #d32027 !important;
}


/* Gap between heading and menu list */
.ae-products-menu .sc_layouts_menu_nav {
    margin-top: 8px !important;
}

/* ===========================
   TOP-LEVEL ITEMS
   =========================== */

.ae-products-menu .sc_layouts_menu_nav > li > a {
    display: flex !important;                     /* text + arrow square */
    align-items: center !important;
    padding: 9px 12px !important;
    background-color: #fafafa !important;
    border-bottom: 1px solid #e3e3e3 !important;
    text-decoration: none !important;
}

/* Text (Doors / Windows / Showers) */
.ae-products-menu .sc_layouts_menu_nav > li > a > span:not(.open_child_menu) {
    flex: 1 1 auto !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #555 !important;
}

/* Hover / current states */
.ae-products-menu .sc_layouts_menu_nav > li > a:hover,
.ae-products-menu .sc_layouts_menu_nav > li.current-menu-item > a,
.ae-products-menu .sc_layouts_menu_nav > li.current-menu-ancestor > a {
    background-color: #f0f0f0 !important;
}

.ae-products-menu .sc_layouts_menu_nav > li > a:hover > span:not(.open_child_menu),
.ae-products-menu .sc_layouts_menu_nav > li.current-menu-item > a > span:not(.open_child_menu),
.ae-products-menu .sc_layouts_menu_nav > li.current-menu-ancestor > a > span:not(.open_child_menu) {
    color: #1a3d7c !important;
}

/* No border on last item */
.ae-products-menu .sc_layouts_menu_nav > li:last-child > a {
    border-bottom: none !important;
}

/* ===========================
   CHEVRON IN A SQUARE (TOP + SUBMENU)
   =========================== */

/* Square box on the right – whole thing clickable */
.ae-products-menu .sc_layouts_menu_nav .open_child_menu {
    position: static !important;                  /* cancel any old absolute */
    flex: 0 0 34px !important;                    /* square width - increased for better clickability */
    height: 34px !important;                      /* square height - increased for better clickability */
    min-width: 34px !important;                   /* ensure minimum clickable area */
    margin: 0 0 0 6px !important;                 /* only left margin, no top/bottom */
    padding: 4px !important;                      /* add padding to increase clickable area */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;                 /* ensure vertical centering within parent */
    cursor: pointer !important;
    box-sizing: border-box !important;
    font-size: 0 !important;                      /* hide original icon font */
}

/* Draw the chevron inside the square (closed = V) */
.ae-products-menu .sc_layouts_menu_nav .open_child_menu::before {
    content: "" !important;
    display: block !important;
    width: 10px !important;                       /* slightly larger chevron */
    height: 10px !important;                      /* slightly larger chevron */
    border-right: 2px solid #777 !important;
    border-bottom: 2px solid #777 !important;
    transform: rotate(45deg) !important;
    box-sizing: border-box !important;
}

/* Open state – chevron flipped (Λ) and coloured if you like */
.ae-products-menu .sc_layouts_menu_nav li.menu-item-has-children.opened > a > .open_child_menu::before {
    transform: rotate(-135deg) !important;
    border-right-color: #e53935 !important;
    border-bottom-color: #e53935 !important;
}

/* Kill any built-in icon inside the span */
.ae-products-menu .sc_layouts_menu_nav .open_child_menu i,
.ae-products-menu .sc_layouts_menu_nav .open_child_menu svg {
    display: none !important;
}

/* ===========================
   SUB-MENU (ALL LEVELS)
   =========================== */

.ae-products-menu .sc_layouts_menu_nav ul.sub-menu {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f7f7f7 !important;
}

.ae-products-menu .sc_layouts_menu_nav ul.sub-menu > li > a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px 8px 24px !important;
    background-color: #f7f7f7 !important;
    border-top: 1px solid #e3e3e3 !important;
    text-decoration: none !important;
}

/* Submenu text */
.ae-products-menu .sc_layouts_menu_nav ul.sub-menu > li > a > span:not(.open_child_menu) {
    flex: 1 1 auto !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #666 !important;
}

/* Submenu hover */
.ae-products-menu .sc_layouts_menu_nav ul.sub-menu > li > a:hover > span:not(.open_child_menu),
.ae-products-menu .sc_layouts_menu_nav ul.sub-menu > li.current-menu-item > a > span:not(.open_child_menu),
.ae-products-menu .sc_layouts_menu_nav ul.sub-menu > li.current-menu-ancestor > a > span:not(.open_child_menu) {
    color: #1a3d7c !important;
}

.big-svg-icon svg {
    width: 200px !important;
    height: 200px !important;
}

/* Contact Us widget heading styling */
.widget_contacts .widget_title,
.widget_contacts h5.widget_title {
    font-family: "Open Sans", sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
}

/* Recent Posts widget heading styling - match Contact Us */
.widget_recent_posts .widget_title,
.widget_recent_posts h5.widget_title {
    font-family: "Open Sans", sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
}

/* ============================================================
   VIDEO SWITCH BUTTONS FOR SECURITY SCREENS
   ============================================================ */

.ae-video-switch-buttons {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    justify-content: center !important;
}

.ae-video-switch-btn button {
    background-color: #f0f0f0 !important;
    color: #555 !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.ae-video-switch-btn.active button,
.ae-video-switch-btn button:hover {
    background-color: #EC1C24 !important;
    color: #ffffff !important;
    border-color: #EC1C24 !important;
}

/* Video player styling for portrait videos/images */
.ae-title-video {
    margin: 0 auto !important;
    max-width: 208px !important;
    width: 208px !important;
    display: block !important;
}

/* MediaElement.js wrapper - force portrait */
.ae-title-video .mejs-container,
.ae-title-video .mejs-inner,
.ae-title-video .mejs-mediaelement,
.ae-title-video .mejs-layers {
    width: 208px !important;
    max-width: 208px !important;
    height: auto !important;
    max-height: 370px !important;
}

.ae-title-video video,
.ae-title-video img {
    width: 208px !important;
    height: auto !important;
    max-width: 208px !important;
    max-height: 370px !important;
    display: block !important;
    border-radius: 4px !important;
    object-fit: contain !important;
}

/* Video container - relative positioning for overlay */
.ae-title-video {
    position: relative !important;
}

/* Custom play button overlay */
.ae-video-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: opacity 0.3s ease, transform 0.2s ease !important;
}

.ae-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.ae-video-play-btn.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.ae-video-play-btn svg {
    display: block !important;
    width: 60px !important;
    height: 60px !important;
}

.ae-video-fullscreen-btn {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background-color: rgba(236, 28, 36, 0.9) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    font-family: "Open Sans", sans-serif !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: background-color 0.2s ease !important;
}

.ae-video-fullscreen-btn:hover {
    background-color: rgba(236, 28, 36, 1) !important;
}

/* Hide video controls */
/* Hide MediaElement.js controls */
.ae-title-video .mejs-controls,
.ae-title-video .mejs-controls-container,
.ae-title-video .mejs-button,
.ae-title-video .mejs-time,
.ae-title-video .mejs-time-rail,
.ae-title-video .mejs-time-total,
.ae-title-video .mejs-time-loaded,
.ae-title-video .mejs-time-current,
.ae-title-video .mejs-volume-button,
.ae-title-video .mejs-fullscreen-button {
    display: none !important;
    visibility: hidden !important;
}

/* Hide all native video controls */
.ae-title-video video::-webkit-media-controls {
    display: none !important;
}

.ae-title-video video::-webkit-media-controls-enclosure {
    display: none !important;
}

.ae-title-video video::-webkit-media-controls-panel {
    display: none !important;
}

.ae-title-video video::-webkit-media-controls-play-button {
    display: none !important;
}

.ae-title-video video::-webkit-media-controls-timeline {
    display: none !important;
}

.ae-title-video video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.ae-title-video video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.ae-title-video video::-webkit-media-controls-mute-button {
    display: none !important;
}

.ae-title-video video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.ae-title-video video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* Reduce spacing for Front View and Top View headings in Security Screens */
.ae-technical-text h6,
.ae-technical-wrapper .ae-technical-text h6,
body.cpt_services-template-default .ae-technical-text h6 {
    margin-top: 8px !important;
    margin-bottom: 4px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
}

/* Reduce spacing between h6 heading and list below */
.ae-technical-text h6 + ul {
    margin-top: 4px !important;
    margin-bottom: 12px !important;
}
