/*
   Theme Name: PlanHolder
   Theme URI: https://divicake.com/
   Description: PlanHolder-web-child
   Version: 1.0
   Author: Urho Rättel
   Author URI: https://www.facebook.com/urho.rattel
   Template: Divi
*/

/* ============================================================
   @font-face – TT Chocolates Regular
   Failid asuvad: /wp-content/themes/planholder/fonts/
   ============================================================ */
@font-face {
  font-family: 'TT Chocolates';
  src: url('fonts/TT_Chocolates_Regular.woff2') format('woff2'),
       url('fonts/TT_Chocolates_Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Fondi määramine kõigile elementidele
   ============================================================ */
body,
p,
.body,
.body-lg,
h1, h2, h3, h4,
nav {
  font-family: 'TT Chocolates', sans-serif;
  font-weight: 400;
}

/* ============================================================
   Fondi suuruste sujuv skaleerimine calc() abil
   Alates 320px (mobiil) kuni 2560px (laiekraan)
   1rem = 16px
   ============================================================ */

h1 {
  font-size: calc(2.625rem + (76 - 42) * (100vw - 320px) / (2560 - 320));
}

h2 {
  font-size: calc(2.375rem + (58 - 38) * (100vw - 320px) / (2560 - 320));
}

h3 {
  font-size: calc(1.75rem + (42 - 28) * (100vw - 320px) / (2560 - 320));
}

h4 {
  font-size: calc(1.375rem + (32 - 22) * (100vw - 320px) / (2560 - 320));
}

.body-lg {
  font-size: calc(1rem + (24 - 16) * (100vw - 320px) / (2560 - 320));
}

body,
p,
.body {
  font-size: calc(0.85rem + (18 - 12) * (100vw - 320px) / (2560 - 320));
}

nav {
  font-size: calc(0.625rem + (14 - 10) * (100vw - 320px) / (2560 - 320));
}
/***header-nav-link-START***//* Navigatsiooni lingi alumine joon 4 px kaugusel tekstist */
.et_pb_row .et_pb_menu__menu li a {
    text-decoration: none;                /* eemaldab tavalise allakriipsutuse */
    color: #000000 !important;
    position: relative;
}

.et_pb_row .et_pb_menu__menu li a:hover,
.et_pb_row .et_pb_menu__menu li.current-menu-item a {
    text-decoration: underline;
    text-decoration-color: #C1111E;
    text-underline-offset: 4px;           /* täpselt 4 px teksti all */
    text-decoration-thickness: 1px;       /* joone paksus */
}
/***header-nav-link-END***/
/***nav-link-gap-START***/
.et_pb_row .et_pb_menu__menu li {
    padding-left: 2px;   /* soovi korral muuda väiksemaks */
    padding-right: 2px;
}/***nav-link-gap-END***/
/***hover-zoom-scc class - .et-zoom-in START***/
.et-zoom-in.et_pb_image:hover img,
.et-zoom-in .et_pb_image_wrap:hover img,
.et-zoom-in a:hover img {
    transform: scale(1.1); 
    transition: all 3s 0s ease;
}

.et-zoom-in,
.et-zoom-in a {
    overflow: hidden;
}

.et-zoom-in.et_pb_image img,
.et-zoom-in .et_pb_image_wrap img,
.et-zoom-in a img {
    transition: all 1s 0s ease; 
}
/***hover-zoom-scc class - .et-zoom-in END***/