/* ===================================================
   OLFATOS BRAND OVERRIDES — replaces Ejemplo defaults
   Primary: #C93232 (red)  |  Accent: #f3e731 (yellow)
=================================================== */

/* ===========================
   CUSTOM HEADER ELEMENTS
=========================== */

/* ---- Header always has solid dark background ---- */
.th-header,
.th-header .sticky-wrapper,
.th-header .menu-area {
    background: #111 !important;
    background-color: #111 !important;
}

/* Ensure header is always on top */
.th-header {
    position: sticky !important;
    top: 0;
    z-index: 1000 !important;
    width: 100%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}

/* Header inner spacing — prevent elements from touching */
.th-header .menu-area {
    padding: .5rem 0 !important;
}

.th-header .row {
    min-height: 72px;
}

/* Logo sizing — never overflow the header */
.th-header .header-logo img {
    height: 100px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
}

/* Nav links — white on dark background */
.th-header .main-menu ul li a {
    color: #fff !important;
    font-weight: 500;
    padding: .5rem .9rem;
    font-size: .95rem;
    white-space: nowrap;
}

.th-header .main-menu ul li a:hover {
    color: #f3e731 !important;
}

/* Hero: push down so it starts BELOW the sticky header */
.olf-hero {
    margin-top: 0;
    /* header is sticky so hero is not under it */
}

/* Give the slide inner enough top padding so eyebrow/title don't sit at the very top */
.olf-slide-inner {
    padding-top: 4rem !important;
}

/* ---- Eyebrow badge: keep it from overflowing into nav area ---- */
.olf-eyebrow {
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hdr-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* Social icons */
.hdr-socials {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.hdr-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #fff;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
}

.hdr-social-btn:hover {
    transform: translateY(-3px);
    opacity: .85;
    color: #fff;
}

.hdr-fb {
    background: #1877F2;
}

.hdr-ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.hdr-wa {
    background: #25d366;
}

.hdr-tk {
    background: #000;
}

/* Cart button */
.hdr-cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #1a1a1a;
    text-decoration: none;
    background: #f0f0f0;
    transition: background .2s, color .2s;
}

.hdr-cart-btn:hover {
    background: #C93232;
    color: #fff;
}

.hdr-cart-btn #cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #C93232;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Agendar Cita button */
.hdr-cita-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.4rem;
    border-radius: 2rem;
    background: #C93232;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #C93232;
    transition: background .25s, transform .2s;
    white-space: nowrap;
}

.hdr-cita-btn:hover {
    background: #a02020;
    border-color: #a02020;
    color: #fff;
    transform: translateY(-1px);
}

/* Mobile hamburger */
.th-menu-toggle {
    background: #C93232;
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: .6rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ===========================
   ABOUT IMAGE BOX
=========================== */
.about-img-box {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 2rem;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .13);
}

.about-main-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2rem;
    object-fit: cover;
    max-height: 500px;
}

.about-year-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: #C93232;
    color: #fff;
    padding: .8rem 1.4rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(201, 50, 50, .4);
}

.about-year-num {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #f3e731;
}

.about-year-txt {
    display: block;
    font-size: .78rem;
    opacity: .9;
    white-space: nowrap;
}

/* ===========================
   MOBILE IMPROVEMENTS
=========================== */
@media (max-width:991px) {
    .olf-hero {
        min-height: 85vh;
    }

    .olf-slide-inner {
        min-height: 85vh;
        padding: 5rem 0 3rem;
    }

    .olf-hero-title {
        font-size: clamp(1.9rem, 6vw, 2.8rem);
    }

    .olf-hero-counters {
        gap: .5rem;
    }

    .olf-ctr {
        padding: .5rem 1rem;
    }

    .olf-ctr-num {
        font-size: 1.4rem;
    }

    .about-img-box {
        margin-bottom: 2rem;
    }

    .about-main-img {
        max-height: 350px;
    }
}

@media (max-width:576px) {
    .olf-hero-title {
        font-size: 1.7rem;
    }

    .olf-hero-text {
        font-size: .95rem;
    }

    .olf-hero-btns .btn-hero-pri,
    .olf-hero-btns .btn-hero-sec {
        padding: .7rem 1.3rem;
        font-size: .9rem;
    }

    .olf-ctr-lbl {
        font-size: .65rem;
    }

    .about-main-img {
        max-height: 280px;
    }
}


/* ---- CRITICAL: Override scrollCue & GSAP hidden state ---- */
/* scrollCue sets opacity:0 on [data-cue] elements until scroll — override it */
[data-cue],
[data-cue="slideInUp"],
[data-cue="slideInLeft"],
[data-cue="slideInRight"],
.text-anim,
.text-anim2,
.sec-title,
.sub-title,
.about-wrap1,
.img-box1,
.about1-list-wrap,
.why-card,
.why-wrap1,
.why-img-box1,
.process-card,
.testi-card,
.blog-card,
.service-card,
.swiper-slide {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Fix img-box1 which uses mask JS → show image normally */
.img-box1 .img1 {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    overflow: hidden;
    border-radius: 2rem;
}

.img-box1 .img1 img {
    width: 100%;
    display: block;
    border-radius: 2rem;
}

/* Fix year counter positioned inside img-box1 */
.year-counter-wrap {
    position: absolute;
    bottom: 1.5rem;
    left: -1.5rem;
    background: var(--theme-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(201, 50, 50, .35);
}

.img-box1 {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Fix mask-based backgrounds (data-mask-src is handled by main.js but may fail) */
.testi-bg-mask,
.process-bg-mask,
.team-1-bg-mask {
    display: none !important;
}

/* Fix service card icon area (we use inline bg, ensure min-height renders) */
.service-card .box-img {
    min-height: 180px;
    overflow: hidden;
}

/* Fix why-img-box1 display */
.why-img-box1 {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.why-img-box1 img {
    max-width: 500px;
    width: 100%;
}

/* Ensure swiper containers have height */
.service-slider1 .swiper {
    min-height: 320px;
}

.testi-slider1 .swiper {
    min-height: 250px;
}

/* Fix data-bg-src (handled by main.js → inline style). If not loaded, fallback */
.th-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    /* fallback if image fails */
}


:root {
    --theme-color: #C93232;
    --theme-color2: #f3e731;
    --title-color: #1a1a1a;
    --body-color: #444;
    --smoke-color: #F7F7FB;
    --smoke-color2: #f0f0f6;
    --black-color: #1a1a1a;
    --white-color: #ffffff;
    --border-color: #e5e5e5;
    --yellow-color: #f3e731;
    --success-color: #25d366;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Onest', sans-serif;
}

/* ---- Typography ---- */
body {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
.sec-title,
.hero-title,
.box-title,
.widget_title {
    font-family: var(--font-heading);
}

/* ---- Template theme-color class overrides ---- */
.text-theme {
    color: var(--theme-color) !important;
}

.bg-theme {
    background: var(--theme-color) !important;
}

.border-theme {
    border-color: var(--theme-color) !important;
}

/* Buttons */
.th-btn {
    background: var(--theme-color);
    border-color: var(--theme-color);
    font-family: var(--font-heading);
    letter-spacing: .3px;
}

.th-btn:hover {
    background: #a02020;
    border-color: #a02020;
}

.th-btn.style-border {
    background: transparent;
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.th-btn.style-border:hover {
    background: var(--theme-color);
    color: #fff;
}

.th-btn.style-border3 {
    background: transparent;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
}

.th-btn.style2 {
    background: var(--theme-color2);
    border-color: var(--theme-color2);
    color: #1a1a1a;
}

.th-btn.style2:hover {
    background: #d4c900;
    border-color: #d4c900;
}

/* Slider arrows */
.slider-arrow {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.slider-arrow:hover {
    background: var(--theme-color);
    color: #fff;
}

/* Sub titles */
.sub-title {
    color: var(--theme-color);
}

.subtitle-line::before,
.subtitle-line::after {
    background: var(--theme-color);
}

/* Social icons in header */
.icon-btn {
    border-color: rgba(201, 50, 50, .25);
    color: var(--theme-color);
}

.icon-btn:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

/* Checklist */
.checklist.style2 ul li::before {
    color: var(--theme-color);
    background: rgba(201, 50, 50, .1);
}

/* Marquee cards */
.marquee-card a {
    color: var(--theme-color);
}

.marquee-card a:hover {
    color: #a02020;
}

/* Why cards */
.why-card .box-number {
    color: var(--theme-color);
}

/* Testimonial stars */
.testi-card_review i {
    color: var(--theme-color2);
}

/* Footer */
.footer-wrapper {
    background: #1a1a1a;
}

.widget_title {
    color: var(--theme-color2);
}

.copyright-wrap {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.th-social a {
    border-color: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .7);
}

.th-social a:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

/* Footer CTA section */
.footer-cta-wrap {
    background: linear-gradient(135deg, #C93232 0%, #8a0000 100%);
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    margin-bottom: 4rem;
}

/* Scroll to top */
.scroll-top {
    background: var(--theme-color);
}

.scroll-top .progress-circle path {
    stroke: var(--theme-color2);
}

/* ---- Hero enhancements ---- */
.hero-counter-wrap {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 10;
}

.counter-card {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 1rem;
    padding: .75rem 1.5rem;
    text-align: center;
    color: #fff;
}

.counter-card .box-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--theme-color2);
    margin: 0;
    line-height: 1.1;
}

.counter-card .box-text {
    font-size: .8rem;
    opacity: .85;
    margin: 0;
}

/* Hero title two-line effect */
.hero-title .title1 {
    display: block;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 400;
}

.hero-title .title2 {
    display: block;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    color: var(--theme-color2);
}

.hero-style1 {
    padding: 9rem 0 14rem;
}

/* ---- Service cards ---- */
.service-card .box-img {
    transition: transform .35s;
}

.service-card:hover .box-img {
    transform: scale(1.04);
}

.service-card .icon-btn.style3 {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

.service-card .icon-btn.style3:hover {
    background: var(--theme-color2);
    border-color: var(--theme-color2);
    color: #1a1a1a;
}

/* ---- Custom product cards ---- */
.product-card-babet {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    transition: transform .3s, box-shadow .3s;
}

.product-card-babet:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(201, 50, 50, .14);
}

.product-card-babet-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f7f7fb;
}

.product-card-babet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.product-card-babet:hover .product-card-babet-img img {
    transform: scale(1.07);
}

.product-card-babet-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--theme-color);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.product-card-babet-body {
    padding: 1.25rem;
}

.product-card-babet-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--title-color);
}

.product-card-babet-body p {
    font-size: .83rem;
    color: #777;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.product-card-babet-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.product-price-babet {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--theme-color);
}

/* ---- Blog cards color ---- */
.blog-content .blog-meta a {
    color: var(--theme-color);
}

.blog-content .box-title a:hover {
    color: var(--theme-color);
}

.link-btn {
    color: var(--theme-color);
}

.link-btn:hover {
    color: #a02020;
}

/* ---- Accordion ---- */
.accordion-button:not(.collapsed) {
    color: var(--theme-color);
}

.accordion-button::after {
    background: var(--theme-color);
}

.accordion-card .count {
    color: var(--theme-color);
}

/* ---- Testi card profile ---- */
.testi-card-profile-detaile .box-desig {
    color: var(--theme-color);
}

/* ---- Responsive tweaks ---- */
@media (max-width: 991px) {
    .hero-counter-wrap {
        flex-direction: column;
        bottom: auto;
        left: auto;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        gap: .75rem;
    }

    .hero-style1 {
        padding: 7rem 0 10rem;
    }
}

@media (max-width: 767px) {
    .hero-counter-wrap {
        display: none;
    }

    .hero-style1 {
        padding: 5rem 0 6rem;
    }
}

/* ---- Hero: Force all slides + content visible regardless of Swiper state ---- */
.th-hero-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.hero-slider1 .swiper {
    position: relative;
    width: 100%;
}

.hero-slider1 .swiper-wrapper {
    position: relative;
    width: 100%;
}

/* Each slide must be visible + have the image behind the content */
.hero-slider1 .swiper-slide {
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.th-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover !important;
    background-position: center !important;
}

/* Dark overlay for text readability */
.th-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Inner content must be on top of the overlay */
.hero-inner {
    position: relative;
    z-index: 5;
}

/* ===========================
   BREADCRUMB — compact + brand red
   Root cause: theme sets --space:262px on .breadcumb-content
   and margin-top:157px on .breadcumb-menu
=========================== */
.breadcumb-wrapper {
    background: linear-gradient(135deg, #C93232 0%, #b01818 100%) !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 0 !important;
    border-radius: 0 0 50% 50% / 0 0 40px 40px !important;
}

/* THE KEY FIX: collapse the large top padding */
.breadcumb-wrapper .breadcumb-content {
    --space: 0px !important;
    padding: 3.5rem 0 1.5rem !important;
}

.breadcumb-wrapper:has(.breadcumb-content):not(:has(.breadcumb-menu)) .breadcumb-content {
    padding: 3.5rem 0 3.5rem !important;
}

/* Remove the white pill bubble on breadcumb-menu */
.bg-smoke2 .breadcumb-menu:before,
.breadcumb-menu:before,
.breadcumb-menu::before {
    display: none !important;
    background: none !important;
    content: none !important;
}

/* THE KEY FIX: collapse the large top margin on breadcumb-menu */
.breadcumb-menu {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 12px 80px !important;
    min-width: unset !important;
    background: transparent !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    box-shadow: none !important;
}

@media (max-width: 991px) {
    .breadcumb-menu {
        padding: 12px 40px !important;
        min-width: unset !important;
    }
}

/* Hide the inner floating bg-thumb div */
.breadcumb-wrapper .breadcumb-bg-thumb {
    display: none !important;
}

/* Title: red + Fredoka */
.breadcumb-title {
    font-family: 'Fredoka', sans-serif !important;
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    color: #e7d000 !important;
    margin: 0 0 0.25rem !important;
    line-height: 1.2 !important;
}

/* Nav breadcrumb colors — dark text on red bg */
.breadcumb-menu li,
.breadcumb-menu a,
.breadcumb-menu span {
    color: rgba(0, 0, 0, .75) !important;
    font-size: 15px !important;
}

.breadcumb-menu li:last-child {
    color: #1a0000 !important;
    font-weight: 700 !important;
}

.breadcumb-menu li:after {
    color: rgba(0, 0, 0, .45) !important;
}

/* Container stays above bg */
.breadcumb-wrapper .container {
    position: relative;
    z-index: 2;
}