/* 
Theme Name: Dino Roofs Child Theme
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* Hide the divider, excerpt, and button by default */
.service-card-wrapper .hover-reveal-item {
    max-height: 0;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

/* Reveal them smoothly when hovering over the main card */
.service-card-wrapper:hover .hover-reveal-item {
    max-height: 200px; /* Adjust this if your excerpt is very long */
    opacity: 1;
    margin-top: 15px !important; /* Spacing between elements when revealed */
}

/* Optional: Add a slight zoom effect to the background image on hover */
.service-card-wrapper {
    transition: background-size 0.4s ease-in-out;
}

/* Move both arrows to the top above the carousel */
.custom-service-carousel .elementor-swiper-button {
    top: -100px !important; /* Adjust this to move them higher or lower */
    bottom: auto !important;
    transform: none !important;
    margin-top: 0 !important;
}

/* Position the Right Arrow */
.custom-service-carousel .elementor-swiper-button-next {
    right: 0 !important;
    left: auto !important;
}

/* Position the Left Arrow */
.custom-service-carousel .elementor-swiper-button-prev {
    right: 70px !important; /* Adjust this value to change the gap between the two arrows */
    left: auto !important;
}

/* --- MOBILE SETTINGS FOR CAROUSEL --- */
@media (max-width: 767px) {

    /* 2. Move arrows to the bottom */
    body .elementor-widget.custom-service-carousel .elementor-swiper-button {
        top: auto !important;
        bottom: -85px !important; /* Pushes them below the cards into the margin we created */
    }

    /* 3. Center the Left Arrow */
    body .elementor-widget.custom-service-carousel .elementor-swiper-button-prev {
        left: calc(40% - 35px) !important; /* Adjust the 35px to change gap */
        right: auto !important;
    }

    /* 4. Center the Right Arrow */
    body .elementor-widget.custom-service-carousel .elementor-swiper-button-next {
        left: calc(50% + 15px) !important; /* Adjust the 15px to change gap */
        right: auto !important;
    }
}

/* Remove bottom margin from the last paragraph in text widgets */
body .elementor-widget.no-bottom-space p:last-child {
    margin-bottom: 0 !important;
}

/* 1. Add a smooth transition to the icon so it doesn't snap instantly */
body .elementor-widget.custom-rotate-icon .elementor-icon i,
body .elementor-widget.custom-rotate-icon .elementor-icon svg {
    transition: transform 0.3s ease-in-out !important;
}

/* 2. Rotate the icon on hover */
body .elementor-widget.custom-rotate-icon:hover .elementor-icon i,
body .elementor-widget.custom-rotate-icon:hover .elementor-icon svg {
    transform: rotate(45deg) !important; 
}


/* --- BULLETPROOF CSS GRID LAYOUT --- */
body .cf7-form-wrapper .custom-grid-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    width: 100% !important;
}

body .cf7-form-wrapper .grid-half {
    width: 100% !important;
}

/* Force elements like the message box and button to span both columns */
body .cf7-form-wrapper .grid-full {
    grid-column: 1 / -1 !important; 
    width: 100% !important;
}

/* Fix CF7's annoying span wrappers */
body .cf7-form-wrapper span.wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

/* --- INPUT & TEXTAREA STYLING --- */
body .cf7-form-wrapper input[type="text"],
body .cf7-form-wrapper input[type="email"],
body .cf7-form-wrapper input[type="tel"],
body .cf7-form-wrapper textarea {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 1px solid #CDD0CD !important;
    border-radius: 6px !important;
    background-color: #F8F9FA !important;
    color: #484848 !important;
    font-size: 15px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* --- CUSTOM CIRCULAR CHECKBOX WITH CHECK ICON --- */
body .cf7-form-wrapper .terms-row .wpcf7-list-item {
    margin: 0 !important;
    display: block !important;
}

body .cf7-form-wrapper .terms-row label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

body .cf7-form-wrapper .terms-row .wpcf7-list-item-label {
    font-size: 15px !important;
    color: #555555 !important;
    line-height: normal !important;
    margin: 0 !important;
}

body .cf7-form-wrapper input[type="checkbox"] {
    position: relative !important;
    flex-shrink: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    min-width: 20px !important;
    width: 20px !important;
    height: 20px !important;
    border: 1px solid #222222 !important;
    border-radius: 50% !important;
    background-color: white !important;
    cursor: pointer !important;
    outline: none !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body .cf7-form-wrapper input[type="checkbox"]:checked {
    background-color: #E25A34 !important;
    border-color: #E25A34 !important;
}

body .cf7-form-wrapper input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -65%) rotate(-45deg);
}

/* --- CUSTOM SUBMIT BUTTON --- */
body .cf7-form-wrapper .custom-submit-btn {
    background-color: #E25A34 !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    padding: 6px 6px 6px 25px !important; /* Adjusted to fit the SVG */
    border: none !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    cursor: pointer !important;
    line-height: normal !important;
    width: auto !important;
    white-space: nowrap !important;
    transition: background-color 0.3s ease !important;
    box-sizing: border-box !important;
}

body .cf7-form-wrapper .custom-submit-btn:hover {
    background-color: #c94c2a !important;
}

/* The lighter orange circle with the SVG arrow */
body .cf7-form-wrapper .custom-submit-btn .btn-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    min-width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    color: #FFFFFF !important;
    transition: transform 0.3s ease !important;
}

body .cf7-form-wrapper .custom-submit-btn:hover .btn-icon {
    transform: rotate(45deg) !important;
}

body .cf7-form-wrapper .terms-row .terms-hint {
    display: block !important;
    font-size: 12px !important;
    color: #222222 !important;
    margin-top: 4px !important;
    margin-left: 30px !important;
    font-style: italic !important;
    transition: opacity 0.2s ease !important;
}

body .cf7-form-wrapper .terms-row input[type="checkbox"]:checked ~ .terms-hint {
    display: none !important;
}

/* --- MOBILE RESPONSIVENESS (Stack into 1 column) --- */
@media (max-width: 767px) {
    body .cf7-form-wrapper .custom-grid-form {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================
   PROJECT CARDS (Scroll & Center Reveal)
   ========================================== */

body .project-card-wrapper {
    position: relative;
    border-radius: 8px; 
    overflow: hidden;
}

/* 1. The Dark Overlay (Hidden on side cards) */
body .project-card-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #0D0D0D7A; /* Dark teal overlay */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1; 
}

/* 2. Hide Title and Button on side cards */
body .project-card-wrapper .elementor-widget-heading,
body .project-card-wrapper .elementor-widget.project-hover-btn {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px); 
    transition: all 0.5s ease-in-out;
}

/* 3. CENTER CARD ACTIVE STATE: Reveal Overlay, Title, and Button automatically */
body .elementor-widget.project-carousel .swiper-slide-active .project-card-wrapper::before {
    opacity: 0.48;
}

body .elementor-widget.project-carousel .swiper-slide-active .project-card-wrapper .elementor-widget-heading,
body .elementor-widget.project-carousel .swiper-slide-active .project-card-wrapper .elementor-widget.project-hover-btn {
    opacity: 1;
    transform: translateY(0);
}

/* 1. Hide the button natively */
body .hover-service-card .reveal-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
    transform: translateY(15px) !important;
    transition: all 0.3s ease-in-out !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Reveal and slide up on hover */
body .hover-service-card:hover .reveal-btn {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 80px !important; /* Adjust if your button needs more room */
    transform: translateY(0) !important;
    margin-top: 15px !important; /* Space between title and button */
}

/* 3. Darken the background overlay slightly on hover */
body .hover-service-card .elementor-background-overlay {
    transition: background-color 0.3s ease !important;
}
body .hover-service-card:hover .elementor-background-overlay {
    background-color: #0C212899 !important; 
}

/* 1. Align the pagination container */
body .custom-loop-pagination .elementor-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important; 
    padding-top: 40px !important; 
}

/* 2. Style the individual numbers and arrows */
body .custom-loop-pagination .elementor-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important; /* Forces a perfect circle */
    border: 1px solid #D1D5DB !important; 
    background-color: #FFFFFF !important;
    color: #4B5563 !important; 
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

/* 3. Style the Active (Current) Page */
body .custom-loop-pagination .elementor-pagination .page-numbers.current {
    background-color: #E85D33 !important; /* Your brand orange */
    border-color: #E85D33 !important;
    color: #FFFFFF !important;
}

/* 4. Style the Hover Effect */
body .custom-loop-pagination .elementor-pagination .page-numbers:hover:not(.dots) {
    background-color: #E85D33 !important; 
    border-color: #E85D33 !important;
    color: #FFFFFF !important;
}

/* 5. Clean up the dots (...) */
body .custom-loop-pagination .elementor-pagination .page-numbers.dots {
    border: none !important;
    background-color: transparent !important;
    color: #4B5563 !important;
    width: 30px !important; 
}

/* Force Elementor Nav Menu Dropdown Font Size */
.elementor-nav-menu--dropdown a.elementor-item {
    font-size: 18px !important; /* Change this to your desired size */
}

/* Smooth transition */
.header_primary,
.header_primary * {
  transition: transform 0.3s ease, font-size 0.3s ease, padding 0.3s ease;
}

/* Shrink mega menu */
.header_primary.is-scrolled .elementor-element-09473ec {
  transform: scale(0.9);
  transform-origin: center left;
}

/* Shrink GET STARTED icon box */
.header_primary.is-scrolled .elementor-element-a533045 {
  transform: scale(0.9);
  transform-origin: center right;
}

.header_primary.is-scrolled .elementor-element.elementor-element-91158ae.elementor-widget.elementor-widget-theme-site-logo.elementor-widget-image {
  transform: scale(0.9);
}

/* Reduce container padding to shrink height */
.header_primary.is-scrolled{
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #ececec !important;
}

/* Shrink phone icon box */
.header_primary.is-scrolled .elementor-element-83e6ce1 {
  transform: scale(0.9);
  transform-origin: center right;
}

/* ============================================
   DINO ROOFS - Breadcrumb
   ============================================ */

#breadcrumbs img {
  vertical-align: middle;
  position: relative;
  top: -1px;
}

#breadcrumbs,
.elementor-widget-breadcrumbs,
p#breadcrumbs {
  text-align: center;
  width: 100%;
}

/* ── Mobile Nav Panels ───────────────────────────────── */
#navPanels {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
}

.nav-panel {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.nav-panel.active {
    transform: translateX(0);
}

.nav-panel.behind {
    transform: translateX(-30%);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a4a;
    flex: 1;
    text-align: center;
}

.nav-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.nav-panel ul li {
    border-bottom: 1px solid #f5f5f5;
}

.nav-panel ul li a,
.nav-panel ul li button.has-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    color: #1a1a1a;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.nav-panel ul li a:hover,
.nav-panel ul li button.has-sub:hover {
    background: #f8f8f8;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px !important;
	transform: normal !important
    color: #e8521a;
    padding: 4px 0;
    font-family: inherit;
}

.nav-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* Mobile nav item typography */
.nav-panel ul li a,
.nav-panel ul li button.has-sub {
    font-family: 'Instrument Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

.nav-panel ul li button.has-sub {
    text-transform: none !important;
}

.nav-panel ul {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e8521a #f5f5f5;
}

.nav-panel ul::-webkit-scrollbar {
    width: 4px;
}

.nav-panel ul::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.nav-panel ul::-webkit-scrollbar-thumb {
    background-color: #e8521a;
    border-radius: 4px;
}

#navPanels {
    min-height: 80vh !important;
}

.nav-panel {
    min-height: 80vh !important;
}

#navPanels {
    min-height: unset !important;
    height: auto !important;
}

.nav-panel {
    min-height: unset !important;
    position: relative !important;
}

.nav-panel.behind,
.nav-panel:not(.active) {
    position: absolute !important;
    pointer-events: none;
}