/* Petrolino website: layout, header, hero and fixes for the imported Elementor content */
/* IRANYekan @font-face comes from the farsi_font module */

:root {
    --ptl-primary: #FF5316;
    --ptl-navy: #192437;
    --ptl-teal: #1187A2;
    --ptl-grey: #F4F4F5;
    --ptl-muted: #7F8692;
    --e-global-color-primary: #FF5316;
}

body, #wrapwrap, #wrapwrap button, #wrapwrap input, #wrapwrap textarea, #wrapwrap select,
#wrapwrap h1, #wrapwrap h2, #wrapwrap h3, #wrapwrap h4, #wrapwrap h5, #wrapwrap h6 {
    font-family: 'IRANYekan', Tahoma, Arial, sans-serif;
}
#wrapwrap { background: #fff; color: #192437; }
#wrapwrap a { text-decoration: none; }
.ptl-container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------ header */
.ptl-header { position: relative; z-index: 50; background: transparent; }
.ptl-topbar { background: var(--ptl-grey); padding: 16px 0 44px; }
.ptl-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ptl-logo img { height: 74px; width: auto; display: block; }
.ptl-infos { display: flex; gap: 36px; }
.ptl-info { display: flex; align-items: center; gap: 12px; }
.ptl-info > i { font-size: 33px; color: var(--ptl-teal); width: 36px; text-align: center; }
.ptl-info span { display: block; font-size: 14px; font-weight: 500; color: var(--ptl-muted); }
.ptl-info a, .ptl-info b { display: block; font-size: 16px; font-weight: 600; color: var(--ptl-navy); }
.ptl-info a:hover { color: var(--ptl-primary); }

.ptl-navwrap { margin-top: -34px; margin-bottom: -34px; position: relative; z-index: 2; }
.ptl-nav {
    background: var(--ptl-navy); min-height: 68px; padding: 14px; display: flex;
    align-items: center; justify-content: space-between; gap: 12px;
}
.ptl-menu { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0 8px; align-items: center; }
.ptl-menu > li { position: relative; display: flex; align-items: center; }
.ptl-menu a { color: #fff; font-size: 15px; font-weight: 500; padding: 4px 0; display: block; transition: color .2s; }
.ptl-menu a:hover, .ptl-menu a.active { color: var(--ptl-primary); }
.ptl-sub-toggle { background: none; border: 0; color: #fff; padding: 0 4px; font-size: 12px; cursor: pointer; }
.ptl-sub {
    list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; right: 0; min-width: 260px;
    background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); border-top: 3px solid var(--ptl-primary);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s;
}
.ptl-has-sub:hover > .ptl-sub, .ptl-has-sub.open > .ptl-sub { opacity: 1; visibility: visible; transform: none; }
.ptl-sub a { color: var(--ptl-navy); padding: 9px 18px; font-size: 14px; }
.ptl-sub a:hover { color: var(--ptl-primary); background: #fafafa; }
.ptl-nav-actions { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.ptl-act-price { color: var(--ptl-primary) !important; font-size: 18px; font-weight: 600; }
.ptl-act-invite { color: #fff !important; font-size: 16px; }
.ptl-act-invite:hover { color: var(--ptl-primary) !important; }
.ptl-act-catalog { background: var(--ptl-primary); color: #fff !important; font-size: 14px; padding: 13px 18px; }
.ptl-act-catalog:hover { background: #e4440c; }
.ptl-act-login { color: #fff !important; font-size: 14px; padding: 11px 16px; border: 2px solid rgba(255, 255, 255, .55); transition: all .2s; }
.ptl-act-login:hover { border-color: var(--ptl-primary); color: var(--ptl-primary) !important; }
.ptl-act-login i { margin-left: 4px; }
.ptl-burger { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 1100px) {
    .ptl-menu { gap: 16px; }
    .ptl-menu a { font-size: 14px; }
    .ptl-nav-actions { gap: 14px; }
}
@media (max-width: 1024px) {
    .ptl-infos { display: none; }
    .ptl-topbar { padding: 12px 0 44px; }
    .ptl-burger { display: block; }
    .ptl-nav { flex-wrap: wrap; }
    .ptl-menu {
        display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 0 0;
    }
    .ptl-nav.open .ptl-menu { display: flex; }
    .ptl-menu > li { flex-wrap: wrap; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .08); }
    .ptl-menu > li > a { padding: 10px 4px; }
    .ptl-sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; width: 100%;
               box-shadow: none; border-top: 0; background: rgba(255, 255, 255, .04); }
    .ptl-has-sub:hover > .ptl-sub { display: none; }
    .ptl-has-sub.open > .ptl-sub { display: block; }
    .ptl-sub a { color: #dfe3ea; }
}
@media (max-width: 767px) {
    .ptl-topbar-inner { justify-content: center; }
    .ptl-logo img { height: 56px; }
    .ptl-nav-actions { gap: 12px; font-size: 14px; }
    .ptl-act-price, .ptl-act-invite { font-size: 14px; }
    .ptl-act-catalog, .ptl-act-login { padding: 8px 10px; }
}

/* ------------------------------------------------------------ hero slider (replaces Revolution Slider) */
.ptl-hero { position: relative; height: 830px; overflow: hidden; background: var(--ptl-navy); }
.ptl-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease; display: flex; align-items: center;
}
.ptl-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(270deg, rgba(25, 36, 55, .88) 0%, rgba(25, 36, 55, .55) 50%, rgba(25, 36, 55, .15) 100%);
}
.ptl-slide.is-active { opacity: 1; z-index: 1; }
.ptl-hero > .ptl-slide { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; }
.ptl-page .ptl-hero { width: 100%; flex: none; align-self: stretch; }
.ptl-slide-inner { position: relative; max-width: 1140px; width: 100%; margin: 0 auto; padding: 60px 16px 0; color: #fff; }
.ptl-slide-inner > * { max-width: 640px; }
.ptl-slide-title { color: #fff; font-size: 58px; font-weight: 800; line-height: 1.3; margin: 0 0 16px; }
.ptl-slide-sub { color: var(--ptl-primary); font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.ptl-slide-text { font-size: 19px; line-height: 1.9; margin: 0 0 6px; color: #eef1f6; }
.ptl-btn {
    display: inline-block; margin-top: 26px; background: var(--ptl-primary); color: #fff !important;
    padding: 16px 34px; font-weight: 600; transition: background .2s;
}
.ptl-btn:hover { background: #e4440c; }
.ptl-slide.is-active .ptl-slide-inner > * { animation: ptlUp .9s both; }
.ptl-slide.is-active .ptl-slide-inner > *:nth-child(2) { animation-delay: .15s; }
.ptl-slide.is-active .ptl-slide-inner > *:nth-child(3) { animation-delay: .3s; }
.ptl-slide.is-active .ptl-slide-inner > *:nth-child(n+4) { animation-delay: .45s; }
@keyframes ptlUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.ptl-hero-dots { position: absolute; z-index: 3; bottom: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.ptl-hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.ptl-hero-dots button.is-active { background: var(--ptl-primary); border-color: var(--ptl-primary); }
.ptl-hero-prev, .ptl-hero-next {
    position: absolute; z-index: 3; top: 50%; width: 50px; height: 50px; margin-top: -25px; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; transition: background .2s;
}
.ptl-hero-prev:hover, .ptl-hero-next:hover { background: var(--ptl-primary); }
.ptl-hero-prev { right: 24px; }
.ptl-hero-next { left: 24px; }
.ptl-hero-prev::before { content: '\203A'; font-size: 34px; line-height: 1; }
.ptl-hero-next::before { content: '\2039'; font-size: 34px; line-height: 1; }
@media (max-width: 1024px) { .ptl-hero { height: 580px; } .ptl-slide-title { font-size: 42px; } }
@media (max-width: 767px) {
    .ptl-hero { height: 520px; }
    .ptl-slide-title { font-size: 30px; }
    .ptl-slide-sub { font-size: 19px; }
    .ptl-slide-text { font-size: 15px; }
    .ptl-hero-prev, .ptl-hero-next { display: none; }
}

/* ------------------------------------------------------------ imported Elementor content */
.ptl-page { overflow-x: clip; }
.ptl-page img { max-width: 100%; height: auto; }
.ptl-page .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.ptl-page a:not(.elementor-button):not(.ptl-btn) { color: inherit; }
.ptl-page .elementor-button, .ptl-page a.elementor-button { text-decoration: none; }
/* Elementor loop carousels without Swiper: horizontal scroll-snap rows */
.ptl-page .elementor-widget-loop-carousel .swiper { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    scrollbar-width: none; scroll-behavior: smooth; }
.ptl-page .elementor-widget-loop-carousel .swiper::-webkit-scrollbar { display: none; }
.ptl-page .elementor-widget-loop-carousel .swiper-wrapper { display: flex; gap: 24px; transform: none !important; }
.ptl-page .elementor-widget-loop-carousel .swiper-slide { flex: 0 0 calc((100% - 48px) / 3); width: auto; height: auto; scroll-snap-align: start; }
@media (max-width: 1024px) { .ptl-page .elementor-widget-loop-carousel .swiper-slide { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 767px) { .ptl-page .elementor-widget-loop-carousel .swiper-slide { flex-basis: 88%; } }
.ptl-page .elementor-swiper-button { cursor: pointer; z-index: 2; }
/* accordion (legacy widget) */
.ptl-page .elementor-accordion .elementor-tab-content { display: none; }
.ptl-page .elementor-accordion .elementor-tab-title { cursor: pointer; }
.ptl-page .elementor-accordion .elementor-tab-title.elementor-active + .elementor-tab-content { display: block; }
/* nested tabs */
.ptl-page .e-n-tabs-content > .e-con:not(.e-active) { display: none !important; }

/* ------------------------------------------------------------ footer */
.ptl-footer { background: transparent; }
.ptl-footer a { text-decoration: none; }

/* ------------------------------------------------------------ floating contact hub */
.ptl-hub { position: fixed; right: 22px; bottom: 22px; z-index: 1040; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ptl-hub-toggle {
    width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 24px;
    background: var(--ptl-primary); box-shadow: 0 10px 25px rgba(255, 83, 22, .45);
    animation: ptlPulse 2.4s infinite;
}
@keyframes ptlPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 83, 22, .5); } 60% { box-shadow: 0 0 0 14px rgba(255, 83, 22, 0); } }
.ptl-hub-items { display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s; }
.ptl-hub.open .ptl-hub-items { opacity: 1; visibility: visible; transform: none; }
.ptl-hub-item { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ptl-navy) !important;
    padding: 8px 8px 8px 18px; border-radius: 40px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); min-width: 230px; }
.ptl-hub-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.ptl-hub-txt b { display: block; font-size: 14px; }
.ptl-hub-txt small { display: block; color: var(--ptl-muted); font-size: 12px; }

/* hide Odoo bits that do not exist on the original site */
.ptl-header ~ main .o_portal_wrap { margin-top: 60px; }

/* keep Elementor's global button style away from the hero controls */
.ptl-hero .ptl-hero-prev, .ptl-hero .ptl-hero-next {
    padding: 0; background: rgba(255, 255, 255, .12); display: grid; place-items: center; border-radius: 0;
}
.ptl-hero .ptl-hero-prev:hover, .ptl-hero .ptl-hero-next:hover { background: var(--ptl-primary); }
.ptl-hero .ptl-hero-dots button { padding: 0; background: transparent; }
.ptl-hero .ptl-hero-dots button.is-active { background: var(--ptl-primary); }

/* page-level "hide title" variables of single WordPress pages leak through :root once merged */
.ptl-page .elementor-widget-theme-post-title.elementor-page-title { display: block; }
/* contact page: the form column was removed, centre the contact details */
.ptl-page-contact .elementor-element-1e8a0b9 { --width: 100%; width: 100%; max-width: 760px; margin-inline: auto; }
