/* ===================================================================
   Premium UI Overrides — loaded after app.bundle to refine look.
   Targets: typography, nav bar, top bar, sticky header, CTA button.
   =================================================================== */

/* ── 1. Global typography (Poppins + Playfair Display now loaded) ── */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.75;
    color: #555;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p { line-height: 1.8; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #281d0a;
}

/* Main display heading — Playfair Display for elegance */
.section-title h2,
.section-title h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* Italic accent inside headings stays Playfair */
.section-title h2 span,
.section-title h1 span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    color: #987230;
}

/* Section label above main heading */
.section-title h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2.5px !important;
    color: #987230 !important;
    margin-bottom: 10px !important;
}

/* ── 2. Top bar — thinner, more refined ─────────────────────────── */
.top_bar {
    height: 40px !important;
    line-height: 40px !important;
}

.top_bar_contact_item {
    padding: 0 16px !important;
    position: relative;
}

.top_bar_contact_item + .top_bar_contact_item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.18);
}

.top_bar_contact_item span {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px;
    padding-right: 5px !important;
    opacity: 0.7;
}

.prt-header-style-01 .top_bar_contact_item a {
    font-size: 11.5px !important;
    font-weight: 400;
    letter-spacing: 0.2px;
    opacity: 0.88;
    transition: opacity 0.2s, color 0.2s;
}

.prt-header-style-01 .top_bar_contact_item a:hover {
    opacity: 1;
    color: #c49a40 !important;
}

/* ── 3. Main header band ─────────────────────────────────────────── */
.site-header-menu {
    border-bottom: 1px solid rgba(40, 29, 10, 0.07);
}

/* ── 4. Nav links — weight, spacing, hover underline ────────────── */
#site-header-menu .site-navigation ul.menu > li {
    position: relative;
}

#site-header-menu .site-navigation ul.menu > li > a {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.35px;
    color: #281d0a !important;
    transition: color 0.2s;
    padding: 0 12px 0 12px !important;
}

/* Slide-in underline from centre */
#site-header-menu .site-navigation ul.menu > li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #987230;
    transform: scaleX(0);
    transform-origin: center;
    border-radius: 1px;
    transition: transform 0.25s ease;
}

#site-header-menu .site-navigation ul.menu > li:hover::after,
#site-header-menu .site-navigation ul.menu > li.active::after {
    transform: scaleX(1);
}

#site-header-menu .site-navigation ul.menu > li:hover > a,
#site-header-menu .site-navigation ul.menu > li.active > a,
#site-header-menu .prt-stickable-header .site-navigation ul.menu > li.active > a {
    color: #987230 !important;
}

/* ── 5. Get A Quote CTA button ───────────────────────────────────── */
.header_btn .prt-btn {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    padding: 11px 24px !important;
    border-radius: 30px !important;
    background: #987230 !important;
    border-color: #987230 !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(152, 114, 48, 0.38) !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
    line-height: 1.4 !important;
}

.header_btn .prt-btn:hover {
    background: #7a5a22 !important;
    border-color: #7a5a22 !important;
    box-shadow: 0 6px 24px rgba(152, 114, 48, 0.48) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Prevent the built-in ::after overlay from covering the button shine */
.header_btn .prt-btn::after {
    display: none !important;
}

/* ── 6. Sticky header — backdrop blur ───────────────────────────── */
.prt-stickable-header.fixed-header {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08) !important;
}

.prt-stickable-header.fixed-header nav.main-menu ul.menu > li > a {
    height: 72px !important;
    line-height: 72px !important;
}

/* ── 7. Sub-menu polish ──────────────────────────────────────────── */
#site-header-menu .site-navigation ul.menu li ul.mega-submenu {
    border-top: 2px solid #987230 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

#site-header-menu .site-navigation ul.menu li ul.mega-submenu li a {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px;
    color: #444 !important;
}

#site-header-menu .site-navigation ul.menu li ul.mega-submenu li a:hover {
    color: #987230 !important;
    padding-left: 18px !important;
}

/* ── 8. Floating sidebar contact buttons — more premium ─────────── */
.prt_floting_customsett {
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.tmtheme_fbar_icons {
    transition: opacity 0.2s;
}

.tmtheme_fbar_icons:hover {
    opacity: 0.88;
}

/* ── 9. Section headings — page titles ──────────────────────────── */
.prt-page-title-row-heading .title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
}

/* ── 10. Mobile nav ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .menubar-inner,
    .menubar-inner::after,
    .menubar-inner::before {
        background-color: #281d0a !important;
    }
}

/* ── 11. AOS — subtler, faster animations ───────────────────────── */

/* Reduce default translate distances (AOS defaults to 50px; 20px is enough) */
[data-aos="fade-up"] {
    transform: translate3d(0, 20px, 0) !important;
}
[data-aos="fade-down"] {
    transform: translate3d(0, -20px, 0) !important;
}
[data-aos="fade-right"],
[data-aos="slide-right"] {
    transform: translate3d(-20px, 0, 0) !important;
}
[data-aos="fade-left"],
[data-aos="slide-left"] {
    transform: translate3d(20px, 0, 0) !important;
}

/* After AOS fires, transform resets to zero — keep that untouched */
[data-aos].aos-animate {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
}

/* GPU hint — prevents jank on elements about to animate */
[data-aos] {
    will-change: transform, opacity;
}

/* ── Slick slider arrows — premium circular scroll buttons ──────── */
/*
 * Positioned INSIDE the slider track (positive left/right values)
 * so they're never clipped by parent overflow:hidden.
 * Vertically centred on the image area of the cards (~38% from top).
 */

.slick-slider { position: relative !important; }

.slick-prev,
.slick-next {
    position: absolute !important;
    top: 38% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.95) !important;
    border: 2px solid rgba(152,114,48,0.28) !important;
    box-shadow: 0 4px 18px rgba(40,29,10,0.18) !important;
    z-index: 30 !important;
    opacity: 1 !important;
    cursor: pointer !important;
    font-size: 0 !important;
    line-height: 0 !important;
    padding: 0 !important;
    outline: none !important;
    transition: background 0.22s, border-color 0.22s, box-shadow 0.22s !important;
}

/* Inside the track, at the card edge */
.slick-prev { left: 10px !important; }
.slick-next { right: 10px !important; }

.slick-prev:hover,
.slick-next:hover {
    background: #987230 !important;
    border-color: #987230 !important;
    box-shadow: 0 6px 26px rgba(152,114,48,0.45) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

/* Chevron icons via FontAwesome */
.slick-prev::before,
.slick-next::before {
    font-family: 'FontAwesome' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #281d0a !important;
    opacity: 1 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    transition: color 0.2s !important;
}
.slick-prev::before  { content: '\f053' !important; } /* fa-chevron-left  */
.slick-next::before  { content: '\f054' !important; } /* fa-chevron-right */
.slick-prev:hover::before,
.slick-next:hover::before { color: #fff !important; }

/* Disabled */
.slick-prev.slick-disabled,
.slick-next.slick-disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
}

/* Mobile — slightly smaller */
@media (max-width: 767px) {
    .slick-prev,
    .slick-next {
        width: 36px !important;
        height: 36px !important;
        top: 35% !important;
    }
    .slick-prev::before,
    .slick-next::before { font-size: 12px !important; }
}

/* ── 12. General CSS transition speed-up ────────────────────────── */
/* Any element using the long 1s transition from the theme gets trimmed */
.featured-imagebox,
.featured-imagebox-wrapper,
.featured-thumbnail img,
.prt-bg-layer {
    transition-duration: 0.35s !important;
}

/* Hover card lift — was 0.4s in app bundle, trim to 0.2s */
.featured-imagebox:hover,
.featured-imagebox-portfolio:hover {
    transition: box-shadow 0.2s, transform 0.2s !important;
}
