/*
Theme Name: GMFG Theme Child
Template: royal-elementor-kit
Version: 1.0
*/

/* ==========================================================
   GMFG – Local Roboto (WOFF2) + Global CSS
   ========================================================== */

/* ---------- Local Roboto (WOFF2) ---------- */
@font-face{
  font-family: 'RobotoCustom';
  src: url('fonts/Roboto-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'RobotoCustom';
  src: url('fonts/Roboto-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'RobotoCustom';
  src: url('fonts/Roboto-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Map missing weights to existing ones (optional but useful) */
@font-face{
  font-family: 'RobotoCustom';
  src: url('fonts/Roboto-Medium.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'RobotoCustom';
  src: url('fonts/Roboto-Bold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Global Roboto (site-wide) ---------- */
html, body{
  font-family: 'RobotoCustom', Arial, sans-serif;
}

/* ==========================================================
   GMFG Additional CSS – v2 CLEAN
   Build: 20260211-13PAGES-01
   ========================================================== */

/* =========================
   LOGO (Stable - no jumping)
   ========================= */
.wpr-logo-element,
.wpr-logo-image{
  width: 160px !important;
  max-width: 160px !important;
}

.wpr-logo-image img{
  width: 160px !important;
  max-width: 160px !important;
  height: 47px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Tablet */
@media (min-width:768px) and (max-width:1024px){
  .wpr-logo-element,
  .wpr-logo-image{
    width: 145px !important;
    max-width: 145px !important;
  }
  .wpr-logo-image img{
    width: 145px !important;
    max-width: 145px !important;
    height: 47px !important;
  }
}

/* Mobile */
@media (max-width:767px){
  .wpr-logo-element,
  .wpr-logo-image{
    width: auto !important;
    max-width: 100% !important;
  }
  .wpr-logo-image img{
    width: auto !important;
    max-width: 100% !important;
    height: 31px !important;
    object-fit: contain !important;
    display: block !important;
  }
}

/* =========================
   GLOBAL TYPO / CONTENT
   ========================= */

/* Headings inside links */
h2.elementor-size-default a { color: #fff !important; }

/* Paragraph default */
p{
  text-align: justify;
  line-height: 1.4;
  font-weight: 400;
}

@media (max-width: 1024px) {
    p{
        font-size: 15px;
    }
}

@media (max-width: 1024px){
  ul,
  ol{ text-align: left !important; }

  ul li,
  ol li{ text-align: left !important; }
}

@media (max-width: 767px){
  ul,
  ol{ text-align: left !important; }

  ul li,
  ol li{ text-align: left !important; }
}

/* Grid Template Rows */
.e-con-inner { grid-template-rows: auto !important; }

/* Hero Paragraph default */
.elementor-element-3c940ae p span{
  font-size: 16px !important;
  letter-spacing: 0.4px;
}

@media (max-width: 767px){
  .elementor-element-3c940ae p span{
    font-size: 16px !important;
    letter-spacing: 0.1px !important;
  }
}

/* ---------- Footer legal block (v2) ---------- */
.gm-footer-legal,
.gm-footer-legal * { box-sizing: border-box; }

.gm-footer-legal{
  width: 100%;
  text-align: center !important;
}

.gm-footer-legal p{
  margin: 0 !important;
  width: 100% !important;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  color: #33cccc;
  font-size: 13px !important;
  line-height: 1.55;
}

.gm-footer-legal a.gm-footer-link{
  text-decoration: none;
  font-weight: 600;
  font-size: 13px !important;
}

.gm-footer-legal a.gm-footer-link.gold { color: #fdbb28 !important; }
.gm-footer-legal a.gm-footer-link.teal { color: #33cccc !important; }

/* =========================
   FORMINATOR (DO NOT TOUCH)
   ========================= */
.forminator-ui.forminator-design--material .forminator-button-submit{
  font-size: 15px !important;
}

.forminator-radio-label,
.forminator-radiogroup-radio-3-688e02f21cd8d-description,
.forminator-description{
  text-align: justify;
}

#forminator-module-20588,
.select2-results__option,
.select2-results__option--selectable{
  font-family: 'RobotoCustom', sans-serif !important;
}

/* =========================
   GDPR Cookie Bar Styling
   ========================= */
#moove_gdpr_cookie_info_bar p { font-weight: normal !important; }

@media (max-width: 767px){
  .mgbutton.moove-gdpr-modal-allow-all.button-visible,
  .mgbutton.moove-gdpr-modal-reject-all.button-visible,
  .mgbutton.moove-gdpr-modal-save-settings.button-visible{
    background-color: #fff;
    border: 1px solid #999;
  }
}

/* =========================
   BLOG / ROYAL WPR – light styling
   ========================= */
div.wpr-promo-box-description p{
  color: #ffffff !important;
}

.wpr-grid-item-excerpt div.inner-block p{
  font-family: 'RobotoCustom', sans-serif !important;
  font-size: 15px;
}

/* FIX: correct pseudo-class */
p a:link,
p a:visited{
  font-family: 'RobotoCustom', sans-serif !important;
  font-size: 15px;
  color: #007aff;
}

article.post {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   HEADINGS (generic inside containers)
   ========================= */
.e-con-inner h2.elementor-size-default,
.e-con-inner h3.elementor-size-default,
.e-con-inner h4.elementor-size-default,
.e-con-inner h5.elementor-size-default,
.e-con-inner h6.elementor-size-default{
  line-height: 1.4em !important;
}

.wpr-sticky-section-no.e-con.e-parent > div > div > div > h6{
  font-size: 26px;
}

/* =========================
   LANGUAGE (Greek) – Roboto
   ========================= */
html[lang^="el"] h1,
html[lang^="el"] h2,
html[lang^="el"] h3,
html[lang^="el"] h4,
html[lang^="el"] h5,
html[lang^="el"] h6,
html[lang^="el"] p{
  font-family: 'RobotoCustom', sans-serif !important;
}

/* =========================
   GLOBAL link/menu typography
   ========================= */
.wpr-sub-menu-item,
a{
  font-family: 'RobotoCustom', sans-serif !important;
  font-size: 15px;
}

#menu-1-5585ab86 .sub-menu li a {
    padding-top: 14px !important;
    padding-bottom: 10px !important;
}

.swiper-pagination-horizontal{
  font-family: 'RobotoCustom', sans-serif !important;
  font-size: 15px;
  color: #7B8295;
}

/* =========================
   800×480 landscape improvements (commented out safely)
   ========================= */
/*
@media (max-width: 800px) and (max-height: 480px) and (orientation: landscape){
  html, body { font-size: 16px; }

  .btn, button, a.button{
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 0 !important;
    font-weight: 600 !important;
  }

  header .nav { gap: 8px; }
  .hero { padding: 12px; }
  .grid { grid-template-columns: 1fr; }
  .hide-on-car { display: none; }
}
*/

/* =========================
   GMFG Back to Top (final)
   ========================= */
#gmfg-stt{
  position: fixed !important;
  right: 30px !important;
  left: auto !important;
  bottom: 30px !important;
  top: auto !important;

  width: 44px !important;
  height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 10px !important;

  cursor: pointer !important;
  z-index: 2147483647 !important;

  background: #605be5 !important;
  color: #ffffff !important;

  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 44px !important;
  text-align: center !important;

  text-shadow:
    0.35px 0   currentColor,
   -0.35px 0   currentColor,
    0   0.35px currentColor,
    0  -0.35px currentColor;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s, background-color .2s, color .2s;
}

#gmfg-stt.show{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#gmfg-stt:hover{
  background: #fdbb28 !important;
  color: #000000 !important;
  text-shadow:
    0.35px 0   #000,
   -0.35px 0   #000,
    0   0.35px #000,
    0  -0.35px #000;
}

#gmfg-stt:active{ transform: translateY(0) scale(0.98); }

#gmfg-stt:focus,
#gmfg-stt:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

@media (max-width: 767px){
  #gmfg-stt{
    width: 52px !important;
    height: 52px !important;
    line-height: 52px !important;
    font-size: 26px !important;
    border-radius: 0px !important;
    right: 18px !important;
    bottom: 18px !important;
  }
}

/* ==========================================================
   v2 TYPO – 13 pages scope (consolidated)
   ========================================================== */

body:is(
  .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
  .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
) .elementor-widget-text-editor{
  font-size: 15px !important;
  line-height: 1.75 !important;
  font-family: 'RobotoCustom', sans-serif !important;
}

body:is(
  .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
  .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
) .elementor-widget-text-editor p{
  margin: 0 0 14px 0 !important;
}

body:is(
  .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
  .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
) .elementor-widget-text-editor li{
  font-size: 15px !important;
  line-height: 1.75 !important;
  font-family: 'RobotoCustom', sans-serif !important;
}

body:is(
  .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
  .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
) .elementor-heading-title{
  line-height: 1.22 !important;
  letter-spacing: -0.01em !important;
  font-family: 'RobotoCustom', sans-serif !important;
  font-weight: 600 !important;
}

/* H1–H4 (Elementor Heading widgets on v2 pages) */
body:is(
  .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
  .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
) h1.elementor-heading-title{
  font-size: 52px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  font-weight: 600 !important;
}

body:is(
  .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
  .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
) h2.elementor-heading-title{
  font-size: 34px !important;
  line-height: 1.22 !important;
  font-weight: 600 !important;
}

body:is(
  .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
  .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
) h3.elementor-heading-title{
  font-size: 22px !important;
  line-height: 1.28 !important;
  font-weight: 600 !important;
}

body:is(
  .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
  .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
) h4.elementor-heading-title{
  font-size: 18px !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}

/* Buttons */
body:is(
  .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
  .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
) .elementor-button{
  font-size: 15px !important;
  font-family: 'RobotoCustom', sans-serif !important;
  padding: 12px 24px !important; /* fixed (auto is invalid) */
  font-weight: 600;
  width: 230px !important;
}

/* Tablet v2 */
@media (max-width: 1024px){
  body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) h1.elementor-heading-title{
    font-size: 40px !important;
    line-height: 1.14 !important;
    font-weight: 600 !important;
  }

  body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) h2.elementor-heading-title{
    font-size: 28px !important;
    font-weight: 600 !important;
  }

  body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) h3.elementor-heading-title{
    font-size: 20px !important;
    font-weight: 600 !important;
  }

  body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) .elementor-widget-text-editor{
    font-size: 15.5px !important;
    font-weight: 400 !important;
  }
}

/* Mobile v2 */
@media (max-width: 767px){
  body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) h1.elementor-heading-title{
    font-size: 30px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.015em !important;
    font-weight: 600 !important;
  }

  body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) h2.elementor-heading-title{
    font-size: 22px !important;
    line-height: 1.22 !important;
    font-weight: 600 !important;
  }

  body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) h3.elementor-heading-title{
    font-size: 18px !important;
    font-weight: 600 !important;
  }

  body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) .elementor-widget-text-editor{
    font-size: 15px !important;
    line-height: 1.75 !important;
  }

  body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) .elementor-button{
    font-size: 15px !important;
  }

  /* Greek override (expanded to 13 pages) */
  html[lang="el"] body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) .elementor-heading-title,
  html[lang="el"] body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) .elementor-widget-text-editor,
  html[lang="el"] body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) .elementor-button,
  html[lang="el"] body:is(
    .page-id-25556,.page-id-27113,.page-id-25638,.page-id-25620,.page-id-25662,.page-id-25656,
    .page-id-27054,.page-id-26971,.page-id-27062,.page-id-27048,.page-id-27040,.page-id-27012,.page-id-972
  ) .elementor-widget-text-editor li{
    font-family: 'RobotoCustom', sans-serif !important;
    font-weight: 600 !important;
  }
}

/* =========================
   Resources grid images (scoped)
   ========================= */
body.page-id-25662 .wpr-grid .wpr-grid-image-wrap img,
body.page-id-25662 .wpr-grid .wpr-grid-media img,
body.page-id-25662 .wpr-grid .wpr-grid-image img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 767px){
  body.page-id-25662 .wpr-grid .wpr-grid-image-wrap,
  body.page-id-25662 .wpr-grid .wpr-grid-media,
  body.page-id-25662 .wpr-grid .wpr-grid-image{
    height: 220px !important;
    max-height: 220px !important;
  }
}

/* Featured media image (single/blog) */
.wpr-featured-media-image img{
  border-radius: 0 !important;
  width: 100%;
  height: 418px;
  max-height: 418px !important;
}

/* Elementor Posts widget excerpt – Roboto */
.elementor-post__excerpt,
.elementor-post__excerpt *{
  font-family: 'RobotoCustom', sans-serif !important;
  font-size: 15px !important;
}

.elementor-post__card{
  height: 441px;
  max-height: 441px !important;
}

/* SINGLE POST – featured image mobile control */
body.single-post .wpr-featured-media-image{
  overflow: hidden !important;
}

@media (max-width: 767px){
  body.single-post .wpr-featured-media-image{
    height: clamp(240px, 42vh, 360px) !important;
  }
}

body.single-post .wpr-featured-media-image img,
body.single-post img.wp-post-image{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

@media (min-width: 768px){
  body.single-post .wpr-featured-media-image img,
  body.single-post img.wp-post-image{
    width: 100% !important;
    height: auto !important;
    max-height: 620px !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* Fix WPR Post Content width inside Elementor Single Post */
body.single-post .wpr-post-content,
body.single-post .wpr-post-content .elementor,
body.single-post .wpr-post-content .elementor-section,
body.single-post .wpr-post-content .e-con,
body.single-post .wpr-post-content .e-con-inner {
    max-width: 100% !important;
    width: 100% !important;
}

/* Debug marker */
:root{ --v2css-build: 20260211-13PAGES-01; }
